<?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_POST: to post to multiple one-time customer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-to-post-to-multiple-one-time-customer/m-p/7294359#M1533214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I know how can I test on the program rfbibl00? Reason, system prompt to enter 'File path name'. May I know what do I need to enter with the data content and its format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kang Ring&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Sep 2010 09:05:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-30T09:05:40Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST: to post to multiple one-time customer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-to-post-to-multiple-one-time-customer/m-p/7294355#M1533210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to use function BAPI_ACC_DOCUMENT_POST to post the accounting document. In the business scenarios, we received a sum of incoming payment from various one-time customer. As long as one-time customer is concern, we have to input the customer name, city etc. However, noticed that input parameters CUSTOMERCPD in BAPI_ACC_DOCUMENT_POST can only accept one customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can expert please share with me how do you address on above? Or, any available BAPI that can be used instead of BAPI_ACC_DOCUMENT_POST?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kang Ring&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 02:59:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-to-post-to-multiple-one-time-customer/m-p/7294355#M1533210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T02:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST: to post to multiple one-time customer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-to-post-to-multiple-one-time-customer/m-p/7294356#M1533211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use report &lt;STRONG&gt;rfbibl00&lt;/STRONG&gt; - it's much more &lt;STRONG&gt;simple&lt;/STRONG&gt; than unhandy BAPIs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grx&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 07:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-to-post-to-multiple-one-time-customer/m-p/7294356#M1533211</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2010-09-30T07:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST: to post to multiple one-time customer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-to-post-to-multiple-one-time-customer/m-p/7294357#M1533212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Chek out my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztn_test_bapi_f02.


DATA: gs_documentheader LIKE bapiache09.
DATA: BEGIN OF gt_documentheader OCCURS 0.
        INCLUDE STRUCTURE bapiache09.
DATA: END OF gt_documentheader.

DATA: gs_accountgl LIKE bapiacgl09.
DATA: BEGIN OF gt_accountgl OCCURS 0.
        INCLUDE STRUCTURE bapiacgl09.
DATA: END OF gt_accountgl.

DATA: gs_rec LIKE bapiacar09.
DATA: BEGIN OF gt_rec OCCURS 0.
        INCLUDE STRUCTURE bapiacar09.
DATA: END OF gt_rec.

DATA: gs_accountpayable LIKE bapiacap09.
DATA: BEGIN OF gt_accountpayable OCCURS 0.
        INCLUDE STRUCTURE bapiacap09.
DATA: END OF gt_accountpayable.

DATA: gs_currencyamount LIKE bapiaccr09.
DATA: BEGIN OF gt_currencyamount OCCURS 0.
        INCLUDE STRUCTURE bapiaccr09.
DATA: END OF gt_currencyamount.

DATA: BEGIN OF return OCCURS 0.
        INCLUDE STRUCTURE bapiret2.
DATA: END OF return.

*DATA: gv_obj_type LIKE bapiache09-obj_type VALUE 'BKPFF',
*gv_obj_key LIKE bapiache09-obj_key VALUE '3400000216',
**gv_obj_sys LIKE bapiache09-obj_sys VALUE 'DEVCLNT200'.
*
*gs_documentheader-obj_type = 'BKPFF'.
*gs_documentheader-obj_key =  '3400000216'.
*gs_documentheader-obj_sys =  'DEVCLNT200'.
*"gs_documentheader-bus_act = 'BKPFF'.
gs_documentheader-username = sy-uname.
gs_documentheader-header_txt = 'test'.
gs_documentheader-comp_code = '1500'.
gs_documentheader-doc_date = sy-datum.
gs_documentheader-pstng_date = sy-datum.
gs_documentheader-doc_type = 'SA'.
APPEND gs_documentheader TO gt_documentheader.

*gs_accountpayable-itemno_acc = '2'.
*gs_accountpayable-vendor_no = '0060001439'.
*APPEND gs_accountpayable TO gt_accountpayable.

gs_accountgl-itemno_acc = '0000000001'.
gs_accountgl-gl_account = '0004690360'.
gs_accountgl-comp_code = '1500'.
gs_accountgl-pstng_date = sy-datum.
gs_accountgl-costcenter = '4150000000'.
APPEND gs_accountgl TO gt_accountgl.


gs_rec-itemno_acc = '0000000002'.
gs_rec-gl_account = '0004120250'.
gs_rec-COMP_CODE = '1500'.
gs_rec-customer = '0001000001'.

APPEND gs_rec TO gt_rec.


*gs_accountgl-itemno_acc = '0000000002'.
*gs_accountgl-gl_account = '0004690360'.
*gs_accountgl-customer = '0001000001'.
*gs_accountgl-vendor_no = '0001000001'.
*gs_accountgl-comp_code = '1500'.
*gs_accountgl-pstng_date = sy-datum.
*gs_accountgl-costcenter = '4150000000'.
*APPEND gs_accountgl TO gt_accountgl.

*gs_accountgl-itemno_acc = '0000000002'.
*gs_accountgl-gl_account = '0001000001'.
*gs_accountgl-comp_code = '1500'.
*gs_accountgl-pstng_date = sy-datum.
*gs_accountgl-costcenter = '4150000000'.
*APPEND gs_accountgl TO gt_accountgl.

gs_currencyamount-itemno_acc = '0000000001'.
gs_currencyamount-currency = 'PKR'.
gs_currencyamount-amt_doccur = '20080'. "i_tab-repval.
APPEND gs_currencyamount TO gt_currencyamount.

gs_currencyamount-itemno_acc = '0000000002'.
gs_currencyamount-currency = 'PKR'.
gs_currencyamount-amt_doccur = '20080-'. "i_tab-repval.
APPEND gs_currencyamount TO gt_currencyamount.

DATA: extension2 LIKE STANDARD TABLE OF bapiparex WITH HEADER LINE.

extension2-bschl = '15'.
APPEND extension2.
*
*extension2-bschl = '15'.
*APPEND extension2.

BREAK-POINT.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
  EXPORTING
    documentheader    = gs_documentheader
*  IMPORTING
*    obj_type          = gv_obj_type
*    obj_key           = gv_obj_key
*    obj_sys           = gv_obj_sys
  TABLES
    accountgl         = gt_accountgl
    accountreceivable = gt_rec
    accountpayable    = gt_accountpayable
    currencyamount    = gt_currencyamount
    extension2        = extension2
    return            = return.

BREAK-POINT.
LOOP AT return WHERE type = 'E'.
  EXIT.
ENDLOOP.
IF sy-subrc EQ 0.
  WRITE: / 'BAPI call failed - debug and fix!'.
ELSE.
  CLEAR return.
  REFRESH return.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
  IMPORTING
  return = return.
  WRITE: / 'BAPI call worked!!'.
  "WRITE: / obj_key, ' posted'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 08:31:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-to-post-to-multiple-one-time-customer/m-p/7294357#M1533212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T08:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST: to post to multiple one-time customer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-to-post-to-multiple-one-time-customer/m-p/7294358#M1533213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI tahir &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your code. But, problem persists to handle one time customer via BAPI. Input parameter CUSTOMERCPD not a table, it only accept one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kang Ring&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 09:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-to-post-to-multiple-one-time-customer/m-p/7294358#M1533213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T09:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST: to post to multiple one-time customer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-to-post-to-multiple-one-time-customer/m-p/7294359#M1533214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I know how can I test on the program rfbibl00? Reason, system prompt to enter 'File path name'. May I know what do I need to enter with the data content and its format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kang Ring&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 09:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-to-post-to-multiple-one-time-customer/m-p/7294359#M1533214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T09:05:40Z</dc:date>
    </item>
  </channel>
</rss>

