Sitemap

Amicuk Programming Answers

BAPI - Change Payment Terms - FI Document

2015-10-11   Views:13

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 am trying to launch Dreamweaver CC and keep getting application error.Please follow the steps mentioned in document : http://helpx.adobe.com/lightroom/kb/error-unable-start-correctly-0xc00007b.htmlRead other 2 answers [More]
I reset the new 3gs and restored the lastest backup from my 3g iphone but after it finished. Itunes doesn't allow me to sync. I can see the device but if I right click on it, the only option it gives is to eject the new phone. Do you know what to do? [More]
did anybody try to upgrade a WebDB version 2.1.0.9.3 to Portal 3.0? The upgrade script for WebDB2.2 to Portal30 fails due to the version number. I do not know the differences between WebDB 2.1.x and 2.2. If the changes have not been too significant, [More]
Hello, i try to Upgrade from oracle 9.2.0.7 to Oracle 10.2.0.1. But the Linking to not work. The Paket: bos-adm-libm is installt. The Oracle Installer say - all OK, no errors. The Script: rootpre.sh i run as user: root, befor i strart runInstaller He [More]
Hello All, I have an issue with populating my dropdown list through xml. Here's what I have done: 1) Wrote a .xsd file 2) Wrote a .xml file 2) Set up the Xml Data Connection to target my xsd, embed the Xsd 3) Went to "Form Properties > Preview > [More]
I have a variable defined by a native xsd. Is it possible to write out the text from the native xsd variable to a string instead of a file?? Thanks, Sean.anyone??Read other 2 answers [More]
if my iphone 5  have problems , apple  is going to change this iphone for a new iphone 5 or 5c 5s?but if i pay something more thay can change this iiphone 5 for a 5s? No, not for a warranty or out of warranty replacement.  Any iOS device will be repl [More]
Dear Adobe, Could you please consider doing one of the following: 1. Make a CC version of Encore or 2. Release an update that will make Pr CC sequences compatible with Encore CS6 ... I really miss being able to drag Premiere Pro sequences directly in [More]
I'm looking for an extension, but if there isn't one that does what I need, then prehaps somebody would have an alternate method to accomplish what I need... I create Sprite Based animations.  I have an animation I'm working on that has 5 characters [More]
when i try to update any purchased application, it tells me that it cannot connect to the itunes store, but if i try to download a free app, it lets me. the only thing i can think of, is that i am using a different credit card to purchase things now, [More]