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

Call transaction using parameter from the SAP query.

Former Member
0 Likes
1,652

Hi . Expert.

I want to call transaction from the SAP query.

The receiver program has one parameter which parameter ID is 'BLN'

Sender SAP query has the parameter

but the receiver program is not able to receive the parameter from sender .

What should I check?

Edited by: jake on Apr 15, 2010 3:39 AM

Edited by: jake on Apr 15, 2010 3:52 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,076

Set parameter id 'BLN' field <fieldname> should be what you have to add to your code... If the transaction called has a selection screen with a field with that parameter id, the value should be there....

One usually does:

set parameter id <name> field <field name>.

call transaction xxxxx and skip first screen....

search for exact syntax if my memory is exactly correct...

Set parameter id 'BLN' field <fieldname> should be what you have to add to your code... If the transaction called has a selection screen with a field with that parameter id, the value should be there....

One usually does:

set parameter id <name> field <field name>.

call transaction xxxxx and skip first screen....

search for exact syntax if my memory is exactly correct...

2 REPLIES 2
Read only

Former Member
0 Likes
1,077

Set parameter id 'BLN' field <fieldname> should be what you have to add to your code... If the transaction called has a selection screen with a field with that parameter id, the value should be there....

One usually does:

set parameter id <name> field <field name>.

call transaction xxxxx and skip first screen....

search for exact syntax if my memory is exactly correct...

Read only

0 Likes
1,076

I´m currently facing the following issue and don´t really know how to resolve that.

My query is based on a Infoset which shows information about purchase orders. Therefore it has the field EKKO-EBELN and EKPO-EBELNP.

Furthermore I´ve added a custom field into the Infoset with another purchase order number. This field is defined as CHAR(10), it gets filled by some lines ABAP from the infoset and is called "EMPTIE_PO".

According to this thread, I´ve created a small caller program for MIGO. See following code snipped.

It works only for the normal PO / item. When I double click the EMPTIE_PO field, it calls MIGO with the usual PO. How do I get the reference of the new field? If I change my caller program, it complains during the syntax check that EMPTIE_PO is an unknown field?!

REPORT Z_CALL_MIGO.

PARAMETERS L_EBELN LIKE EKKO-EBELN.
PARAMETERS L_EBELP LIKE EKPO-EBELP.

CALL function 'MIGO_DIALOG'
   EXPORTING
     I_ACTION                  = 'A01'         "Goods receipt
     I_REFDOC                  = 'R01'         "Reference document: PO
      I_EBELN                  = L_EBELN
     I_EBELP                  = L_EBELP
    EXCEPTIONS
     ILLEGAL_COMBINATION       = 1
     OTHERS                    = 2
           .