I am using SWN_CREATE_SHORTCUT function to create the shortcut of ME54N passing the PR number in the parameter and mailing the object to the user.
CONCATENATE parameter 'MEPO_SELECT-BANFN='"'MEREQ_TOPLINE-BANFN_EXT=' S_BANFN ';' INTO parameter.
CALL FUNCTION 'SWN_CREATE_SHORTCUT'
i_transaction = 'ME54N'
i_parameter = PARAMETER
i_sysid = 'PRD'
i_client = '600'
i_user = RO2_1
i_language = 'EN'
i_windowsize = 'Normal window'
shortcut_string = content
inconsistent_parameters = 1
OTHERS = 2.
The function is working fine and the user is receiving the mail. I have checked the object, it contains my new PR number.
But when the click on the object the last opened PR number through ME54n is opening rather than my PR number which was passed through object.
You are requested to please help me.
Thanks & Regards