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

Adding Pushbuttons on application tool bar

Former Member
0 Likes
1,030

Hi all,

Hw can add pushbuttons to application tool bar in module pool program using SE51 tcode.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
994

Write as follows--

set pf-status 'Zxxxx'.

Double click on 'ZXXXX'

It will bring u on menu painter.

And write the f-code name in application toolbar dropdown....

double click on it.

Provide the function text and icon name.....

8 REPLIES 8
Read only

Former Member
0 Likes
994

Hi Praveen,

U can try it with 'PF-STATUS'.

Read only

0 Likes
994

Hi ,

Thnx for help.

Can u tell steps for creating the same.

Read only

Former Member
0 Likes
994

Hi,

You can create buttons on application toolbar by using the mentioned command in PBO of screen

SET PF-STATUS 'XXXX'.

Action on that button can be handled in PAI of that screen by checking sy-ucomm value.

Hope this answers your query.

Regards,

Brajvir

Read only

Former Member
0 Likes
995

Write as follows--

set pf-status 'Zxxxx'.

Double click on 'ZXXXX'

It will bring u on menu painter.

And write the f-code name in application toolbar dropdown....

double click on it.

Provide the function text and icon name.....

Read only

0 Likes
994

Thnx for all u r solutions.

I need to create a list box (drop down box) in the screen how can i do that.

Read only

Read only

0 Likes
994

HI...

Goto to se51 in ur form painter..

select ur field and double click on it..

In the attributes window...select the listbox in dropdown field.

And Use the below shown FM as per ur requirement---

DATA : BEGIN OF VALUE ,

FRMNM TYPE PINPF-FRMNM,

END OF VALUE .

DATA : VTAB LIKE TABLE OF VALUE ,

VAL LIKE LINE OF VTAB .

CLEAR VTAB .

MOVE 'YES' TO VAL-FRMNM .

APPEND VAL TO VTAB .

CLEAR VAL .

MOVE 'NO' TO VAL-FRMNM .

APPEND VAL TO VTAB .

CLEAR VAL .

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

RETFIELD = 'FRMNM'

  • PVALKEY = ' '

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = 'ZSTORES-MODVATE'

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

VALUE_ORG = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = VTAB

  • FIELD_TAB =

  • RETURN_TAB =

  • DYNPFLD_MAPPING =

  • EXCEPTIONS

  • PARAMETER_ERROR = 1

  • NO_VALUES_FOUND = 2

  • OTHERS = 3

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Edited by: mujib tirandaz on Apr 9, 2009 8:20 AM

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
994

Hi,

>

> I need to create a list box (drop down box) in the screen how can i do that.

Refer the programs:-

DEMO_DYNPRO_DROPDOWN_LISTBOX

DEMO_DROPDOWN_LIST_BOX

Also you can refer:-

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm

Hope this helps you.

Regards,

Tarun