‎2006 Jul 31 1:37 PM
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
‎2006 Jul 31 1:45 PM
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
‎2006 Jul 31 2:01 PM
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
‎2006 Jul 31 3:08 PM
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
‎2006 Jul 31 1:46 PM
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