Sitemap

Amicuk Programming Answers

BAPI - Change Payment Terms - FI Document

2015-10-11   Views:12

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
I would like to plug a shared hard drive into my new airport extreme and still be able to plug in a shared printer as well. How am I supposed to do this with only one USB port. Do I use a USB hub??? Is it possible to connect a hard drive using one of [More]
Hi, I bought the Audigy 2 ZS Platinum to get professional Soundfont playback triggered by an external midi keyboard, Soundfont creation using Vienna, and ideally Cubasis with ASIO. I'm having major problems: When I try and play Soundfonts from either [More]
Hi All I have had issues backing up to Time Machine since upgrading to OS Mavericks and iMovie 10, the likely culprit is my large iMovie library.  I have deleted my previous iMovie events, so only have the 1 iMovie library file related to the current [More]
Some time back, perhaps a LONG time ago, I successfully used Disk Utility's "restore" function to "clone" my Mac OS X partition onto an external disk, before I upgraded the OS on my internal drive. This weekend I tried to do it again, [More]
Hi - Hope someone can help... I have a Powermac G4 that does not support an airport card. So I bought 2 Airport Express' last year and set up a WDS network to act as a bridge between my Cable modem which is on a different floor to my Mac. After some [More]
Hi all, Is it possible to start a screen sharing connection to another Mac upon booting up ? Like, a script that is added to the startup items ? Thanks !#1 Can you use the Terminal? #2 Here goes On my Desktop I made a file with Pico: #!/bin/bash open [More]
Howdy Forum, Beginners question here for Lightroom 4 on pc. I`m trying to set up a large custom size 16x24 which includes a white border with the view to saving this as a template. I don`t have a printer therefore would have to save this to disk etc. [More]
debugging fundamental conceptsHi, 1) /h can used for debugging transactions. 2).you can bebug by creating Breakpoints & watchpoints in your program. if there is a error you can check the error in st22 transaction. 3) using breakpoints. You can refer [More]
When attempting to do Lesson 17 section "Using the Web Service Introspection Wizard" I get the error message " Unable to load the WSDL. Specify another URI." in the Specify WSDL to Introspect window. I selected Drirectly from the clien [More]
What is the capacity of the Notes section? I have text files of the Old Testament in alphabet order and when I view from Ruth on down they are all empty. If I put 1_Ruth at the top of the list it has data in the file. Then the lower half of the Psalm [More]