‎2009 Apr 09 6:34 AM
Hi all,
Hw can add pushbuttons to application tool bar in module pool program using SE51 tcode.
‎2009 Apr 09 6:48 AM
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.....
‎2009 Apr 09 6:39 AM
‎2009 Apr 09 6:42 AM
‎2009 Apr 09 6:42 AM
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
‎2009 Apr 09 6:48 AM
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.....
‎2009 Apr 09 7:05 AM
Thnx for all u r solutions.
I need to create a list box (drop down box) in the screen how can i do that.
‎2009 Apr 09 7:18 AM
Hi,
Try this link :
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/frameset.htm
hope it helps
Suman
‎2009 Apr 09 7:18 AM
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
‎2009 Apr 09 9:05 AM
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