2011 Feb 21 9:32 AM
Hello All,
I have a case where when i double click on the line of ALV output i have to call MM02 transaction. after that user would do his activity and then either save the data or not.
I have to capture that if user has saved the data or not because accordingly i have to perform some other action.
can any one please suggest as to how capture if the user has save the material change or not.
thanks in advance.
BR,
Raj
2011 Feb 22 1:09 PM
You can create a parameter ID. This parameter ID can be SET to X in MM02 user exit. Same ID should be SET blank in ALV before calling MM02. After retuning from MM02, you can check parameter ID for value X {if changed}.
2011 Feb 22 1:09 PM
You can create a parameter ID. This parameter ID can be SET to X in MM02 user exit. Same ID should be SET blank in ALV before calling MM02. After retuning from MM02, you can check parameter ID for value X {if changed}.
2011 Feb 23 12:31 AM
Hi Raj,
I can think of two more approaches:
1. Call the MM02 transaction using BDC with options mode 'E' and MESSAGES. Read the return messages to find out if the user made any changes or not.
2. Check the change document header to find out if a change was made for the material in question.
Kind regards,
Robert
2011 Feb 23 2:40 AM
If you are using call transaction, once you save in MM02 it will return to your ALV screen and the message will still be visible in the status bar at the bottom of your screen.
If the user simply press the back button, then no message is displayed. If some data was changed and saved, it will display 'Material xxxxxxx changed'.