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

How to define Export parameter as Import parameter in next test script.

Former Member
0 Likes
920

Hi Experts,

We have defined Purchase order no. as export parameter in ME21N transaction test script.

Test configuration for ME21N transaction executed succesfully and the Purchase order No. appeared in the last message

is the export parameter for next test script i.e. MIGO transaction.

However I am unable to define this export parameter as Import parameter in next test script for MIGO transaction.

Please suggest me the method to define the same.

Please Help...

Thanks in Advance

Vikas

4 REPLIES 4
Read only

Former Member
0 Likes
662

Hi Vikas,

I hope you are using MESSAGE and ENDMESSAGE blocks to capture the aplication mesages.

Now once we have these blocks, take the names of the interfaces being generated for checking the Message rules (for MESSAGE block) and application messages during runtime (for ENDMESSAGE ).

Mostly by default the name MSG_1 and E_MSG_1 is given by eCATT. Each message is stored in various parts like Message index, message type, message V1, V2, V3, V4. any of these V1-V4 will contain your purchase order. Yiou can check in the eCATT log once you run it by expanding all the tree nodes of eCATT log.

Refer to these using eCATT operators or loop to scrape out the desired value as shown below.

LV_PURCHASE_ORDER = E_MSG_1[1]-MSGV1.

Regards,

Justin

Read only

Former Member
0 Likes
662

Vikas ...

As I understand .. you have a ME21N eCATT script and a MIGo script ...

You need to create an integrated script ... and refer the above scripts (using REF command) .

It is here that you create the link between one script to another ... by creating parameters at the integrated script level.

Hope this helps!

Read only

Former Member
0 Likes
662

Vikas,

You need to create super script which is nothing but having the both the steps (Po creation & MIGO ) in this eCatt script. This can be achieved by using the REF command as ex. below.

      • Create PO

REF ( Z_CREATE_PO , Z_CREATE_PO_1 ).

      • Create MIGO

REF ( Z_CREATE_MIGO , Z_CREATE_MIGO_1 ).

Z_Create_PO is the actual eCatt script that you recorded to create the PO. Z_CREATE_QUOTE_1 is the interface created by SAP. Similarly you have use the REF command to call the MIGO script inside this super script.

To pass the export parameter from PO step to MIGO, double click the Z_CREATE_PO_1and define the export variable for PO number. And do the same on the interface for MIGO step.

Follow the instructions if you need in this help document posted by another user in this forum

http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID0134775250DB00634934533836311611End...

Note : Cut & paste the entire link above to view the document.

thanks

Venkat

Read only

Former Member
0 Likes
662

Hi,

Its better yor refer to site:

saptechnical

Select the ecatt,You can see the Creation and as well Export and ImportParameters.

I hope it will Solve your all query.

Thanks,

Mohit