<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PR - Multiple Line Item in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429760#M1550294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if not you can record PR creation for 1 line item and change the script for multiple line items.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recorded by using TCD only for one line item and please kindly me know how to change the script for multiple line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srikag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SRIKAG on Nov 23, 2010 4:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Nov 2010 03:05:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-23T03:05:53Z</dc:date>
    <item>
      <title>PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429758#M1550292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Ecatt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           I am creating the Test Script for a PR (ME51N) creation. I was sucessfully done for the single line item, but i was strucked when there is more line items. Experts, i need your guidance for proceeding. I recorded by creating the single line item. I have wrote the code as like as below and i careated a file with the 2 line items but the script created the 2 PR's with each line item. But still am unable to achieve the Mutli line item PR. Please let me know how to proceed further. &lt;/P&gt;&lt;P&gt;ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_TOT  TYPE I VALUE 0,&lt;/P&gt;&lt;P&gt;      V_FILE TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TY_STRUC,&lt;/P&gt;&lt;P&gt;        V_KNTTP TYPE EBAN-KNTTP,&lt;/P&gt;&lt;P&gt;        V_TXZ01 TYPE EBAN-TXZ01,&lt;/P&gt;&lt;P&gt;        V_MENGE TYPE EBAN-MENGE,&lt;/P&gt;&lt;P&gt;        V_MEINS TYPE EBAN-MEINS,&lt;/P&gt;&lt;P&gt;        V_MATKL TYPE EBAN-MATKL,&lt;/P&gt;&lt;P&gt;        V_NAME1 TYPE ADDR1_DATA-NAME1,&lt;/P&gt;&lt;P&gt;        V_EKGRP TYPE EBAN-EKGRP,&lt;/P&gt;&lt;P&gt;        V_AFNAM TYPE EBAN-AFNAM,&lt;/P&gt;&lt;P&gt;        V_PREIS TYPE EBAN-PREIS,&lt;/P&gt;&lt;P&gt;        V_EKORG TYPE EBAN-EKORG,&lt;/P&gt;&lt;P&gt;        V_SAKTO TYPE MSEG-SAKTO,&lt;/P&gt;&lt;P&gt;        V_KOSTL TYPE CBPR-KOSTL,&lt;/P&gt;&lt;P&gt;       END OF TY_STRUC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_STRUC     TYPE TABLE OF TY_STRUC.&lt;/P&gt;&lt;P&gt;CONSTANTS: C_X(01) TYPE C VALUE 'X',&lt;/P&gt;&lt;P&gt;           C_FILE  TYPE DYNPREAD-FIELDNAME VALUE 'FILE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;PROGRAM_NAME = SYST-CPROG&lt;/P&gt;&lt;P&gt;DYNPRO_NUMBER = SYST-DYNNR&lt;/P&gt;&lt;P&gt;FIELD_NAME = C_FILE&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FILE_NAME = FILE_V-PATH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_FILE = FILE_V-PATH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = V_FILE&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = C_X&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = IT_STRUC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE IT_STRUC LINES V_TOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT = V_TOT.&lt;/P&gt;&lt;P&gt;FREE IT_STRUC.&lt;/P&gt;&lt;P&gt;ENDABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO (COUNT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP.&lt;/P&gt;&lt;P&gt;DATA : V_READINDX TYPE I,&lt;/P&gt;&lt;P&gt;       V_FILE TYPE STRING,&lt;/P&gt;&lt;P&gt;       INDX TYPE I VALUE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TY_STRUC,&lt;/P&gt;&lt;P&gt;        V_KNTTP TYPE EBAN-KNTTP,&lt;/P&gt;&lt;P&gt;        V_TXZ01 TYPE EBAN-TXZ01,&lt;/P&gt;&lt;P&gt;        V_MENGE TYPE EBAN-MENGE,&lt;/P&gt;&lt;P&gt;        V_MEINS TYPE EBAN-MEINS,&lt;/P&gt;&lt;P&gt;        V_MATKL TYPE EBAN-MATKL,&lt;/P&gt;&lt;P&gt;        V_NAME1 TYPE ADDR1_DATA-NAME1,&lt;/P&gt;&lt;P&gt;        V_EKGRP TYPE EBAN-EKGRP,&lt;/P&gt;&lt;P&gt;        V_AFNAM TYPE EBAN-AFNAM,&lt;/P&gt;&lt;P&gt;        V_PREIS TYPE EBAN-PREIS,&lt;/P&gt;&lt;P&gt;        V_EKORG TYPE EBAN-EKORG,&lt;/P&gt;&lt;P&gt;        V_SAKTO TYPE MSEG-SAKTO,&lt;/P&gt;&lt;P&gt;        V_KOSTL TYPE CBPR-KOSTL,&lt;/P&gt;&lt;P&gt;       END OF TY_STRUC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_STRUC TYPE TABLE OF TY_STRUC,&lt;/P&gt;&lt;P&gt;      WA_STRUC TYPE TY_STRUC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_FILE = FILE_V-PATH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: C_X(01) TYPE C VALUE 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;     FILENAME = V_FILE&lt;/P&gt;&lt;P&gt;     HAS_FIELD_SEPARATOR = C_X&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;     DATA_TAB = IT_STRUC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     V_READINDX = INT_LOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     READ TABLE IT_STRUC INDEX V_READINDX INTO WA_STRUC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        V_KNTTP = WA_STRUC-V_KNTTP.&lt;/P&gt;&lt;P&gt;        V_TXZ01 = WA_STRUC-V_TXZ01.&lt;/P&gt;&lt;P&gt;        V_MENGE = WA_STRUC-V_MENGE.&lt;/P&gt;&lt;P&gt;        V_MEINS = WA_STRUC-V_MEINS.&lt;/P&gt;&lt;P&gt;        V_MATKL = WA_STRUC-V_MATKL.&lt;/P&gt;&lt;P&gt;        V_NAME1 = WA_STRUC-V_NAME1.&lt;/P&gt;&lt;P&gt;        V_EKGRP = WA_STRUC-V_EKGRP.&lt;/P&gt;&lt;P&gt;        V_AFNAM = WA_STRUC-V_AFNAM.&lt;/P&gt;&lt;P&gt;        V_PREIS = WA_STRUC-V_PREIS.&lt;/P&gt;&lt;P&gt;        V_EKORG = WA_STRUC-V_EKORG.&lt;/P&gt;&lt;P&gt;        V_SAKTO = WA_STRUC-V_SAKTO.&lt;/P&gt;&lt;P&gt;        V_KOSTL = WA_STRUC-V_KOSTL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TCD ( ME51N , ME51N_1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INT_LOC = INT_LOC + 1.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 12:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429758#M1550292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-22T12:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429759#M1550293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srikag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Review the posts in the below link where I have suggested to use SAPGUI recording and parametrized the variable within the loop. You can try similar changes in your TCD recording to see if it works, if not you can record PR creation for 1 line item and change the script for multiple line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1822847"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 17:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429759#M1550293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-22T17:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429760#M1550294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if not you can record PR creation for 1 line item and change the script for multiple line items.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recorded by using TCD only for one line item and please kindly me know how to change the script for multiple line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srikag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SRIKAG on Nov 23, 2010 4:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 03:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429760#M1550294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-23T03:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429761#M1550295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reading a thread in that they mentioned as &lt;STRONG&gt;"Create a structure parameter to pass more than one line item."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to create the structure parameter in the ecatt to pass the multiple lines. I am having a import parameter as &lt;/P&gt;&lt;P&gt;v_txz01&lt;/P&gt;&lt;P&gt;v_menge&lt;/P&gt;&lt;P&gt;v_meins&lt;/P&gt;&lt;P&gt;v_sakto like this as reference as BDC_FVAL. Structure parameter is like as v_txz01[]&lt;/P&gt;&lt;P&gt;                                                                                v_menge[] we need to create as like this or there is anyother way to do this. Please guide me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 13:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429761#M1550295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-23T13:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429762#M1550296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are correct. You need to create a import parameter name as per your requirement (like v_menge or v_meins). Instead of using the reference  as BDC_VAL you need to use the proper reference for those fields as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter name                         Reference field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_MENGE                                  MENGE[]&lt;/P&gt;&lt;P&gt;V_MEINS                                   MEINS[]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this parameter name V_MENGE to use in your script to pass the values. Since this is the structure parameter you have to use this field in the script as &lt;STRONG&gt;V_MENGE[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt;.  I assume your recording within the DO.... ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;LPC should be within the squarebrackets []. &amp;amp;LPC is the eCatt keyword for the counter values within the loop. First time when he control enters the DO.. ENDDO the &amp;amp;LPC will have value 1 and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_line is also the keyword that referring the structure parameter fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you still have questions or issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 15:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429762#M1550296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-23T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429763#M1550297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U r saying that we need to use the field as &lt;STRONG&gt;V_MENGE[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt;. I am having one query that we need to use this in the ABAP CODE or in the 'VALIN' field in the script where we are passing the field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am keeping the Test script between the Do and Endo only... please kindly see my code below... Please guide me if i am wrong...&lt;/P&gt;&lt;P&gt; &amp;amp;lpc is in Brackets only... [ ].&lt;/P&gt;&lt;P&gt;DO (COUNT).&lt;/P&gt;&lt;P&gt;READ TABLE IT_STRUC INDEX V_READINDX INTO WA_STRUC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_KNTTP[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt;   = WA_STRUC-V_KNTTP.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_TXZ01[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt;   = WA_STRUC-V_TXZ01.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_MENGE[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt;  = WA_STRUC-V_MENGE.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_MEINS[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt;    = WA_STRUC-V_MEINS.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_MATKL[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt;  = WA_STRUC-V_MATKL.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_NAME1[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt;  = WA_STRUC-V_NAME1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_EKGRP[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt;  = WA_STRUC-V_EKGRP.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_AFNAM[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt; = WA_STRUC-V_AFNAM.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_PREIS[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt;    = WA_STRUC-V_PREIS.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_EKORG[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt; = WA_STRUC-V_EKORG.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_SAKTO[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt; = WA_STRUC-V_SAKTO.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_KOSTL[&amp;amp;LPC]-TABLE_LINE&lt;/STRONG&gt;  = WA_STRUC-V_KOSTL.&lt;/P&gt;&lt;P&gt;ENDABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TCD ( ME51N , ME51N_1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INT_LOC = INT_LOC + 1.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srikag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SRIKAG on Nov 23, 2010 5:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 16:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429763#M1550297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-23T16:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429764#M1550298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to pass that value in the VALIN field as *V_KNTTP[&amp;amp;LPC]-table_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get any error on this line &lt;STRONG&gt;V_KNTTP&amp;amp;LPC-TABLE_LINE = WA_STRUC-V_KNTTP.&lt;/STRONG&gt;  then you can try as &lt;STRONG&gt;V_KNTTP[] = WA_STRUC-V_KNTTP&lt;/STRONG&gt; within the ABAP ... ENDABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 19:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429764#M1550298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-23T19:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429765#M1550299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the parameter reference as MENGE[] after that i didn't get the value's in  ABAP TYPE (TAB) and LENGTH(TAB) its blank .  In the VALUE tab i am getting as &amp;lt;INITIAL&amp;gt;. While executing its not taking the data from the flat file instead of that its taking as &amp;lt;INITIAL&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In VALIN i changed the variable as v_menge[&amp;amp;LPC]-TABLE_LINE. I am getting the error as v_menge is not defined. How can i proceed further. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After changing the VALIN as below i am getting the error as below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference V_NAME1[ &amp;amp;lpc ]-TABLE_LINE for ME51N_1-DYNPRO[18]-FIELD[44]-&lt;/P&gt;&lt;P&gt;VALIN Is Not Defined as an eCATT Parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I declared(V_NAME1[  &amp;amp;lpc ]-TABLE_LINE ) the same in the Parameter field. 		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me for further proceedings....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srikag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SRIKAG on Nov 24, 2010 3:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 06:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429765#M1550299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T06:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429766#M1550300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. As far as you are getting the &amp;lt;Initia&amp;gt; in the value and blank in  ABAP TYPE (TAB) and LENGTH(TAB) is correct since this is the structure parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Check the import parameter name in the parameter list and use the same in the interface (VALIN). The &amp;amp;LPC should be in [] when you pass to the interface. &lt;/P&gt;&lt;P&gt;3. Your interface should be inside the DO... ENDDO&lt;/P&gt;&lt;P&gt;4. You have to declare the field name as V_NAME1 and type the reference field as NAME[]&lt;/P&gt;&lt;P&gt;5. In the interface for the field VALIN only you have to use V_NAME1 &amp;amp;lpc -TABLE_LINE.&lt;/P&gt;&lt;P&gt;6. &lt;STRONG&gt;Table_line&lt;/STRONG&gt; keyword should not be in the parameter window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Verify the above for all the fields and hope you should be able to resolve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if you still have any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 15:21:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429766#M1550300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T15:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429767#M1550301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Check the import parameter name in the parameter list and use the same in the interface (VALIN). The &amp;amp;LPC should be in [] when you pass to the interface&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;You are saying that we need to create the Parameter as V_NAME[&amp;amp;LPC], &amp;amp;LPC in [ ] while giving as like this i am getting the error message has 'Only characters and '_' . So what can i do in this case... Parameter :  V_NAME[&amp;amp;LPC] and the parameter ref as NAME[ ] right. I am not able to use the square brackets while i am creating the parameter as well as in the VALIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. You have to declare the field name as V_NAME1 and type the reference field as NAME[]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am very sorry that i am unable to understand the above statement, Where we need to declare the above statement in the parameter or in the ABAP code, as per my understanding you are saying that in the parameters right. Why we need to declare this already we declared the import parameter right.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5. In the interface for the field VALIN only you have to use V_NAME1 &amp;amp;lpc -TABLE_LINE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;While i am declaring as above in the valin i am getting the error message as 'No [], &amp;amp; not allowed'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 16:14:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429767#M1550301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T16:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429768#M1550302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srikag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry If I confused you. Here is the answers. Hope this is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Check the import parameter name in the parameter list and use the same in the interface (VALIN). The &amp;amp;LPC should be in [] when you pass to the interface.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to say that we need to create the import variables like V_NAME1 or V_MEINS and give the proper reference data element like  &lt;STRONG&gt;MEINS with square brackets&lt;/STRONG&gt; to use as structure parameter.  The import variable &lt;STRONG&gt;NAME&lt;/STRONG&gt; should &lt;STRONG&gt;NOT&lt;/STRONG&gt; have the special characters like &lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt; or &lt;STRONG&gt;[]&lt;/STRONG&gt; . The &amp;amp; or the square brackets should only be in the VALIN field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check all your import parameters in the parameter to make sure it is ok as I said above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. You have to declare the field name as V_NAME1 and type the reference field as NAME[]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It is the same as above in # 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 17:21:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429768#M1550302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-30T17:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429769#M1550303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While i am follwing your Instruction i am getting the error message as &lt;STRONG&gt;"Reference V_TXZ01[&amp;amp;LPC]-TABLE_LINE for ME51N_1-DYNPRO[4]-FIELD[40]-VALIN Is Not Defined as an eCATT Parameter".&lt;/STRONG&gt;  But i defined the parameter as &lt;STRONG&gt;V_TXZ01&lt;/STRONG&gt; and the reference as *TXZ01[ ] *. In the VALIN i am passing V_TXZ01[&amp;amp;LPC]-TABLE_LINE  LPC in the Square brackets. Please help me out to finsh this task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srikag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 05:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429769#M1550303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-01T05:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429770#M1550304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srikag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you getting this error message for all the parameters that you declared as structure parameter?. I tried with some sample script using this field and assigned in the valin like you did, I didn't get any error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the field once again and you parameter declaration to make sure it is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 20:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429770#M1550304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-02T20:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: PR - Multiple Line Item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429771#M1550305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue has been resolved by myself, using the SAP GUI recording instead of passing the &amp;amp;LPC-TABLE_LINE i declared the parameter for incrementing the index and i am passing the same in the index parameter in the Interface. So issue has been resolved. Thanks alot for your guidance venkat. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working fine for one account assignment and now there is another need i need to do the same for all the account assignments. I need to know that whether i need to create the 4 different scripts for different assignments or its possible to do the same in this script. Please guide me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srikag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 11:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-multiple-line-item/m-p/7429771#M1550305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-03T11:21:27Z</dc:date>
    </item>
  </channel>
</rss>

