‎2009 Oct 23 2:38 PM
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
‎2009 Oct 27 9:14 AM
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
‎2009 Oct 29 9:34 AM
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!
‎2009 Oct 30 5:09 PM
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
Note : Cut & paste the entire link above to view the document.
thanks
Venkat
‎2009 Nov 23 7:13 AM
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