Sitemap

Amicuk Programming Answers

BAPI - Change Payment Terms - FI Document

2015-10-11   Views:17

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
Hello, I just used automatic update on my powerPC to upgrade to OSX 10.5.8. This update also installed Safari 4. I then installed Reader 9.1 (latest version). The reader install was clean, no previous versions on my machine. When I opened Reader for [More]
Dear all, I am new in MM and I am facing a problem at the time of goods receipt against subcontracting order. In our scenario we are create a subcontracting order for one finish material and in BOM we are giving some raw material. After that we are d [More]
I have a 5th gen itouch. And it's been working perfectly fine until this morning. The battery died last night so I plugged it in to charge and nothing happened. I simply thought I just broke my cable so I plugged it into several others that belonged [More]
I have downloaded an app on my phone. My husband tried to download the same app on his phone but he used the same apple id as me and it said the app was already installed on another phone and wont install even using a new apple id on his phone. HOw d [More]
Keep getting error 1336 system error 5 Cannot write to file C:\program files\itunes\mozilla pluging\npitunes.dll Verify you have access to file. At a loss as to the problem, I verified access, tried running as administrator, tried changing install fo [More]
On Feb. 1 I switched my broadband from Clear wireless to Comcast and my email client from Eudora to Mac Mail due to its allowing different port settings for my 2 personal email addresses which are forwarded and my business address which is not. I had [More]
PDF Optimizer Settings: Where Are They Saved? That is, the ones that you create and then Save. Also the default one which came along Acrobat Pro (i.e. Standard etc) ThanksThey are stored in the Acrobat User Preferences Area.  The same location is use [More]
Have a template page, http://www.satgraphics.com/templates/main_01.dwt in which I have an area labeled  "div#main_wrapper". When attempting to  make it an "editable" region, I received the following comment: "The selection already [More]
Is there a transaction in SAP to pull reports to check on below? 1.     Past Due PRs (past due date) 2.     ON HOLD PO (PO's which are still held) Thanks.Hi rakesh, 1. Past Due PRs (past due date) Past Due Prs. ? plz define 2. ON HOLD PO (PO's which [More]
Hi Experts, I got a requirement to integrate the webmethods system from my portal server..... If anybody have documents kindly circulate the same to [email protected] Higher points will be rewarded for the each useful inputs.... Thanks In Advance, Ja [More]