Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Submit program with selection screen parameters - getting blank values

Former Member
0 Likes
33,102

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.

8 REPLIES 8
Read only

Pawan_Kesari
Active Contributor
0 Likes
9,387

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 RETURN

Edited by: Pawan Kesari on Dec 24, 2009 3:33 PM

Read only

Former Member
0 Likes
9,387

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.

Read only

Former Member
0 Likes
9,387

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.

Read only

Former Member
0 Likes
9,387

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 .

Read only

0 Likes
9,387

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 .

Read only

0 Likes
9,387

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.

Read only

Former Member
0 Likes
9,387

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

Read only

Former Member
0 Likes
9,387

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...