‎2010 Jun 18 12:28 PM
Hello,
I have a parameter and i want to assign a default value into this. But this default value is a variable.
where should i define this variable?
ex:
selection-screen begin of block bl with frame title text-001.
parameters : P_SPMON LIKE AYLAR-AY_ADI DEFAULT GV_AY,
selection-screen end of block bl.
i want to calculate gv_ay outside of selection screen. Where is the appropriate place to calculate it?
Thanks
‎2010 Jun 18 12:40 PM
Hi,
Please see the SCN Rules before Posting.
Refer help.sap.com or google or search the SCN before Posting.
With Regards,
Sumodh.P
‎2010 Jun 18 12:32 PM
You cannot assign a dynamic variable as a default value in the parameter statement. Assign the required variable to the parameter in the INITIALIZATION event.
Vikranth
‎2010 Jun 18 12:34 PM
I tried it but although i fill my value (gv_ay) in initialization part i cannot still see it in my parameter.
‎2010 Jun 18 12:37 PM
‎2010 Jun 18 12:39 PM
parameters : P_SPMON LIKE AYLAR-AY_ADI DEFAULT GV_AY,
remove the comma at end from the above statement and try it once.
data:gv type c value 'A'.
parameters : P_SPMON type c .
INITIALIZATION.
p_spmon = gv.
‎2010 Jun 18 12:40 PM
Hi,
Please see the SCN Rules before Posting.
Refer help.sap.com or google or search the SCN before Posting.
With Regards,
Sumodh.P
‎2010 Jun 18 4:26 PM
Moderator message - Please do not ask or answer basic questions - Points reassigned and thread locked