‎2009 Jan 06 5:45 AM
Hi friends ..
Im unable to get the function code in sy-ucomm for a button defined in application toolbar of pf-status in a classical report... can anybody help me out.
‎2009 Jan 06 5:55 AM
Hi Rahman,
Conform on below things.
1)make sure that PF status of that screen is activated.
2) make sure that you have given your push button details in the Application Toolbar of that GUI STATUS screen
3) and not to clearing the usercommand after executing.
Thanks
‎2009 Jan 06 5:57 AM
Try out the values for sy-ucomm in debugging mode.
If it is mpp, the values pspar-actio will solve the issue.
‎2009 Jan 06 5:57 AM
check fo the following
1 give the name of your function code in capital letter
2 have you activated your pf-status
‎2009 Jan 06 5:58 AM
Hi,
Goto 'SE41', give the program and status no in the initial screen, it will show all the function codes related to that pf-status.
Hope it is clear!!
Regards,
Pavan
‎2009 Jan 06 6:01 AM
Hi,
Plz check the function code.
U might have delared function code by other name & using differnt name in program.
Confirm it once again.
Give the function code in Cpital Lertters.
Regards,
Pravin
‎2009 Jan 06 6:05 AM
hi,
write status name in capital letters and activate the status .
SET PF-STATUS 'CREATE'.
you need the following code in your PAI module.
MODULE USER_COMMAND_0100.
CASE OK_CODE.
WHEN 'BACK'.
SET SCREEN 0.
LEAVE SCREEN.
WHEN 'EXIT'.
...
WHEN 'SAVE'.
...
ENDCASE.
endmodule.
thanks
‎2009 Jan 06 6:05 AM
Hi,
Go with Praveen above,
Check Caps letter in sy-ucomm.
eg: when sy-ucmmm = 'BACK'.
Thanks,
Krishna..
‎2009 Jan 06 6:30 AM
Im not getting any value in the sy-ucomm ... it is not triggering AT LINE-SELECTION. event. But when im clicking on other standard button this event is triggering... and i can found fcode...
‎2009 Jan 06 6:55 AM
‎2009 Jan 06 7:17 AM
hi ..
I tried with that ..but no result..
Edited by: anees rahman on Jan 6, 2009 9:33 AM
‎2009 Jan 06 7:28 AM
‎2009 Jan 06 7:28 AM
Hi
First create pf-status with 'Capital letter' and acivate it.
Sample code:
AT LINE-SELECTION.
IF sy-lsind = 1.
PERFORM get_add_flightdata.
ENDIF.
AT USER-COMMAND.
IF sy-lsind = 1.
CASE sy-ucomm.
WHEN 'SELECTALL'(007).
thanks,
Tulasi
‎2009 Jan 06 8:33 AM
AT LINE-SELECTION.
IF sy-ucomm EQ 'CALL1'.
SET PARAMETER ID: 'AUN' FIELD fval.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDIF.
‎2009 Jan 06 9:12 AM
‎2009 Jan 06 9:13 AM
‎2009 Jan 06 9:13 AM