‎2005 Dec 07 7:34 PM
tables : mdkp.
data : begin of i_mdkp occurs 0,
MATNR like mdkp-matnr,
PLWRK like mdkp-plwrk,
PLSCN like mdkp-plscn,
end of i_mdkp.
selection-screen begin of block main.
select-options : s_plscn for mdkp-plscn.
selection-screen end of block main.
select MATNR
PLWRK
PLSCN
into corresponding fields of table i_mdkp
from mdkp
where plscn in s_plscn.
loop at i_mdkp.
write : / i_mdkp-matnr,
20 i_mdkp-plwrk,
40 i_mdkp-plscn.
endloop.
This reports did not allow me to save a variant when the Planning Scenario as '000'(triple zero's).could any one help me why it is doing so.
Thanks
Vikranth
‎2005 Dec 07 8:00 PM
hi vikranth,
try writing like this.write mdkp-plscn in brackets
select-options : s_plscn for (mdkp-plscn).
‎2005 Dec 07 7:38 PM
Hi Vikranth,
Can you tell us what message you got, when you tried saving the variant?
Regards,
Raj
‎2005 Dec 07 7:38 PM
hi,
i had checked out and it is allowing me to save
pls let me know the error
‎2005 Dec 07 7:40 PM
It didn't give me any error! How are you entering the value in the selection screen?
‎2005 Dec 07 7:40 PM
Hi,
It is allowing me to create variant. What is the error you are getting.
If you entered "000" but it will save as "blank".
Message was edited by: Lanka Murthy
‎2005 Dec 07 7:41 PM
I think He is not getting any message but he is unble to save the 000 in the variant....
Try to check the field type ...
‎2005 Dec 07 7:44 PM
It appears that this field will not hold a value of 000. It is numeric and therefore will only have the value of 0, in selection screen it will show as space. In the database, it will show as "000". You variant should work if you doulbe click the field and select the "=" sign and allow the field to be space.
Regards,
Rich Heilman
‎2005 Dec 07 7:44 PM
hi ,
try writing 000 in the extension and save it
hope it should work now
‎2005 Dec 07 7:51 PM
To sum up.
FIrst, execute you program, at the selection screen, double click the field, you will get a dialog box, select the "=" icon, now click the save button to save your variant. On the selection screen it will appear as space, but internally the select-options will have a value of something like this.
IEQ000000Which is exactly what you want. Its just the way that numeric fields are presented on selection-screen that is confusing you.
This will work.
Regards,
Rich Heilman
‎2005 Dec 07 7:49 PM
Try to Change the Select option to some char field and convert it to numeric while selecting pass it in where clause..
vijay
‎2005 Dec 07 7:57 PM
If you are looking to save the variant with the S_PLSCN-LOW value as '000', then simply double click on the 'From' field on the selection screen. In the subsequent popup, select the green '='(Single Value). Now save your variant and that should work. You don't have to enter the value '000' in the field as this is a NUMC field and '000' is the initial value. By doing what I told, you are asking for all those PLSCN which are equal to the initial value only. If you don't do it like this, then it will select all the versions and I think that is what the error is in your case.
Please close the post if answered.
Srinivas
‎2005 Dec 07 8:00 PM
hi vikranth,
try writing like this.write mdkp-plscn in brackets
select-options : s_plscn for (mdkp-plscn).
‎2005 Dec 07 8:53 PM
How did this solve your problem? This is for dynamic select-option, don't know how this is related to your problem with '000'.
Srinivas
‎2005 Dec 07 9:01 PM