Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI BAPI_OBJCL_CREATE

Former Member
0 Kudos

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.

Regards

3 REPLIES 3

Former Member
0 Kudos

Hi buddy,

Kindly check the following coding:

CALL FUNCTION 'BAPI_OBJCL_CREATE'

EXPORTING

objectkeynew = v_object

objecttablenew = 'MCH1'

classnumnew = v_class

classtypenew = '023'

TABLES

allocvaluesnum = aract_num

allocvalueschar = caract_char

allocvaluescurr = caract_curr

return = return.

Dont forget to reward points if found useful.

Thanks,

Satyesh

Former Member
0 Kudos

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.

regards,

Swarup

Former Member
0 Kudos

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

Edited by: Srirama Murthy Maddirala on Jun 5, 2008 1:49 PM

Edited by: Srirama Murthy Maddirala on Jun 5, 2008 1:52 PM

Edited by: Srirama Murthy Maddirala on Jun 5, 2008 2:08 PM