<?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: abap help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-help/m-p/6415738#M1408511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code looks ok. Try to revise your logic as peer your requirement. Check the flow of this code in debugger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2009 23:13:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-09T23:13:13Z</dc:date>
    <item>
      <title>abap help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-help/m-p/6415733#M1408506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, i need some help with abap. I am a BI person but I am doing some abap coding. I wrote a code to populate a profit center so what happens is when i extract data from ECC into bi it only populates profit center for a few records. i took a record that had NULL profit center and did extraction just for that record, it got loaded correctly with the profit center. do you think i am not refreshing internal tables correctly or what could it be? thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 19:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-help/m-p/6415733#M1408506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-09T19:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: abap help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-help/m-p/6415734#M1408507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please paste your code to see what is the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 20:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-help/m-p/6415734#M1408507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-09T20:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: abap help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-help/m-p/6415735#M1408508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;' DATA: wa_temp TYPE /BIC/CS8ZFIAR_03 OCCURS 0 WITH HEADER LINE. 
DATA: lt_figl1 TYPE STANDARD TABLE OF /BIC/AZFIGL_0100 WITH HEADER LINE, 
ls_figl1 LIKE /BIC/AZFIGL_0100.
 
SELECT * FROM /BIC/AZFIGL_0100 INTO TABLE lt_figl1 
 FOR ALL ENTRIES IN DATA_PACKAGE 
 WHERE FISCYEAR = wa_temp-FISCPER+0(4)
 AND FISCVARNT = DATA_PACKAGE-FISCVARNT
 AND COMP_CODE = DATA_PACKAGE-COMP_CODE
 AND DOC_NUM = DATA_PACKAGE-AC_DOC_NO
 AND ITEM_NUM = DATA_PACKAGE-ITEM_NUM
 AND GL_ACCOUNT = DATA_PACKAGE-GL_ACCOUNT. 
 
 LOOP AT DATA_PACKAGE INTO wa_temp. 
 
   READ TABLE LT_FIGL1 WITH KEY 
 
 FISCYEAR = wa_temp-FISCPER+0(4)
 FISCVARNT = wa_temp-FISCVARNT
 COMP_CODE = wa_temp-COMP_CODE
 AC_DOC_NO = wa_temp-AC_DOC_NO
 ITEM_NUM = wa_temp-ITEM_NUM
 GL_ACCOUNT = wa_temp-GL_ACCOUNT.
 
 IF SY-SUBRC = 0. 
 
 LOOP AT lt_figl1 INTO ls_figl1. 
 
wa_temp-PROFIT_CTR = ls_figl1-PROFIT_CTR. 
wa_temp-CO_AREA = ls_figl1-CO_AREA. 
wa_temp-LOC_CURRCY = ls_figl1-LOC_CURRCY. 
wa_temp-DEBIT_LC = ls_figl1-DEBIT_LC. 
wa_temp-CREDIT_LC = ls_figl1-CREDIT_LC. 
wa_temp-DEB_CRE_LC = ls_figl1-DEB_CRE_LC. 
wa_temp-DOC_CURRCY = ls_figl1-DOC_CURRCY. 
wa_temp-DEBIT_DC = ls_figl1-DEBIT_DC. 
wa_temp-DEB_CRE_DC = ls_figl1-DEB_CRE_DC. 
wa_temp-DOC_NUM = ls_figl1-DOC_NUM. 
wa_temp-DOC_ITEM = ls_figl1-DOC_ITEM. '&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 20:38:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-help/m-p/6415735#M1408508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-09T20:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: abap help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-help/m-p/6415736#M1408509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the debug see which record is not populating, or after the execution is done find out the record numbers and then do the debug to see what is happening at that record. this will give the actual situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 21:55:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-help/m-p/6415736#M1408509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-09T21:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: abap help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-help/m-p/6415737#M1408510</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; I see a basic problem with your code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First your are using LOOP AT DATA_PACKAGE.. THIS IS FINE&lt;/P&gt;&lt;P&gt;Then READ TABLE LT_FIGL1 WITH KEY --- &lt;/P&gt;&lt;P&gt;And after that again loop at LT_FIGL1 with no condition............ this is going to give you results that does not satisfy the key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT DATA_PACKAGE&lt;/P&gt;&lt;P&gt;LOOP AT LT_FIGL1 WHERE... your condition, No need for the read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasenjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 23:06:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-help/m-p/6415737#M1408510</guid>
      <dc:creator>prasenjit_sharma</dc:creator>
      <dc:date>2009-12-09T23:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: abap help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-help/m-p/6415738#M1408511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code looks ok. Try to revise your logic as peer your requirement. Check the flow of this code in debugger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 23:13:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-help/m-p/6415738#M1408511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-09T23:13:13Z</dc:date>
    </item>
  </channel>
</rss>

