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
Similar Messages
-
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 -
Error in Accounting document Posting using - BDC
While creatind document in FB01 using BDC
PERFORM fill_dynpro_fields1 USING:
co_true co_program '0100' lit_bdcdata,
space 'BKPF-BLDAT' it_bkpf-bldat lit_bdcdata,
space 'BKPF-BUDAT' it_bkpf-budat lit_bdcdata,
space 'BKPF-BLART' tp_type1 lit_bdcdata,
space 'BKPF-BUKRS' it_bkpf-bukrs lit_bdcdata,
space 'BKPF-WAERS' it_bkpf-waers lit_bdcdata,
space 'BKPF-XBLNR' it_bkpf-xblnr lit_bdcdata,
space 'RF05A-NEWBS' lco_postkey lit_bdcdata,
space 'RF05A-NEWKO' it_bseg-kunnr lit_bdcdata,
space 'BDC_OKCODE' co_intro lit_bdcdata,
co_true co_program '0301' lit_bdcdata,
space 'BSEG-WRBTR' it_bseg-wrbtr lit_bdcdata,
space 'BSEG-ZTERM' it_bseg-zterm lit_bdcdata,
space 'BSEG-SGTXT' it_bseg-sgtxt lit_bdcdata,
space 'RF05A-NEWBS' lco_postkey1 lit_bdcdata,
space 'RF05A-NEWKO' it_bseg-kunnr lit_bdcdata,
space 'BDC_OKCODE' co_intro lit_bdcdata,
co_true co_program '0301' lit_bdcdata,
space 'BSEG-WRBTR' it_bseg-wrbtr lit_bdcdata,
space 'BSEG-ZTERM' it_bseg-zterm lit_bdcdata,
space 'BSEG-SGTXT' it_bseg-sgtxt lit_bdcdata,
space 'BDC_OKCODE' co_intro lit_bdcdata.
I am getting message like bseg-wrbtr input value is longer than screen field. but i have declare it as same type as above space 'BSEG-WRBTR' it_bseg-wrbtr lit_bdcdata,
Can you help me.
Always use proper subject lineHi Vijay ,
I have one more problem regarding same please help me.
In the program i am calling the transaction FB01 twice and two different document is created of SA and DA type.
After the program is executed i can only see the DA document created log message. But the SA document(message) is getting suppressed but the document is getting created .
How can i get the both document no at a time once i run the program. -
How to create an Accounting Document by calling BAPI
Hai friends ,
please tell me how to call this BAPI and fulfill all the parameters .. Please help me , I dont know the head and tail of it ...
create an Accounting Document by calling BAPI BAPI_ACC_DOCUMENT_POST
Below is the step to fill the parameters for BAPI:
Enter company code, invoice no, invoice date, document type, header text into DOCUMENTHEADER
Enter customer, item text, company code, payment term into ACCOUNTRECEIVABLE
Enter offset account, company code, document type, item text into ACCOUNTGL
Enter currency type u201800u2019, currency, exchange rate, amount into CURRENCYAMOUNT. Please note there will be two rows in this table, one positive amount and one negative amount
Call the BAPI to create the AR document. If p_check is checked, call the BAPI only without COMMIT and then do the message processing
If p_check is initial, COMMIT the data to the database tables.
Check the RETURN table after each BAPI, if no u2018Eu2019 message type found, output the document no. Otherwise, output the error messge to the screen with the message type u2018Eu2019.
thanks in advance ...Hi,
Check the link
http://www.sapbrainsonline.com/sapinfo/tutorial.php?artid=617
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi_acc_document_post-error-1973720
http://delaynomore.spaces.live.com/blog/cns!D2BFFB84EDFE4189!528.entry
http://sap4.com/wiki/index.php?title=BAPI_ACC_DOCUMENT_POST
http://www.sapfans.com
Anurodh -
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 -
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 -
BAPI for Accounting Document Posting
What is the name of BAPI for Accounting Document Posting and how can I run it?
Hi ,
Can you send me the code how to use the BAPI_ACC_DOCUMENT_POST.
Regards,
L Srikanthan. -
Accounting Document Post with Ledger Group
Hi,
I am trying you post accounting document using 'BAPI_ACC_DOCUMENT_POST', But my requirement is to post the acc documents with 'Ledger Group', I couldn't find any parameter in the above mentioned BAPI. If anyone come accross same requirement please share your knowledge and suggest me how to proceed with this.
Before posting this thread I searched for the threads with same category, but i couldn't find sufficient information.
Regards,
NarayanHi Navitha,
I am doing migration as It's a one time activity, If I implement BADI it will be triggered whenever accounting document posting happens, Is there any other way to pass Ledger group like other BAPI / FM etc ?
Regards,
Narayan
Edited by: narayanasamy rajagopal on Sep 30, 2009 11:08 AM -
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 -
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 -
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 -
Text in accounting document posted against Excise invoice
Hi,
We have a requirement that the accounting document posted against excise invoice ( J1IEX) should display a text ( Vendor name and PO No.).
We have tried entering the text at the time of capture and posting the excise invoice.But this does not reflect in the accounting document text field.
However we can maintain the same afterwards from transaction FAGLL03.
Is there any option that we can maintain the same at the time of capturing and posting the excise invoice.
Also,if I think of defaulting the same ( Vendor name and Po no) is ther any user exit OR BAPI.
Rajeshhi
yes is their in this go to spro->img->Logistics - General->Tax on Goods Movements->India->Basic Settings->Maintain Excise Groups
in this for your excise group in *migo settings please put the tick mark in post ei in migo the at the time of migo only the excise invoice will be posted. no need of doing the ji1ex here.
Thanking you -
How can i post to FI using BAPI 'BAPI_ACC_DOCUMENT_POST' where cross company code is involved.
Its working fine when only one company code is present.I am able to post a cross-company code by putting the separate company codes in each lline - however I am having a problem that it is using the number range of the second line item for both company codes - any ideas on how to resolve this?
-
Is it possible to reverse a planning document posted using KP98?
Is it possible to reverse a planning document posted using KP98?
The planning data in plan 0 has been overwritten with actuals for P1-12 in error does anyone know how to reverse this posting?
Thanks for any help!hi,
I have tried this and worked with my system.
Try to execute KP98 transaction with reference actual period which has no posting(future period-01/2011) and in "reser/overwite" mode.
Initially try with single cost center/cost element value.
This will fix your issue.
regards,
ashok
Edited by: AshokFICO on Feb 5, 2010 12:48 PM
there is no direct t-code to reverse posted plan data exclusively for cost centers.SAP has this function to delete all plan data in integrated module so go with above response. -
Accounting: Document Posting BAPI's
Guru's,
I'm using the following BAPI to post Vendor and Customer Document Posting.
BAPI_ACC_DOCUMENt_POST.
But the problem is, we are not able to pass the Posting Key in this BAPI.we tried many scenarios, but we are failed in all the ways.
Could you guys give me if there is any other BAPI which do the same operation as BAPI_ACC_DOCUMENT_POST.
Please advice me on this, i want to use only BAPI's to do this.
Thanks in advance.
Regards,
Adi.Hi,
see this:
Re: BAPI FUNCTION MODULE BAPI_ACC_DOCUMENT_POST : How to give posting keys
regards
Arjun
Maybe you are looking for
-
I have a just bought a bluetooth keyboard for my iPad 4 and it works fine. It connects with bluetooth and when I type the characters appear fine but the on screen keyboard will not go away. How do I get it to disappear while I am using my bluetooth k
-
After installing non mac store application i get error
hello there i have installed non apple application after i did i get this error ever min i uninstalled this application but i still get this error i want to know if there is a way i fix it with any way like terminal command i write could fix it here
-
Installing 2 SSD's to 27" iMac 2011
Hello everybody, I've been for looking to upgrade my iMac by adding an SSD and i finally got comfortable enough with the idea of doing it so i went ahead and purchased a 256GB Samsung 840 pro to run OS X (mountain lion), now last minute i ended up pu
-
<u><b>Below is the query template for YTD report:</b></u> <b>Filter Characteristic Restrictions</b> None <b> Filter - Default values</b> Posting Period Controlling Area Cost Center Fiscal Year <b> Rows/Columns Free Chars</b> Fiscal Year Posting P
-
Required help for badi for GL tab in MIRO transaction
Hi, I am working in MIRO transaction. I am having a requirement as below: While creating invoices, In the gl tab when we enter gl account number system should populate Tax jurisdiction code by default. I am using BADI EXTENSION_US_TAXES method MM_ITE