Application Development and Automation 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: 
Read only

bapi

Former Member
0 Likes
435

how to use bapi_objcl_create if have any code plz send me? my requirement is assign class to equipment

2 REPLIES 2
Read only

Former Member
0 Likes
415

See this post for details :

Read only

Former Member
0 Likes
415

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

And,

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.

Reward if found helpful.