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

Murali_Shanmu
SAP Champion
SAP Champion
0 Likes
1,226

Hi

I need to call MIGO Transaction defaulting the Order Number. The Order Number is attached to PARAMETER ID 'ANR'.

So I used

SET PARAMETER ID 'ANR' FIELD order_value.

CALL TRANSACTION 'MIGO'.

Even though order_value has a valid order number, the MIGO screen is not defaulting with the Order Number.

Any Suggestions on what cud have gone wrong.

6 REPLIES 6
Read only

Former Member
0 Likes
1,069

Hi,

just put a break on statement

SET PARAMETER ID 'ANR' FIELD order_value.

it will take you to debugging mode..check if order_value is having any value or null.

Read only

Former Member
0 Likes
1,069

Hi,

Here is the sample code.

********************

*----


at line-selection.

*----


get cursor field c_field.

if c_field = 'SUM_IT-BELNR'.

set parameter id 'GJR' field sum_it-gjahr.

set parameter id 'BUK' field sum_it-bukrs.

set parameter id 'BLN' field sum_it-belnr.

call transaction 'FB03' and skip first screen.

endif.

*********************

Thanks.

Hope it helps you.

Read only

0 Likes
1,069

During debugging mode, a vaild order number is present. I still dont know why it is not working. But it is working for different Tcodes like CO11, CO15 ...

Read only

0 Likes
1,069

hi,

Check out whether in the scroll box <b>order</b> is selected by default.And then check whether your default value of order is appearing

Read only

0 Likes
1,069

Hi

I just heard from a few consultants that it is not possible to default n Order Number in a MIGO screen.

Read only

Former Member
0 Likes
1,069

Hi!

Use FM MIGO_DIALOG.

Regards,

Maxim.