Bapi for GL/AR/AP posting
Hi all,
Is there any one bapi or F.M for GL,AR and AP posting.
thanx in advance.
rekha
BAPI_ACC_DOCUMENT_POST - Can be used to post GL/AP/AR. Take a look at the BAPI, you can see structures for all 3 postings.
BAPI_ACC_INVOICE_RECEIPT_POST - Capable of posting AP only.
Similar Messages
-
BAPI for Non PO Invoice posting?
Hi Experts,
I am posting invoices using BAPI_INCOMINGINVOICE_CREATE. These invoices have POs associated with the Item Details. This is working fine for me.
I want to post invoices that DO NOT have a PO. Can someone please point me to a BAPI that is similar to BAPI_INCOMINGINVOICE_CREATE in functionality but does not require a PO?
Thanks,
- Vik.I too was looking for a BAPI for non PO invoice posting. I found that the above counsel did not work for me. Instead of creating a buyside invoice, it just created a journal entry. What DID work for me was BAPI_ACC_INVOICE_RECEIPT_POST.
Below, I am pasteing the subroutines that I created for its calling. In it, for my purposes, only the invoice amount is parameter driven. My needs allowed all other BAPI parameters to stay the same.
I hope that this helps someone.
Donald Nigro
FORM create_buyside_invoice USING value(invoice_amt) TYPE p.
DATA:
gd_documentheader LIKE bapiache03,
it_accountpayable LIKE bapiacap03 OCCURS 0 WITH HEADER LINE,
it_accountgl LIKE bapiacgl03 OCCURS 0 WITH HEADER LINE,
it_accounttax LIKE bapiactx01 OCCURS 0 WITH HEADER LINE,
it_currencyamount LIKE bapiaccr01 OCCURS 0 WITH HEADER LINE,
it_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA:
wa_obj_key(20) TYPE c.
fill header
gd_documentheader-username = sy-uname.
gd_documentheader-header_txt = 'E-Payables Invoice'.
gd_documentheader-comp_code = 'EAUS'.
gd_documentheader-doc_date = sy-datum.
gd_documentheader-pstng_date = sy-datum.
gd_documentheader-doc_type = 'KR'.
CONCATENATE 'BOA' sy-datum sy-uzeit(4)
INTO gd_documentheader-ref_doc_no.
fill AP (line 1)
it_accountpayable-itemno_acc = 1.
IF sy-sysid(3) = 'DEV'.
it_accountpayable-vendor_no = '0600013370'.
ELSE.
it_accountpayable-vendor_no = '0600009022'.
ENDIF.
APPEND it_accountpayable.
fill GL (line 2)
it_accountgl-itemno_acc = 2.
it_accountgl-gl_account = '0001112227'.
it_accountgl-comp_code = 'EAUS'.
it_accountgl-pstng_date = sy-datum.
it_accountgl-fisc_year = sy-datum(4).
it_accountgl-fis_period = sy-datum+4(2).
it_accountgl-bus_area = '0100'.
APPEND it_accountgl.
fill currency ammounts for lines 1 & 2
it_currencyamount-currency = 'USD'.
it_currencyamount-itemno_acc = 1.
it_currencyamount-amt_doccur = invoice_amt * -100.
APPEND it_currencyamount.
it_currencyamount-itemno_acc = 2.
it_currencyamount-amt_doccur = invoice_amt * 100..
APPEND it_currencyamount.
CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_CHECK'
EXPORTING
documentheader = gd_documentheader
TABLES
accountpayable = it_accountpayable
accountgl = it_accountgl
accounttax = it_accounttax
currencyamount = it_currencyamount
return = it_return.
PERFORM invoice_error_check TABLES it_return.
CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
EXPORTING
documentheader = gd_documentheader
IMPORTING
obj_key = wa_obj_key
TABLES
accountpayable = it_accountpayable
accountgl = it_accountgl
accounttax = it_accounttax
currencyamount = it_currencyamount
return = it_return.
PERFORM invoice_error_check TABLES it_return.
COMMIT WORK.
WRITE: / 'ePayables Bank of America'.
WRITE: / ' Invoice Document Number:',
wa_obj_key(10).
ENDFORM.
Form invoice_error_check
FORM invoice_error_check TABLES it_return STRUCTURE bapiret2.
DATA:
bapi_success(5) TYPE c VALUE 'false'.
LOOP AT it_return.
IF it_return-type = 'S' AND bapi_success = 'false'.
bapi_success = 'true'.
ENDIF.
ENDLOOP.
IF bapi_success = 'false'.
WRITE: / 'Unable to post a buyside invoice with',
'BAPI_ACC_INVOICE_RECEIPT_POST'.
LOOP AT it_return.
WRITE: / 'Message Type: ', it_return-type,
/ 'Message Class: ', it_return-id,
/ 'Message Number: ', it_return-number,
/ 'Message: ', (80) it_return-message.
ENDLOOP.
ROLLBACK WORK.
STOP.
ENDIF.
ENDFORM. -
BAPI for vendor credit memo posting by FB65
Hi guys,
I need a BAPI to post vendor credit note by FB65.
I am trying BAPI_ACC_DOCUMENT_POST, but I cannot find the fields to fill with the information we input at FB65 Payment tab, such as: Inv. Ref (document, year and item ).
Could anybody help me?
Cheers,
Karla.HI ,
Please Find below the relevant code to Fill the Fields while calling the BAPI for FB65
step1.
First of all fill the wa_bapiheader.
*header data
wa_bapiheader-username = sy-uname.
wa_bapiheader-comp_code = wa_final-bukrs.
wa_bapiheader-doc_date = sy-datum.
wa_bapiheader-pstng_date = sy-datum.
wa_bapiheader-doc_type = c_blart.
wa_bapiheader-ref_doc_no = 'GROWPAY'. "Can be the refrence text
w_waers = wa_final-waers.
Step2.
Fill this internal table. i_currencyamount and i_accountgl.
i_final will be the Internal table conating all the Relevant data for Posting the Document.
Loop at i_final into wa_final.
ADD 1 TO w_acc_lno.
wa_accountgl-itemno_acc = w_acc_lno.
wa_accountgl-gl_account = wa_final-saknr. "G/L Account
wa_accountgl-plant = wa_final-werks. " Plant
wa_accountgl-costcenter = wa_final-kostl. " Cost Center
wa_accountgl-cond_type = wa_final-knumv. "From EKKO for the Purchase Order
wa_accountgl-po_number = wa_final-ebeln. " Purchase Order no
wa_accountgl-po_item = wa_final-ebelp. " Line item in PO
APPEND wa_accountgl TO i_accountgl.
CLEAR : wa_accountgl.
wa_currencyamount-itemno_acc = w_acc_lno.
wa_currencyamount-currency = wa_final-waers.
wa_currencyamount-amt_doccur = wa_final-kbetr.
w_sum = w_sum + wa_final-kbetr.
APPEND wa_currencyamount TO i_currencyamount. " G/L line item
CLEAR : wa_currencyamount.
*item data
wa_accountpayable-itemno_acc = 1.
wa_accountpayable-vendor_no = wa_final-lifnr.
APPEND wa_accountpayable TO i_accountpayable.
*Amount for the vendor line item.
CLEAR : wa_currencyamount.
wa_currencyamount-itemno_acc = 1.
wa_currencyamount-currency = w_waers.
wa_currencyamount-amt_doccur = 0 - w_sum.
INSERT wa_currencyamount INTO i_currencyamount INDEX 1.
Step 3.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = wa_bapiheader
TABLES
accountgl = i_accountgl
currencyamount = i_currencyamount
accountpayable = i_accountpayable
return = i_result_out.
i_result_out will conatin the messages returned by the BAPI.
based on i_resuklt_out that is if the posting is Successful....call commit
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Wait = X.
Endloop.
I hope the above code may solve your problem....Thanks
Regards ,
Sonu Krishna.
Edited by: Sonu Krishna PV on Aug 6, 2009 11:03 AM -
Create a BAPI for T-Code FBV0(Post Parking Document)
Hello Experts,
I need to create a BAPI for the T-code FBV0(Post Parking Document). Please help me with a sample code.
Thanks,
SumaHello There.
I would like to suggest my opinion,
To know the Function module for a particular Transaction,
1. Table TSTC gives the Program name for a particular transaction.
There are includes which contain (say) "Global data" and "Function modules".
2. To get BAPI function modules, Transaction BAPI is the most powerfull solution for any module.
One more thing, to be kept in mind while creating a BAPI is to create a function module and make it RFC enabled.
BAPIs are nothing but RFC enabled function modules.
Hope that's usefull.
Good Luck & Regards.
Harsh Dave -
Bapi for f-28 while posting with Pmnt advice no
Hi friends,
Is it possible to upload data using bapi BAPI_ACC_DOCUMENT_POST with payment advice number,
or is any other bapi exits for it or i hav to use bdc for it.
Binoy RHello max,
thanks for your valuable response.
But as this BAPI can not be used what next can be done?
Actually i want to create interface between SAP system and Non-SAP system which is using IBIS software.
Interface is to be done in such way that IBIS report output should get posted directly in SAP system via F-28 on daily basis.
Report of IBIS contains payments made by customers in a day.
So definitely there are some open items in SAP that need to clear after posting for particular customer.
Shall I go for 'Z' BAPI ? or is there any other technique for interface between two?
Please suggest.
Thank You. -
Bapi for Picking, Packing and Post goods issue (WS_DELIVERY_UPDATE)
Hi,
I have a requirement to update the outbound delivery. In that, I need to update the picking, Packing details and have to complete the PGI for the particular delivery. I got the suitable function module for the same is : WS_DELIVERY_UPDATE.
Can anyone tell me what parameters should I need to pass to perform my above requirements.
Thanks in advance.
Regards
Ramesh mavilla.I can Update picking and PGI using the above BAPI. But I am unable to create the Handling Units properly with the above mentioned BAPI befor PGI. Can any one help me ASAP.
Thanks
Ramesh mavilla. -
BAPI for MIGO Transfer Order Posting and STO
Hi
I am trying to post a transfer order thru MIGO using BAPI_GOODSMVT_CREATE. But could not able to identify the following fields :
1) Material Slip or Material Document number
2) Final Plant and storage location
3) Destination plant and storage location
4) Movement Type
Also I am trying to create a STO using BAPI_PO_CREATE1 but could not able to identify "Your Reference and Our Reference fields.
Please share your thoughts.Hi Bakshi ,
see the sample code to pass the material plant storage location nad Movement type..
t_goodsmvt_item-material = t_zciotr-matnr. "Materail
t_goodsmvt_item-plant = w_werks. "Plant
t_goodsmvt_item-stge_loc = w_lgort. "Storage Location
t_goodsmvt_item-move_type = w_bwart. "movement type
t_goodsmvt_item-entry_qnt = t_zciotr-wmeng.
t_goodsmvt_item-orderid = t_zciotr-aufnr.
t_goodsmvt_item-mvt_ind = 'F'.
APPEND t_goodsmvt_item.
t_goodsmvt_slno-matdoc_itm = 1.
t_goodsmvt_slno-serialno = t_zciotr-serialno.
APPEND t_goodsmvt_slno.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = t_goodsmvt_header
goodsmvt_code = t_goodsmvt_code
IMPORTING
goodsmvt_headret = w_docret
materialdocument = w_docno
TABLES
goodsmvt_item = t_goodsmvt_item
goodsmvt_serialnumber = t_goodsmvt_slno
return = t_goodsmvt_ret.
Regards,
Prabhudas -
BAPI for Picking and Post Goods Issue ?
Hi All,
Is there any BAPI for doing Picking and Post Goods Issue in VL02N ? I don't think we can use BAPI_OUTB_DELIVERY_CHANGE.
Is it advisable to use BAPI or BDC ( if no BAPI exist ). Thanks in Advance.BAPI for picking in VL02N
BAPI_OUTB_DELIVERY_SAVEREPLICA
BAPI for posting Goods Issue
BAPI_OUTB_DELIVERY_CONFIRM_DEC
For reference: http://help.sap.com/printdocu/core/Print46c/EN/data/pdf/LEIDW/LEIDW.pdf -
BAPI for TOCE : FF68 - Posting Incoming Payments from Customers
Hi,
Can anybody provide me if there is any BAPI for the transaction FF68 : Posting Incoming Payments from Customers?
Cheers,
Yash KHi,
OBZT just controls the display of the various tax codes in the drop down list if MIRO/ FB60 etc.
You need to maintain the atx coe correctly in FBZP. Go to FBZP and in this tax code and check whether the tax rates etc. have been defined correctly for it.
Regards,
SDNer -
BAPI for Reversal of Goods Receipt Purchase Order(Transaction : MIGO)
Hi all,
Is there any BAPI for the Reversal of posting the documents Goods receipt Purchase order
(Transaction: MIGO).
Any inputs on this..is highly appreciable...
thanks in advance...
regards..
prathima.Hi,
Try this passing material doc and year.
* Cancel the goods movement (creates a reversal document)
CALL FUNCTION 'BAPI_GOODSMVT_CANCEL'
EXPORTING
materialdocument = g_material_doc
matdocumentyear = g_matdoc_year
TABLES
return = i_return.
Edited by: Raj on May 14, 2008 7:46 PM -
BAPI for MIRO Incoming Invoice
Hi All,
I want BAPI for MIRO Posting ie for Incoming Invoice.
.here MIRO is being done with Delivery Note number
Following are the necessary entries for MIRO Posting
Invoice date
Reference
Amount
Calculate Tax
Tax amount
Delivery Note
Vednor
Business Area
Please suggest me suitable BAPI for MIRO Incoming Invoice Posting with sample code.
immediately.Please give some sample code for my reference.
Rewards will be given.
Regards.
UlhasHi,
BAPI for Invoice Verification: Post Invoice
BAPI_INCOMINGINVOICE_CREATE
The method can only carry out your function if no error messages were
generated in the Return table. This is the case if the header data and
all the items were processed successfully.
Transaction control is not implemented. The calling program therefore
has to execute the Commit Work itself after this method has been
successfully called (in other words, if no errors were reported in the
Return parameter). -
Function modules or BAPI for posting plan costs for WBS Element
Hi all,
Does anyone know, whether there exists a function module or BAPI for posting plan costs to a WBS Element? K_COSTS_PLAN_PS does not work, because RKP1 is not allowed.
Greetingscheck
BAPI_COSTACTPLN_POSTACTINPUT Activity Input Planning: Posting
BAPI_COSTACTPLN_POSTACTOUTPUT Activity/Price Planning: Posting
BAPI_COSTACTPLN_POSTKEYFIGURE Stat. Key Figure Planning: Postings
BAPI_COSTACTPLN_POSTPRIMCOST Primary Cost Planning: Postings
BAPI_PDTRANSCO_POSTPRIMCOST Transfer of Planning Data: Post Primary Costs
K40C CO Actual Postings, Manual
BAPI_ACC_PRIMARY_COSTS_POST Accounting: Post Primary Costs
BAPI_COPAACTUALS_POSTCOSTDATA BAPI Operating Concern: Post Costing-Based Actua
BAPI_PRIM_COST_CHECK_AND_POST Primary Costs: Formal Parameter Check
S@meer -
Bapi for posting IR line item at a time
Hi....
Do we have a bapi for posting invoive receipt line item wise instead of posting the PO at a time......this wud be more precise for my requirement.....presently i'm using bapi_acc_document_post but this wud clear the document with single document number.....but i want it to be posted line item wise to see the amount individually item wise instead of combined one....similar to what we have in the IR which shows amount of individual items........This is an old bug that keeps popping up:
https://forums.lenovo.com/t5/T400-T500-and-newer-T-series/Vertical-scrolling-got-reset-everytime-I-use-Ultra-Nav-to-scroll/td-p/343477 -
BAPI for Create PO from Sales Order Data and POST GR from PO created
Dear,
Can u help me how to create BAPI for Purchase Order creation from sales order Data
what the bapi to Post GR from the PO created.
Regards,
ManojHello Manoj what you have to do to create PO from PR is that
1) Use BAPISDORDER_GETDETAILEDLIST (pass sales order number in sales_document table) and then get PR (Purchase requisition number from this BAPI.
2) Use BAPI_REQUISITION_GETDETAIL to get PR items
3) Use BAPI_PO_CREATE1 to craete PO from PR then.
to create goods movement you can use
BAPI_GOODSMVT_CREATE
REWARDS IF USEFUL. -
Bapi for posting Outbound Delivery
Hi,
Can anyone please let me know about bapi for posting goods issue of outbound delivery.I have checked bapi like
BAPI_OUTB_DELIVERY_CONFIRM_DEC
If i use the with this bapi i can't cancellation the outbound with vl09.
thanks,hi,
i try to doing posting goods issue for outbound delivery out fo the regular progression.
the posting is automaticly as part of outside program.
thanks alot,
Maybe you are looking for
-
Aside from my issues with my 4S not playing videos - I can't seem to record Voice memos either. I hit the red record button, it beeps for like a second then stops. Siri works fine, I've no issues with making calls so it's not a mic problem - help m
-
Native resolution of MacBook White (2008) to hook up a monitor
I have a 2008 early Macbook white. I want to hook up a monitor with it. I am looking for something from 25-28 inches. I see that with a 26 inch 1920X1080, there is some fuzziness and it is not as crisp as it looks on the macbook screen. The icons are
-
The backslash problem when using file new file
how would i change c:// to c:\ because normally in windows you would use c:\ but since when you use "\" backslash in a string it would come up with a syntax error im trying to input using a jtextfeild c:\ and i want the output to be changed to c:// h
-
Unable to check for software updates
The software updater on my mac doesnt seem to be working. I click on the apple icon, then software updater. i then get the error message The file "index-leopard-seed-1.sucatalog" couldn't be found on the server "swscan.apple.com"." any ideas? i've be
-
Help!! Circular Redirect error when submitting to iTunes
Howdo folks I'm really hoping someone can help me here, because I've totally run out of ideas trying to figure this out. I'm trying to submit my new podcast to iTunes, but when I type in the Feed URL (http://www.mifidpodcast.com/rss/feed.rss), I get