<?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: BAPI_ACC_DOCUMENT_CHECK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962127#M698830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you paste the part of the code where you are populating the idoc segments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2007 18:16:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-09T18:16:44Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962120#M698823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using BAPI_ACC_DOCUMENT_CHECK  to check the GL accounts If there are any error records it is writing into tb_return &lt;/P&gt;&lt;P&gt;Now I got a requirement to pass those errored records errors into Inbound IDOC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody help me how to proceed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the partner number ..I'm using the FM IDOC_INBOUND_SINGLE but the data is not updating ... I would be thankful for anykind of help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 17:25:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962120#M698823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T17:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962121#M698824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bapi will do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I can advice if you want to check / Test .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just create a p_test parameter ( checkbox ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your code put a logic like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call BAPI-function in this system&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      documentheader = documentheader&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      obj_type       = l_type&lt;/P&gt;&lt;P&gt;      obj_key        = l_key&lt;/P&gt;&lt;P&gt;      obj_sys        = l_sys&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      accountgl      = accountgl&lt;/P&gt;&lt;P&gt;      accountpayable = accountpayable&lt;/P&gt;&lt;P&gt;      currencyamount = currencyamount&lt;/P&gt;&lt;P&gt;      accounttax     = accounttax&lt;/P&gt;&lt;P&gt;      extension1     = extension1&lt;/P&gt;&lt;P&gt;      return         = return.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      IF p_test EQ 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      TEST&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      COMMIT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&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="380177"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward point please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 17:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962121#M698824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T17:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962122#M698825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;   What data is not updating, are you not able to see the idoc that is generated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 17:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962122#M698825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T17:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962123#M698826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont want to post the BAPI if  return in  BAPI...CHECK  has errors so I'm skipping the process everything is going fine till there but my new requirement is to send an INBOUND IDOC  for the error records &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do u mean to say if it is errored the IDOC can be created thru BAPI itself without using any FM or any code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm confused ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 17:42:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962123#M698826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T17:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962124#M698827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not able to send the data to the idoc any of the segments I got that the &lt;/P&gt;&lt;P&gt;The ACC_DOCUMENT Idoc is structured the same way as the table parameters of the bapi accounting document post/check and the field names do seem to match between the tables of the BAPI and the Idoc segments :&lt;/P&gt;&lt;P&gt;BAPI table 	-&amp;gt; 	Idoc segment&lt;/P&gt;&lt;P&gt;DOCUMENTHEADER-&amp;gt;	E1BPACHE09&lt;/P&gt;&lt;P&gt;ACCOUNTGL	-&amp;gt; 	E1BPACGL09&lt;/P&gt;&lt;P&gt;ACCOUNTRECEIVABLE-&amp;gt;	E1BPACAR09&lt;/P&gt;&lt;P&gt;CURRENCYAMOUNT	-&amp;gt;	E1BPACCR09&lt;/P&gt;&lt;P&gt;CRITERIA	               -&amp;gt;              E1BPACKEC9&lt;/P&gt;&lt;P&gt;VALUEFIELD	-&amp;gt;	E1BPACKEV09&lt;/P&gt;&lt;P&gt;I'm trying to pass the bapi internal tables to the segments...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 17:44:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962124#M698827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T17:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962125#M698828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you building the control record also, and what is happening after you call IDOC_INBOUND_SINGLE, are you getting an exception?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 17:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962125#M698828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T17:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962126#M698829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is creating IDOC with errors and when went thru debug I got that the structurs didnot match...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I'm creating control record&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 18:01:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962126#M698829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T18:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962127#M698830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you paste the part of the code where you are populating the idoc segments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 18:16:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962127#M698830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T18:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962128#M698831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with few segments if it goes thru but somewhere its going wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BUILD_CONTROL_RECORD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EDIDC-MESTYP = C_MESTYP.&lt;/P&gt;&lt;P&gt;  EDIDC-IDOCTYP = C_IDOCTP.&lt;/P&gt;&lt;P&gt;  EDIDC-DIRECT = C_2.&lt;/P&gt;&lt;P&gt;  EDIDC-SNDPRN = C_PARTN.&lt;/P&gt;&lt;P&gt;  EDIDC-SNDPRT = C_LS.&lt;/P&gt;&lt;P&gt;  APPEND EDIDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " BUILD_CONTROL_RECORD&lt;/P&gt;&lt;P&gt;FORM BUILD_DATA_RECORD .&lt;/P&gt;&lt;P&gt;  data: l_itemno(10) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_SEG-SEGNAM = 'E1BPACHE09'.&lt;/P&gt;&lt;P&gt;  append wa_SEG to tb_seg.&lt;/P&gt;&lt;P&gt;  clear wa_seg.&lt;/P&gt;&lt;P&gt;  wa_SEG-SEGNAM = 'E1BPACGL09'.&lt;/P&gt;&lt;P&gt;  append wa_SEG to tb_seg.&lt;/P&gt;&lt;P&gt;  clear wa_seg.&lt;/P&gt;&lt;P&gt;  wa_SEG-SEGNAM = 'E1BPACAR09'.&lt;/P&gt;&lt;P&gt;  append wa_SEG to tb_seg.&lt;/P&gt;&lt;P&gt;  clear wa_seg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  delete adjacent duplicates from tb_docheader.&lt;/P&gt;&lt;P&gt;  LOOP AT TB_SEG INTO WA_SEG.&lt;/P&gt;&lt;P&gt;        LOOP AT TB_DOCHEADER INTO WA_DOCHEADER.&lt;/P&gt;&lt;P&gt;        move wa_docheader to WA_seg-SDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        EDIDD-MANDT = SY-MANDT.&lt;/P&gt;&lt;P&gt;        EDIDD-SEGNAM = WA_SEG-SEGNAM.&lt;/P&gt;&lt;P&gt;        EDIDD-SDATA = WA_seg-SDATA.&lt;/P&gt;&lt;P&gt;        APPEND EDIDD.&lt;/P&gt;&lt;P&gt;        clear wa_docheader.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;      clear wa_seg.&lt;/P&gt;&lt;P&gt;        if wa_SEG-SEGNAM = 'E1BPACGL09'.&lt;/P&gt;&lt;P&gt;      LOOP AT tb_accgl into wa_accgl.&lt;/P&gt;&lt;P&gt;        l_itemno = wa_accgl-ITEMNO_ACC.&lt;/P&gt;&lt;P&gt;        move wa_accgl+0(10) to WA_seg-SDATA.&lt;/P&gt;&lt;P&gt;        concatenate l_itemno WA_seg-SDATA into WA_seg-SDATA.&lt;/P&gt;&lt;P&gt;        EDIDD-MANDT = SY-MANDT.&lt;/P&gt;&lt;P&gt;        EDIDD-SEGNAM = WA_SEG-SEGNAM.&lt;/P&gt;&lt;P&gt;        EDIDD-SDATA = WA_seg-SDATA.&lt;/P&gt;&lt;P&gt;        APPEND EDIDD.&lt;/P&gt;&lt;P&gt;        clear wa_seg.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    similarly I'm trying to append&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'IDOC_INBOUND_SINGLE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        PI_IDOC_CONTROL_REC_40              = edidc&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PI_DO_COMMIT                        = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PE_IDOC_NUMBER                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PE_ERROR_PRIOR_TO_APPLICATION       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        PT_IDOC_DATA_RECORDS_40             = edidd&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       IDOC_NOT_SAVED                      = 1&lt;/P&gt;&lt;P&gt;       OTHERS                              = 2&lt;/P&gt;&lt;P&gt;              .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 18:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962128#M698831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T18:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962129#M698832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appended the control record but want some help to append the rest of the segments ...i'm trying to loop each segment and pass each field in each segment to the EDIDD table Is there anyother way like any easy way other than looping each segment and appending ..any kind of help will be lot helpful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 18:48:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-check/m-p/2962129#M698832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T18:48:03Z</dc:date>
    </item>
  </channel>
</rss>

