‎2007 Apr 26 7:55 PM
cAN ANY ONE TELL ME HOW TO ADD PUSH BUTTONS ON THE LIST.
I KNOW WE CAN DO USE SET PF STATUS 'PUSH'.
BUT WHAT AFTER THAT PLZ TELL ME WITH NAVIGATIONS........
THANKS.
‎2007 Apr 26 8:11 PM
Double click on PUSH and in next screen create your function key for push button and assign it to the application bar or menu wherever you want. and activate.
Regards,
Amey
‎2007 Apr 26 8:51 PM
hi Ravinder,
Please follow the instructions to create and enable pushbuttons on lists:
1-> use SET PF-STATUS '0001' in your program.
2-> double click on '0001' to navigate to the menu painter
3-> expand the node for application tool bar, enter push button name (say, NAME)
and enter the function code (for eg. PUSH1), icon etc...
4-> activate the gui status and navigate back to the program clicking back button
5-> in the abap program, use the following code
AT-USER-COMMAND.
case sy-ucomm.
when 'PUSH1'.
write:/ 'Ravinder Reddy'.
endcase.
The result is, when you execute the list, and on clicking the NAME button
your name will be displayed in a new list.
Hope this helps,
Sajan Joseph.
‎2007 Apr 26 9:38 PM
Hi,
Try this:
START-OF-SELECTION.
SET PF-STATUS 'AAA'. "Set the PF status for PRINT
"add icon,give some FCODE
END-OF-SELECTION.
PERFORM DISPLAY_REPORT.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'PRNT'.
DATA: L_PARAMS TYPE PRI_PARAMS,
L_VALID TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
IMMEDIATELY = 'X'
LINE_SIZE = 220
RELEASE = 'X'
MODE = 'CURRENT'
NO_DIALOG = 'X'
IMPORTING
OUT_PARAMETERS = L_PARAMS
VALID = L_VALID
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4.
NEW-PAGE PRINT ON PARAMETERS L_PARAMS NO DIALOG.
PERFORM DISPLAY_REPORT.
NEW-PAGE PRINT OFF.
ENDCASE.
FORM DISPLAY_REPORT .
WRITE: 'This is test for priniting...'.
ENDFORM. " display_report
Regards,
Bhaskar