Вы находитесь на странице: 1из 8

Welcome, Guest

Login
Register

Getting Started

Newsletters

Store

Search for:

Search the Community

Solutions
SAP Services & Support
About SCN
Downloads
Industries
Training & Education
Partnership
Code Exchange
Lines of Business
University Alliances
Events & Webinars

Idea Place
Home

Communications

Activity

Actions

BrowseMore

Content

People

Places

Recent Bookmarks

More discussions in ABAP DevelopmentWhere is place located?


3 Replies Latest reply: Jan 17, 2008 8:45 AM by Prakash N

Search All of SAP

Classification view in Material Master


This question is Not Answered.

Prakash N Jan 15, 2008 7:29 AM


Can any one tell me , how to create a Classification view using program or function module.

I just wanted to create a Classification views in MM01 transaction . is there any function module there to create
the same ?

if BAPI_OBJCL_CREATE is the FM , then pls tell me how the following input parameters related to the material .
from which table i can have the following parameter values based on material number .

OBJECTKEY_IMP
OBJECTTABLE_IMP
CLASSTYPE_IMP
READ_VALUATIONS

Edited by: Prakash N on Jan 15, 2008 1:27 AM

1249 Views
o Topics: ABAP

Average User Rating


(0 ratings)

Yes BAPI_OBJCL_CREATE is the required FM.

OBJECTKEY_IMP = Your Matnr of MM01


OBJECTTABLE_IMP = 'MARA'
CLASSTYPE_IMP = Class type you want to create for the material under consideration
READ_VALUATIONS = There is no such parameter in the above mentioned FM

I hope this helps,

Regards
Raju Chitale

Report Abuse

Like (0)

Re: Classification view in Material Master

Parminder Singh Saluja Jan 15, 2008 11:13 AM (in response to Prakash N)
CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
objectkeynew = P_L_T_CLASS-objnum
objecttablenew = 'MARA'
classnumnew = P_L_T_CLASS-class
classtypenew = P_L_T_CLASS-ctype

STATUS = '1'
STANDARDCLASS =
CHANGENUMBER =
KEYDATE = SY-DATUM
TABLES

allocvaluesnum = l_it_num

allocvalueschar = l_it_mkml
allocvalueschar = l_t_class

allocvaluescurr = l_it_curr
return = l_t_ret2.
If useful reward...

Report Abuse

Like (0)

Re: Classification view in Material Master

Prakash N Jan 17, 2008 8:45 AM (in response to Parminder Singh Saluja)
Dear All ,

Thanks for your reply , I have passed the following value ,

OBJECTKEYNEW

OBJECTTABLENEW

000000000000000925
MARA

CLASSNUMNEW

HLLBATCHCLASS

CLASSTYPENEW

023

STATUS

18.01.2008

STANDARDCLASS
CHANGENUMBER
KEYDATE
NO_DEFAULT_VALUES

also im passing the characteristics

Export table giving the following result. But when i see the MM02 again i could not see these entries... y ?

RETURN
Result:

Hi All

Can anyone let me know how exactly to use the BAPI


BAPI_OBJCL_CREATE.
I want to know the parameters that need to be passed for this bapi and the meaning of those parameters.

Kindly send some example code if any for this bapi.

Kindly check the following coding:

CALL FUNCTION 'BAPI_OBJCL_CREATE'


EXPORTING
objectkeynew

= v_object

objecttablenew = 'MCH1'
classnumnew
classtypenew

= v_class
= '023'

TABLES
allocvaluesnum = aract_num

allocvalueschar = caract_char
allocvaluescurr = caract_curr
return

= return.

Dont forget to reward points if found useful.

Thanks,
Satyesh

Report Abuse

Like (0)

Re: BAPI BAPI_OBJCL_CREATE

swarup basagare Jun 5, 2008 1:47 PM (in response to Sudheendra Puthuraya)


This BAPI creates a classification with assigned values if the classification does not yet exist. The classification is
defined by the required fields object key (ObjectKeyNew), object table (ObjectTableNew), class name
(AllocDetail-Class_Num), and class type (AllocDetail-Class_Type). The characteristics and their values are
transferred in different tables according to type. Numeric, time, and date characteristics are transferred in table
AllocValuesNum. Character and boolean characteristics are transferred in table AllocValuesChar, and currency
characteristics are transferred in table AllocValuesCurr.
Hi,

the bapi is used to create classifcations ( like customer classifcation or material classifcation or funcational
location classifications, functional location classifications...etc)

CALL FUNCTION 'BAPI_OBJCL_CREATE'


EXPORTING

objectkeynew

= lw_object

objecttablenew = lc_table
classnumnew

= lw_class

classtypenew

= lw_cltype

TABLES
allocvaluesnum = li_valuesnum
allocvalueschar = li_valueschar
allocvaluescurr = li_valuescurr
return

= li_return.

for material classication the value LC_TABE will be MARA


for customer classifcation the value will be KNA1
for equipment classificaton the value will be EQUI....etc
means the master table of corresponding cooponent

pass class detials to LW_CLASS


class tyep to lw_cltype

every class contains characteristic values

pass numeric characteristic values of the class to li_values num


pass char type characteristic values to li_valueschar
pass currency tpye charactestic values to li_valuecurr

Reward points if useful

Regards,
Sriram

Вам также может понравиться