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

Batch's classification

Former Member
0 Likes
3,858

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,269

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

7 REPLIES 7
Read only

Former Member
0 Likes
2,269

search in SE37 with VBclassif

Regards

Prabhu

Read only

Former Member
0 Likes
2,269

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

Read only

0 Likes
2,269

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.

Read only

0 Likes
2,269

u can get by using this

VBWS_MARA_CLASSIFICATION_GET

or

try tcode BMBC , seehow SAP is getting.

Regards

Prabhu

Read only

0 Likes
2,269

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.

Read only

Former Member
0 Likes
2,270

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

Read only

0 Likes
2,269

Hi Joern,

Thanks for your valuable info, i know how to utilize the FM now.

Thanks a lot