Bapi 'bapi_acc_document_post'.
hi all,
i'm creating credit memo request thru bapi 'bapi_acc_document_post'.
i'm getting success message for creation of cmr(it is also updating the table bkpf) but
i'm not able to get the document number for created document.
can ne 1 suggest me how to get document number thru bapi in this case.
thanx in advance
Manish
Hi,
Please try with this:
Declare a variable like this:
V_OBJ_KEY type AWKEY.
Pass this to OBJ_KEY.
AWKEY (OBJ_KEY) Reference key
Source document number
The reference key is made up of:
u2022 AWREF Reference document number (10 digits)
Source document number
u2022 AWORG Reference organizational unit (10 digits)
Number range ID (if required)
When the document is being processed, the system checks whether a reference document number (first part of the reference key) has been transferred.
If an accounting document is posted via the interface in Accounting, the sending application transfers a unique reference. It consists of object key and object type. The object key consists of a reference document number and a reference organizational unit.
Example: 1000007899 00011996
Reference Reference organizational unit
document no. client and fiscal year
The object type contains a note on storing the original document.
u2022 AWTYP (OBJ_TYPE) Reference transaction
Sender ID
Regards,
Neenu Jose.
Similar Messages
-
Need to upload mass excel sheet using the bapi bapi_acc_document_post.
I am assigned with an object, where I need to post the records from a mass excel sheet in to ECC or/and BW basing the dimensions using the bapi bapi_acc_document_post.the excel sheet has header and Item data. I am pretty much new to this bapi's
please do the need fulCheck report "ACC_BAPI_TEST_INVOICE_RECEIPT",
this report calls BAPI "BAPI_ACC_INVOICE_RECEIPT_POST",
but the parameters are nearly the same.
Best Regards, Dirk -
Issue with posting G/L using the BAPI " BAPI_ACC_DOCUMENT_POST"
Hi all,
I am trying to create a G/L document using the BAPI "BAPI_ACC_DOCUMENT_POST". The Bapi is returning me a success message, but i am not able to see the document in BKPF/BSEG.
Can somebody please let me know if there is any customization that needs to be done to get the document number reflected in the corresponding tables after i execute this BAPI.
Here is the part of the code that i am using to fill the header structure:
docheader-obj_type = 'REACI'.
docheader-obj_key = 'TEST'.
docheader-obj_sys = 'ECSCLNT010'.
docheader-bus_act = 'RFBU'.
docheader-username = sy-uname.
docheader-header_txt = 'HDR TEXT'.
docheader-comp_code = 'SC01'.
docheader-doc_date = sy-datum.
docheader-pstng_date = sy-datum.
CASE wa_input_tmp-batch_type .
WHEN '0'.
docheader-doc_type = 'SA'.
WHEN '1'.
docheader-doc_type = 'RA'.
ENDCASE.
Any help is much appreciated.
Thanks in Advance,
SureshSee the below code :
I have tested program in my system :
*&---HEADER DECLARATION
DATA: HEADER TYPE BAPIACHE09. " HEADER DATA
INTERNAL TABLE DECLARATION
*&----G/L ACCOUNT ITEM
DATA: ACCOUNTGL TYPE STANDARD TABLE OF BAPIACGL09.
*&---CURRENCY ITEMS
DATA: CURRENCY_AMOUNT TYPE STANDARD TABLE OF BAPIACCR09.
*&----RETURN PARAMETER
DATA: RETURN TYPE STANDARD TABLE OF BAPIRET2 with header line.
WORK-AREA DECLARATION
*&----WORKAREA FOR G/L ACCOUNT ITEM
DATA: WA_ACCOUNTGL TYPE BAPIACGL09.
*&---WORKAREA FOR CURRENCY ITEMS
DATA: WA_CURRENCY_AMOUNT TYPE BAPIACCR09.
INITIALIZATION
HEADER-HEADER_TXT = 'TEST HEADER'.
HEADER-USERNAME = 'DEVELOPER'.
HEADER-COMP_CODE = '0002'.
HEADER-FISC_YEAR = '2007'.
HEADER-DOC_DATE = '20070502'.
HEADER-PSTNG_DATE = '20070502'.
HEADER-TRANS_DATE = '20070502'.
HEADER-DOC_TYPE = 'SA'.
HEADER-BUS_ACT = 'RFBU'.
WA_ACCOUNTGL-ITEMNO_ACC = '0000000010'.
WA_ACCOUNTGL-GL_ACCOUNT = '0000113020'.
WA_ACCOUNTGL-ITEM_TEXT = 'SO_DOC'.
WA_ACCOUNTGL-DE_CRE_IND = 'S'.
APPEND WA_ACCOUNTGL TO ACCOUNTGL.
CLEAR WA_ACCOUNTGL.
WA_ACCOUNTGL-ITEMNO_ACC = '0000000020'.
WA_ACCOUNTGL-GL_ACCOUNT = '0000113020'.
WA_ACCOUNTGL-ITEM_TEXT = 'SO_DOC'.
WA_ACCOUNTGL-DE_CRE_IND = 'H'.
APPEND WA_ACCOUNTGL TO ACCOUNTGL.
CLEAR WA_ACCOUNTGL.
WA_CURRENCY_AMOUNT-ITEMNO_ACC = '0000000010'.
WA_CURRENCY_AMOUNT-AMT_DOCCUR = '500'.
WA_CURRENCY_AMOUNT-CURRENCY = 'INR'.
APPEND WA_CURRENCY_AMOUNT TO CURRENCY_AMOUNT.
CLEAR WA_CURRENCY_AMOUNT.
WA_CURRENCY_AMOUNT-ITEMNO_ACC = '0000000020'.
WA_CURRENCY_AMOUNT-AMT_DOCCUR = '-500'.
WA_CURRENCY_AMOUNT-CURRENCY = 'INR'.
APPEND WA_CURRENCY_AMOUNT TO CURRENCY_AMOUNT.
CLEAR WA_CURRENCY_AMOUNT.
START-OF-SELECTION
START-OF-SELECTION.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = HEADER
CUSTOMERCPD =
CONTRACTHEADER =
IMPORTING
OBJ_TYPE =
OBJ_KEY =
OBJ_SYS =
tables
ACCOUNTGL = ACCOUNTGL
ACCOUNTRECEIVABLE =
ACCOUNTPAYABLE =
ACCOUNTTAX =
currencyamount = CURRENCY_AMOUNT
CRITERIA =
VALUEFIELD =
EXTENSION1 =
return = RETURN
PAYMENTCARD =
CONTRACTITEM =
EXTENSION2 =
REALESTATE =
IF return-type NA 'EA'.
call function 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
IMPORTING
RETURN = RETURN.
write:/ return-message.
else.
write:/ return-message.
ENDIF.
Reward Points if it is helpful
Thanks
Seshu -
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 -
Hi All,
We are facing error FI/CO interface: Balance in transaction currency from BAPI BAPI_ACC_DOCUMENT_POST.
This error we are getting only in case of passing tax data.
Can anyone help me on this.
Below is the code :
*fill header
gd_documentheader-username = sy-uname.
gd_documentheader-header_txt = 'Test'.
gd_documentheader-comp_code = p_ccode. "SQ
gd_documentheader-doc_date = sy-datum.
gd_documentheader-pstng_date = sy-datum.
gd_documentheader-doc_type = 'KR'.
gd_documentheader-ref_doc_no = p_xblnr. "SQ
*gd_documentheader-bus_act = 'RMWE'.
city = p_city.
state = p_state.
zipcode = p_zip.
*get tax juridisction code
IF NOT ( city IS INITIAL ) AND
NOT ( state IS INITIAL ) AND
NOT ( zipcode IS INITIAL ).
SELECT SINGLE rfcdest INTO ttxd-rfcdest FROM ttxd
WHERE kalsm = 'TAXUSX'.
CLEAR x_com_jur.
REFRESH t_com_jur.
x_com_jur-city = city.
x_com_jur-state = state.
IF zipcode+5(4) EQ space.
zipcode+5(4) = '0000'.
ENDIF.
CONCATENATE zipcode+0(5) '-' zipcode+5(4)
INTO x_com_jur-zipcode.
x_com_jur-country = 'US'.
CALL FUNCTION 'RFC_DETERMINE_JURISDICTION'
DESTINATION ttxd-rfcdest
EXPORTING
location_data = x_com_jur
IMPORTING
location_err = x_com_err
TABLES
location_results = t_com_jur.
IF sy-subrc = 0.
READ TABLE t_com_jur INTO x_com_jur INDEX 1.
it_accountgl-taxjurcode = x_com_jur-txjcd.
ENDIF.
ENDIF.
*fill AP (line 1) - vendor related data
SELECT SINGLE zterm FROM lfb1 INTO p_zterm WHERE lifnr = p_lifnr.
it_accountpayable-itemno_acc = 1.
it_accountpayable-tax_code = p_txcd.
it_accountpayable-pmnttrms = p_zterm. "SQ
it_accountpayable-vendor_no = p_lifnr. "SQ
*it_accountpayable-item_text = 'S2P Testing in UDR1'. - SQ
it_accountpayable-pymt_meth = p_pmet. "- SQ
APPEND it_accountpayable.
*fill GL (line 2)
it_accountgl-itemno_acc = 2.
*item_text - sq
IF p_asset IS NOT INITIAL.
TABLES : anlz,
anla.
SELECT SINGLE * FROM anlz WHERE anln1 = p_asset.
SELECT SINGLE * FROM anla WHERE anln1 = p_asset.
*concatenate '00' anla-KTOGR into it_accountgl-gl_account .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = anla-ktogr
IMPORTING
output = it_accountgl-gl_account.
it_accountgl-asset_no = p_asset.
it_accountgl-sub_number = '0000'.
it_accountgl-cs_trans_t = '105'.
it_accountgl-acct_type = 'A'.
ELSE.
it_accountgl-gl_account = p_gl.
it_accountgl-costcenter = p_cc.
it_accountgl-wbs_element = p_posid.
ENDIF.
it_accountgl-comp_code = p_ccode.
it_accountgl-tax_code = p_txcd. "SQ
it_accountgl-pstng_date = sy-datum.
it_accountgl-fisc_year = sy-datum(4).
APPEND it_accountgl.
CLEAR it_currencyamount.
*fill currency ammounts for lines 1 & 2
it_currencyamount-currency = p_waers. "SQ
it_currencyamount-itemno_acc = 1.
*it_currencyamount-amt_base = -1.
it_currencyamount-amt_doccur = - 116. "p_totamt.
it_currencyamount-CURRENCY_ISO = 'USD'.
it_currencyamount-tax_amt = - 16.
APPEND it_currencyamount.
CLEAR it_currencyamount.
it_currencyamount-itemno_acc = 2.
it_currencyamount-currency = p_waers. "SQ
it_currencyamount-amt_doccur = 100.
it_currencyamount-CURRENCY_ISO = 'USD'.
*it_currencyamount-amt_base = 100.
*it_currencyamount-TAX_AMT = -10.
APPEND it_currencyamount.
*tax data
it_accounttax-itemno_acc = 3.
it_accounttax-tax_code = p_txcd.
it_accounttax-gl_account = '0023110000'.
*it_accounttax-gl_account = p_gl.
it_accounttax-TAXJURCODE = x_com_jur-txjcd.
it_accounttax-acct_key = 'NVV'.
it_accounttax-cond_key = 'XP2I'.
**it_accounttax-direct_tax = 'X'.
APPEND it_accounttax.
CLEAR it_currencyamount.
it_currencyamount-itemno_acc = 3.
it_currencyamount-currency = p_waers. "SQ
it_currencyamount-amt_doccur = 16.
it_currencyamount-CURRENCY_ISO = 'USD'.
it_currencyamount-amt_base = 100.
it_currencyamount-TAX_AMT = - 16 .
APPEND it_currencyamount.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = gd_documentheader
IMPORTING
obj_key = wa_obj_key
TABLES
accountgl = it_accountgl
* ACCOUNTRECEIVABLE =
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
* CRITERIA =
* VALUEFIELD =
* EXTENSION1 =
return = it_return
COMMIT WORK.
Regards,
PriyaranjanHi,
Reason 1:
An revenue-recognition-relevant item has several active conditions whose values cancel themselves so that a net item value of 0 results. The conditions have both the same revenue account (SAKN1) and the same clearing account (SAKN2).
For these conditions, the system writes a line with value 0 into the temporary FI/CO interface (internal tables: CACCIT, CACCCR). If table VBREVK does not contain control lines for this line, no further processing occurs and the line remains in the temporary FI/CO interface. Then the system reads this line for the creation of the next billing item which conatins a net value and generates a posting line with value 0. As a result, there is a balance in the FI/CO interface, and the billing document cannot be transferred.
Reason 2:
The billing document contains at least one item with an item category for which there is a setting stipulating that the values of this item should not be transferred to the header total of the document.
That is, in the maintenance of the item categories, this item category has the characteristic 'X' or 'Y' in 'Statistical value' field.
Reason 3:
Case: Billing document contains items without pricing conditions.
Then, on release to accounting, error RW022 occurs.
regards,
Saju.S -
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 -
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 -
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 -
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 -
Wht is similar field of BDC's BBKPF-BVORG in BAPI-BAPI_ACC_DOCUMENT_POST?
Hi Experts,
We can post GL acct docs via BDC and BAPI (BAPI_ACC_DOCUMENT_POST).
In BDC, there is a filed w/ name BBKPF-BVORG-->Number of Cross-Company Code Posting Transaction, so, I am lookig for the same field/any other similar to BVPRG, in BAPI structure - BAPIACHE09, but I did not find any one?
So, pls. let me know that, How can I fix it? any other alternative field? How can I populate my_value via BAPI for this field?
thanqYou should not be setting this field in your BAPI (or BDC as far as I know). SAP will set this field at the time of posting. It is used to determine cross-company postings or not.
-
Create reversal document with BAPI: BAPI_ACC_DOCUMENT_POST.
Hi Guys,
I am Create reversal document with BAPI: BAPI_ACC_DOCUMENT_POST.First I am post financial document with BAPI BAPI_ACC_DOCUMENT_POST and Same Document. i am Reversal with same BAPI 'BAPI_ACC_DOCUMENT_POST'.
New reversal docment is created. but posting key are not changingin reversal docment.whatever posting key created in posting same posting key are created while reversal also.Please help mecheck
Mapping of POSTING KEY in BAPI_ACC_DOCUMENT_POST -
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 -
Passing field "BSCHL" to bapi BAPI_ACC_DOCUMENT_POST.
Hi developers,
I've just searched the forum, but I can't find the solution to the following problem:
I need to use bapi BAPI_ACC_DOCUMENT_POST to simulate FB01 transaction. I need to pass to the bapi the field "BSEG-BSCHL" for each record I have to process, but I can't find where passing it to the bapi.
Thanks a lotHi,
The BAPI_ACC_DOCUMENT_POST does not have a BSCHL field. Usually, the documents posted with this FM will automatically have the BSEG-BSCHL as '01 or 11' for Customer documents, and '40 or 50' for G/L Postings. Similar pair exists for Vendor postings, though I can't remember.
Generally, these Posting Keys should be acceptable to most. If you have special requirements for the docs to post in other posting keys, you may have to use custom BDC recordings or standard load programs like RFBIBL00.
If this helps, please remember to award points before closing the thread.
Good luck,
Bhanu -
Issue with creating a G/L account using the BAPI "BAPI_ACC_DOCUMENT_POST"
Hi All,
I am trying to create a G/L account (FB50) using the BAPI "BAPI_ACC_DOCUMENT_POST". Can somebody help in populating values to the following parameters :
1) OBJ_TYPE
2) OBJ_KEY
3) BUS_ACT
I tried passing BKPF & BKPFF to the Object type but i am getting error saying that "Incorrect Entry".
Please let me where to find the values for the fields.
Any Help is much appreciated.
Thanks in Advance.Hi Ram,
Thanks for your input. The BAPI is working fine now, but one small change, i am passing REACI for the object type instead of BKPFF.
Here's the values that i am passing to the BAPI.
OBJ_TYPE REACI
OBJ_KEY TEST
OBJ_SYS ECSCLNT010
BUS_ACT RFBU
USERNAME KKUMAR
HEADER_TXT TEST_BAPI
Thanks Once agian.
Maybe you are looking for
-
HT1535 Songs won't transfer from iTunes to iPod touch
I'm having trouble transferring music from iTunes onto my iPod touch (5th gen). When I plug my iPod into my computer and try to drag songs onto it from my iTunes library, it says 'updating files' but gets then gets stuck. I keep trying and have waite
-
Gnome 3 log file viewer crashes on file open
Hi everyone, I'm experiencing an annoying issue in which the system log file viewer crashes when I load certain log files. For example, if I go to file>open>crond.log, the viewer will crash. The same occurs with errors.log, kernel.log, pm-suspen
-
Mismatch between IAK file and module
Is there any way to programatically check that the configuration of the modules in the IAK-file matches the hardware configuration of the actual modules ? We see, especially for the old FieldPoint modules (non Compact), that a seldom time, it pops up
-
Making object wrap around square with rounded corners
I'm trying to figure out how to get a pre-made scalloped edge to wrap around a rounded square to create a frame. Can someone please help me or point me in the right direction, please??
-
Starting to get corrupted files
Since I upgraded to Lightroom 4 last week, I've had two occasions where Windows 7 operating system at boot tells me I have corrupt files on the separate 2TB drive I use to store Lightroom catalog and photos on. One difference between my LR3 vs LR4 s