Skip to Content
0
Former Member
Feb 24, 2011 at 07:11 AM

Change Default value into Dynamic

124 Views

Hello experts,

Good day to everyone.

Can you please share me your thoughts how to handle this issue which puzzles me a lot.

The scenario is this. I have a parameter in a selection-screen. It looks like below:

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

PARAMETERS:

p_server TYPE filename-fileextern DEFAULT g_unix_dir MODIF ID 4 .

SELECTION-SCREEN END OF BLOCK b2.

Now my problem is, how to make the value of the DEFAULT (g_unix_dir) to be dynamic. That everytime it runs in different system, that value changes. So for example, the in Development System (DEVsys) the DEFAULT path would look like

/interface/DEVsys/filename. This path must appear in the parameter, p_server above.

On the otherhand, if this program runs in Production System (PRODsys), the DEFAULT path would look /interface/PRODsys/filename.

I tried to concatenate this path and declare that in the INITIALIZATION event and AT SELECTION-SCREEN OUTPUT event, but still nothing happens.

Thanks to all who will respond.