BAPI_ACC_INVOICE_RECEIPT_POST HBKID
Any suggestions on how to set the house bank field when calling BAPI_ACC_INVOICE_RECEIPT_POST. In FB01 and other Vendor invoice entry transactions you are allowed to set the house bank (bseg-hbkid). However, I don't see this field in the interface definition for this BAPI? Is it possible to set this field using the extension1 and user exit?
Hi. How did you resolve this?
I am trying to set a different field using a user exit, it is available in the BAPI though, but it is called from a 3rd party application so we can not alter the actual call, we need to find a user exit.
Any help would be greatly appreciated.
Regards,
Dave.
Similar Messages
-
Uploading Vendor invoices with BAPI_ACC_INVOICE_RECEIPT_POST
I am working on putting together a program that will allow users to upload invoices from a spreadsheet into SAP using BAPI_ACC_INVOICE_RECEIPT_POST. I realize that I will have to calculate the tax before feeding the information into the BAPI. My problem is that we have 3 currencies that the FI document is posted in: document, local, and group. I am putting this program together for our Europe office so the the document and local currencies are EUR but the group currency is USD. When I try to use the BAPI and feed the information in to it I get a message that states "Foreign currency translation not supported for tax calculation". Have you run in to this error message before(F5681)? If so, is there a way around it? If not how have you been able to upload vendor invoices into SAP?
Hi Ron,
I think it is better to post this question in the abap forum. But anyway, it sounds like you need to customize the currency translations for that specific calculation type.
regards
Siggi -
What are all mantatory fields for BAPI_ACC_INVOICE_RECEIPT_POST
Hi Friends..
I tried to use BAPI_ACC_INVOICE_RECEIPT_POST for FB60 transaction.
But whenever I gave input it throws some error message in return statement.
So plz let me know the mantatory input fields for the BAPI "BAPI_ACC_INVOICE_RECEIPT_POST"
Thanks in Advance.
Thanks
GowrishankarHi,
Check in the import tab of the BAPI the parameters that are not marked as optional are mandatory --DOCUMENTHEADER(Table)
Regards,
Bhanu -
How to populate PERNR while posting with BAPI_ACC_INVOICE_RECEIPT_POST
HI,
I am not able to pass Personal Number(PERNR) while posting with BAPI_ACC_INVOICE_RECEIPT_POST. Is there any enhancement which will help to solve this.
<< Moderator message - Everyone's problem is important. But the answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
Regards,
Sini
Edited by: Rob Burbank on Nov 2, 2011 12:04 PMHi,
I am faceing this problem in standard program which is sa AirPlus Invoice Record (LARS).
NEME:RPR_AIRP_LRS_TO_FI.
Please help on this..
Regards,
Srini -
F110 - Payment posting in BSEG towards REGUH information - HBKID and HKTID
Hello,
I am making investigation on the payment program (and includes) linked to the F110 transaction.
I have made a proposal and the payment thanks to the F110 transaction and i have activated in facultative House Bank HBKID and Account ID HKTID on Bank accounts.
I can see on REGUH that the program is able to fill the two data fields (HBKID and HKTID) on the vendor open item.
Yet when i go to BSEG, i only get the HKTID data field populated on both items whereas on the GL item (the transitory bank account) nothing is populated.
Could anyone tell me where is the include or the part of the program in the F110 program where i can understand why is it the case ?
Thank you in advance,
G/L Vendor PM House Bk BnkT Profit Ctr Alt.acct Acct ID G/L amount
40110010 442866 T AXI02 1423 401100 AXI01 10 000,00
51000977 AXI01 10 000,00
Best regardsHi FI Sap,
You can maintain this field in OB32 T code to make the document line item changes. Give Account type as D for customers or K for vendors accordingly. And also select field can be changed option under possibility of changing the field tab.
I hope it helps else revert us with your query.
Thanks & Regards,
Lakshmi S -
Using BAPI_ACC_INVOICE_RECEIPT_POST not able to post invoices
Hi all,
I am trying to create invoices using BAPI_ACC_INVOICE_RECEIPT_POST this BAPI. when i executed this BAPI it says the Document successfully created and it is giving the document number also. when check the document number in data base it is not exists in the database
after calling this BAPI, I am calling BAPI_TRANSACTION_COMMIT also. it is not showing any documents in the database.
if any body knows the solution, please reply to this thread..
Regards,
VenkataHi,
Please find my code below. Let me know if you need more information.
headerdata-comp_code = '1025'.
headerdata-FISC_YEAR = '2008'.
headerdata-doc_date = '20080602'.
headerdata-PSTNG_DATE = '20080602'.
headerdata-FIS_PERIOD = '06'.
headerdata-doc_type = 'KR'.
headerdata-USERNAME = 'VE7'.
wa_ACCOUNTPAYABLE-ITEMNO_ACC = '0000000010'.
wa_ACCOUNTPAYABLE-VENDOR_NO = 'IVP5360'.
wa_ACCOUNTPAYABLE-GL_ACCOUNT = '0000211060'.
wa_ACCOUNTPAYABLE-PMNTTRMS = 'Z062'.
append wa_ACCOUNTPAYABLE to ACCOUNTPAYABLE.
wa_ACCOUNTGL-ITEMNO_ACC = '0000000020'.
wa_ACCOUNTGL-GL_ACCOUNT = '0000114240'.
wa_ACCOUNTGL-COMP_CODE = '1025'.
wa_ACCOUNTGL-PSTNG_DATE = '20080602'.
wa_ACCOUNTGL-doc_type = 'KR'.
wa_ACCOUNTGL-FISC_YEAR = '2008'.
append wa_ACCOUNTGL to ACCOUNTGL.
wa_CURRENCYAMOUNT-ITEMNO_ACC = '0000000010'.
wa_CURRENCYAMOUNT-amt_base = '1031'.
wa_CURRENCYAMOUNT-CURRENCY = 'USD'.
append wa_CURRENCYAMOUNT to CURRENCYAMOUNT.
clear wa_CURRENCYAMOUNT.
wa_CURRENCYAMOUNT-ITEMNO_ACC = '0000000020'.
wa_CURRENCYAMOUNT-amt_base = '1031'.
wa_CURRENCYAMOUNT-CURRENCY = 'USD'.
append wa_CURRENCYAMOUNT to CURRENCYAMOUNT.
CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
EXPORTING
DOCUMENTHEADER = headerdata
CUSTOMERCPD =
IMPORTING
OBJ_TYPE =
OBJ_KEY =
OBJ_SYS =
TABLES
ACCOUNTPAYABLE = ACCOUNTPAYABLE
ACCOUNTGL = ACCOUNTGL
ACCOUNTTAX = ACCOUNTTAX
CURRENCYAMOUNT = CURRENCYAMOUNT
PURCHASEORDER =
PURCHASEAMOUNT =
RETURN = RETURN
CRITERIA =
VALUEFIELD =
EXTENSION1 =
commit work.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'. -
Sample program for FM: BAPI_ACC_INVOICE_RECEIPT_POST
Can anyone provide a sample program using the function module - BAPI_ACC_INVOICE_RECEIPT_POST.
Thanx in advance.
<b><REMOVED BY MODERATOR></b>
-Mohan
Message was edited by:
Alvaro Tejada GalindoHi,
Check these links -
BAPI_ACC_INVOICE_RECEIPT_POST
http://translate.google.com/translate?hl=en&sl=ru&u=http://www.sapnet.ru/viewtopic.php%3Fp%3D313%26sid%3D9fb6646f6842ff46850081e2cc94ba82&sa=X&oi=translate&resnum=10&ct=result&prev=/search%3Fq%3DBAPI_ACC_INVOICE_RECEIPT_POST%2Bcode%26hl%3Den%26sa%3DG
http://translate.google.com/translate?hl=en&sl=zh-CN&u=http://blog.csdn.net/CompassButton/archive/2007/05/08/1600607.aspx&sa=X&oi=translate&resnum=9&ct=result&prev=/search%3Fq%3DBAPI_ACC_INVOICE_RECEIPT_POST%2Bcode%26hl%3Den%26sa%3DG
Hope this helps.
ashish -
Hello,
I recently used a BAPI called 'BAPI_ACC_INVOICE_RECEIPT_POST'. However an error message appeared in my return table stating "No currency line exists for line item ....".
Is there a way to resolve this?
Thank you all and good day.hi Chad,
the BAPI has four important tables parameters:
ACCOUNTPAYABLE
ACCOUNTGL
ACCOUNTTAX
CURRENCYAMOUNT
In CURRENCYAMOUNT there should be a corresponding line for each lines in the first three tables.
hope this helps
ec -
Error F5 702 for bapi_acc_invoice_receipt_post
Hello,
I am using bapi_acc_invoice_receipt_post to post vendor invoices. I am getting this error ' Balance in transaction currency F5 702'
The credit and debit entries match and zero out. I am unable to figure out why this is happening. Please Suggest.Rob,
I filled in the tax line items with gl account and tax code its asking for account determination key and condition key. I don't know if i have to pass these for tax exempt invoices and I entered amount in tax items as '0' , the error still shows up.. Am I missing something? -
Tax Data calculation using BAPI_ACC_INVOICE_RECEIPT_POST
Hi,
We are creating invoices using BAPI_ACC_INVOICE_RECEIPT_POST. However Tax is not getting calculated for the line items even if we pass the tax data through the field u201CTAX_CODEu201D in the table u201CACCOUNTGLu201D. The Tax value is to be updated in table BSEG and BSET, which is not happening after the IDOC posting. Please advice whether we need to pass the parameter (table) u201CACCOUNTTAXu201D (with data filled) in order to calculate the tax for the line items.
We are passing the following parameters presently and IDOCS are getting posted successfully even though tax amounts are not getting calculated.
CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
exporting
DOCUMENTHEADER = DOCUMENTHEADER (With data)
CUSTOMERCPD = CUSTOMERCPD (blank)
importing
OBJ_TYPE = OBJ_TYPE (blank)
OBJ_KEY = OBJ_KEY (blank)
OBJ_SYS = OBJ_SYS (blank)
tables
ACCOUNTPAYABLE = ACCOUNTPAYABLE (Filled with data)
ACCOUNTGL = ACCOUNTGL (Filled with data)
ACCOUNTTAX = ACCOUNTTAX (blank)
CURRENCYAMOUNT = CURRENCYAMOUNT (Filled with data)
PURCHASEORDER = PURCHASEORDER (blank)
PURCHASEAMOUNT = PURCHASEAMOUNT (blank)
RETURN = RETURN
CRITERIA = CRITERIA
VALUEFIELD = VALUEFIELD
EXTENSION1 = EXTENSION1
exceptions
OTHERS = 1
Regards,
Gaurav.hiiii
go throgh following link..it will solve your problem..
make BAPI_ACC_DOCUMENT_POST calculate tax.
regards
twinkal -
INVOICE or CREDIT MEMO in BAPI 'BAPI_ACC_INVOICE_RECEIPT_POST'
Hi,
I use BAPI 'BAPI_ACC_INVOICE_RECEIPT_POST'
I search the parameters field in the BAPI ' BAPI_ACC_INVOICE_RECEIPT_POST' to fill the type of document " INVOICE or CREDIT MEMO. "
best regardHi,
GOTO T-code VOFA and search for your valid document type,and give the suitable document type.
Please let me know if you still have any issues.
Thansk and regards,
Rajeshwar -
Hi experts!!
I am using BAPI_ACC_INVOICE_RECEIPT_POST to post a document. When I post a document through the t-code FB01 or F-43, it's being posted by even updating the table WITH_ITEM. When I post through BAPI_ACC_INVOICE_RECEIPT_POST, it's posting document and updating WITH_ITEM table also, but the values being updated are wrong. Below is a brief explanation on my problem:
When I give VAT entry, then QSSHB in BSEG will be the result after the VAT is deducted (DMBTR of the header entry subtracted DMBTR under VAT entry). And the same value will also be updated in WITH_ITEM field WT_QSSHB.
When I use this bapi, it is not being calculated bu the same DMBTR under header entry is coming as WT_QSSHB, which is wrong.
The way to solve this is to calculate by some logic, but I am not sure whether this is the correct way to approach. I couldn't find any calculation done in standard FB01, though I debugged it.
Can anyone help me out? Or any other bapi which meets my requirement will also be so helpful.
Thanks a lot.
Edited by: abapdev on Jun 1, 2009 10:38 AMHi,
once the document posted thru bapi, check with fb03 whether a new line item is created for with holding tax. And check the tax amount is deducted from vendor line item.
Regards,
Ravi. -
Bapi BAPI_ACC_INVOICE_RECEIPT_POST
Hi,
I want to be able to use the bapi with tax. I have the following code which gives me the result: E FF 747 Tax amount must not be greater than the tax base.
Its not clear to me what i do wrong when filling the tables for the bapi. Any help will be appreciated.
FORM FILL_INTERNAL_TABLES.
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
OWN_LOGICAL_SYSTEM = GD_DOCUMENTHEADER-OBJ_SYS.
fill header
GD_DOCUMENTHEADER-OBJ_TYPE = 'BKPFF'.
GD_DOCUMENTHEADER-OBJ_KEY = REF_KEY.
GD_DOCUMENTHEADER-USERNAME = SY-UNAME.
GD_DOCUMENTHEADER-HEADER_TXT = 'AHJD BAPI Test'.
GD_DOCUMENTHEADER-COMP_CODE = 'A14'.
GD_DOCUMENTHEADER-DOC_DATE = '20050927'.
GD_DOCUMENTHEADER-PSTNG_DATE = '20050927'.
GD_DOCUMENTHEADER-DOC_TYPE = 'KR'.
fill AP (line 1)
IT_ACCOUNTPAYABLE-ITEMNO_ACC = 1.
IT_ACCOUNTPAYABLE-VENDOR_NO = '0000001001'.
IT_ACCOUNTPAYABLE-PMNTTRMS = '30'.
IT_ACCOUNTPAYABLE-ITEM_TEXT = 'AP BAPI Test'.
APPEND IT_ACCOUNTPAYABLE.
IT_CURRENCYAMOUNT-ITEMNO_ACC = 1.
IT_CURRENCYAMOUNT-CURR_TYPE = '00'.
IT_CURRENCYAMOUNT-CURRENCY = 'EUR'.
IT_CURRENCYAMOUNT-AMT_DOCCUR = -119.
APPEND IT_CURRENCYAMOUNT.
fill GL (line 2)
IT_ACCOUNTGL-ITEMNO_ACC = 2.
IT_ACCOUNTGL-GL_ACCOUNT = '0043419002'.
IT_ACCOUNTGL-ITEM_TEXT = 'GL BAPI Test'.
IT_ACCOUNTGL-COSTCENTER = '0000514200'.
APPEND IT_ACCOUNTGL.
IT_CURRENCYAMOUNT-ITEMNO_ACC = 2.
IT_CURRENCYAMOUNT-CURR_TYPE = '00'.
IT_CURRENCYAMOUNT-CURRENCY = 'EUR'.
IT_CURRENCYAMOUNT-AMT_DOCCUR = 100.
APPEND IT_CURRENCYAMOUNT.
fill tax
IT_ACCOUNTTAX-ITEMNO_ACC = 3.
IT_ACCOUNTTAX-TAX_CODE = 'BA'.
APPEND IT_ACCOUNTTAX.
IT_CURRENCYAMOUNT-ITEMNO_ACC = 3.
IT_CURRENCYAMOUNT-CURR_TYPE = '00'.
IT_CURRENCYAMOUNT-CURRENCY = 'EUR'.
IT_CURRENCYAMOUNT-AMT_DOCCUR = 19.
IT_CURRENCYAMOUNT-AMT_BASE = 100.
APPEND IT_CURRENCYAMOUNT.Hi all, And thanks in advance,
We have been reading about this bapi to make an INVOICE. We use it and the table "return" , returns OK, so we supposed the invoice was created with its own invoice number, that´s to say BELNR (this number is inside the range than we have defined for the doc. type ). After that, when we access the BKPF table, the invoice is not there, we can´t find it. Can anyone tell me what´s going wrong?.
REPORT ztestbapi01 .
TABLES bkpf.
PARAMETERS: bukrs LIKE lfb1-bukrs DEFAULT 'PS01' OBLIGATORY.
DATA: header LIKE bapiache03,
acc_pay LIKE bapiacap03 OCCURS 0 WITH HEADER LINE,
acc_tgl LIKE bapiacgl03 OCCURS 0 WITH HEADER LINE,
acc_tax LIKE bapiactx01 OCCURS 0 WITH HEADER LINE,
cur_amo LIKE bapiaccr01 OCCURS 0 WITH HEADER LINE,
return LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
porder LIKE bapiacpo00 OCCURS 0 WITH HEADER LINE,
ext_doc LIKE bapiacdockey OCCURS 0 WITH HEADER LINE,
obj_type LIKE bapiache03-obj_type,
obj_key LIKE bapiache03-obj_key,
obj_sys LIKE bapiache03-obj_sys.
START-OF-SELECTION.
FORM fill_header USING head STRUCTURE bapiache03.
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
own_logical_system = head-obj_sys
EXCEPTIONS
own_logical_system_not_defined = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
head-username = sy-uname.
head-header_txt = 'Prueba de App Cont Bapi'.
head-comp_code = bukrs.
head-fisc_year = '2005'.
head-doc_date = sy-datum.
head-pstng_date = sy-datum.
head-fis_period = '11'.
head-doc_type = 'HM'.
head-obj_type = 'BKPFF '.
head-obj_key = '100000036PS012005'.
head-ac_doc_no = '1000000036'.
ENDFORM. " fill_header
FORM fill_acc_tgl.
acc_tgl-itemno_acc = '002'.
acc_tgl-gl_account = '0000606000'.
acc_tgl-comp_code = bukrs.
acc_tgl-tax_code = 'SC'.
APPEND acc_tgl.
ENDFORM. " fill_acc_tgl
FORM fill_cur_amo.
cur_amo-itemno_acc = '001'.
cur_amo-currency = cur_amo-currency_iso = 'EUR'.
cur_amo-curr_type = '00'.
cur_amo-amt_doccur = 69.
cur_amo-amt_base = 69.
APPEND cur_amo.
cur_amo-itemno_acc = '002'.
cur_amo-currency = cur_amo-currency_iso = 'EUR'.
cur_amo-curr_type = '00'.
cur_amo-amt_doccur = 69.
cur_amo-amt_base = 69.
APPEND cur_amo.
ENDFORM. " fill_cur_amo
FORM fill_acc_pay.
acc_pay-itemno_acc = '001'.
acc_pay-vendor_no = '0007759049'.
acc_pay-gl_account = '0000400004'.
acc_pay-pmnttrms = '0001'.
acc_pay-bline_date = sy-datum.
acc_pay-pymt_meth = 'W'.
acc_pay-pmnt_block = 'A'.
acc_pay-alloc_nmbr = '20051102'.
APPEND acc_pay.
ENDFORM. " fill_acc_pay
PERFORM fill_header USING header.
PERFORM fill_acc_pay.
PERFORM fill_acc_tgl.
PERFORM fill_cur_amo.
CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_CHECK'
EXPORTING
documentheader = header
IMPORTING
obj_type = obj_type
obj_key = obj_key
obj_sys = obj_sys
TABLES
accountpayable = acc_pay
accountgl = acc_tgl
accounttax = acc_tax
currencyamount = cur_amo
return = return.
LOOP AT return.
WRITE: / return-type, return-id, return-number, return-message.
ENDLOOP.
CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
EXPORTING
documentheader = header
IMPORTING
obj_type = obj_type
obj_key = obj_key
obj_sys = obj_sys
TABLES
accountpayable = acc_pay
accountgl = acc_tgl
accounttax = acc_tax
currencyamount = cur_amo
return = return.
LOOP AT return.
WRITE: / return-type, return-id, return-number, return-message.
ENDLOOP.
REFRESH return. CLEAR return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = return.
LOOP AT return.
WRITE: / return-type, return-id, return-number, return-message.
ENDLOOP. -
BAPI_ACC_INVOICE_RECEIPT_POST extension1
Hi Friends,
I need some help for the bapi above.
Is it possible to force tha BAPI to calculate the Tax by itself.
I mean, in FB60 I see the checkbox 'Calculate Tax?' and when I tick it, it does so.
But I could not find any field in the BAPI Structures to transfer the information.
How can I achieve that in the BAPI.
Thank you very much
Rg. JimbobNote 626235 - Tax postings with accounting BAPIs
Symptom
This note provides an example of how you can map tax postings using accounting BAPIs.
Other terms
Accounting, interface, non-deductible distributable input tax (NVV tax), BAPI
BAPI_ACC_BILLING_POST / CHECK
BAPI_ACC_INVOICE_RECEIPT_POST / CHECK
BAPI_ACC_GOODS_MOVEMENT_POST / CHECK
BAPI_ACC_EMPLOYEE_EXP_POST / CHECK
BAPI_ACC_EMPLOYEE_PAY_POST / CHECK
BAPI_ACC_EMPLOYEE_REC_POST / CHECK
BAPI_ACC_DOCUMENT_POST / CHECK
Reason and Prerequisites
This is a consulting note.
Solution 1. Example configuration of a tax code in transaction FTXP: You do not use any external tax system.
Country key US
Tax code U1
Procedure TAXUSJ
Tax type V (Input tax)
Jurisdiction Code PA0011000
Tax type Acct Key TaxPercRate Level FromLevel Cond.Type Location
Base Amount 100 0 BASB
Subtotal 120 0
A/P Sales Tax 1 Inv. NVV 5,000 210 120 JP1I PA0000000
A/P Sales Tax 2 Inv. NVV 2,000 220 120 JP2I PA0010000
A/P Sales Tax 3 Inv. NVV 1,000 230 120 JP3I PA0011000
A/P Sales Tax 1 Use MW1 100,000- 410 210 JP1U PA0000000
A/P Sales Tax 2 Use MW2 100,000- 420 220 JP2U PA0010000
A/P Sales Tax 3 Use MW3 100,000- 430 230 JP3U PA0011000
Business transaction:
You want to post an invoice.
You post the gross invoice amount of USD 100 with a total of USD 108 as expense according to the calculation procedure. On the other side there are tax line items with amounts of USD 5, 2 and 1. The posting record appears as follows:
Expense account 108 USD (debit)
To vendor -100 USD (credit)
To input tax -5 USD (Credit)
To input tax -2 USD (Credit)
To input tax -1 USD (Credit)
Structure of the tax-relevant BAPI lines:
AccountGL-Itemno_acc = '0000000002'.
AccountGL-GL_Account = '0000400000'.
AccountGL-Tax_Code = 'U1'.
AccountGL-Taxjurcode = 'PA0011000'.
CurrencyAmount-Itemno_acc = '0000000002'.
CurrencyAmount-Curr_Type = '00'.
CurrencyAmount-Currency = 'USD'.
CurrencyAmount-Amt_Doccur = '108'.
*Input tax
AccountTax-Itemno_Acc = '0000000003'.
AccountTax-Tax_Code = 'U1'.
AccountTax-Acct_Key = 'MW1'.
AccountTax-Cond_Key = 'JP1U'.
AccountTax-Taxjurcode = 'PA0000000'.
accounttax-taxjurcode_deep = 'PA0011000'.
accounttax-taxjurcode_level = '1'.
CurrencyAmount-Itemno_acc = '0000000003'.
CurrencyAmount-Curr_Type = '00'.
CurrencyAmount-Currency = 'USD'.
CurrencyAmount-Amt_Doccur = '5-'.
CurrencyAmount-Amt_Base = '100-'.
AccountTax-Itemno_Acc = '0000000004'.
AccountTax-Tax_Code = 'U1'.
AccountTax-Acct_Key = 'MW2'.
AccountTax-Cond_Key = 'JP2U'.
AccountTax-Taxjurcode = 'PA0010000'.
accounttax-taxjurcode_deep = 'PA0011000'.
accounttax-taxjurcode_level = '2'.
CurrencyAmount-Itemno_acc = '0000000004'.
CurrencyAmount-Curr_Type = '00'.
CurrencyAmount-Currency = 'USD'.
CurrencyAmount-Amt_Doccur = '2-'.
CurrencyAmount-Amt_Base = '100-'.
AccountTax-Itemno_Acc = '0000000005'.
AccountTax-Tax_Code = 'U1'.
AccountTax-Acct_Key = 'MW3'.
AccountTax-Cond_Key = 'JP3U'.
AccountTax-Taxjurcode = 'PA0011000'.
accounttax-taxjurcode_deep = 'PA0011000'.
accounttax-taxjurcode_level = '3'.
CurrencyAmount-Itemno_acc = '0000000005'.
CurrencyAmount-Curr_Type = '00'.
CurrencyAmount-Currency = 'USD'.
CurrencyAmount-Amt_Doccur = '1-'.
CurrencyAmount-Amt_Base = '100-'.
*NVV
AccountTax-Itemno_Acc = '0000000006'.
AccountTax-Tax_Code = 'U1'.
AccountTax-Acct_Key = 'NVV'.
AccountTax-Cond_Key = 'JP1I'.
AccountTax-Taxjurcode = 'PA0000000'.
accounttax-taxjurcode_deep = 'PA0011000'.
accounttax-taxjurcode_level = '1'.
AccountTax-Stat_Con = 'X'.
CurrencyAmount-Itemno_acc = '0000000006'.
CurrencyAmount-Curr_Type = '00'.
CurrencyAmount-Currency = 'USD'.
CurrencyAmount-Amt_Doccur = '5'.
CurrencyAmount-Amt_Base = '100'.
AccountTax-Itemno_Acc = '0000000007'.
AccountTax-Tax_Code = 'U1'.
AccountTax-Acct_Key = 'NVV'.
AccountTax-Cond_Key = 'JP2I'.
AccountTax-Taxjurcode = 'PA0010000'.
accounttax-taxjurcode_deep = 'PA0011000'.
accounttax-taxjurcode_level = '2'.
AccountTax-Stat_Con = 'X'.
CurrencyAmount-Itemno_acc = '0000000007'.
CurrencyAmount-Curr_Type = '00'.
CurrencyAmount-Currency = 'USD'.
CurrencyAmount-Amt_Doccur = '2'.
CurrencyAmount-Amt_Base = '100'.
AccountTax-Itemno_Acc = '0000000008'.
AccountTax-Tax_Code = 'U1'.OBC
AccountTax-Acct_Key = 'NVV'.
AccountTax-Cond_Key = 'JP3I'.
AccountTax-Taxjurcode = 'PA0011000'.
accounttax-taxjurcode_deep = 'PA0011000'.
accounttax-taxjurcode_level = '3'.
AccountTax-Stat_Con = 'X'.
CurrencyAmount-Itemno_acc = '0000000008'.
CurrencyAmount-Curr_Type = '00'.
CurrencyAmount-Currency = 'USD'.
CurrencyAmount-Amt_Doccur = '1'.
CurrencyAmount-Amt_Base = '100'.
2. Example configuration of a tax code in transaction FTXP: You use an external tax system. You made Customizing settings (transaction OBCO) to ensure that the system determines tax amounts line by line.
Country key US
Tax code U1
Schema TAXUSX
Tax type V (Input tax)
Tax type Acct Key TaxPercRate Level FromLevel Cond.Type
Base Amount 100 0 BASB
Subtotal 120 0
A/P Sales Tax 1 Inv. NVV 100,000 210 100 XP1I
A/P Sales Tax 2 Inv. NVV 100,000 220 100 XP2I
A/P Sales Tax 3 Inv. NVV 100,000 230 100 XP3I
A/P Sales Tax 4 Inv. NVV 100,000 240 100 XP4I
A/P Sales Tax 5 Inv. NVV 100,000 250 100 XP5I
A/P Sales Tax 3 Inv. NVV 100,000 260 100 XP6I
A/P Sales Tax 1 Use MW1 100,000- 410 210 XP1U
A/P Sales Tax 2 Use MW2 100,000- 420 220 XP2U
A/P Sales Tax 3 Use MW3 100,000- 430 230 XP3U
A/P Sales Tax 4 Use MW4 100,000- 440 240 XP4U
A/P Sales Tax 5 Use MW4 100,000- 450 250 XP5U
A/P Sales Tax 6 Use MW4 100,000- 460 260 XP6U
Geschäftsvorfall:
Es soll eine Rechnung gebucht werden.
You post the gross invoice amount of USD 100 with a total of USD 108.25 as expense according to the calculation procedure. On the other side there are tax line items with amounts of USD 6, 1.25 and 1. The posting record appears as follows:
Expense account 108.25 USD (debit)
To vendor -100.00 USD (credit)
To input tax -6.00 USD (Credit)
To input tax -1.25 USD (Credit)
To input tax -1.00 USD (Credit)
Structure of the tax-relevant BAPI lines:
accountgl-itemno_acc = '20'.
accountgl-gl_account = '0000400000'.
accountgl-tax_code = 'U1'.
accountgl-taxjurcode = '0508525201'.
currencyamount-itemno_acc = '20'.
currencyamount-curr_type = '00'.
currencyamount-currency = 'USD'.
currencyamount-amt_doccur = '108.25'.
*Input tax
CLEAR accounttax.
CLEAR currencyamount.
accounttax-itemno_acc = '30'.
accounttax-itemno_tax = '20'.
accounttax-tax_code = 'U1'.
accounttax-acct_key = 'MW1'.
accounttax-cond_key = 'XP1U'.
accounttax-tax_rate = '100-'.
accounttax-taxjurcode = '050000000'.
accounttax-taxjurcode_deep = '0508525201'.
accounttax-taxjurcode_level = '1'.
currencyamount-itemno_acc = '30'.
currencyamount-curr_type = '00'.
currencyamount-currency = 'USD'.
currencyamount-amt_doccur = '6-'.
currencyamount-amt_base = '100-'.
accounttax-itemno_acc = '40'.
accounttax-itemno_tax = '20'.
accounttax-tax_code = 'U1'.
accounttax-acct_key = 'MW2'.
accounttax-cond_key = 'XP2U'.
accounttax-tax_rate = '100-'.
accounttax-taxjurcode = '050850000'.
accounttax-taxjurcode_deep = '0508525201'.
accounttax-taxjurcode_level = '2'.
currencyamount-itemno_acc = '40'.
currencyamount-curr_type = '00'.
currencyamount-currency = 'USD'.
currencyamount-amt_doccur = '1.25-'.
currencyamount-amt_base = '100-'.
accounttax-itemno_acc = '50'.
accounttax-itemno_tax = '20'.
accounttax-tax_code = 'U1'.
accounttax-acct_key = 'MW3'.
accounttax-cond_key = 'XP3U'.
accounttax-tax_rate = '100-'.
accounttax-taxjurcode = '050852520'.
accounttax-taxjurcode_deep = '0508525201'.
accounttax-taxjurcode_level = '3'.
currencyamount-itemno_acc = '50'.
currencyamount-curr_type = '00'.
currencyamount-currency = 'USD'.
currencyamount-amt_doccur = '0'.
currencyamount-amt_base = '100-'.
accounttax-itemno_acc = '60'.
accounttax-itemno_tax = '20'.
accounttax-tax_code = 'U1'.
accounttax-acct_key = 'MW4'.
accounttax-cond_key = 'XP4U'.
accounttax-tax_rate = '100-'.
accounttax-taxjurcode = '050852520'.
accounttax-taxjurcode_deep = '0508525201'.
accounttax-taxjurcode_level = '4'.
currencyamount-itemno_acc = '60'.
currencyamount-curr_type = '00'.
currencyamount-currency = 'USD'.
currencyamount-amt_doccur = '1-'.
currencyamount-amt_base = '100-'.
accounttax-itemno_acc = '70'.
accounttax-itemno_tax = '20'.
accounttax-tax_code = 'U1'.
accounttax-acct_key = 'MW4'.
accounttax-cond_key = 'XP5U'.
accounttax-tax_rate = '100-'.
accounttax-taxjurcode = '050852520'.
accounttax-taxjurcode_deep = '0508525201'.
accounttax-taxjurcode_level = '5'.
currencyamount-itemno_acc = '70'.
currencyamount-curr_type = '00'.
currencyamount-currency = 'USD'.
currencyamount-amt_doccur = '0'.
currencyamount-amt_base = '100-'.
accounttax-itemno_acc = '80'.
accounttax-itemno_tax = '20'.
accounttax-tax_code = 'U1'.
accounttax-acct_key = 'MW4'.
accounttax-cond_key = 'XP6U'.
accounttax-tax_rate = '100-'.
accounttax-taxjurcode = '050852520'.
accounttax-taxjurcode_deep = '0508525201'.
accounttax-taxjurcode_level = '6'.
currencyamount-itemno_acc = '80'.
currencyamount-curr_type = '00'.
currencyamount-currency = 'USD'.
currencyamount-amt_doccur = '0'.
currencyamount-amt_base = '100-'.
*NVV
accounttax-itemno_acc = '90'.
accounttax-itemno_tax = '20'.
accounttax-tax_code = 'U1'.
accounttax-acct_key = 'NVV'.
accounttax-cond_key = 'XP1I'.
accounttax-tax_rate = '100'.
accounttax-taxjurcode = '050000000'.
accounttax-taxjurcode_deep = '0508525201'.
accounttax-taxjurcode_level = '1'.
accounttax-stat_con = 'X'.
currencyamount-itemno_acc = '90'.
currencyamount-curr_type = '00'.
currencyamount-currency = 'USD'.
currencyamount-amt_doccur = '6'.
currencyamount-amt_base = '100'.
accounttax-itemno_acc = '100'.
accounttax-itemno_tax = '20'.
accounttax-tax_code = 'U1'.
accounttax-acct_key = 'NVV'.
accounttax-cond_key = 'XP2I'.
accounttax-tax_rate = '100'.
accounttax-taxjurcode = '050850000'.
accounttax-taxjurcode_deep = '0508525201'.
accounttax-taxjurcode_level = '2'.
accounttax-stat_con = 'X'.
currencyamount-itemno_acc = '100'.
currencyamount-curr_type = '00'.
currencyamount-currency = 'USD'.
currencyamount-amt_doccur = '1.25'.
currencyamount-amt_base = '100'.
accounttax-itemno_acc = '110'.
accounttax-itemno_tax = '20'.
accounttax-tax_code = 'U1'.
accounttax-acct_key = 'NVV'.
accounttax-cond_key = 'XP3I'.
accounttax-tax_rate = '100'.
accounttax-taxjurcode = '050852520'.
accounttax-taxjurcode_deep = '0508525201'.
accounttax-taxjurcode_level = '3'.
accounttax-stat_con = 'X'.
currencyamount-itemno_acc = '110'.
currencyamount-curr_type = '00'.
currencyamount-currency = 'USD'.
currencyamount-amt_doccur = '0'.
currencyamount-amt_base = '100'.
accounttax-itemno_acc = '120'.
accounttax-itemno_tax = '20'.
accounttax-tax_code = 'U1'.
accounttax-acct_key = 'NVV'.
accounttax-cond_key = 'XP4I'.
accounttax-tax_rate = '100'.
accounttax-taxjurcode = '050852520'.
accounttax-taxjurcode_deep = '0508525201'.
accounttax-taxjurcode_level = '4'.
accounttax-stat_con = 'X'.
currencyamount-itemno_acc = '120'.
currencyamount-curr_type = '00'.
currencyamount-currency = 'USD'.
currencyamount-amt_doccur = '1'.
currencyamount-amt_base = '100'.
accounttax-itemno_acc = '130'.
accounttax-itemno_tax = '20'.
accounttax-tax_code = 'U1'.
accounttax-acct_key = 'NVV'.
accounttax-cond_key = 'XP5I'.
accounttax-tax_rate = '100'.
accounttax-taxjurcode = '050852520'.
accounttax-taxjurcode_deep = '0508525201'.
accounttax-taxjurcode_level = '5'.
accounttax-stat_con = 'X'.
currencyamount-itemno_acc = '130'.
currencyamount-curr_type = '00'.
currencyamount-currency = 'USD'.
currencyamount-amt_doccur = '0'.
currencyamount-amt_base = '100'.
accounttax-itemno_acc = '140'.
accounttax-itemno_tax = '20'.
accounttax-tax_code = 'U1'.
accounttax-acct_key = 'NVV'.
accounttax-cond_key = 'XP6I'.
accounttax-tax_rate = '100'.
accounttax-taxjurcode = '050852520'.
accounttax-taxjurcode_deep = '0508525201'.
accounttax-taxjurcode_level = '6'.
accounttax-stat_con = 'X'.
currencyamount-itemno_acc = '140'.
currencyamount-curr_type = '00'.
currencyamount-currency = 'USD'.
currencyamount-amt_doccur = '0'.
currencyamount-amt_base = '100'.
Special case:
There is no AccountTax-Stat_Con field for the BAPIs BAPI_ACC_DOCUMENT_POST / CHECK. Therefore, it cannot be set in this case.
The program derives it automatically. -
BAPI_ACC_INVOICE_RECEIPT_POST
Hi,
can someone tell me the required parameter of the Fm.
I want to post some parked invoice through this.
Thanks,
sanjuktaHi,
CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
EXPORTING
documentheader = docheader
IMPORTING
obj_type = obj_type
obj_key = obj_key
obj_sys = obj_sys
TABLES
accountpayable = accountpay
accountgl = accountgl
accounttax = accounttax
currencyamount = curramount
return = return1
extension1 = extension1.
Regards
Sudheer
Maybe you are looking for
-
Seagate external hard drive not connecting to Mac
I plug in a Seagate GoFlex 500GB external hard drive into my PowerBook (specs at bottom of post). I go into Disk Utility to try to resize one of my partitions so I can back my Mac up. I click the final "Continue" button, and a few seconds later I get
-
One field is missing in downloading the file from report
Hi Friends, I have a problem with downloading the file from SAP. Actually the report has to download 6 fields from the list of the report to a .txt file on the presentation server. But it is downloading only 5 fields. The missing field is DEA#. Actua
-
Adobe App Manager no longer works
For some reason my Adobe App Manager does not work on my Macbook. It orginally did but one day it just would not launch. After numerous attempts of uninstalling and re-installing without success, the only workaround solution was to create another use
-
How to set background and other elements for each page of gallery?
I guys, I used th DW/FW Web Photo Gallery tool to make this gallery: http://12bar.co.nz/Gallery/index.htm then edited index.htm to make the page look a bit more attractive. However, when you click on any of the images you just get the ugly white back
-
i searched discussions for this question but wasn't sucessful ... so here's my question: i use a toshiba pc laptop and an iMac G5 ... in order to watch dvds (with different region codes) on my PC, I use VLC with great success ... I wanted to do the s