Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PUSH BUTTONS

Former Member
0 Likes
519

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.

3 REPLIES 3
Read only

Former Member
0 Likes
483

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

Read only

Former Member
0 Likes
483

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.

Read only

Former Member
0 Likes
483

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