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

Call transaction 'MM02'. and then capture the message.

styrolution_accenture
Participant
0 Kudos
307

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Kudos
220

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}.

3 REPLIES 3
Read only

Former Member
0 Kudos
221

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}.

Read only

Former Member
0 Kudos
220

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

Read only

Former Member
0 Kudos
220

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'.