cancel
Showing results for 
Search instead for 
Did you mean: 

How to replace material number in create mass upload using workflow in SAP MDG Material

Hi All ,

We have a scenario in which a material number needs to be replaced with number received from external system during mass upload. The material number should be replaced when we click on the Activate button in a change request. We are using the workflow WS60800086 to create the change request.

In Create single material scenario , we have achieved this creating an post-exit in class : CL_MDG_BS_MAT_FEEDER_FORM_MAT and method : BEFORE_FLUSH but when we activate the CR created using mass upload , the above class and method does get not trigger and fails to replace the material number.

Requirement is to replace material number when we activate the material which is the last step in workflow.

Is there any other way to achieve the same? Kindly help us with your inputs on the same.

tachibanay
Explorer
0 Kudos

Hello Milind,

I got the same requirement as you described.
Have you got any solutoin to your issue?

Best regards,
Yuko TACHIBANA

Accepted Solutions (0)

Answers (1)

Answers (1)

milkamble65
Member
0 Kudos

Hello Yuko,

Enhancement needs to be created in Class - CL_CMD_BS_MAT_API & Method - BUILD_MATERIAL_DATA to replace material number received from external system.

More precisely try to bypass the execution of method GET_MAT_INTERNAL_NUM when material number is to be received from external source.

Thanks,

Milind Kamble.

tachibanay
Explorer
0 Kudos

Hello Milind,

Thank you so much for your reply!!

I will propose this approach as one of the options.

Best regards,
Yuko TACHIBANA