‎2009 Dec 08 2:08 PM
I have problem how to set that in client 010 the flag default 'X' will be automaticaly set, and for all other clients this parameter is without flag default ' '.
Current situation:
PARAMETERS: p_test TYPE xfeld AS CHECKBOX DEFAULT 'X' MODIF ID GVA.
i tried to enter
IF sy-mandt = '010'.
PARAMETERS: p_test TYPE xfeld AS CHECKBOX DEFAULT 'X' MODIF ID GVA.
ELSE.
PARAMETERS: p_test TYPE xfeld AS CHECKBOX DEFAULT ' ' MODIF ID GVA.
ENDIF.
this is not working, the msg is Parameter "P_ALV" has already been defined. .
Can you please help?
BR
Saso
‎2009 Dec 08 2:22 PM
Hello
If you bear in mind P_TEST (instead of P_ALV - already been defined ) then try this:
PARAMETERS: p_test TYPE xfeld AS CHECKBOX MODIF ID GVA.
INITIALIZATION.
IF sy-mandt = '010'.
p_test = 'X'.
ELSE.
p_test = ' '.
ENDIF.
‎2009 Dec 08 2:22 PM
Hi Saso,
do that in the INITIALIZATION section, so when you see the selection screen, the default is set based on the client.
Thanks,
Srini.
‎2009 Dec 08 2:22 PM
Hello
If you bear in mind P_TEST (instead of P_ALV - already been defined ) then try this:
PARAMETERS: p_test TYPE xfeld AS CHECKBOX MODIF ID GVA.
INITIALIZATION.
IF sy-mandt = '010'.
p_test = 'X'.
ELSE.
p_test = ' '.
ENDIF.