Sitemap

Amicuk Programming Answers

BAPI - Change Payment Terms - FI Document

2015-10-11   Views:2

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 want to schedule a view(creating view) that runs everyday at 8'o clock in morning. how can i do this in oracle. Thanks in advanceHi Sorry for last reply....!! Try like this....!! create a procedure like this... create or replace procedure dummy [More]
Hi All, For plant to plant stock transfer made with movement type 641- the receiving plant and  supplying plant fields are not getting populated in the debit and credit line items respectively in  the accounting document. In FI the same G/L Account i [More]
I've been down this road before but don't remember the answer. Can't get video NTSC Firewire 720x480 output. My firewire output is connected to Canopus converter > video monitor. When I select View > Video Out > NTSC I get a "general error.& [More]
Mentioned problem suddenly appeared after Firefox to 7.0 version upgrade. This constant checking is rather irritating!Hi konee, You should look at [https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox this art [More]
I've bought an iPad3. I also have a Mac running Snow Leopard, and a mobile me account. I have indicated I wish to continue with my mac.com address after mobile me shuts down. I want to register the iPad  with iCloud even though I know I can't sync it [More]
I can't select my selection & direct selection tools from my tool bar. The shortcuts are working but even when an object is selected I can't edit the color of the object. When the mouse hoover the selection tool icon it does not highlight like the re [More]
Hi All, I need to create a hierarchial query with following expected output Expected output E1                                       E2                                       E3 Anuj Sharma Anuj Sharma                              Ram Krishna Mishra A [More]
I get complete freezes of the system every now and then (it's not common at all, maybe once every couple weeks), and I have to do a hard restart with the power button. However, the odd part is that I can't ever find anything in the logs to suggest th [More]
my Question is , How Many object Has been created i of String in given below , i am confused so please reply the Explanation String S= "abc"; String S1= new String ("abc"); String S2= "abc"; String S3= S1;You need to understa [More]
Dear anyone, I've been lost my bb devices a few days ago, and now im having a new bb devices. The problem is, i've been registered my BBID (in my lost devices) using the service provider email account ([email protected]), and now i can't login becaus [More]