2008 Jul 30 10:22 AM
hai,
pls send the demo program for status icons i.e accepted,rejected and processing.
with regards,
R.Dhineshraj.
2008 Jul 30 10:31 AM
Hi,
Check this links:
http://help.sap.com/saphelp_nw70/helpdata/en/59/348efa61c611d295750000e8353423/content.htm
Regards
Adil
hai,
pls send the demo program for status icons i.e accepted,rejected and processing.
with regards,
R.Dhineshraj.
2008 Jul 30 10:28 AM
2008 Jul 30 10:30 AM
2008 Jul 30 10:31 AM
Hi,
Check this links:
http://help.sap.com/saphelp_nw70/helpdata/en/59/348efa61c611d295750000e8353423/content.htm
Regards
Adil
2008 Jul 30 10:33 AM
Hi Dinesh,
Try the following;
REPORT demo_dynpro_status_icons.
DATA value TYPE i VALUE 1.
DATA: status_icon TYPE icons-text,
icon_name(20) TYPE c,
icon_text(10) TYPE c.
CALL SCREEN 100.
MODULE set_icon OUTPUT.
SET PF-STATUS 'SCREEN_100'.
CASE value.
WHEN 1.
icon_name = 'ICON_GREEN_LIGHT'.
icon_text = text-003.
WHEN 2.
icon_name = 'ICON_YELLOW_LIGHT'.
icon_text = text-002.
WHEN 3.
icon_name = 'ICON_RED_LIGHT'.
icon_text = text-001.
ENDCASE.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_name
text = icon_text
info = 'Status'
add_stdinf = 'X'
IMPORTING
result = status_icon
EXCEPTIONS
icon_not_found = 1
outputfield_too_short = 2
OTHERS = 3.
CASE sy-subrc.
WHEN 1.
MESSAGE e888(sabapdocu) WITH text-004.
WHEN 2.
MESSAGE e888(sabapdocu) WITH text-005.
WHEN 3.
MESSAGE e888(sabapdocu) WITH text-006.
ENDCASE.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE change.
CASE value.
WHEN 1.
value = 2.
WHEN 2.
value = 3.
WHEN 3.
value = 1.
ENDCASE.
ENDMODULE.Regards,
Chandra Sekhar
2008 Jul 30 10:35 AM
2008 Jul 30 10:35 AM
Hi,
You can also try the following demo program in IDES
ZIDES_SHOW_ICONS
Adarsh
2008 Jul 30 10:36 AM
Hi,
You can set status for particular screen in the following way:
1: Go at the PBO module of the screen by double click at the screen no suppose 100. and write any name for the status within single quotes here this name is S100.
module status_0100 output.
set pf-status 'S100'.
set titlebar 'SPA'
endmodule. " STATUS_0100 OUTPUT
after clicking on this u will get an screen opened there u can define menu bar icon application bar etc... according to ur need..
whatever u define there u need to activate and then u need to do coding in the PAI event using OK_code like sy-ucomm.
Here is the small example:---
module exit input.
case ok_code.
when 'EXIT' or 'CANC' or 'BACK'.
clear ok_code.
leave to screen 0.
endcase.
endmodule. " EXIT INPUT
ya one more thing dont forget to define ok_code in element list of that screen...
I hope u will get some help..
Thanks & Regards
Ashu Singh
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |