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

how to use FM:BAPI_OBJCL_CREATE

Former Member
0 Likes
6,408

Hi All,

Iu2019m trying to use this FM: BAPI_OBJCL_CREATE to create classification view for material, but I couldnu2019t. Can anyone please let me know what are all the import and table parameters we have to populate to create the class?

Require exact values to populate this FM?

Bandi

2 REPLIES 2
Read only

Sridharnekkanti
Active Participant
0 Likes
1,934

Check the below threads posted earlier. It may help to proceed.

Read only

Former Member
0 Likes
1,934

Hi,

Try by passing these values in the import/ tables parameters.

CALL FUNCTION 'BAPI_OBJCL_CREATE'

EXPORTING

OBJECTKEYNEW = BAPI1003_KEY-OBJECT(MATERIAL)

OBJECTTABLENEW = BAPI1003_KEY-OBJECTTABLE (MARA)

CLASSNUMNEW = BAPI1003_KEY-CLASSNUM (Find the class from here Classification view - Assignments - Class)

CLASSTYPENEW = BAPI1003_KEY-CLASSTYPE (you can from classification view - class type)

STATUS = '1'

KEYDATE = SY-DATUM

  • IMPORTING

  • CLASSIF_STATUS =

TABLE

ALLOCVALUESCHAR = BAPI1003_ALLOC_VALUES_CHAR(Append all the characteristic names/values)

RETURN = bapiret2.

Hope this helps you, i had mentioned the structure and field names in the import/tables parameters, you got to declare the internal table of that structure and pass the values.

Regards,

Manjunath