‎2009 Dec 24 9:55 AM
Hi, I'm submitting a program with selection screen parameters. when I pass '000' (I_TPLSCN )value for Planning Scenario and when this goes to selection screen then I don't see value for Planning scenario as '000'(I_TPLSCN ) but the value is blank in selection screen. I'm using the below code for this.
SUBMIT RMCPAMRP WITH MATNR_GL EQ I_MATNR SIGN 'I'
WITH WERKS_GL EQ I_WERKS SIGN 'I'
WITH PLSCN EQ I_TPLSCN SIGN 'I'
via selection-screen AND RETURN.Could anyone please help me how to display value '000' rather than blanks.
thanks in advance.
‎2009 Dec 24 10:02 AM
If I_MATNR, I_TPLSCN and I_WERKS are variable then try with
SUBMIT rmcpamrp
WITH matnr_gl = i_matnr
WITH plscn = i_tplscn
WITH werks_gl = i_werks
via selection-screen
AND RETURN .If I_MATNR, I_TPLSCN and I_WERKS are of type range then try with
SUBMIT rmcpamrp
WITH matnr_gl IN i_matnr
WITH plscn IN i_tplscn
WITH werks_gl IN i_werks
via selection-screen
AND RETURNEdited by: Pawan Kesari on Dec 24, 2009 3:33 PM
‎2009 Dec 24 10:29 AM
Hi,
Just remove
SIGN 'I'
from
WITH PLSCN EQ I_TPLSCN SIGN 'I'
and then it will work.
This is bcos PLSCN is not a select-option. It is a parameter.
Regards,
Amit Mittal.
‎2009 Dec 24 10:32 AM
basically these are import parameters in a function module.
I tried with the code as you suggested, but I'm still getting blank value for planning scenario.
thanks.
‎2009 Dec 24 10:35 AM
I tried with the below again, but still getting blank.
SUBMIT rmcpamrp
WITH matnr_gl = i_matnr
WITH plscn = i_tplscn
WITH werks_gl = i_werks
via selection-screen
AND RETURN .
‎2009 Dec 24 10:44 AM
Check the values in variable just before they are passed ...
This code worked fine for me... check you how you declared the variables
DATA : i_matnr TYPE marc-matnr VALUE 'AAAAA',
i_tplscn TYPE plsc-plscn VALUE '111' ,
i_werks TYPE marc-werks VALUE '1010' .
SUBMIT rmcpamrp
WITH matnr_gl = i_matnr
WITH plscn = i_tplscn
WITH werks_gl = i_werks
VIA SELECTION-SCREEN
AND RETURN .
‎2009 Dec 24 10:48 AM
Hi again,
If we pass '000' or enter manually on screen of that program, it will AUTOMATICALLY get blank, bcos zero 0 means blank for that field.
If you change the code to 001, (any NON-ZERO value ), then u will be able to see.
Regards,
Amit Mittal.
‎2009 Dec 24 10:48 AM
Hi, the issue here is with Planning Scenario '000'. when I pass '000' as planning scenario, but after passing, in selection screen I can see blank value rather 000
‎2009 Dec 24 10:49 AM
its a numc 3 value.. dats why you are not getting 000.
even if you execute RMCPAMRP and give 00 in planning scenario.. press ENTER. you will see that it will be changed to blank..
and it is a parameter.. PARAMETERS: PLSCN LIKE PLSC-PLSCN.
so it will automatically change to blank... hope you get my point...