F-04 (Vendor Clearing using BAPI-BAPI_ACC_DOCUMENT_POST)
Hello all,
i am using a BAPI - BAPI_ACC_DOCUMENT_POST for posting and clearing vendor payments but problem is that i m getting error that 'Account 3252995 in company code 5219 cannot be directly posted to', can anyone please help me?
Regards saurabh.
Hi Saurabh,
I´m looking for a BAPI to clear Accounts Payable open itens (as F-30, F-28 or FB05) and I saw in your previous message that it´s possible to do this using BAPI BAPI_ACC_DOCUMENT_POST, please, could you give a clue to sove this issue? Any additional information would be well accept.
Best Regards,
Ivan Spellmeier
Similar Messages
-
Can we use BAPI BAPI_ACC_DOCUMENT_POST to upload the vendor invoice?
Hi,
Can anybody tell me, can we use bapi BAPI_ACC_DOCUMENT_POST to upload the vender invoice?
If yes, then which parameters we have to pass, and if no, then which is the other BAPI which is used for
this purpose?
Regards,
MrunalHi Mrunal,
Yes you can use BAPI_ACC_DOCUMENT_POST to upload vendor invoices.
Parameters which are required to be passed are :
Import tab :
DOCUMENTHEADER: Mandatory fields for this specififed in documentation for this.
Table tab:
ACCOUNTGL: Enteries aganist GL account will be populated in this(check documentation for mandatory fields)
ACCOUNTPAYABLE: Enteries aganist vendors will be populated in this(check documentation for mandatory fields)
CURRENCYAMOUNT: in this currency amount aganist GL and vendor entries will specified.
ITEMNO_ACC field will act as identifier as to amount belongs to which GL or vendor enteries.
This much parameter are required to post vendor invoices.
Regards,
Brajvir -
Issue in posting a accounting document using BAPI BAPI_ACC_DOCUMENT_POST
Hi All,
I 'm able to post a document using BAPI ' BAPI_ACC_DOCUMENT_POST ' but the problem i face is the header text is not getting updated for the document that is getting posted. Even though i'm populating the header text in the parameters i'm passing to the BAPI.
Any pointers to this would be highly appreciated.
Regards,
ChaitanyaHi,
put a break in subroutine FORM fill_acchd
and execute the bapi.
Here you have:
CLEAR gs_acchd.
MOVE-CORRESPONDING gs_aw TO gs_acchd.
gs_acchd-usnam = gs_bapi_acchd-username.
gs_acchd-awsys = gs_bapi_acchd-obj_sys.
gs_acchd-bktxt = gs_bapi_acchd-header_txt."---->¡¡¡CHECK THIS!!!
gs_acchd-glvor = gs_bapi_acchd-bus_act.
gs_acchd-tcode = sy-tcode.
gs_acchd-acc_principle = gs_bapi_acchd-acc_principle.
Check if there is something wrong there.
Best regards -
How to use Bapi - 'BAPI_ACC_DOCUMENT_POST'
Hi Gurus,
I want to use Bapi - 'BAPI_ACC_DOCUMENT_POST'.
The below code gived message that - Document posted successfully: BKPFF 180000046710012010 DW1CLNT100
but the document number gererated is not getting stored in any of BKPF or BSEG tables.
The Bapi should work in the same way as FB01
Please check and let me know your valuable suggestions on why document number is not getting saved.
DATA: lwa_header TYPE bapiache09,
lt_ar TYPE TABLE OF bapiacar09,
lwa_ar TYPE bapiacar09,
lt_return TYPE TABLE OF bapiret2,
lwa_return TYPE bapiret2,
lt_curr TYPE TABLE OF bapiaccr09,
lwa_curr TYPE bapiaccr09.
*Start
DATA : it_accountgl TYPE STANDARD TABLE OF bapiacgl09 ,
lwa_accountgl TYPE bapiacgl09.
*End
CLEAR: lwa_header, lt_ar, lwa_ar, lt_return, lwa_return, lt_curr, lwa_curr.
lwa_header-bus_act = 'BKPF'.
lwa_header-username = 'GOWDA'.
lwa_header-comp_code = '1001'.
lwa_header-doc_date = '20091102'.
lwa_header-pstng_date = '20091102'.
lwa_header-trans_date = '20091102'.
lwa_header-fisc_year = '2010'.
lwa_header-fis_period = '06'.
lwa_header-doc_type = 'DR'.
lwa_accountgl-itemno_acc = '0000000001'.
lwa_accountgl-gl_account = '0020000000'.
lwa_accountgl-tax_code = 'V1'.
lwa_accountgl-item_text = 'BAPI Test G/L line item'.
APPEND lwa_accountgl TO it_accountgl.
*lwa_ar-itemno_acc = '0000000001'.
*lwa_ar-customer = '4000000006'.
*lwa_ar-gl_account = '0012110000'.
**lwa_ar-gl_account = '0020000000'.
*lwa_ar-profit_ctr = '0000000217'.
*APPEND lwa_ar TO lt_ar.
lwa_curr-itemno_acc = '0000000001'.
lwa_curr-curr_type = '00'.
lwa_curr-currency = 'USD'.
lwa_curr-amt_base = '100.00'.
APPEND lwa_curr TO lt_curr.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = lwa_header
TABLES
accountgl = it_accountgl
accountreceivable = lt_ar
currencyamount = lt_curr
return = lt_return.
COMMIT WORK.
DATA: bt_return LIKE bapiret2.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = bt_return.
LOOP AT lt_return INTO lwa_return.
WRITE: / lwa_return-message.
ENDLOOP.Hi Avi
check this code may you get some hint
DATA gd_documentheader LIKE bapiache09.
DATA l_type LIKE gd_documentheader-obj_type.
DATA l_key LIKE gd_documentheader-obj_key.
DATA l_sys LIKE gd_documentheader-obj_sys.
DATA it_accountgl LIKE TABLE OF bapiacgl09 WITH HEADER LINE.
DATA it_currencyamount LIKE TABLE OF bapiaccr09 WITH HEADER LINE.
DATA it_return LIKE TABLE OF bapiret2 WITH HEADER LINE.
DATA it_return1 LIKE TABLE OF bapiret2 WITH HEADER LINE.
gd_documentheader-username = sy-uname.
gd_documentheader-header_txt = 'BAPI Test'.
gd_documentheader-comp_code = 'RS01'.
gd_documentheader-fisc_year = '2008'.
*gd_documentheader-doc_date = '0'.
*gd_documentheader-pstng_date = sy-datum.
gd_documentheader-bus_act = 'RMRP'.
gd_documentheader-fis_period = '11'.
gd_documentheader-doc_type = 'DW'.
CLEAR it_accountgl.
it_accountgl-itemno_acc = 1.
it_accountgl-gl_account = '0011500000'.
it_accountgl-tax_code = 'V0'.
it_accountgl-item_text = 'BAPI Test G/L line item'.
it_accountgl-customer = 'AG0460'.
*it_accountgl-profit_ctr = '0000002002'.
it_accountgl-de_cre_ind = 'H'.
it_accountgl-comp_code = 'RS01'.
it_accountgl-doc_type = 'DR'.
*it_accountgl-fis_period = '06'.
*it_accountgl-fisc_year = '2009'.
it_accountgl-pstng_date = sy-datum.
APPEND it_accountgl.
CLEAR it_currencyamount.
it_currencyamount-itemno_acc = 1.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'INR'.
it_currencyamount-amt_base = '100'.
APPEND it_currencyamount.
CLEAR it_currencyamount.
it_currencyamount-itemno_acc = 2.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'INR'.
it_currencyamount-amt_base = '100'.
APPEND it_currencyamount.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = gd_documentheader
IMPORTING
obj_type = l_type
obj_key = l_key
obj_sys = l_sys
TABLES
accountgl = it_accountgl
currencyamount = it_currencyamount
return = it_return.
WAIT UP TO 10 SECONDS.
IF sy-subrc IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDIF.
Regards
Nilesh -
Change vendor address using bapi
Hi all,
How to change vendor address using bapi.
The address,and vendornumber coming from XL file.
Based on the vendor number I want to change the address.
Please give me the example.
regards,
rakesh.Hi Vijay,
Please help me in the following.
As Vendor/Customer Master dont have all the address fields ( like Street4-5), we use FM BAPI_ADDRESSORG_SAVEREPLICA to overcome this problem.
In my case i have created one Custom load program to upload address data using
BAPI_ADDRESSORG_SAVEREPLICA and then LSMW project to upload rest of the data.
In this case when i upload rest of the data by LSMW using BI standard program ( having NODATA indicator "/" in my source file for the fields already uploaded using BAPI above) , address data which uploaded through FM should get populate automatically (by concept of Central Address management) but in my case <b>for some of the Account Group it is not getting populated,</b> please suggest.
regards
Sonal -
Account document post using BAPI BAPI_ACC_DOCUMENT_POST
Hi,
I am using the BAPI BAPI_ACC_DOCUMENT_POST to post account doument. It is working fine.
Here I need to pass contrac number to item.
We have one parameter REALESTATE to pass cotract number.
Because it is a realestate, it taking contract type as 9 by default.
But I need to pass other contract number of diffrent type.
How we can pass the other than realestate contract number using BAPI BAPI_ACC_DOCUMENT_POST ?
Thanks in advance.
Sadasiva.I am already did the same thing, it is creating document but it is not adding the contract number to item.
I am also filling the parameter REALESTATE with contract number, it is adding properly and contract type is taking as 9(means realestate).
But I need to add other contract types also, for that I tried with other parameter what you mentioned.
Thank you for your reply.
Sadasiva.
Edited by: Sadasiva Rao Athota on Dec 9, 2008 2:38 PM -
Problem using BAPI BAPI_ACC_DOCUMENT_POST with vendor field XZEMP
Hi, I'm using the bapi BAPI_ACC_DOCUMENT_POST, when i fill the table ACCOUNTPAYABLE and execute it, if i use a vendor that doesn't have an 'X' in the field XZEMP (Indicator: Alternative payee in document allowed ?) of the table LFA1 the bapi returns an error.
I haven't found any place in the bapi tables to override this.
Is there something that should be parameterized so that this error doesn't happen?
Thanks!Hi,
Refer
https://wiki.sdn.sap.com/wiki/display/Snippets/VendorInvoicePostingusingBAPI
Re: BAPI_ACC_DOCUMENT_POST -
Creating Vendor Credit Memo Using BAPI BAPI_ACC_DOCUMENT_POST
Hi,
I want to create a vendor credit memo using the bapi BAPI_ACC_DOCUMENT_POST but with posting keys as 21 and 50.Is it possible to do so.I tested the bapi passing the data to the accountgl table.Do i have to pass data to another table ?hi Eric,
I even tried passing the data to the accounts receivable and accounts payable tables passing the GL account no in these tables.Still teh document get posted with keys 40 and 50.Also the credit entries should be assigned to COPA segment of sales order/item.
The vendor credit memo should look as follows look as follows:
Dr Vendor (PK = 21) $ 35,000
Cr Freight expense account (PK = 50) $ 10,000 .assigned to COPA segment of sales order/ item 20000397/10
Cr Freight expense account (PK = 50) $ 5,000 .assigned to COPA segment of sales order/ item 20000397/20
Cr Freight expense account (PK = 50) $ 20,000 .assigned to COPA segment of sales order/ item 20000398/10 -
Hi experts,
I am new to bapi concept I done vendor creation by using bdc and lsmw and now I want to create by using bapi can anyone send program code for creating so that I can go through it.
thanks in advance,
points will be rewarded,
Srinivas.Dhi
I gone to the bapi function module for bapi_vendor_create etc but the problem their is no input parameters or tables so I am little bit of confused if any body has the code plz send me.
Regards,
SrinivasD -
Hi all,
How to use Bapi_vendor_edit to edit the vendor details using XL file.
Please give me the example.
regards,
rakeshHi,
Withthis BAPI you can change the vendor detail in online...
BEcause this BAPI Uses
" SET PARAMETER ID 'LIF' FIELD vendorno.
CALL TRANSACTION 'XK02'."
Thanks... -
Vendor Confirmation using BAPI
Can anyone suggest me how to do vendor confirmation using BAPI
Hi Asha ,
ME22N is to change Purchase Order ? tell me what do u want to do ?
<b>for what one u have to Create a program by using BAPI's to creates POs for a Given Vendor .In SAP these is no such functionality to create MASS PO's at a Time.</b>
Regards
prabhu -
How to use Bapi BAPI_ACC_DOCUMENT_POST for g/l account document posting
Hi all,
I am using BAPI_ACC_DOCUMENT_POST bapi for g/l account documents posting.as I am first time using BAPI in my program.can anyone give details about how to use this BAPI for document postings.what importing parameters need to be passed , which exporting parameters need to be passed and which tables need to be used.
Thanks in advance.
Regards,
HarshadaModerator message - Please search before asking - post locked
Rob -
GL Posting using BAPI BAPI_ACC_DOCUMENT_POST but not updating in table BSEG
Hi Experts,
Hope all are doing greatu2026
I need you help to resolve the below issue.
We have on Z-Tcode to GL Posting the document using BAPI u2018BAPI_ACC_DOCUMENT_POST' and this program is successfully posted from the source file and documnet # also created successully.
We have entries in BKPF, but the table BSEG not updating and we do not have entries.
Please help me on this regards,
Thanks in Advance.
AmjadHi Srikant,
Thanks for your reply...
As you suggest, i have checked the structure ACCOUNTGL and below values are passing.
ACCOUNTGL -ITEMNO_ACC
ACCOUNTGL -GL_ACCOUNT
ACCOUNTGL- ITEM_TEXT
ACCOUNTGL- COMP_CODE
ACCOUNTGL- COSTCENTER
ACCOUNTGL- CS_TRANS_T
Could you please suggest me if there are any changes needs to do.
Thanks & Regards,
Amjad Hussain -
Vendor invoice creation using BAPI BAPI_ACC_DOCUMENT_POST
Hi,
I am trying to create vendor invoice(FB60) using BAPI_ACC_DOCUMENT_POST.
Could anyone please let me know what all mandatory fields we have to pass in vendor item and header to create this ?
Regards,
Anubhuti PandeyHi,
Please call the FM BAPI_ACC_DOCUMENT_POST and try with the following parameters:
Function module to post the accounting document
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
" EXPORTING
documentheader = w_documentheader
" TABLES
accountgl = i_accountgl
accountreceivable = i_accountreceivable
accountpayable = i_accountpayable
currencyamount = i_currencyamount
return = i_return
contractitem = i_contractitem.
The required fields in the header document:
w_documentheader-bus_act
w_documentheader-username = sy-uname. "Username
w_documentheader-header_txt
w_documentheader-comp_code
w_documentheader-doc_date
w_documentheader-pstng_date = sy-datum.
w_documentheader-trans_date " Transaction date value as per document date
w_documentheader-fisc_year = sy-datum(4).
w_documentheader-doc_type
Pass the necessary information in the account GL and accounts payable.
I hope this helps you in some way. -
Error getting while using BAPI "BAPI_ACC_DOCUMENT_POST" in the Web Dynpro
Hello Everyone,
I am trying to use BAPI_ACC_DOCUMENT_POST to post a docuemnt, for this I have created a web application and in that I have created one view. In the layout of the view I have developed three groups 1. document header 2.Currency 3. GL account. for user inputs and at the root node i have created a button and on the action f the button I am calling the BAPI but when i tested it I am getting the following error:
The following error text was processed in the system RS2 : Adapter error in INPUT_FIELD "GROUP_2_ITEMNO_ACC" of view "ZTEST_RAGI_INVOICE_POST.MAIN": Context binding of property VALUE cannot be resolved: Node MAIN.1.CURRENCYAMOUNT does not contain any elements .
Can you please help me in this.
Thanks,
Rajathelll rajat ,
The following error text was processed in the system RS2 : Adapter error in INPUT_FIELD "GROUP_2_ITEMNO_ACC" of view "ZTEST_RAGI_INVOICE_POST.MAIN": Context binding of property VALUE cannot be resolved: Node MAIN.1.CURRENCYAMOUNT does not contain any elements .
---> pass amount to that currency table.
regards
Prabhu
Maybe you are looking for
-
Envy 7640 only prints in black and white
New ENVY 7640 all-in-one is only printing in black and white. Test page prints in full color. When clicking on a file to print, the image turns to black and white even before printing. Have removed Airprint. Thanks for any help! This question was so
-
Script for copying files to drop boxes of other Macs
I don't know much about scripts as yet, but for daily backup purposes I would like to copy all new or modified files from various folders to the drop boxes of two other Macs (like the old DOS command XCopy) and then reset the "modified attributes" (i
-
Why does my lists look different in Firefox
Please take a look at the following pages in both browsers. pay attention to the right column and see the lists. In firefox they are ok but explorer does not show the same thing. any suggestions? http://greenpwwhh.com/wisdom.html http://www.greenpw
-
Can't resize partition in Disk Utility (OS X 10.6.7)
For some reason resizing a partition fails with the error, "Partition Failed. Failed with error: Could not Modify partition map because filesystem verification failed." Any ideas? I was squeezing down an existing partition to make room for another an
-
Can someone post what's GOOD about new interface
since I can't really use the TV any more (without sitting two feet from it wearing 2.0x reading glasses in a dark room), i have no idea what time IMPROVEMENTS are in the new guide. i get the whole dvr-sharing thing, and that does seem valuable, but I