11-16-2007 9:10 AM
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.
11-16-2007 9:44 AM
11-16-2007 10:03 AM
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
11-16-2007 10:04 AM
yes i want to know in my zprogram if the user click SAVE or BACK on the ME52N that the zprogram called.
11-16-2007 10:25 AM
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 .
11-16-2007 10:29 AM
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.
11-16-2007 10:51 AM
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.
11-16-2007 10:58 AM
thanks, good idea.
I thought there were an easier way but well, it is a solution.