2022 Dec 01 7:05 PM
Hi Folks,
As per my requirement, The program name RBDMIDOC which was set as a background jobs and for message type 'MATMAS' I have to give certain condition inside the FM MASTERIDOC_CREATE_MATMAS to stop creating IDOC for condition (mara-mstav = 01,04,15,86 or mvke-mvgr2 = z1).
If the above condition satisfied our IDOC will not getting created. But the challenge which I'm facing that for same material we have different vkorg(Sales Organization).So we have multiple same material with different data.
My question is if changed some data like creation date or any other whose having mvke-mvgr2 = z1,So my segment is created for E1MARAM,so I can validate for mara-mstav, but as we don't do any changes for mvke-mvgr2,segment is not created for mvke.
How we can make system understand the value of that material with changes for particular vkorg,So that I can stop from processing.
Here is my code for validating. Please help me out.
METHOD if_ex_badi_matmas_ale_cr~change_matmas.ENDMETHOD.
2022 Dec 02 8:02 AM