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

Set Parameter id problem

Former Member
0 Likes
997

Dear experts,

I try to post the following coding:

SET PARAMETER ID 'RBN' FIELD '9600000000'.

CALL TRANSACTION 'MIR6' AND SKIP FIRST SCREEN.

when I execute this program, the Document number field is blank in MIR6,

I try to press F1 in the Document number,the Parameter ID is RBN,

which I use correcly in my coding. Can anyone tell me why data is not passed in the Document number field in MIR6?

If I use the load program in that case its going to shortdump

Regards,

Sam

5 REPLIES 5
Read only

Former Member
0 Likes
711

Document number is a select option.You cannot fill it by SET parameter ID.instead you have to use

SUBMIT <reportname> WITH param1 = ''

SUBMIT SAPMM08N WITH SO_BELNR-LOW = '9600000000'.

Read only

Former Member
0 Likes
711

Hi,

Pass the value to a variable. This variable must have the same data type that has the parameter id RBN and then pass it to the parameter id.

something like this :


data var1 type ....  

set parameter id 'RBN' field var1.

regards,

Advait

Read only

0 Likes
711

Hi,

I got the same in my system, maybe because there are a lot of subscreens(this subscreens are selections-screens) or there is any "FREE" statament in the PBO screens.

Regards,

Alexandre

Read only

Former Member
0 Likes
711

you need to pass many parameters like year, company code, vendor. instead you can call MIR4. why can't you try that.

Read only

Former Member
0 Likes
711

Hi,

SET PARAMETER ID should work for SELECT-OPTIONS also.

As per SAP Help:

On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.

Refer to the Link:

http://help.sap.com/saphelp_nw04/helpdata/EN/9f/db9e0435c111d1829f0000e829fbfe/content.htm