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_OBJCL_CTEATE

Former Member
0 Likes
973

Hi everybody,

I am using BAPI_OBJCL_CREATE for batch classification of Material BOM.

call function 'BAPI_OBJCL_CREATE'

exporting

objectkeynew = 'M000000790000003'

objecttablenew = 'STPO'

classnumnew = 'Z_COMPOSANT'

classtypenew = '023'

tables

allocvaluesnum = t_valuesnum

allocvalueschar = t_valueschar

allocvaluescurr = t_valuescurr

return = t_return.

Here object key is the Concatenation of

STPO-STLTY STPO-STLNR and STPO-CLSZU.

But the probelm here is that STPO-CLSZU is initial when the BOM is created initially.

Once the batch Classification data is updated then only CLSZU field is updated.

Can anybody help me to find how would i create the key to create batchclassification for Material BOM

Many thanks

Sarika

3 REPLIES 3
Read only

Former Member
0 Likes
706
Read only

Former Member
0 Likes
706

Hi,

if you want to create the key i think you need to use this BAPI <b>BAPI_OBJCL_CREATE_KEY</b>

Regards

vijay

Read only

0 Likes
706

Hi Vijay,

FM BAPI_OBJCL_CREATE_KEY also requires an object key to create batch classification for material BOM.

Can you suggest me any FM alongwith sample program to create a KEY for Material BOM . The table for the same is STPO.

Thanks in advance.

Regards,

Sarika