<?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 having error message RW 609 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-having-error-message-rw-609/m-p/13700129#M2028018</link>
    <description>&lt;P&gt;What is the solution?&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2024 03:34:57 GMT</pubDate>
    <dc:creator>ttl2165</dc:creator>
    <dc:date>2024-05-14T03:34:57Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST having error message RW 609</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-having-error-message-rw-609/m-p/12767529#M2022843</link>
      <description>&lt;P&gt;FollowRSS Feed &lt;/P&gt;
  &lt;P&gt;Hey everyone,&lt;/P&gt;
  &lt;P&gt;I was trying to use the function BAPI_ACC_DOCUMENT_POST. When I run the function by manually enter the value in the table, It returns a error message. Message number 609, and the text is "Error in document: BKPFF $ DEVCLNT102".&lt;/P&gt;
  &lt;P&gt;Anyone have any idea why this is happening? Please help. And thank you in advance&lt;/P&gt;
  &lt;P&gt;This is my code:&lt;/P&gt;
  &lt;P&gt;data: gs_documentheader LIKE bapiache09,&lt;BR /&gt; gs_accountgl TYPE bapiacgl09,&lt;BR /&gt; gs_accountreceivable TYPE bapiacar09,&lt;BR /&gt; gs_currencyamount TYPE bapiaccr09,&lt;BR /&gt; gs_customercpd TYPE bapiacpa09,&lt;BR /&gt; gv_obj_type LIKE bapiache09-obj_type,&lt;BR /&gt; gv_obj_key LIKE bapiache09-obj_key,&lt;BR /&gt; gv_obj_sys LIKE bapiache09-obj_sys,&lt;BR /&gt; gt_accountgl TYPE STANDARD TABLE OF bapiacgl09 WITH HEADER LINE,&lt;BR /&gt; gt_accountreceivable TYPE STANDARD TABLE OF bapiacar09 WITH HEADER LINE,&lt;BR /&gt; gt_currencyamount TYPE STANDARD TABLE OF bapiaccr09 WITH HEADER LINE,&lt;BR /&gt; it_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE,&lt;BR /&gt; it_zxmlp TYPE zxmlp OCCURS 0 WITH HEADER LINE,&lt;BR /&gt; wa_return TYPE bapiret2,&lt;BR /&gt; extension1 LIKE STANDARD TABLE OF bapiacextc WITH HEADER LINE,&lt;BR /&gt; extension2 LIKE STANDARD TABLE OF bapiparex WITH HEADER LINE.&lt;BR /&gt;&lt;BR /&gt;APPEND it_xmlp to it_zxmlp.&lt;BR /&gt;&lt;BR /&gt;LOOP AT it_zxmlp.&lt;BR /&gt;&lt;BR /&gt; gs_documentheader-bus_act = 'RFBU'.&lt;BR /&gt; gs_documentheader-username = sy-uname.&lt;BR /&gt; gs_documentheader-header_txt = it_zxmlp-comentario.&lt;BR /&gt; gs_documentheader-comp_code = it_zxmlp-org_ventas.&lt;BR /&gt; gs_documentheader-doc_date = it_zxmlp-f_realizacion.&lt;BR /&gt; gs_documentheader-pstng_date = it_zxmlp-f_captura.&lt;BR /&gt; gs_documentheader-fisc_year = it_zxmlp-fisc_year.&lt;BR /&gt; gs_documentheader-fis_period = '11'.&lt;BR /&gt; gs_documentheader-doc_type = 'DZ'.&lt;BR /&gt; gs_documentheader-ref_doc_no = it_zxmlp-referencia.&lt;BR /&gt; gs_documentheader-ref_doc_no_long = it_zxmlp-referencia.&lt;BR /&gt;&lt;BR /&gt; call FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;BR /&gt; EXPORTING&lt;BR /&gt; input = it_zxmlp-num_solicitante&lt;BR /&gt; IMPORTING&lt;BR /&gt; output = it_zxmlp-num_solicitante.&lt;BR /&gt;&lt;BR /&gt; call FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;BR /&gt; EXPORTING&lt;BR /&gt; input = it_zxmlp-cnta_banco_pag&lt;BR /&gt; IMPORTING&lt;BR /&gt; output = it_zxmlp-cnta_banco_pag.&lt;BR /&gt;&lt;BR /&gt; gs_accountgl-itemno_acc = '1'.&lt;BR /&gt; gs_accountgl-gl_account = it_zxmlp-cnta_banco_pag.&lt;BR /&gt; gs_accountgl-item_text = it_zxmlp-texto_posicion.&lt;BR /&gt; gs_accountgl-comp_code = it_zxmlp-org_ventas.&lt;BR /&gt; gs_accountgl-alloc_nmbr = it_zxmlp-asignacion.&lt;BR /&gt; gs_accountgl-costcenter = it_zxmlp-centro_cost.&lt;BR /&gt;&lt;BR /&gt;APPEND gs_accountgl TO gt_accountgl.&lt;BR /&gt;&lt;BR /&gt;gs_accountreceivable-itemno_acc = '2'.&lt;BR /&gt; gs_accountreceivable-customer = it_zxmlp-NUM_SOLICITANTE.&lt;BR /&gt; gs_accountreceivable-bline_date = it_zxmlp-f_realizacion.&lt;BR /&gt; gs_accountreceivable-item_text = it_zxmlp-texto_posicion. "TEXT_POS_PAGO&lt;BR /&gt; gs_accountreceivable-comp_code = it_zxmlp-org_ventas.&lt;BR /&gt; gs_accountreceivable-pymt_meth = it_zxmlp-via_pago.&lt;BR /&gt; gs_accountreceivable-alloc_nmbr = it_zxmlp-asignacion. "ASIGN_DOC_P&lt;BR /&gt;&lt;BR /&gt; APPEND gs_accountreceivable TO gt_accountreceivable.&lt;BR /&gt;&lt;BR /&gt; gs_currencyamount-itemno_acc = '1'.&lt;BR /&gt; gs_currencyamount-curr_type = '00'.&lt;BR /&gt; gs_currencyamount-currency = it_zxmlp-clave_m.&lt;BR /&gt; gs_currencyamount-amt_doccur = it_zxmlp-importe_un. "IMP_MON_DOC&lt;BR /&gt; gs_currencyamount-exch_rate = it_zxmlp-tipo_cambio.&lt;BR /&gt; APPEND gs_currencyamount TO gt_currencyamount.&lt;BR /&gt;&lt;BR /&gt; gs_currencyamount-itemno_acc = '2'.&lt;BR /&gt; gs_currencyamount-curr_type = '00'.&lt;BR /&gt; gs_currencyamount-currency = it_zxmlp-clave_m.&lt;BR /&gt; gs_currencyamount-amt_doccur = it_zxmlp-importe_un * -1.&lt;BR /&gt; gs_currencyamount-exch_rate = it_zxmlp-tipo_cambio.&lt;BR /&gt; APPEND gs_currencyamount TO gt_currencyamount.&lt;BR /&gt;&lt;BR /&gt; CLEAR extension2.&lt;BR /&gt; MOVE it_zxmlp-CVE_PROD_SAT TO extension2-valuepart1.&lt;BR /&gt; APPEND extension2.&lt;BR /&gt;&lt;BR /&gt; CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'&lt;BR /&gt; EXPORTING&lt;BR /&gt; documentheader = gs_documentheader&lt;BR /&gt; customercpd = gs_customercpd&lt;BR /&gt; IMPORTING&lt;BR /&gt; obj_type = gv_obj_type&lt;BR /&gt; obj_key = gv_obj_key&lt;BR /&gt; obj_sys = gv_obj_sys&lt;BR /&gt; TABLES&lt;BR /&gt; accountgl = gt_accountgl&lt;BR /&gt; accountreceivable = gt_accountreceivable&lt;BR /&gt; currencyamount = gt_currencyamount&lt;BR /&gt; extension1 = extension1&lt;BR /&gt; return = it_return&lt;BR /&gt; extension2 = extension2.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; LOOP AT it_return INTO wa_return.&lt;BR /&gt; IF wa_return-type = 'E'.&lt;BR /&gt; UPDATE zxmlp&lt;BR /&gt; SET pedido = 'ERROR'&lt;BR /&gt; entrega = 'ERROR'&lt;BR /&gt; pagos = 'ERROR' "MISN11MAY22&lt;BR /&gt; error = wa_return-message&lt;BR /&gt; WHERE consecutivo = it_zxmlp-consecutivo.&lt;BR /&gt; COMMIT WORK.&lt;BR /&gt; ELSE.&lt;BR /&gt; UPDATE zxmlp&lt;BR /&gt; SET pedido = wa_return-message_v2&lt;BR /&gt; entrega = wa_return-message_v2&lt;BR /&gt; pagos = wa_return-message_v2 "MISN11MAY22&lt;BR /&gt; factura_come = 'NA'&lt;BR /&gt; factura_fin = 'NA'&lt;BR /&gt; error = ''&lt;BR /&gt; bandera = 'X'&lt;BR /&gt; WHERE consecutivo = it_zxmlp-consecutivo.&lt;BR /&gt; COMMIT WORK.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt;&lt;BR /&gt; ENDLOOP.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 19:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-having-error-message-rw-609/m-p/12767529#M2022843</guid>
      <dc:creator>former_member870361</dc:creator>
      <dc:date>2023-08-03T19:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST having error message RW 609</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-having-error-message-rw-609/m-p/12767530#M2022844</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;RW609 is pretty generic, what else do you have in it_return?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 19:47:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-having-error-message-rw-609/m-p/12767530#M2022844</guid>
      <dc:creator>Eduardo-CE</dc:creator>
      <dc:date>2023-08-03T19:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST having error message RW 609</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-having-error-message-rw-609/m-p/12767531#M2022845</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i already solve it thanks for your comment &lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 15:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-having-error-message-rw-609/m-p/12767531#M2022845</guid>
      <dc:creator>former_member870361</dc:creator>
      <dc:date>2023-08-07T15:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST having error message RW 609</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-having-error-message-rw-609/m-p/13700129#M2028018</link>
      <description>&lt;P&gt;What is the solution?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 03:34:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-having-error-message-rw-609/m-p/13700129#M2028018</guid>
      <dc:creator>ttl2165</dc:creator>
      <dc:date>2024-05-14T03:34:57Z</dc:date>
    </item>
  </channel>
</rss>

