<?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 BAPI - Change Payment Terms - FI Document in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-change-payment-terms-fi-document/m-p/6967392#M1490733</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 need a BAPI to change the &lt;U&gt;payment terms&lt;/U&gt; and the &lt;U&gt;payment method supplement&lt;/U&gt; of FI documents. I'm trying the Function Module FI_ITEMS_CHANGE, even though I can change the payment block and some other fields with this one, I'm not able to change the 2 above fields mentionned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your collaboration!&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 May 2010 18:48:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-27T18:48:53Z</dc:date>
    <item>
      <title>BAPI - Change Payment Terms - FI Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-change-payment-terms-fi-document/m-p/6967392#M1490733</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 need a BAPI to change the &lt;U&gt;payment terms&lt;/U&gt; and the &lt;U&gt;payment method supplement&lt;/U&gt; of FI documents. I'm trying the Function Module FI_ITEMS_CHANGE, even though I can change the payment block and some other fields with this one, I'm not able to change the 2 above fields mentionned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your collaboration!&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 18:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-change-payment-terms-fi-document/m-p/6967392#M1490733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-27T18:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI - Change Payment Terms - FI Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-change-payment-terms-fi-document/m-p/6967393#M1490734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you cannot change these fields using the document change screen (and I don't think you can), then it's not likely you will be able to change them using FMs or BAPIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will probably have to reverse and re-post (and may be clear).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 19:11:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-change-payment-terms-fi-document/m-p/6967393#M1490734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-27T19:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI - Change Payment Terms - FI Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-change-payment-terms-fi-document/m-p/6967394#M1490735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply. Yes it is possible to modify those 2 fields with transaction FB02, however I want to be able to do it via the back end. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 19:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-change-payment-terms-fi-document/m-p/6967394#M1490735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-27T19:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI - Change Payment Terms - FI Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-change-payment-terms-fi-document/m-p/6967395#M1490736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had used a BDC code (call transaction) to transaction FB09 to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 19:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-change-payment-terms-fi-document/m-p/6967395#M1490736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-27T19:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI - Change Payment Terms - FI Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-change-payment-terms-fi-document/m-p/6967396#M1490737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, can you give me more details. I'm not an ABAP expert, but basically normally I call BAPI and Function Module via a webservice that I created. Is your BDC solution works in background, can you give me more details please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 21:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-change-payment-terms-fi-document/m-p/6967396#M1490737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-27T21:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI - Change Payment Terms - FI Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-change-payment-terms-fi-document/m-p/6967397#M1490738</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'm doing it with transaction FB02. But I would like to do it with a BAPI and I'm looking for it. Are you sure there is not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, this is my BDC code, you can get it doing a recording of the transaction you want in the SM35.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: lt_bdcdata   type table of bdcdata,
         lwa_bdcdata  type bdcdata,
         lv_pos(2)    type n,
         lv_buzei(15) type c,
         lv_line      type i.

  define bdc_dynpro.

    clear lwa_bdcdata.
    lwa_bdcdata-program  = &amp;amp;1.
    lwa_bdcdata-dynpro   = &amp;amp;2.
    lwa_bdcdata-dynbegin = 'X'.
    append lwa_bdcdata to lt_bdcdata.

  end-of-definition.
  define bdc_field.

    clear lwa_bdcdata.
    lwa_bdcdata-fnam = &amp;amp;1.
    lwa_bdcdata-fval = &amp;amp;2.
    append lwa_bdcdata to lt_bdcdata.

  end-of-definition.

  bdc_dynpro 'SAPMF05L' '0100'.
  bdc_field  'BDC_OKCODE' '/00'.
  bdc_field  'RF05L-BELNR' if_belnr.
  bdc_field  'RF05L-BUKRS' if_bukrs.
  bdc_field  'RF05L-GJAHR' if_gjahr.

  if if_buzei &amp;lt;= 31.
    lv_pos = if_buzei.
  else.
    lv_line = if_buzei.
    while lv_line &amp;gt; 31.
      bdc_dynpro 'SAPMF05L' '0700'.
      bdc_field  'BDC_OKCODE' '=P+'.
      lv_line = lv_line - 31.
    endwhile.
    lv_pos = lv_line.
  endif.
  concatenate 'RF05L-ANZDT(' lv_pos ')' into lv_buzei.
  bdc_dynpro 'SAPMF05L' '0700'.
  bdc_field  'BDC_OKCODE' '=PK'.
  bdc_field  'BDC_CURSOR' lv_buzei.

  bdc_dynpro 'SAPMF05L' '0301'.
  bdc_field  'BDC_OKCODE' '=ZK'.

  bdc_dynpro 'SAPMF05L' '1301'.
  bdc_field  'BDC_OKCODE' '=ENTR'.
  bdc_field  'BSEG-ZLSCH' if_zlsch.


  bdc_dynpro 'SAPMF05L' '0301'.
  bdc_field  'BDC_OKCODE' '=AE'.

  call transaction 'FB02'  using lt_bdcdata
                           mode  if_mode
                           messages into et_msg.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you. &lt;/P&gt;&lt;P&gt;If anyone knows a BAPI for this, please tell me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ainara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 07:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-change-payment-terms-fi-document/m-p/6967397#M1490738</guid>
      <dc:creator>former_member914733</dc:creator>
      <dc:date>2010-06-03T07:23:14Z</dc:date>
    </item>
  </channel>
</rss>

