eCATT - Integration script to create a sales order as well as delivery

By Rama Jyothi P

Purpose: This document details about how to create an Integration Script to Create a Sales Order as well as Delivery. As this script is associated with more than one transaction we are calling it as an Integration Script. With the integration test script we can test the business scenarios like Sales process (Create Order, Release Order, Create delivery, Pick & Pack, PGI, Invoice creation, Release invoice). We can enhance this Integration script for Creating Billing Document and other unit scripts based on our requirement. There is no restriction on the number of unit scripts to be used in an Integration Script. 

For starting development of this script first you must develop 2 unit scripts. One is for Creating Sales Order (VA01) and other is for Creating Delivery (VL01N) with the Sales Order reference. To create a test script, you can refer to: 

We need not create Test Data and Test Configuration for the above Unit Scripts. Because we will run those scripts using Integration Script.  

Here I am considering the Unit Scripts as below. 

Create Sales Order – YSD_CREATE_SALESORDER_TS

Create Delivery       -- YSD_CREATE_DELIVERY_TS 

Transaction: SECATT 

Here are the steps to follow. 

Step 1: Go to transaction SECATT 

Choose Radio Button Test Script and give some name like YINT_VA01_VL01N_SALESCYCLE_TS  (In general we will follow the naming convention Z/Y-INT_first 2 tcodes used_desc. of script_TS (TS for test script)). 

 

Click the create button as shown in above screen shot. 

Step 2: In the next screen give some description for the scenario and also specify related component. We can choose the area related to the transaction we are using from F4 help. In this case I have chosen Sales component. 

 

Now save the script as local object or use the relevant package. 

Step 3: Now select the tab Editor. 

Write proper comments and place the cursor in the next line and click the button ”Pattern” as shown in the below screen shot.  

 

Step 4: The below pop-up will come and choose command REF. 

 

In the test script name give the ‘Sales Order’ script name and press enter, system will propose the interface name (if you want you can change the interface name) and press enter. 

Now our script will look like this. 

 

Step 5: In the REF command first parameter is script name and second one is Interface for that script. 

Now double click on the interface name YSD_CREATE_SALESORDER_TS_1. (We can give this name as our wish in the step 4). 

Now the screen will look like this. 

 

Step 6: Double Click on Importing. 

 

It will show all the Importing parameters in “Sales Order” script. 

Create parameters in integration script and link those with this interface importing parameters. 

Click here to continue...

 

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image