09-10-2008 11:47 AM
HI Experts,
How can I change the screen fields label name on basis of some conditions. Lets say for 1 condition it shows
-
:Code :
-
for condition 2, it wil show
-
:Company :
-
I mean it should be dinamic.
Thanks.
Khan.
09-10-2008 1:06 PM
hi khan ,
u can do based on the codition in the screen
selection-screen BEGIN OF block b1 WITH frame title text-001.
SELECTION-SCREEN SKIP 1.
PARAMETERS:p_cov RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND rusr,
p_covid TYPE char7 MODIF ID bl1 , "----
p_tab RADIOBUTTON GROUP rad1.
TRANSLATE p_covid TO UPPER CASE.
SELECT-OPTIONS : s_tabn FOR wa_tabn-tabn MODIF ID bl2"---- NO INTERVALS.
" Table Name
PARAMETERS: p_deltab TYPE char2 DEFAULT '^' OBLIGATORY .
"Delimiter
SELECTION-SCREEN SKIP 1.
PARAMETERS:p_loc TYPE rlgrap-filename.
SELECTION-SCREEN END OF BLOCK b1.
regards
Amit
09-10-2008 2:43 PM
hi Amit,
I am looking the clue for module pool not for selection screen. Is that be possible to change the field labels of module pool screen on condition?
Thanks.
khan.
09-15-2008 10:13 AM
Hi,
See the following code.
write this module FIELD_STAUS_9010 in PBO of the screen number.
&----
*& Module FIELD_STAUS_9010 OUTPUT
&----
text
----
MODULE field_staus_9010 OUTPUT.
LOOP AT SCREEN.
field name
CASE screen-name.
WHEN 'WA_LC_BG_HDR_ELBCNOT'.
CASE g_security.
Set the title
WHEN 'LC'.
wa_lc_bg_hdr_elbcnot = 'External LC number'.
WHEN 'BG'.
wa_lc_bg_hdr_elbcnot = 'External BG number'.
ENDCASE.
ENDCASE. " CASE wa_LC_BG_HDR-suity.
ENDLOOP.
ENDMODULE. " FIELD_STAUS_9010 OUTPUT
Regards,
Raju.
09-15-2008 10:33 AM
hi S Raju,
thanks for ur reply, I have few douts, can u plz clearify that.
What is WA_LC_BG_HDR_ELBCNOT, how u defined it?
what is g_security?
Do I have to define text label field or I/O field for dynamic text display?
thanks.
khan
09-15-2008 10:52 AM
Hi,
1. What is WA_LC_BG_HDR_ELBCNOT, how u defined it?
This is screen field name in screen painter layout.
2. what is g_security?
This is the condition.( g_security is the input parameter in screen.)
Based on the value entered in g_security the field name is updated.
3. Do I have to define text label field or I/O field for dynamic text display?
Define I/O field for dynamic text display.
Regards,
Raju.
10-13-2008 3:44 PM
02-16-2010 4:42 AM
Hi khan,
I have the same issue, if u tell me the solution it will be helpful.
With Regards,
Prasanthi.