‎2008 Mar 31 5:04 PM
Hi, i want to execute my 'save' event without press the SAVE button.
I want to simulate press the button with abap code and sy-ucomm = 'SAVE'.
Is there a function module for this functionality
Thanks
Reward Points
‎2008 Mar 31 5:16 PM
And when will this event be triggered? Nothing will happen in a dialog screen (module pool) if the user doesn't perform some sort of action. If the simulation should start directly after opening transaction, write some code in de PBO.
sounds to me like an odd requirement. Please elaborate on your requirement?
‎2008 Mar 31 5:16 PM
And when will this event be triggered? Nothing will happen in a dialog screen (module pool) if the user doesn't perform some sort of action. If the simulation should start directly after opening transaction, write some code in de PBO.
sounds to me like an odd requirement. Please elaborate on your requirement?
‎2008 Mar 31 5:22 PM
Hi , i have an event in the PAI, i realize some actions ( with my code) , after that, i need to push two buttons dinamically ( Without the user push any button), i need to push both buttons dinamically.
Thanks
‎2008 Mar 31 5:30 PM
Well, than just forget about the buttons and create some code at the end of the PAI event which you have already coded (i realize some actions ( with my code)). Just do a perform event_xxx and perform event_yyy. The code which will be executed (processed) will look exactly the same as if you had created it when pushing buttons:
CASE OK_CODE.
WHEN 'AAA'.
let's say this is done with your code
perform event_aaa.
perform: event_xxx, event_yyy.
WHEN 'XXX'.
perform event_xxx.
WHEN'YYY'.
perform event_yyy.
ENDCASE.
Helpful?
‎2008 Mar 31 5:42 PM
Thanks, but i have this code in a user exit. I need to change the sy-ucomm.
By example sy-ucomm = 'ACCR', and after that the SAP standard transaction simulate to push the ACCR button without pushing that button.
Thanks for your answer
‎2008 Mar 31 5:56 PM
Well, in that case, try and copy the coding for the actual SY-UCOMM to your PAI event. This should do the trick and the user exit should be processed.
Good luck.
‎2008 Mar 31 5:57 PM
‎2008 Mar 31 5:17 PM
Hi JosAngel Garc Luna ,
Try the below FM's :
HRMGE_OS_OVRVW_PROCESS_UCOMM
HRMGE_CI_OVRVW_PROCESS_UCOMM
NF_EM_SET_SY_UCOMM
OM_EM_SET_SY_UCOMM
OM_OO_HANDLE_UCOMM
HR_COMMON_UCOMM
HR_DETAIL_UCOMM
Thanks,
Greetson
‎2008 Mar 31 5:24 PM
‎2008 Mar 31 7:29 PM
Hi,
when u create the save u also give the controls rite like 'ctrls' .once u gave u also use this 'ctrls'.