cancel
Showing results for 
Search instead for 
Did you mean: 

How to READ Deleted PR from MD03 in SAP.

ahmedilyas-1
Explorer
0 Kudos
215

HI All,

I have added my custom logic when PR is created or Changed using MD03 which is working expected but when i try to Delete the PR in MD04 by making the quanity for specific month BLANK i have to pass Deletion Indicator as the PR is deleted but when the control comes to IF_EX_MD_PURREQ_CHANGE~CHANGE_BEFORE_SAVE_MRP (ZCL_IM_MD_PURR) the PR is available in EBAN and i am unalbe to find any indicator that the PR is deleted.Could you please help me how to check if the PR is being DELETED based on which i can add my logic.

MD04 screen shot bellow 

ahmedilyas1_0-1745521709422.png

MD04 screen 

ahmedilyas1_1-1745521776325.png

Now i execute MD03 as below 

ahmedilyas1_2-1745521832662.png

Tell me where i should code to capture the deleted PR .

Thanks,

 

View Entire Topic
RaymondGiuseppi
Active Contributor
0 Kudos

What's the value of IM_VSTAT (Include MM61XVAL, L for delete/löschen)

ahmedilyas-1
Explorer
0 Kudos
when i open the Program MM61XVAL to set the breakpoint it has many include program please suggest where should i but the breakpoint to check IM_VSTAT??
ahmedilyas-1
Explorer
0 Kudos
It is IM_VSTAT = 'L'
RaymondGiuseppi
Active Contributor
0 Kudos

'L' is loeschen (en delete) and you have your answer 😎

*---> Verarbeitungsstatus
CONSTANTS:
      vstath(1) TYPE c VALUE 'H',      "Hinzufuegen
      vstatv(1) TYPE c VALUE 'V',      "Veraendern
      vstatl(1) TYPE c VALUE 'L',      "Loeschen
      vstatn(1) TYPE c VALUE 'N',      "Neu aufloesen
      vstati(1) TYPE c VALUE 'I',      "Einfuegen
      vstata(1) TYPE c VALUE 'A',      "Anzeigen/Aktivieren
      vstatd(1) TYPE c VALUE 'D',      "Deaktivieren
      vstatt(1) TYPE c VALUE 'T',      "Teilabbau
      vstatk(1) TYPE c VALUE 'K',      "Komplettabbau/Korrigieren
      vstats(1) TYPE c VALUE 'S',      "Simulieren
      vstatc(1) TYPE c VALUE 'C',      "Aggregieren
      vstatr(1) TYPE c VALUE 'R',      "Rückmeldung - Reduzieren
      vstate(1) TYPE c VALUE 'E'.      "Endrückmeldung - Löschen