‎2007 Apr 26 5:55 AM
Hi Experts,
By using TCode MSC3N, tab Classification i can see those Value assignment being assigned to each of the Characteristic. But im no able to get those value under table AUSP.
Hence, i need your advice on how to extract it? there is a FM to extract it?
Please comment.
Thanks in advance.
‎2007 Apr 27 11:59 AM
Hello,
The FM VBWS_MARA_CLASSIFICATION_GET will return the number and description of characteristics you can evaluate for this material.
This FM can't show the results you see in MSC3N.
To get the values displayed in MSC3N you can use the FM CLAF_CLASSIFICATION_OF_OBJECTS which was mentioned above.
Next question is: The lvel which is set to derive batch in your system?
is it on plant level or cross-plant?
Eg. you should use table MCH1 if Batch Management is valid Cross-Plant.
Careful: the parameter obeject consists of material and batch "A1111111 0000099999" (don't use concatenate). Check code in FM SD_BATCH_CLASSIFICATION_DATA, you will understand.
The return value "?" means: no value for this characteristic.
Kind regards,
JP
Message was edited by:
Jörn Peter
Message was edited by:
Jörn Peter
‎2007 Apr 26 5:58 AM
‎2007 Apr 26 6:02 AM
Hi
Check the following BAPI's:
BAPI_OBJCL_GETDETAIL
BAPI_OBJCL_CHANGE
or use the fun module:
CLAF_CLASSIFICATION_OF_OBJECTS.
reward points if useful
regards
Anji
‎2007 Apr 26 7:38 AM
Hi Anji,
Thanks for your prompt reply, thank you.
I did tried on FM CLAF_CLASSIFICATION_OF_OBJECTS and supplies the necessary input and result can be get from return table T_OBJECTDATA.
From the table T_OBJECTDATA itself i can get all the characteristics that belong to a material, but in the table itself it <u>did not</u> returned the <b>VALUE</b> that assigned to each characteristic. Instead, it returns <b>?</b> for field AUSP1.
I need your advice.
Pls comment.
Thanks in advance.
‎2007 Apr 26 7:57 AM
u can get by using this
VBWS_MARA_CLASSIFICATION_GET
or
try tcode BMBC , seehow SAP is getting.
Regards
Prabhu
‎2007 Apr 26 8:13 AM
Hi Prabhu,
Thanks for your reply.
I ahve tried FM VBWS_MARA_CLASSIFICATION_GET, but it just fill the return table E_CL_CHAR with the Characteristic name.
But now, i need to read the <b>value</b> that being assigned to each characteristic. And im expecting table E_CL_CHAR_VALUE fill in the value, but it returns nothing.
this is the parameter used for FM VBWS_MARA_CLASSIFICATION_GET:
I_MATNR = 12345678
I_UPDATE_FLAG = ' '
I_INIT_FLAG = ' '
I_WITH_CHARACTERS = 'X'
I_WITH_VALUES = 'X'
I_WITH_ALLOWED_VALUES = ' '
I_CHECK_NO_CHAR = 'X'
Please comment.
Thanks in advance.
‎2007 Apr 27 11:59 AM
Hello,
The FM VBWS_MARA_CLASSIFICATION_GET will return the number and description of characteristics you can evaluate for this material.
This FM can't show the results you see in MSC3N.
To get the values displayed in MSC3N you can use the FM CLAF_CLASSIFICATION_OF_OBJECTS which was mentioned above.
Next question is: The lvel which is set to derive batch in your system?
is it on plant level or cross-plant?
Eg. you should use table MCH1 if Batch Management is valid Cross-Plant.
Careful: the parameter obeject consists of material and batch "A1111111 0000099999" (don't use concatenate). Check code in FM SD_BATCH_CLASSIFICATION_DATA, you will understand.
The return value "?" means: no value for this characteristic.
Kind regards,
JP
Message was edited by:
Jörn Peter
Message was edited by:
Jörn Peter
‎2007 May 02 10:34 AM
Hi Joern,
Thanks for your valuable info, i know how to utilize the FM now.
Thanks a lot