Posting Withhold tax thru "BAPI_INCOMINGINVOICE_CREATE"
Hi all,
I am facing problem in posting withhold tax thru the standard BAPI. The invoice is posting properly but not updating the Withhold tax amounts that I am passing to the BAPI. And it is giving no error either.
When trying to post manually thru MIRO it is ok.
But thru BAPI it is not getting updated.
Did anybody face this problem, or has successfully posted the withhold tax thru this BAPI?
Please help me out.
Thanks
Did you resolve this problem ? could you share your solution for this please ?
Similar Messages
-
Urgent : Im not able to Post Withholding Tax in "BAPI_ACC_DOCUMENT_POST"
Hey Guys,
I am not able to Post Withholding Tax in BAPI "BAPI_ACC_DOCUMENT_POST".
Can anybody please tell me the alternative ???
How can i post With holding TAX info with accounting document...is there any other function module to do the same ???
It's very urgent...only 3 days are left for Project to be Live.
Please help me ...
Thanks in advanceHi
Hope it will help you.
<REMOVED BY MODERATOR>
BAPI_ACC_GL_POSTING_CHECK
CALL FUNCTION 'BAPI_ACC_GL_POSTING_CHECK'
EXPORTING
documentheader = w_documentheader
TABLES
accountgl = it_accountgl
currencyamount = it_currencyamount
return = it_return.
Populate the corresponding tables with the data you have.
For the Date do convert it.
PERFORM convert_date USING it_header-bldat
CHANGING w_documentheader-doc_date.
w_documentheader-comp_code = 'z998'
w_documentheader-doc_type = 'SA'
"and fill the respective tables this way .
<b>
BAPI_ACC_GL_POSTING_POST
</b>
call function 'BAPI_ACC_GL_POSTING_POST'
exporting
documentheader = doc_header
IMPORTING
OBJ_TYPE = l_objtype
* OBJ_KEY =
* OBJ_SYS =
tables
accountgl = t_accountgl
currencyamount = t_curramt
return = t_return
* EXTENSION1 =
Edited by: Alvaro Tejada Galindo on Mar 5, 2008 10:18 AM -
Im not able to Post Withholding Tax in "BAPI_ACC_DOCUMENT_POST"
Hey Guys,
I am not able to Post Withholding Tax in BAPI "BAPI_ACC_DOCUMENT_POST".
Can anybody please tell me the alternative ???
How can i post With holding TAX info with accounting document...is there any other function module to do the same ???
It's very urgent...only 3 days are left for Project to be Live.
Please help me ...
Thanks in advance
Edited by: Sachin Sawant on Jan 23, 2008 11:32 AM
Edited by: Alvaro Tejada Galindo on Mar 5, 2008 6:02 PMHi sachin,
we also facing the same problem. we tried by passing to table accounttax.getting message documnet posted with key.but couldn't find the entry in table with that key.are the tables bkpf & bseg where it stores in case of account tax also?
cau send example code which you have tried and succes post with tax item and so flag was set.
Its so urgent for us.Please help us.
Thanks in advance.
salini -
FBRA - Payment was posted withholding tax
One Invoice was booked with TDS and payment was made to vendor (net amount after discount) and check was updated.
Now when tried to reset (FBRA) the pyament document it is saying Payment was posted with withholding tax.
How to reverse invoice without reversing payment document?You can not reverse the invoice without reversing the payment document.
Alternativaly you can create a manual invoice with contra amounts postings. (Transaction FB65)
Regards,
SDNer -
Withholding tax for Invoice posting
My client has WHT set up for payments in Mexico but they also want to set that up for Invoice posting, should I create new Tax type and code for that? And also to which accounts I need to define that type & code?
I am confused. Please help.
Thanks,
STHi S T
Withholding tax can be at two types
* Withholding tax at the time of invoice posting
* Withholding tax at the time of payment
As you have withholding tax at the time of payment, if you want WHT at the time of invoice also, then you have to create type and codes under that
Kindly let us know if you need any help further
Thanks
Prasad -
Table for special G/L indicator and withholding tax?
Hi experts,
Iu2019m trying to post a vendor invoice on F-02. When I use vendor invoice posting key the system brings withholding tax automatically but when I use special G/L indicator (incoming credit posting ) withholding tax is not coming.
Is there any connection between posting key and withholding tax or special G/L indicator? Where should I correct this error?
Thanks by now
Edited by: Hande Yaman on May 31, 2011 5:01 PMDear,
You can check out relationship between posting key and wht by checking Field status group of posting key in OB41. Now comming to the problem with your special GL indicator with no WHT posting, you need to check FSG of Special Gl indictator in OBYR and special GL in OBC4. Look if its suppressed there.
Regards -
Withholding tax calculation @ Customer payment
Hi
Experts, can any one help me on this issue??. I want to calculate and post withholding tax for a customer at the time of incoming payment(F-28). I have already activated extended withholding tax, defined tax type, tax code, & assigned in the customer master data. But system not calculating the tax nor its displaying tax code in the payment screen, & throwing a message when I double click on the relevant tax column ie " withholding tax information missing from line item" I f someone could throw a light on this, it would be a great help,
Thanks in advance
Hariharan.Kindly check
1. Define witholding tax type for invoice posting
IMG > Financial Account Global settings > Withholding tax > Extended Withholding Tax > Calculation > Withholding Tax type > <b>Define Withholding Tax Type for Invoice posting</b>
2. Define witholding tax type for payment posting
IMG > Financial Account Global settings > Withholding tax > Extended Withholding Tax > Calculation > Withholding Tax type > <b>Define Withholding Tax Type for Payment Posting</b>
and also check OBWW (Define account for w/h tax)
rgds. -
F110 - Withholding taxes - Bill of Exchange Payments
Hello Gurus,
I have a problem implementing Bill of Exchange Payments, we are creating bill of exchange before due date because we are using a confirming service with our bank. When we make a payment run, the system post the bills of exchange for the invoices that are gonna due, thats fine, but the problem is the system also post withholding tax at this time, so it its not right at all because we are not paying the invoices, the payment day is when we clear the bill of exchange at due date and we transfer the real money to the bank. So we could solve this problem if there is a way to post different dates in the same run of payment, if we could post each bill of exchange on due date would be perfect.
I have been looking for a way to change de post date in F110 or another solution, but i dont get anything yet.
Thanks in advance for your answers.Dear Jehade,
yes, please be kindly informed that special G/L transactions such as down
payment and bills of exchange are not supported for one-time accounts.
Please read the SAP note 19638. This functionality that you require is
not available in the system. As the note states, the only way is to
define your customer as a regular customer to enable the functionality.
I hope this helps.
Mauri -
Hi
i have created WHT tax type and code and created account and assigned to them
i am facing following issue
1 At time of posting i am not able to post WHT even though FB60 shows WHT details .
2 due to which at time of payment I am notable to see WHT amt in F-53
please discuss wher i am making error ?
Regards
KAUSHALHI Kaushal ,
can you please check your tax codes for withholding tax type . As you defined when you want to post withholding tax .
Once you define this you assigned the withhholding tax account on the basis of debit /crdit and type and tax codes . Please see below screen shots.
Let me know if this helps you ,
Many thanks
Regards
Preeti Agarwal -
Withholding TAX - AP INVOICE through DI API
Hi Experts,
I am posting AP INVOICE through DI API. When am posting WITHHOLDING TAX for AP INVOICE am getting error like "Total taxable amount of all rows exceeds the base amount [pch5.taxbleamt]". My code
APINVOICE.WithholdingTaxData.WTCode = ORec1.Fields.Item("WTCode").Value
APINVOICE.WithholdingTaxData.WTAmount = ORec1.Fields.Item("WTAmnt").Value
APINVOICE.WithholdingTaxData.Add()
Please help me to solve this issue.
Thanks in advance,
Jeevan.Hi
The below code can be used to add WT tax, But ensure that BP having the WTCode mapped.
APINVOICE.WithholdingTaxData.WTCode = "TC-2"
APINVOICE.WithholdingTaxData.Add()
TC-2 is the WTCode mapped to Vendor i chose to add A/P invoice thro DI API.
Regards,
Tamizh. -
Calculate withholding tax with bapi
Hi Guys,
has anyone used BAPI_ACC_DOCUMENT_POST to post a vendor invoice and calculate withholding tax automatically.
Urgently needed.
Regards,
Tarun BahalTarun,
Just refer:
Urgent : Im not able to Post Withholding Tax in "BAPI_ACC_DOCUMENT_POST"
Amit. -
BAPI_INCOMINGINVOICE_CREATE: Withholding tax data is not coming
Dear all,
I am using this BAPI to create Incoming Invoice. I am populating the Headerdata and Itemdata table. Then the invoice which is created doesnt have Withholding Tax Data Information.
Even I tried to populate withtaxdata table, but didnt find the soln.
The code is as shown below:
DATA: t_headerdata LIKE STANDARD TABLE OF bapi_incinv_create_header WITH HEADER LINE,
t_itemdata LIKE STANDARD TABLE OF bapi_incinv_create_item WITH HEADER LINE,
t_withtaxdata LIKE STANDARD TABLE OF bapi_incinv_create_withtax WITH HEADER LINE,
t_return LIKE STANDARD TABLE OF bapiret2 WITH HEADER LINE,
v_invoicedocnumber LIKE bapi_incinv_fld-inv_doc_no,
v_fiscalyear LIKE bapi_incinv_fld-fisc_year,
v_bukrs TYPE bukrs.
DATA: v_knumv LIKE konv-knumv,
v_kschl LIKE konv-kschl.
LOOP AT itab1.
tabix = 0.
IF tabix = 0.
LOOP AT itab2 WHERE ebeln = itab1-ebeln.
MOVE-CORRESPONDING itab2 TO itab3.
APPEND itab3.
ENDLOOP.
tabix = 1.
ENDIF.
SORT itab3 BY ebelp.
count = 0.
v_netamt = 0.
LOOP AT itab3 WHERE ebeln = itab1-ebeln.
v_menge = v_menge + itab3-tot_ton.
v_dmbtr = v_dmbtr + itab3-frt_amt.
AT END OF ebelp.
count = count + 1.
t_itemdata-invoice_doc_item = count.
READ TABLE itab3 WITH KEY ebeln = itab1-ebeln
ebelp = itab3-ebelp.
IF sy-subrc = 0.
t_itemdata-po_number = itab3-ebeln.
t_itemdata-po_item = itab3-ebelp.
t_itemdata-item_amount = v_dmbtr.
t_itemdata-quantity = v_menge.
t_itemdata-po_unit = itab1-meins.
t_itemdata-item_text = itab1-text.
t_itemdata-tax_code = 'V0'.
*Condition Type
SELECT SINGLE knumv
FROM ekko
INTO v_knumv
WHERE ebeln = itab1-ebeln.
IF sy-subrc = 0.
SELECT SINGLE kschl
FROM konv
INTO v_kschl
WHERE knumv = v_knumv
AND kposn = itab3-ebelp
AND ( ( kschl = 'FRC1' ) OR ( kschl = 'FRB1' ) ).
IF sy-subrc = 0.
t_itemdata-cond_type = v_kschl.
ENDIF.
ENDIF.
APPEND t_itemdata.
CLEAR: v_menge, v_dmbtr.
ENDIF.
ENDAT.
v_netamt = v_netamt + itab3-frt_amt.
ENDLOOP.
t_headerdata-invoice_ind = 'X'.
t_headerdata-doc_date = itab1-inv_date.
t_headerdata-pstng_date = itab1-budat.
t_headerdata-ref_doc_no = itab1-refno.
SELECT SINGLE bukrs INTO v_bukrs FROM ekko WHERE ebeln = itab1-ebeln.
IF sy-subrc = 0.
t_headerdata-comp_code = v_bukrs.
ENDIF.
t_headerdata-currency = itab1-waers.
t_headerdata-gross_amount = v_netamt.
t_headerdata-bline_date = itab1-budat.
t_headerdata-item_text = itab1-text.
t_headerdata-diff_inv = itab1-lifnr.
t_headerdata-business_place = '1000'.
APPEND t_headerdata.
t_withtaxdata-wi_tax_type = 'C1'.
t_withtaxdata-wi_tax_code = 'C1'.
t_withtaxdata-wi_tax_base = v_netamt.
APPEND t_withtaxdata.
t_withtaxdata-wi_tax_type = 'C2'.
t_withtaxdata-wi_tax_code = 'C2'.
t_withtaxdata-wi_tax_base = v_netamt.
APPEND t_withtaxdata.
t_withtaxdata-wi_tax_type = 'C3'.
t_withtaxdata-wi_tax_code = 'V3'.
t_withtaxdata-wi_tax_base = v_netamt.
APPEND t_withtaxdata.
CLEAR: v_netamt.
break bsfdev.
CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
EXPORTING
headerdata = t_headerdata
ADDRESSDATA =
IMPORTING
invoicedocnumber = v_invoicedocnumber
fiscalyear = v_fiscalyear
TABLES
itemdata = t_itemdata
ACCOUNTINGDATA =
glaccountdata =
MATERIALDATA =
TAXDATA =
withtaxdata = t_withtaxdata
VENDORITEMSPLITDATA =
return = t_return
CLEAR errflag.
LOOP AT t_return.
IF t_return-type EQ 'E'.
it_message-text = 'Error in function'.
it_message-text1 = t_return-message.
it_message-po_number = itab1-ebeln.
it_message-exnum = itab1-exnum.
APPEND it_message.
errflag = 'X'.
ELSE.
ENDIF.
ENDLOOP.
IF errflag IS INITIAL.
COMMIT WORK AND WAIT.
IF sy-subrc NE 0.
it_message-po_number = itab1-ebeln.
it_message-text = 'Error in updating'.
it_message-text1 = t_return-message.
APPEND it_message.
EXIT.
ELSE.
*Fill Temporary table
LOOP AT itab3.
IF v_invoicedocnumber <> space.
it_message1-po_number = itab3-ebeln.
it_message1-po_item = itab3-ebelp.
it_message1-doc_number = itab3-belnr.
it_message1-invoicedocno = v_invoicedocnumber.
it_message1-exnum = itab1-exnum.
APPEND it_message1.
zpending_challan-po_number = itab3-ebeln.
zpending_challan-po_item = itab3-ebelp.
zpending_challan-doc_number = itab3-belnr.
zpending_challan-exnum = itab3-exnum.
zpending_challan-invoicedocno = v_invoicedocnumber.
zpending_challan-menge = itab3-tot_ton.
zpending_challan-dmbtr = itab3-frt_amt.
zpending_challan-budat = itab3-budat.
INSERT zpending_challan FROM zpending_challan.
COMMIT WORK.
CLEAR: zpending_challan.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
IF errflag IS INITIAL.
count = count + 1.
CONCATENATE count 'Purchase Order Posted Out of ' no_recs1
INTO text1 SEPARATED BY space.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
text = text1
CONCATENATE 'Invoice Document No' v_invoicedocnumber 'generated'
INTO text1 SEPARATED BY space.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
text = text1
ENDIF.
CLEAR: t_headerdata[], t_headerdata,
t_itemdata[], t_itemdata,
itab3[], itab3.
ENDLOOP.
Kindly help. Its very urgent.
Thanks.
Vinod.Not used any more
-
Withholding tax Amount not being displayed in the Invoice while posting a Parked Document
Hi,
I have created a parked document for the Vendor who has the Witholding tax code w9 - 15% . I created Parked Document using FBV1 and then tried posting the same using FBV0.Somehow I am not getting the Withholding tax Amount in the FI Document created. However the W/Tax Base Amount and the W/ Base LC are being displayed correctly.
Say if the Line item Amount is 1,000$ then both the amounts mentioned above in the Additional tab "Withholding tax Data" are being displayed as 1,000 usd but the W/Tax Amount is 0,00 USD.
2. Also We have the PI and the Interface is written to post the Parked document while the xml file. There is a Method Execute_Asynchronous which has two BDCs one for FBV2 ( Change Parked Document ) followed by the Post Parked Document FBV0. Hence When I try to post the Parked Document using the SPROXY Interface which has two BDCs Viz FBV2 & FBV0 I still get the Invoice with the Same Amounts and at times with additional 2 zeros added to it in the Additionsal Tax Data Screen.
I am not sure what is the reason for this. Can anybody help me sort out this Issue.
Can there be any Config issues. Please let me know what all config Settings we need to do to sort out this Issue.
Also let me know why the 2 Zeros are getting added to the Base Amount e.g if the Vendor Line item is 12,000 USD it shows as 12,00000.00 in the Withholding tax Data Tab in the Invoice.
Regards,
Deepak.Dear Praveen,
please check into IMG if You defined the WT type You are using for Your Comapny code:
IMG --> Assign Withholding Tax Types to Company Codes
I hope this helps.
Mauri -
Withholding tax line items are not post
Hi,
I was configured all the steps for extended withholding tax up to Assign withholding tax to vendor master data
and the i am used to post an vendor invoice
given all required feild and press enrer and display the withhoding tax codes screen here also press enter button .... i entered all required field and go to simulation this posting i am getting only 2 line items
like for eg: --- Inventory Debit , Vendor Credit only
here my problem is i am not getting the all with holding tax line items
please hepl
SreeDear Sree,
if You defined the WT type at the payment time, the WT line items will be created at the payment time and not during the invoice posting.
Please check.
Mauri -
How to post a PARK document with Withholding Tax
Hi All,
I have parked a document using FB60.Vendor is subject to withholding tax.Now,when i am posting the document through FBV0,the error message displayed is :
"Field BSEG-SECCO does not exist in the screen SAPMF05A 0303".
The error message says that Section Code (Withholding Tax) is missing for Special G/L Indicator Line Item.I dont have provision to enter section code in the screen.
My entries are :
29J Vendor a/c Dr.
50 XYZ a/c
If i using F-02 and not parking ;then it is getting posted.
Note: Line Item is a special G/L Indicator
Please advise how to post a park document using FBV0 with special g/L Indicator and vendor is subject to withholding tax.Hi Parag,
Section code field doesnot exist in the special G/L indicator line item of the document.So,i cannot enter it.
But,when posting the parked document ,it is asking for Section Code.
The error message displayed is:
"Field BSEG-SECCO. does not exist in the screen SAPMF05A 0303"
Maybe you are looking for
-
IPod not being recognized during Installation
Hi i was just installing my ipod software, and when i plugged in the ipod when it said to, nothing happened, and now my ipod is stuck with just the apple symbol I cant even turn it off... please help
-
Error 1935 when Installing LabVIEW 8.6 Student Edition
Hi, I'm trying to help my son get the disks installed that came with his Circuits textbook. It is installing the student edition of LabVIEW 8.6 and getting an error, error 1935 to be exact, when trying to install the CVI package. The system is a 64
-
I'm having a tough time getting my HDV timeline to playout to a Sony Z1U HDV camera. I keep selecting View/external video/All frames and the Z1U screen stays blue. It won't even flicker. My sequence settings are Compressor=HDV 1080i60 editing timebas
-
Is it best to run my zen touch off of an alternate power sour
Hey I was wondering if using an alternate power source such as a car adapter would increase my zen touch's battery life. It kind of seems like it would but i don't know for sure. Thanks!
-
Hi All, I am new to web services. I am still learning. I want to know how to develop JAX-WS(metro webservices) using contract-first approach? I just read in Axis2 you can do it using wsdl2java. I may be wrong but what I read about wsimport in metro w