Multiple line items with eCATT....again

Hi folks,
I am struggling with adding multiple lines in an eCATT script. For this example I will use the Airline demo example from SAP help: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fd/4f6b3f3d643b3be10000000a114084/content.htm.
(You initialize the Airline demo data with SE38>>SAPBC_DATA_GENERATOR first.)
The demo is based on transaction EC_TUTORIAL_SAPGUI.
Start transaction EC_TUTORIAL_SAPGUI
Open an airline and flight
Right click on a date and select New Booking
Pick a customer from F4 list
Select Passengers tab
Enter a last name, title and date of birth.
I have created the script, system and test data containers and test configuration. Everything runs great.
Now I want to modify it a little so I can add multiple passengers into one flight booking request.
I have read Sapna Modi & Rakesh Kumar Jain's excellent blogs and have been able to start using eCATT productively with their help. Also from reading all the SDN posts I think I need the DO...ENDDO loop. (I would like to do it without inline ABAP mainly because I don't know ABAP at all and we will want to do similar things in the future with other non-ABAP'ers.)
Here is my test script ZTUTORIAL_TS_LOOP:
SAPGUI ( EC_TUTORIAL_SAPGUI_100_1 ).
SAPGUI ( EC_TUTORIAL_SAPGUI_120_1 ).
GETGUI ( EC_TUTORIAL_SAPGUI_100_4 ).
Switch to Passengers tab. Cursor in Class field.
SAPGUI ( EC_TUTORIAL_SAPGUI_100_STE_1 ).
Delete first row so I start with empty table.
SAPGUI ( EC_TUTORIAL_SAPGUI_100_STE_2 ).
This is where I am stuck. I don't know how to add as many rows as there are variants (records) in my test data containter.
The way it is below, it inserts the same record twice and the whole script repeats for each record in the TDC.
DO ( 2 ).
Insert row and type passenger name, title, DOB.
SAPGUI ( EC_TUTORIAL_SAPGUI_100_STE_3 ).
ENDDO.
Save.
SAPGUI ( EC_TUTORIAL_SAPGUI_100_STE_4 ).
Confirm pop-up.
SAPGUI ( EC_TUTORIAL_SAPGUI_110_STE_1 ).
Show message in status bar.
SAPGUI ( EC_TUTORIAL_SAPGUI_100_STE_5 ).
I know I have to pass the DO a parameter and somehow get that into the command and use that to loop through the test data container, I just haven't been able to put the pieces together. Can anybody help? Thank you,
David

Dear David,Vinay and Sebastian,
I have an issue....I am new to ECATT.
iam Using SECATT Transaction.
I need 2 record PFCG to Create Role and assign Multiple Transactions.
Now I have Gone through th eBlogs of Sapna and many other links.
Firstly I have Tried Both the Methods,
TCD and GUI as well.
My Case is as Follows....
1)while Creating Role in PFCG(Recording).
I give
         a)Role Name
         b)Description Then Navigate to Menu Tab
         c)Click on  Transaction Button
         d)now this is where the Problem Arises.
I  first    Enter VA01 and press enter
   Then  Enter Va02 and Press enter
Similarly I make Multiple Entries.
After that I Click on Assign Transaction and then Save my Recording and then go back.
Now I am Done with my recording.
Now issue is after creating my Test Script...When i Create the Test Configuration.
I provide the Test Script Name and Download the Template.
Now after Creating Template I give Entries as follows in tab Delimit Format.
I modified my File as follows.
[VARIANT]                          [DESCRIPTION]     V_ROLE_NAME     V_DESC     V_TCODE
                                      BDC field value     BDC field value     BDC field value
*ECATTDEFAULT                           X104     A1     VL03N
1          ROLE1     A1     SE37
2          ROLE1     A1     SE38
3          ROLE1     A1     SE51
Problems:-
1)Whenever I Execute The Recording it Shows Previous Entry which i made during Recording and says that the Role already Exists
2)while recording in Foreground Teh File Picks ROLE1 then picks the Desc  A1 then when it Picks the Transaction  se37.
now when it Goes to second line it Shows the Previous Entry I JUST ENTERED.i.e SE37 and says that Tcode laready Exists.
How do i Clear this previus variables.
2ndly if i Program My Code and dont Use External Vaiant.
I made the File as Below as Text Delimit and This Time iam not using The Template.
But when i Execute it It Gives Error.
Is there any Problem with My File..Please Suggest.
It has been 3 Days and iam Still Stuck at this issue.
ROLE2     DES1     MB5B
ROLE2     DES2     ME23N        
Please Respond.
Thanks Awaiting.
Essam

Similar Messages

  • Create Quotation (ME41) with multiple lines item

    Hi All,
    Do you guys know how to create a quotation (ME41) with a multiple lines item with LSMW ?
    I'm considering create a LSMW with a BAPI just like "CREATEFROMDATA1 (for create PO)" so it has a HeaderData and also ItemData.
    I also looked on the BAPI, but couldn't find any BAPI for quotation.
    Any suggestion?
    Thx u

    Hope this could help u...
    BAPI for RFQ Creation (ME41)

  • Is Multiple line items can be posted?

    Hi Experts,
    From third party system, Fi data is coming into sap through interface, the Basic Idoc for this is ACC_INVOICE_RECEIPT03.
    Now , only one item per IDoc they are posting, is it possible, to post multiple line items with this basic IDoc type?
    Suggest me.
    Regards,
    Sujatha

    The Maximum Limit is 999 only.
    Kindly go thru the Link :
    Too Many Line Items While Creating a PO

  • PO multiple line items -multiple currency

    Hi,
    I had one issue.
    Can I create PO with multiple line items ,with multiple currency ?
    E.g 2 line items one line item with INR and second with USD.
    I tried I am not able to create PO , But its allowing to create the same for Scheduling agreement and Contracts.
    E.g I create a Contract with two line items.
         one line item with INR and second with USD.
        But the Header Currency is fix  either INR or USD whatever u select before creating the contract remanins same and cannot be changed later.
    Q :Is this correct ?
    Q: what will contract vaule in this case in USD or INR .
    Please see if u can add some in puts.
    Thank you
    Regards
    Amar

    Amar,
    You can create a PO with multiple line item, but you can not create the PO with multiple currency.
    Regards,
    Manish

  • Create ecatt script for one sales order creation with multiple line items

    Hi ,
    I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
    This selection of data will be from an external file/ variants which will have only one row of data in it.
    Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
    Second: I have to create sales order for those many line items having same PO Number.
    Best Regard
    Taranum

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

  • Ecatt multiple line items

    Hi Gurus,
    i am creating ecatt with TCD recording. My requirement is if i record a sales order with one line item can i use the same ecatt for multiple line items.
    for example if i create a test script z_va01 in this i record a sales order having one line item. For this i created test data and configaration. Can i use same ecatt to create a sales order having multiple line items.
    Thanks in advace
    anil

    Hi guys,
    I know it has been a long time since this thread was opened, but I'm facing with the same problem.
    I created the sales order with SAPGUI REC, and added a loop for line item creation and schedule line creation.
    *LINE ITEM NUMBER
    DO ( V_LNIT_NO ).
         SAPGUI ( VA02_2010_STEP_2 ). --> Adding line item
         V_LI_ROW = V_LI_ROW + 1.
    ENDDO.
    And i amended the line item selection Guielement ID - (Changes are in bold)
    'wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\02/ssubSUBSCREEN_BODY:SAPLJ3AD:2930/ssubSUBITEM_L2:SAPMJ3AS:2001/tblSAPMJ3ASTCTRL_LINE_ENTRY/ctxtJ_3ASZDI-MATNR[3,<!V_LI_ROW!>]'
    so that the loop will make the line item selection to the next line.
    My requirement is to upload the data through a excel file, so I created a test configuration with the relevant variables. But the data from the excel line wont populate the loop data, it only repeats the data from the same line over and over again.
    How can I fix this? Please help.
    Ps - I have tried to make the the MATNR_D to a table by adding [], --> MATNR_D[] - Table. And it becomes a <INITIAL>, and by clicking on the value column cell, it goes in to parameter I_MATNR (I defined this)
    and you can add Parameter 1, 2,  3 etc and within the parameter you can add table-line. I read that this is the solution but, the variable is not recorded on the excel sheet as a column. Please help

  • How to Restrict Single Delivery Date for PO with Multiple Line Items

    Dear Experts,
    How to Restrict Single Delivery Date for PO with Multiple Line Items.
    System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
    Can we achive this by Some Enhancement in SAP or Not ???
    If so how to do it.
    Any Inputs is highly appreciated.
    Thanks and Regards,
    Selvakumar. M

    Hi Selvakumar,
    we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
    You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
    (for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
    Regards,
    Madhu.

  • Partial goods receipt for PO with multiple line items

    Hello All,
    While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
    We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
    If partial goods receipt if possible for PO with multiple line items, how do we do it?
    Regards,
    RJS

    Hi
    While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
    No. You cannot post the MIGO, if even one of the PO line item is having problem or giving error.
    We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
    If you skip a line irem and do GR with next line item, how will you match quantity & value with the vendor Invoice at LIV ?
    If partial goods receipt if possible for PO with multiple line items, how do we do it?
    Partial goods receipt is possible for PO line items. That means, if PO has 100 qty for line item 1 then you can do GR for 50 now and 50 later depending on the vendors delivery.
    Hope this is what you mean by "Partial Goods Receipt".
    Edited by: Arun R on May 10, 2010 2:03 PM

  • Certificate of Origin with multiple line items in sapscript - Urgent Please

    Hi Everyone,
    Can you please help me with this issue in SAPSCRIPT.
    This is for billing document with multiple items with each line item with different country of origin.Right now the form is printing only one country of origin even if it has 3 line items each with different country.It's getting first line item's country and printing......but it should diplay each country with comma separated... But in debug it is showing all 3 different countries but in print it is printing only first country of origin.
       I have given text element as &VBDKR-TEXT& in form.
    In ABAP program I am getting country of origin like this,
    CLEAR : V_T005,VBRP , MARC  .
      LOOP AT TVBDPR.
      SELECT SINGLE * FROM VBRP
        WHERE VBELN = VBDKR-VBELN AND POSNR = TVBDPR-POSNR .
    begin of addiiton for ppr 13661
      CLEAR MCH1.
    SELECT SINGLE HERKL FROM MCH1 INTO MCH1-HERKL WHERE MATNR = VBRP-MATNR
                                           AND CHARG = VBdpR-CHARG.
      IF MCH1-HERKL NE ' '.
        CLEAR MARC-HERKL.
        MARC-HERKL = MCH1-HERKL.
      ELSE.
        NAME = VBDKR-VBELN.
          PERFORM HEADER_TEXT1 USING 'VBBK' 'Z065' NAME SY-LANGU.
        IF SY-SUBRC EQ 0.
          READ TABLE TEXT_LINES INDEX 1 .
          IF SY-SUBRC EQ 0.
            VBDKR-TEXT = TEXT_LINES-TDLINE.
          ENDIF.
        ELSE.
          SELECT SINGLE * FROM MARC WHERE MATNR = VBRP-MATNR
                                    AND   WERKS = VBRP-WERKS.
        ENDIF.                                                  "ppr 13661
      ENDIF.                               "PPR 13661 ADD
      CLEAR *T005T.
    data:SEP(3) VALUE ' , '.
    DATA: BEGIN OF ITAB OCCURS 100,
           LANDX LIKE VBDKR-TEXT,
          END OF ITAB.
    clear ITAB.
      SELECT  LANDX FROM T005T INTO table itab WHERE SPRAS = SY-LANGU  AND
    LAND1 = MARC-HERKL.
    LOOP AT itab.
    VBDKR-TEXT = ITAB-LANDX.
    *MOVE VBDKR-TEXT TO ZLAND.
    AT NEW LANDX.
       concatenate ITAB-LANDX sep into VBDKR-TEXT.
    ENDAT.
    modify ITAB.
    VBDKR-TEXT = ITAB-LANDX.
    ENDLOOP.
    endloop.
    Thanks in advance.

    Hi
    It depends on the size of the main in the page, you can set the high of main in order to print max a certain number of rows (so items).
    In this way you don't need the abap control, but the system automatically will print the first page with 15 row and the next with 25

  • Unable to create PO with multiple line items through LSMW-BAPI method

    Hi All,
    I have a requirement of creating PO through LSMW. I can't use LSMW standard batch input program since there are some fileds not available and also it has many limitations. I'm using LSMW-BAPI method ( Business object BUS2012) which create IDOC and uses BAPI_PO_CREATE1 to ultimately post the PO in the system. I am trying to create PO from a single file which contains both Header and Item data.
    Now my problem is that everytime PO is being created with Single line item only. Everytime I am giving multiple item data in the source file LSMW is preparing multiple IDOCs for multiple line items. As per my understanding this is happenng since header and item is in the same hierarchy level of IDOC type PORDCR102 and the control record is inserted for every line item in the source file.
    It seems that through LSMW-BAPI  it is not possible to create PO with multiple line items. Can anybody provide some input regarding this? Thanks in advance.
    BR,
    Atanu Mukherjee

    Solved by myself.
    Earlier the problem was that LSMW was not being able to recognize items under same header. It was creating new IDOCs every time it gets a new item. To enable this we need to create two structure HEADERDATA and ITEMDATA.  Two additional identifier fields with identifier value 'H' and 'I' should be added in these two structures respectively. Then we need one sequential file with the identifiers field followed by the header and Item data. Example:
    H~header data
    I~item data
    I~item data 
    This would help the standard program to understand what are the items under same header and ultimately create PO with multiple line items.
    BR,
    Atanu Mukherjee

  • Creating POs with multiple line items

    Hi,
    Is it possible to create a PO with multiple line items from the Sharepoint. The developer guide shows sales order creation with a single line item. If yes, please let me know how it can be done.
    Thanks,
    Pranil

    Hi Pranil,
    You can achieve the user case to create a PO with multiple line items in 1 step by creating a custom solution UI in SharePoint. This is not possible if you simply use the out of box UI (as depicted in the guide).
    It depends on how to define the ESR data type. You can create a data type with header details of PO and collection of items with cardinality as 0..n and create a complex BDC model using SPD --> then create a custom UI.
    Other option would be keep it as 2 lists (2 step action). First create a PO header and then add item by item in 2 steps as foreign key relationship. You can see the example of Account and Activity in pre-shipped contents to get an idea.
    Thanks,
    Girimurugan

  • Where/ how do I set SNP to create Planned orders with multiple line items?

    Hi
    Currently our SNP is generating planned orders on a daily basis, it creates a single order with a single line item per location.
    Where/ how do set SNP to create planned orders on a daily basis to generate a single order with multiple line items per location, so therefore one planned order with multiple line items for a single location.
    Thanx
    Keegan

    Hi Keegan,
                   In SNP (APO) it is not possible to create order with multiple line items.
    But you can do some settings so that while planning system can do aggregation and disaggregation.
    But your requirment should be set on Aggregation/Dis-aggregation logic.
    Please follow the follwing links:
    http://help.sap.com/saphelp_scm2007/helpdata/en/2c/c557e9e330cc46b8e440fb3999ca51/content.htm
    Aggregation:
    http://help.sap.com/saphelp_scm2007/helpdata/en/42/f731d078e73ee4e10000000a1553f6/content.htm
    Disaggregation:
    http://help.sap.com/saphelp_scm2007/helpdata/en/a6/ebefaf32e22e468355da304cc59387/content.htm
    Please be sure that the setting of this logic will be at planning area level.
    You can't change aggregation/disaggregation logic further.
    Regards,
    Santosh

  • BAPI_GOODSMVT_CREATE with multiple line items

    Hi  All,
              I'm trying to create a GR document for PO with multiple items.
    I'm creating this GR with BAPI_GOODSMVT_CREATE and passing multiple line items to this bapi. It generates one GR document but it does not process one of the line item in PO.
    Any help would be appreciated.
    Thanks & Regards,
    Prasad

    Hi Vinod,
            Actually there are two line items in the PO and manually when I try to create a GR for both line items,  it creates a GR but when I pass it thr' BAPI, it is generating a GR only for one Line item.
    Thanks,
    Prasad

  • LSMW program to upload the sales order with multiple line items.

    Dear SD and PP Gurus,
    I am new to creating LSMW Program.
    I want to create a LSMW program to upload the sales order with multiple line items. I have read on SDN that it can be done on two phases. First Create Header Data than line items. IS IT TRUE??, Or
    Is there any procedure by which we can load the sales orders with multiple line items in a single run (part).
    I want to use Batch process, not a BAPI or IDOC procedure.
    I have created a program with
    object 0090
    Method 0000
    Program Name RVINVB10
    Program Type D
    Source Structure 1 - For Header and Source Structure 2  for Line Items.
    Mapped Field INDET (With Fix Value 1), ORDERTYPE, SALESORG, DISTCHANNEL, DIVISION, CUSTOMER, PONUMBER , DELVDATE, PRCGDATE, PMTTERM
    INCOT1 INCOT2 with Source Structure - 1 and
    Field INDENT (With Fix Value 2),  ITEMNO, MATCODE, MATQTY, SUOM, PLANT, BATCH, AMOUNT with Structure-2
    than maintained Structure relation ship, field Mapping, Specified Files, Assigned files, Read Data and other process,
    At final stage (Start Direct Input program RVINVB10) it is giving a message - Table name not allowed.
    Please tell me where I am wrong.
    Thanks in advance.
    DSC

    Dear SD Gurus n Experts,
    I have solved the above problem. But there is another problem appearing regarding the date format. Now system generating a message: Date . . is not valid.
    While I am using Date: YYYYMMDD format in flat file, which is SAP's Standard Format.
    In SDN Link: LSMW upload Sales Order using VA01/VA02     I have found that there are some date fields which are mandatory to filled. Here I have mapped
    VDATU - Requested delivery date,  BSTDK - Customer purchase order date,  PRSDT - Date for pricing and exchange rate,  BSTDK_E - Ship-to party's PO date, FKDAT - Billing Date, KORDT - Delivery Date,
    and PRGRS - Date type is Constant = D
    Can any one tell me, where is the priblem.
    With thanks,
    DSC

  • URGENT: Delivery with multiple line items for a STO

    Hi Gurus,
    We ar ecreating deliveries using VL10b for a STO. Teh TSO has 40 - 50 line items. But the delivery is created with one line item only an dit creates a delivery for each line item. How cna we allow the inclusion of multiple line items in delivery?
    We are using delivery type NL an ditem categor is NLN.
    Geratly appreciate any help in that.
    Thanks,
    KHAN

    The problem you face is called 'Delivery split'.
    For the STO scenario, one common cause is different delivery dates (in the past) in the STO line items. If so, then you should refer to SAP Note 377501 (from where I quote below):
    You can implement the source code specified in the correction instructions in copy routine 301 (or a copy of this routine in the customer namespace). This correction ensures that when you transfer data form the preceding document, backlogged delivery dates or goods issue dates are set to the current date. This prevents the system form performing a delivery split.
    Then a rescheduling of the delivery occurs. Since forward scheduling occurs for backlogged delivery items (that is, the picking date or the transportation planning date is set to the current date), the manipulation of the delivery date or goods issue date in the copy routine does not affect the result of the scheduling.
    If the dates are not the problem, then this Note refers to other Notes which deal with this problem, and should definitely solve your problem.
    Regards
    Nikhilesh

Maybe you are looking for

  • How do i uninstall an application in my macbook pro

    hello community...how is all of you doing..... hope everything is going on well in each of your lives..... please i am new using a mac and i have found myself wanting to know how to do one of the easiest things i do in my windows pc....... i want to

  • Why does my alarm occasionally fail to vibrate and make sound?

    I use my alarm on my iPhone 5 every day to wake up. I would say that 99.9% of the time it works. Maybe once every few months, however, the alarm fails to go off. The phone will show the appropriately display (I use snooze, so the snooze button is rea

  • Bbm group message problem

    Hi, I am new to this forum so please excuse me if some of my questions seem odd.  I have two questions about using bbm groups.  A group previously set up and used frequently for past year or so now no longer is working. Specifically, when I go to the

  • JDeveloper 11.1.2.1.0 : The JUnit Integration update cannot be installed

    Hi. When trying to install "JUnit Integration 11.1.2.1.38.60.81" I got this message: "The JUnit Integration update cannot be installed because it has a required licence agreement that could not be read. Click Back to remove this update." I want to in

  • How to get metadata using Spark VideoDisplay in Flex4?

    The MX VideoDisplay has "metadataReceived" event, but the Spark VideoDisplay has not. Does anyone have any suggestions? Thanks.