Sitemap

Amicuk Programming Answers

BAPI - Change Payment Terms - FI Document

2015-10-11   Views:3

Advertisement

Hi, I need a BAPI to change the payment terms and the payment method supplement 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 th

Hi,
I need a BAPI to change the payment terms and the payment method supplement 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.
Thanks for your collaboration!
Martin

The replay answer
Advertisement
Hi,
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?
Anyway, this is my BDC code, you can get it doing a recording of the transaction you want in the SM35.
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  = &1.
    lwa_bdcdata-dynpro   = &2.
    lwa_bdcdata-dynbegin = 'X'.
    append lwa_bdcdata to lt_bdcdata.
  end-of-definition.
  define bdc_field.
    clear lwa_bdcdata.
    lwa_bdcdata-fnam = &1.
    lwa_bdcdata-fval = &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 <= 31.
    lv_pos = if_buzei.
  else.
    lv_line = if_buzei.
    while lv_line > 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.
Hope this helps you.
If anyone knows a BAPI for this, please tell me.
regards,
Ainara

Go to See the other 6 answers

BAPI - Change Payment Terms - FI Document

Category:DefaultRelease time:2015-10-11Views:130

Hi, I need a BAPI to change the payment terms and the payment method supplement 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 th[More]

Query to check BP Payment terms and Document Payment terms

Category:DefaultRelease time:2015-10-11Views:130

Hi All, Can any one help me to create an approval query to check the BP payment terms and Document Payment terms are same or not? Normally we change our BP payment terms regularly as per the agreements between Customer and us. but when we copy any pr[More]

Bapi changing payment terms in purchase order

Category:DefaultRelease time:2015-10-11Views:130

hi to all abap gurus I want to change the Payment terms in Purchase order using bapi_po_change . can u pls give coding for this bapi with all required int tables declarations . points will berewarded for good ansersThere is a documentation available[More]

Payment terms for documents in DTW

Category:DefaultRelease time:2015-10-11Views:130

Hi, I am importing sales orders with the DTW, but would like to change the payment terms to something other than the BPs default payment terms. I can not see what field this would be. Can this be done? I am using SAP B1 2007A PL 46. Cheers, SteveHell[More]

Reporting: Table / Tcode for Payment Terms change history in posted documents

Category:DefaultRelease time:2015-10-11Views:130

Hi everyone, First of all, thanks in advance for your help on this one. Please let me know the Table name where we can see the previous Payment Terms and revised payment terms of documents in a specific company code. For example: if a document had pa[More]

BAPI_INCOMINGINVOICE_CREATE : Payment Terms not appearing

Category:DefaultRelease time:2015-10-11Views:130

Dear All, In the Bapi "BAPI_INCOMINGINVOICE_CREATE ", i am passing the HEADERDATA (invoice_ind, doc_type, doc_date, pstng_date, ref_doc_no, comp_code, diff_inv, currency, gross_amount, pmnttrms) and ITEMDATA (invoice_doc_item, po_number, po_item[More]

Payment terms problem in me21n

Category:DefaultRelease time:2015-10-11Views:130

Dear Sapgurus, In OBB8 Create Payment Terms as per your requirement. Create 4 Payment terms PT , PT1, PT2, PT3. For the 1st one PT you select Installment Payment CheckBox. For PT1, PT2 & PT3 give the no of days as per your requirement. Go to OBB9 and[More]

Mass Change of PO Payments terms

Category:DefaultRelease time:-0001-11-30Views:130

Hi frinds, there is need to change Payment terms for all the historical PO's for all the vendors with the current in vendor master record. When using copy PO function, current vendor payment terms not picked up, but copied reference PO. just think if[More]

Debit memo(DR doc type) baseline date exceding the payment term days

Category:DefaultRelease time:2015-10-11Views:130

Hi All For debit memo I am facing a issue where my baseline date for a customer is showing more then the days specified in his(customer's) payment terms. sales document category is DR and order is created for some customer xyz and payment terms of th[More]

How to get payment term of a sale order ?

Category:DefaultRelease time:2015-10-11Views:130

hi, in transaction VA02, How can we know the payment term a document ? it is stored in which table ? Thanks.Hi, In VA02 after entering the sales document number,you can find the payment terms in overview screen in Sales tab. Goto Header,under billing[More]

Invoice Reference Number "V" + Blank Payment Terms field

Category:DefaultRelease time:2015-10-11Views:130

Hi Experts Need your validation on one point. I have credit memos with invoice reference number field filled with "V" but payment terms in document is blank. Payment terms in Vendor Master Data is XXXX (Net due 30 days). But when I run the Payme[More]

Hot
Hi, I'm receiving the below error during workflow in progress.. Note: Due to heavy load, the latest workflow operation has been queued. It will attempt to resume at a later time. Anandhan.S Remember to 'mark or propose as answer' or 'vote as helpful' [More]
Hi, I am new to CRM 2007 UI.I have a table control view on my screen and records are filled in this table when an user enters a value in an input field and presses enter.My bsp page looks something like this. <[email protected] language="abap" %> < [More]
I'm trying to open multiple (different) pdf-files in 1 window. If this works I would like to scroll through the different files, without having my taskbar full with the different files. My version is the 8.0-version. Does it work with this version, o [More]
I'm using for a part of my code dynamic SQL with DBMS_SQL Package, this dynamic SQL code is located in a loop with say 1000 repeatations, if we trace the code we see that this sql statement is parsed 1000 times and this causes a serios performance is [More]
I just recently noticed that Safari seems to be taking a lot more processing power while browsing. When I click on a link, the fans start spinning faster, the little colored wheel cursor appears and I can see in Activity Monitor that the CPU usage fo [More]
Hi.. I have Installed Oracle application server 10g but I am not able to start and dploy the forms in the server.Please see this link for the proper order to [start and stop application server 10g|http://download.oracle.com/docs/cd/B14099_19/core.101 [More]
Hi every one, I've installed oracle 9iDS for forms development and integrate beans into it. whenever i start OC4J, it says that " Error starting HTTP-Server: Address in use: JVM_Bind Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized". what [More]
While I am waiting for Verizon to get their act together, I am re-evaluating my email, calendar, contact syncing.  This seems to be a major issue on the forums. I presently use gmail and want to use a different system as I am becoming more dissatisfi [More]
Hello gurus! I have a doubt. I enhance the 2LIS_12_VCITM datasource with a Z field that is filled with an exit with a date. I use a delta init. in BW with the posting date, now I added a cube that loads data from the 2LIS_12_VCITM datasource but I wa [More]
Hi dear, can any one tell me that how to make BDC for KKS1. because i have recorded the BDC and converted into the program logic than it is showing the first window but not showing the window with ALV and futher more. So what coding i have to apply. [More]