Unable to Post thru Bapi BAPI_ACC_DOCUMENT_POST
When We try to post a document thru BAPI_ACC_DOCUMENT_POST the System gives a blank screen and does not post the document. We were able post a document in Development but unable to do in testing.
Any ideas why this is happening??
Appreciate any help on this .
Thanks.
sivaram
Check the below code:
data: wa_dh type bapiache09.
data:
t_ap type standard table of bapiacap09 with header line,
t_ret type standard table of bapiret2 with header line,
t_amt type standard table of bapiaccr09 with header line,
t_gl type standard table of bapiacgl09 with header line.
wa_dh-doc_date = ll_a00-creation_date.
wa_dh-obj_key = ll_i04-inv_number. "Inv ref
wa_dh-ref_doc_no = ll_i04-inv_number. "Inv ref
wa_dh-header_txt = co_headtext. "'BAPI-IDE'
wa_dh-pstng_date = sy-datum.
wa_dh-doc_type = co_doctype. "KR
wa_dh-obj_type = co_objecttype. "'IDOC'
wa_dh-obj_sys = v_sen_ls(10).
wa_dh-username = sy-uname.
wa_dh-bus_act = co_businessact. "'RFBU'
t_gl-itemno_acc = v_item_readcount.
t_gl-item_text = wa_acc_values-code.
append t_gl.
t_ap-itemno_acc = v_item_readcount.
t_ap-vendor_no = v_vendor_account.
t_ap-bline_date = v_base_date.
append t_ap.
t_amt-itemno_acc = v_item_readcount.
t_amt-currency = v_currency.
t_amt-amt_doccur = wa_vat-vatamt.
Get the Base amount from the header table
if wa_vat-vatamt lt 0.
read table t_inv into wa_inv
with key type = 'C'.
else.
read table t_inv into wa_inv
with key type = 'I'.
endif.
t_amt-amt_base = wa_inv-inv.
append t_amt.
Call the BAPI to post the Invoice.
call function 'BAPI_ACC_DOCUMENT_POST'
exporting
documentheader = wa_dh
tables
accountgl = t_gl
accountpayable = t_ap
currencyamount = t_amt
return = t_ret.
Check for errors (filter for E & A)
loop at t_ret into ll_result.
if ll_result-type = 'E'
or ll_result-type = 'A'.
append ll_result to lt_result_tmp.
endif.
endloop.
Regards,
Prakash.
Similar Messages
-
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 -
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 -
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
ManishHi,
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. -
Getting error message Thru BAPI: BAPI_INCOMINGINVOICE_CREATE
Hi All,
Could anyone please investigate into this error and give me the possible answer.
We're using ECC 6.0
Getting error while doing Invoice Posting thru BAPI/Function Module: BAPI_INCOMINGINVOICE_CREATE
Error Messages
1. M8 376: Enter goods receipt data only when working with GR-based IV
2. M8 375: Fill in mandatory field REF_DOC, REF_DOC_YEAR, REF_DOC_IT (table parameter ITEMDATA, row 000001)
These above 1 & 2 been rectified by putting the GR/GI Slip No. of GR
But still the 3rd error is facing it now
3. M8 429: Enter a reference to a valid goods receipt (line 000001)
FYI
My PO: 4500017248 is having a Status/Control of GR, IR, GR-Based IV
PO 1 Line- Qty: 10, Net Order Price: 10
GR: 5000012041 for 1 Line- Qty: 10, Net Order Price: 10, Total: 100
Regards
Dinakar
Edited by: Dinakar Nallavelli on Jan 19, 2009 1:17 PM
Edited by: Dinakar Nallavelli on Jan 19, 2009 1:23 PM
Self solved this issue by putting the REF_DOC as GR related- MIGO Doc number and the Year of the document and the line item in it
No Reply required further for this issue
Edited by: Dinakar Nallavelli on Jan 19, 2009 2:27 PMHow did you resolve it?
-
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 -
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 -
BAPI - BAPI_ACC_DOCUMENT_POST Error due to Currency table.
Hi Guys ,
I am facing an error while posting documents using BAPI_ACC_DOCUMENT_POST. The error occurs is in the tables parameters "currencyamount" .I am appending Amt in document currency, Amt in Local currency, Amount in 2nd Currency and Amount in 3rd Currency using Currency type (CURR_TYP) 00,10,30 and 60 respectively for every line item. All these 4 currency fields might have different values.The error in the "return" parameter says "Balance in currencies".
Can anyone suggest an appropriate way to pass all the above 4 currency fields to the same line item ?
Thanks,
Venkat.Hi VG,
while using this bapi...the total amount or net amount should be zero.
Thru Txn we assign posting key ..and system autiomatically take the sign on the basiss of Posting key..but in this bapi we dont have posting key field....so we have to give the amount with the sign...and total of all the line items should be zero ...
Thnx
RK -
Hi,
I want to post asset together with expense into one document. The first approach is to use BAPI_ACC_DOCUMENT_POST with custom obj_type, like ZBKPF. But when we post using the custom obj_type, we cannot reverse the document using FB08.
Is that anyway we can post using BAPI_ACC_DOCUMENT_POST and reverse using FB08?
Or is that any BAPI that can do this?
Thanks,
Tai
Edited by: Tai Pang Ng on Apr 8, 2011 9:37 PMIt is because I want to post asset. I tried to post my asset without specified the obj_type and acc_type, then I got an error saying cannot direct post thru my GL account. That's true becuase posting asset, we just use asset number and reconciliation GL.
Then I tried to put my asset no in GL field, then I got another error saying the GL is not in Chart of Account, and that's true also becuase the asset no is never config in our chart of account.
Then I found out that I had to specified the acct_type to 'A'. After that, I got another error saying RFBURFBU000000000000 is not define. That's I cannot post this thru obj_type RBFU. After checking that, I had to specified bus_act to RMWE and custom obj_type to some Z value to make it go.
But after all these, I cannot reverse my posting using FB08 anymore because this is an custom obj_type and not allow to reverse using FB08.
Please let me know if I made mistake in the above.
Thanks,
Tai -
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 -
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 -
Posting Key in BAPI_ACC_DOCUMENT_POST
Hi,
I am using bapi 'BAPI_ACC_DOCUMENT_POST' to post 'Customer Document' in FB01. I was able to post the document but Posting Key in the document is not as desired. When I try to Post the document with out any Posting Key by default I am having Posting Key as '01'(Customer document) and '50'(GL account).
But I want bapi 'BAPI_ACC_DOCUMENT_POST' to post a document with Posting key '15'(Customer Document) and '40'(GL account).
In bapi I am using these tables along with header.
ACCOUNTGL- GL Account
ACCOUNTRECEIVABLE- Customer Document
I tried passing the posting key in ACCT_TYPE in table ACCOUNTGL and passing the the posting key using EXTENSION2 table but was not successful .
Can anyone let me know
How can I pass the Posting Key to the bapi 'BAPI_ACC_DOCUMENT_POST' for Customer Document and GL account?
OR
How can I use EXTENSION2 table to create an appropriate posting key?
please let me know.
Vikki,
In one of your thread you came across the same issue and you solved it. Can you please guide me how to achive appropriate posting key using EXTENSION2 table?
Thanks,
Vijay.Hi,
Just follow these steps:
1. Fill in your EXTENSION table like this
first 3 character represent item number
next 2 character represent posting key
CLEAR: gt_extension.
gt_extension(3) = sy-index(3).
gt_extension+3(2) = 'New Posting Key'.
APPEND gt_extension.
2. Create an FM similar to SAMPLE_INTERFACE_RWBAPI01 and put the following codes:
IF NOT extension IS INITIAL.
LOOP AT extension.
READ TABLE it_accit WITH KEY posnr = extension(3).
IF sy-subrc IS INITIAL.
it_accit-bschl = extension+3(2).
MODIFY it_accit INDEX sy-tabix.
ENDIF.
ENDLOOP.
ENDIF.
3.
- Go to TCode "FIBF".
- Go to Settings -> Products -> ... of a customer
- Create a new entry and check the box to activate the product
Product = <any name>
Text = <description>
RFC = blank
Check the activation box
- Go to Settings -> Process Modules -> ... of a customer
- Create a new entry by specifying the name of the function module name and product name created earlier.
Process = RWBAPI01
Ctr = blank
Appl = blank
FM = <FM created>
Product = <name of product created earlier>
Hope this helps,
Leonard Chomi. -
Posting error in BAPI_ACC_DOCUMENT_POST
Hi Experts,
I am trying to post an asset transaction by means of a BAPI BAPI_ACC_DOCUMENT_POST.In Release R/3 Enterprise the posting is rejected with error message (msg id : AA,msg num: 001) 'Asset & & not in company code &' .I have also checked the following things which can cause the error:
1. The asset is initially created with a non-0 sub-number, a defect
causes the error.
2. It is also possible that this asset is defined as a group asset. In
that case, it cannot be used as an asset.
3. The asset is not acquired.
But above things are OK,still I am getting the error message.I have also tried to implement sapnote '0000643232' but failed.Can anyone give any solution/reason for this error?.
Thanks,
VineetHi Arjun
Pls find the code that I have tested for Asset Posting...
Header
BUS_ACT RMWE
USERNAME Sy-uname
COMP_CODE 1200
DOC_DATE 11.11.2008
PSTNG_DATE 11.11.2008
DOC_TYPE SA
Asset and GL Items
ITEMNO_ACC 0000000001
GL_ACCOUNT 1000
ACCT_TYPE A
COMP_CODE 1200
COND_ST_NO 000
FUNDS_CTR S00001
ASSET_NO 100000007
SUB_NUMBER 0
CS_TRANS_T 120
ITEMNO_ACC 0000000002
GL_ACCOUNT 476000
COSTCENTER S00001
FUNDS_CTR S00001
Currency Items
ITEMNO_ACC 0000000001
CURRENCY SGD
AMT_DOCCUR 100,0000
ITEMNO_ACC 0000000002
CURRENCY SGD
AMT_DOCCUR 100,0000-
Pls Advise
Thanks
Maybe you are looking for
-
Scanning of Film Prints by Processing Labs - Image Resolution
I shoot a fair amount of film, in addition to digital, so I usually scan my own photos to be able to use the image editor. I've asked around to the run of the mill photo labs (wally world, costco, kmart, etc) about having my images output to picture
-
Display on new 24" iMac?
I have read many of the complaints about the displays on the new 20" iMacs. For those of you with the 24" iMacs, do you have the same complaints? Are the LCDs on the 24" iMacs of comparable quality to the Apple Cinema Displays? I am considering buyin
-
Hello all. Is there anything special at all to dual-screening mega 180? I Installed everything, the CD. Then I powered it off, plugged my second screen in the secondary VGA plug. While XP was booting, both screens showed - perfectly - the booting sc
-
Uninstall iWork '08 before installing iWork '09?
What's the official / recommended way of doing things? Are you supposed to uninstall iWork '08 before installing iWork '09. I installed iWork '09 on a MacBook, but it didn't replace iWork '08. It installed alongside it. Is there a proper way of unins
-
How to transport display variants in alv
Hi, Can any one please help me in transporting alv display variants?Actually I have transported the variants ,but only selection variants are getting transported.I want to transport ALV display variants accross the clients. Please reply soon.It is ve