Application Development 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: 

dynamic screen field label

Former Member
0 Kudos

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.

7 REPLIES 7

Former Member
0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

Self answred

0 Kudos

Hi khan,

I have the same issue, if u tell me the solution it will be helpful.

With Regards,

Prasanthi.