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

regarding BAPI_OBJCL_GETDETAIL and BAPI_OBJCL_CHANGE

Former Member
0 Likes
2,325

HI All,

Please let me which charactersitcs we will read and change using the BAPI's BAPI_OBJCL_GETDETAIL and BAPI_OBJCL_CHANGE whether Material level characteristcs or Batch level charactersitcs?when I used the Ist BAPI using by passing objectkey object table I got charactersitics which Characteristcs this I am not found since I don't find this in batch characteristics,the same case with the 2nd BAPI also.

Can anybody pls give some idea on this which characteristics these bAPI's will consider.

Thanks&Regards

Mahesh

4 REPLIES 4
Read only

Former Member
0 Likes
1,310

The characteristics which these BAPIs will read/update depends on the import parameters OBJECTTABLE, CLASSNUM and CLASSTYPE.

CLASSNUM = Name of the class

For material classifications

OBJECTTABLE = MARA

CLASSTYPE = 001

and for batch

OBJECTTABLE = MCHA

CLASSTYPE = 023

-Kiran

*Please mark useful answers

Read only

0 Likes
1,310

Hi Kiran,

Plese refer my code below.basically I need to update batch characteristics.

CALL FUNCTION 'BAPI_OBJCL_CHANGE'

EXPORTING

objectkey = w_object

objecttable = 'MCHA'

classnum = p_class

classtype = p_klart

  • STATUS = '1'

  • STANDARDCLASS =

  • CHANGENUMBER =

  • KEYDATE = SY-DATUM

  • NO_DEFAULT_VALUES = ' '

  • IMPORTING

  • CLASSIF_STATUS =

TABLES

allocvaluesnumnew = numtab

allocvaluescharnew = chatab

allocvaluescurrnew = curtab

return = rettab

wa_object is the concatenation of Matnumber and batch batch number but it's giving the error if I give objecttable mcha where as if I give MARA as object table No error is coming but it's changing batch characteristics. can you please throw some idea about this?

Thanks&Regards

Mahesh

Read only

0 Likes
1,310

Hey Mahesh,

WA_OBJECT should be populated as below:

Material Number with leading zeroes + Plant Code + Batch Number

Check the key of the table MCHA.

-Kiran

*Please reward useful answers

Read only

Former Member
0 Likes
1,310

Mahesh,

This deals with characteristics of the material and not batch. You just need to pass the material number to the object.

Regards,

Ravi

Note : Please mark all the helpful answers