<?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: Read Table into WITH KEY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800711#M1467428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ statement seems to be correct. Looks like a data problem. Check the values in the fields "wa_it_lips-vgbel" and "wa_it_lips-vgpos "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Apr 2010 12:14:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-15T12:14:47Z</dc:date>
    <item>
      <title>Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800707#M1467424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi GURUS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your help, I wrote  the below piece of code in my report program and I DINT GET ANY DATA IN "wa_it_ekpo"???&lt;/P&gt;&lt;P&gt;and there is no syntactical error when I execute the program pls help me get data into   "wa_it_ekpo"..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_lips into wa_it_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING  wa_it_lips TO wa_asnmain_ref.&lt;/P&gt;&lt;P&gt;SORT it_ekpo DESCENDING by ebeln ebelp .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;READ TABLE it_ekpo  INTO wa_it_ekpo WITH KEY ebeln = wa_it_lips-vgbel  ebelp = wa_it_lips-vgpos .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING  wa_it_ekpo TO wa_asnmain_ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*APPEND wa_it_ekpo to it_ekpo.&lt;/P&gt;&lt;P&gt;*MOVE-CORRESPONDING&lt;/P&gt;&lt;P&gt;*CONCATENATE wa_it_lips wa_it_ekpo INTO WA_ASNMAIN_ref.&lt;/P&gt;&lt;P&gt;*CLEAR wa_it_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:03:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800707#M1467424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800708#M1467425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your question doesn't appear to be Web Dynpro related. This is just normal ABAP coding.  Please post your questions to the appropriate forum.  I am moving this thread to ABAP General.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800708#M1467425</guid>
      <dc:creator>thomas_jung</dc:creator>
      <dc:date>2010-04-15T12:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800709#M1467426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You for moving thread to appropriate location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800709#M1467426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800710#M1467427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well it just means that the conditions specified in the READ statement doesnot match. Check in the debugging mode if the codition &lt;/P&gt;&lt;P&gt;ebeln = wa_it_lips-vgbel ebelp = wa_it_lips-vgpos is satisfied&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800710#M1467427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800711#M1467428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ statement seems to be correct. Looks like a data problem. Check the values in the fields "wa_it_lips-vgbel" and "wa_it_lips-vgpos "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800711#M1467428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800712#M1467429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sure there is data in your IT_EKPO? i cant see any select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800712#M1467429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800713#M1467430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debugged the program ther is data in the fields "wa_it_lips-vgbel" and "wa_it_lips-vgpos " but still there is no data being populated into wa_it_ekpo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800713#M1467430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800714#M1467431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is data in IT_EKPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I debugged the program ther is data in the fields "wa_it_lips-vgbel" and "wa_it_lips-vgpos " but still there is no data being populated into wa_it_ekpo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800714#M1467431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800715#M1467432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ah ok so we most probably got a conversion error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check your data in your WA against the data in your table, may it be that EBELN hast some preceeding zeros in one case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the problem you can solve it by using following FM´s:&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_EBELN_INPUT&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_EBELN_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:25:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800715#M1467432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800716#M1467433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I call form &lt;STRONG&gt;populate_data&lt;/STRONG&gt; passing value Suppose &lt;STRONG&gt;s_vbeln = u2018180000056u2019.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM populate_data USING val_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_vbeln = val_vbeln. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT single likp&lt;SUB&gt;VBELN likp&lt;/SUB&gt;TRMTYP likp&lt;SUB&gt;LIFNR likp&lt;/SUB&gt;ERNAM likp~BLDAT from likp&lt;/P&gt;&lt;P&gt;  into (wa_ittab1-vbeln , wa_ittab1-trmtyp, wa_ittab1-lifnr, wa_ittab1-ernam, wa_ittab1-bldat ) where vbeln = s_vbeln.&lt;/P&gt;&lt;P&gt;APPEND wa_ittab1 to it_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT single LIPS&lt;SUB&gt;WERKS LIPS&lt;/SUB&gt;VGBEL FROM lips into (wa_ittab4-werks , wa_ittab4-vgbel) where lips~vbeln = s_vbeln.&lt;/P&gt;&lt;P&gt;APPEND wa_ittab4 to it_tab4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE NAME1 FROM T001W INTO WA_ITTAB3-NAME1T WHERE T001W~WERKS = WA_ITTAB4-WERKS.&lt;/P&gt;&lt;P&gt;SELECT SINGLE BEDAT FROM EKKO INTO WA_ITTAB3-BEDAT WHERE EKKO~EBELN = WA_ITTAB4-VGBEL.&lt;/P&gt;&lt;P&gt;SELECT SINGLE NAME1 FROM LFA1 INTO WA_ITTAB3-NAME1 WHERE LFA1~LIFNR = WA_ITTAB1-LIFNR.&lt;/P&gt;&lt;P&gt;SELECT SINGLE ADRNR FROM EKPO INTO WA_ITTAB3-ADRNR WHERE EKPO~EBELN = WA_ITTAB4-VGBEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA it_ekpo_unf    TYPE ekpo OCCURS 0.&lt;/P&gt;&lt;P&gt;DATA wa_it_ekpo_unf TYPE ekpo.&lt;/P&gt;&lt;P&gt;DATA it_ekpo        TYPE ekpo OCCURS 0.&lt;/P&gt;&lt;P&gt;DATA wa_it_ekpo     TYPE ekpo.&lt;/P&gt;&lt;P&gt;DATA it_lips_unf    TYPE lips OCCURS 0.&lt;/P&gt;&lt;P&gt;DATA wa_it_lips_unf TYPE lips.&lt;/P&gt;&lt;P&gt;DATA it_lips        TYPE lips OCCURS 0.&lt;/P&gt;&lt;P&gt;DATA wa_it_lips     TYPE lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT VGBEL VGPOS MATNR EAN11 ARKTX LGORT  FROM lips INTO CORRESPONDING FIELDS OF TABLE it_lips_unf WHERE lips~vgbel = WA_ITTAB4-VGBEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_lips_unf into wa_it_lips_unf.&lt;/P&gt;&lt;P&gt; SHIFT wa_it_lips_unf-vgpos LEFT DELETING LEADING '0'.&lt;/P&gt;&lt;P&gt; APPEND wa_it_lips_unf to it_lips.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EBELN EBELP MENGE MEINS UMREZ  FROM EKPO INTO CORRESPONDING FIELDS OF TABLE it_ekpo_unf WHERE ekpo~ebeln = WA_ITTAB4-VGBEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_ekpo_unf into wa_it_ekpo_unf.&lt;/P&gt;&lt;P&gt; SHIFT wa_it_ekpo_unf-ebelp LEFT DELETING LEADING '0'.&lt;/P&gt;&lt;P&gt; APPEND wa_it_ekpo_unf to it_ekpo.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_lips into wa_it_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING  wa_it_lips TO wa_asnmain_ref.&lt;/P&gt;&lt;P&gt;SORT it_ekpo DESCENDING by ebeln ebelp .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;READ TABLE it_ekpo  INTO wa_it_ekpo WITH KEY ebeln = wa_it_lips-vgbel  ebelp = wa_it_lips-vgpos .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING  wa_it_ekpo TO wa_asnmain_ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800716#M1467433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800717#M1467434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;compare the field size of ebeln = vgbel and ebelp = vgpos ( I don have system sap system  with me so can't check), . your read statement is correct only problem may be with your key comparision&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One tip beside your question. I saw in you code you are sorting inside loop, avoid doing this in future. It's a big performance issue if table is big.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 18:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800717#M1467434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T18:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800718#M1467435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is the data type mismatch betweeb ekpo-ebeln(numc6) and wa_it_lips-vgpos(numc5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this solution.&lt;/P&gt;&lt;P&gt;define variable for and wa_it_lips-vgpos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : m_vgpos type ebelp.

LOOP AT it_lips into wa_it_lips.

MOVE-CORRESPONDING wa_it_lips TO wa_asnmain_ref.
SORT it_ekpo DESCENDING by ebeln ebelp .

CALL FUNCTION 'CONVERSION_EXIT_NUMC1_INPUT'
  EXPORTING
    input             = wa_it_lips-vgpos
 IMPORTING
   OUTPUT            = m_vgpos
 EXCEPTIONS
   WRONG_INPUT       = 1
   OTHERS            = 2.

READ TABLE it_ekpo INTO wa_it_ekpo WITH KEY ebeln = wa_it_lips-vgbel ebelp = m_vgpos.  
MOVE-CORRESPONDING wa_it_ekpo TO wa_asnmain_ref.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar on Apr 16, 2010 10:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 04:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800718#M1467435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T04:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800719#M1467436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After getting data into internal tables &lt;STRONG&gt;it_lips&lt;/STRONG&gt; and &lt;STRONG&gt;it_ekpo&lt;/STRONG&gt; I  am reading data into &lt;STRONG&gt;it_ekpo&lt;/STRONG&gt; for concerned(selected) records in &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it_lips&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At database level &lt;/P&gt;&lt;P&gt;Table-Field    Data Type  Length&lt;/P&gt;&lt;P&gt;LIPS-VGBEL  CHAR          10&lt;/P&gt;&lt;P&gt;LIPS-VGPOS  &lt;STRONG&gt;NUMC           6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table-Field       Data Type  Length&lt;/P&gt;&lt;P&gt;EKPO-EBELN  CHAR         10&lt;/P&gt;&lt;P&gt;EKPO-EBELP   &lt;STRONG&gt;NUMC          5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of above my inner join condition dint fetch records from Database. So , I fetched the records from DB into internal tables and removed leading zeros for LIPS-VGPOS and EKPO-EBELP fields in the internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I used :&lt;/P&gt;&lt;P&gt;READ TABLE it_ekpo INTO wa_it_ekpo WITH KEY ebeln = wa_it_lips-vgbel ebelp = wa_it_lips-vgpos .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which was syntactically correct but in vain..no records fetched.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 04:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800719#M1467436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T04:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800720#M1467437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of removing the leading zero's in VGPOS &amp;amp; EBELP, try the conversion exit "'CONVERSION_EXIT_NUMC1_INPUT'".  Refer to my previous Post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 05:05:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800720#M1467437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T05:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800721#M1467438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dipak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code u have poted:------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_lips into wa_it_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING wa_it_lips TO wa_asnmain_ref.&lt;/P&gt;&lt;P&gt;SORT it_ekpo DESCENDING by ebeln ebelp .&lt;/P&gt;&lt;P&gt;READ TABLE it_ekpo INTO wa_it_ekpo WITH KEY ebeln = wa_it_lips-vgbel ebelp = wa_it_lips-vgpos .&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING wa_it_ekpo TO wa_asnmain_ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*APPEND wa_it_ekpo to it_ekpo.&lt;/P&gt;&lt;P&gt;*MOVE-CORRESPONDING&lt;/P&gt;&lt;P&gt;*CONCATENATE wa_it_lips wa_it_ekpo INTO WA_ASNMAIN_ref.&lt;/P&gt;&lt;P&gt;*CLEAR wa_it_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please  try the below code  and see the result.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_lips into wa_it_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING wa_it_lips TO wa_asnmain_ref.&lt;/P&gt;&lt;P&gt;SORT it_ekpo DESCENDING by ebeln ebelp .&lt;/P&gt;&lt;P&gt;READ TABLE it_ekpo INTO wa_it_ekpo WITH KEY ebeln = wa_asnmain_ref-vgbel ebelp = wa_asnmain_ref-vgpos &lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING wa_it_ekpo TO wa_asnmain_ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*APPEND wa_it_ekpo to it_ekpo.&lt;/P&gt;&lt;P&gt;*MOVE-CORRESPONDING&lt;/P&gt;&lt;P&gt;*CONCATENATE wa_it_lips wa_it_ekpo INTO WA_ASNMAIN_ref.&lt;/P&gt;&lt;P&gt;*CLEAR wa_it_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should get your desired result...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 08:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800721#M1467438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T08:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Read Table into WITH KEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800722#M1467439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used conversion exit and issue has been resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Dep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 11:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-into-with-key/m-p/6800722#M1467439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T11:35:25Z</dc:date>
    </item>
  </channel>
</rss>

