‎2009 Nov 19 10:11 AM
Hello Experts,
I have a require ment to make fileds on selection screen to be defaulted from TVARV variables.
I read the values from TVARV and assign to my select-option. After that as soon as I add new value to the same fields on selection-screen, it reset to TVARV value and my new value is gone.
Example.
Select-option : s_vkorg Sales Organization
in INITIALIZATION event, I read from TVARV values (1000 & 2000) and assign to s_vkorg.
Now, my selection-screen is displayed.
if I add another value (i.e. 3000) for s_vkorg from selection-screen, it processes INITIALIZATION again and put only TVARV values (1000 & 2000) back insted I was expecting ((1000, 2000 & 3000) to process further.
Does anybody get idea about it?
Regards,
Ronny Hanks
‎2009 Nov 19 10:45 AM
Hi,
Before assigning the value to select option, put an if condition to check if its initial.
only then populate the default value.
Megs
‎2009 Nov 19 10:16 AM
Hi Ronny,
Assign to S_vkorg only if it is initial.
Regards
Bala
‎2009 Nov 19 10:45 AM
Hi,
Before assigning the value to select option, put an if condition to check if its initial.
only then populate the default value.
Megs
‎2009 Nov 19 10:56 AM
Bala and Meg,
Thanks for your replay but as soon as INITIALIZATION triggered 2nd time (when we press execute button), it reset (making blank) the value of our select-option fields.
That is the issue,
Regatds,
Ronny
‎2009 Nov 19 11:02 AM
Hi,
You can try uploading the data in AT SELECTION SCREEN Event rather then INITIALIZATION.
Hope it helps
Regards
Mansi
‎2009 Nov 19 11:08 AM
‎2009 Nov 19 11:16 AM
Hi,
I guess Initialization event is processed only once after the Load-of-program.
Refer : http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9a2135c111d1829f0000e829fbfe/content.htm
So it should work, check whether you have correctly coded inside the appropriate events.
Regards
Karthik D