Application Development 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: 

import memory id for ucomm

Former Member
0 Kudos

Hello,

At the beginning of a program, i call a transaction and then get back to the program.

SET PARAMETER ID 'BAN' FIELD p_banfn.

FREE MEMORY.

CALL TRANSACTION 'ME52N'.

After that, i want to get the sy-ucomm. In fact I want to know if the user click on save or back.

I know this but I don't know wich paramater ID to write :

import wv_sycomm from memory id ' '.

Or maybe there is another way ?

Thanks for your help.

7 REPLIES 7

Former Member
0 Kudos

anyone ?

Former Member
0 Kudos

hi louis ,

is ur requirement like u want to know in ur zprogram whatever the value of sy-ucomm was when the user was in that transaction .

Thanks

Rohit

Message was edited by:

ROHIT GUPTA

0 Kudos

yes i want to know in my zprogram if the user click SAVE or BACK on the ME52N that the zprogram called.

0 Kudos

well i dont get ur requirement beacuse u will only return to ur program if the user will press back if he presses save then he will be in that tcode only . so in any case the ucomm will be back only .

0 Kudos

no, if the user press save, he came back to the zprogram that called the transaction.

to sum up :

I have a t-code ZC02 that called my zprogram.

then the zprogram call me52n, thuser modify something, and press back or save.

then he comes back to the program. I want to know wich button he pressed.

0 Kudos

Hi,

for this you nay need to capture the command

action in one of the USER EXITS of ME52N.

check the following pgrms.

ZXM02U01. "EXIT_SAPLMEREQ_001

ZXM02U02. "EXIT_SAPLMEREQ_002

ZXM02U03. "EXIT_SAPLMEREQ_003

ZXM02U04. "EXIT_SAPLMEREQ_004

ZXM02U05. "EXIT_SAPLMEREQ_005

ZXM02U06. "EXIT_SAPLMEREQ_006

ZXM02U07. "EXIT_SAPLMEREQ_007

ZXM02U08. "EXIT_SAPLMEREQ_008

ZXM02U09. "EXIT_SAPLMEREQ_009

ZXM02U10. "EXIT_SAPLMEQUERY_001

ZXM02U11. "EXIT_SAPLMEQUERY_002

put a break point in each.

click the save button to see which of these is the right one.

then after finding the exit, you can use the EXPORT / IMPORT

statements to get the Function Code in your Z program.

Regards,

Samson Rodrigues.

0 Kudos

thanks, good idea.

I thought there were an easier way but well, it is a solution.