Table behind tax details in P.O
Hi,
im trying to find the tax condition types in a purchase order by going to item detail(invoice tab) ->taxes button and it displays the taxes .
i'm unable to find the table where the tax conditon type , amount and the conditon value are being stored, though it shows komv and refers to konv. i checked and the tax details are not stored in KONV.
Can some one help me out on how to retrieve the tax amounts?
Regards,
ravi.
Hope this code gives you some idea:
PARAMETERS: P_EBELN LIKE EKKO-EBELN OBLIGATORY,
P_BUKRS LIKE T001-BUKRS OBLIGATORY.
TYPES: BEGIN OF T_COND,
KNUMV LIKE KONV-KNUMV,
KPOSN LIKE KONV-KPOSN,
KSCHL LIKE KONV-KSCHL,
KRECH LIKE KONV-KRECH,
KAWRT LIKE KONV-KAWRT,
KBETR LIKE KONV-KBETR,
WAERS LIKE KONV-WAERS,
MWSK1 LIKE KONV-MWSK1,
END OF T_COND.
DATA: IT_COND TYPE STANDARD TABLE OF T_COND,
WA_COND TYPE T_COND.
DATA: L_KNUMV TYPE KNUMV,
L_LAND1 LIKE T001-LAND1,
L_KALSM LIKE T005-KALSM,
L_KBETR LIKE BSET-KBETR,
TAX_AMT LIKE BSET-KBETR.
SELECT SINGLE KNUMV INTO L_KNUMV FROM EKKO WHERE EBELN = P_EBELN.
SELECT KNUMV KPOSN KSCHL KRECH
KAWRT KBETR WAERS MWSK1
INTO TABLE IT_COND
FROM KONV AS B
WHERE KNUMV = L_KNUMV.
CLEAR: L_LAND1.
SELECT SINGLE LAND1 INTO L_LAND1 FROM T001 WHERE BUKRS EQ P_BUKRS.
SELECT SINGLE KALSM INTO L_KALSM FROM T005 WHERE LAND1 = L_LAND1.
LOOP AT IT_COND INTO WA_COND WHERE NOT MWSK1 IS INITIAL.
CALL FUNCTION 'FI_TAX_GET_CONDITION'
EXPORTING
I_BUKRS = P_BUKRS
I_LAND1 = L_LAND1
I_KALSM = L_KALSM
I_MWSKZ = WA_COND-MWSK1
I_TXJCD = ' '
I_KSCHL = WA_COND-KSCHL
I_KTOSL = ' '
I_TDATE = SY-DATUM
IMPORTING
* E_KNUMH =
E_KBETR = L_KBETR
* E_KTOSL =
* E_KSCHL =
EXCEPTIONS
INPUT_PARAM_INVALID = 1
BUKRS_INVALID = 2
COUNTRY_INVALID = 3
TXJCD_INVALID = 4
CONDITION_NOT_FOUND = 5
OTHERS = 6.
TAX_AMT = WA_COND-KAWRT * ( L_KBETR / 10 ) / 100.
BREAK-POINT.
ENDLOOP.
Copy the above code to a temporary program and execute. Everytime you reach the break-point check the amount in TAX_AMT w.r.t the tax amount in PO.
Kind Regards
Eswar
Similar Messages
-
Table and fields for tax details
Hi,
I have to create one Finance module Report in which i want to display net amount without tax for one single line item which is open item for incoming customer invoice, the accounting department need to know the net value (without tax) .
In tcode FB03 , if you see the document number then it will give all accounts(customer), posting key wise amount, but this amount is gross amount. in this amount tax amount is added as per tax code. (you can see by clicking tax details tab), and tax calculated is for whole ducoments number not for single line item.
i want net amount without adding tax amount for particular single line item. so please guide me table and fields from where and how i can calculate. in tax tab there is field base amount but its giving calculation against all total against document.
table i am using in my report is KNA1.KNKK, KNB1, BKPF. BSEG.
Give me some idea. how can i prepare report.
Have a Nice Day,
Regards,
SujeetDear Dzed Maroz ,
Thanks for your reply.
I have already checked these fields (HWSTE, FWSTE) in table BSET. this fields tax amount againt that Document Number. (which may contains more than one line items), but my requirement is to find the amount without tax for individual line item.
reason is , i want to display in my report only open items and it will be a line item, so i am displaying net amount as well base amount (without tax) for particular line items.
but tax details is calculated based on document number not against customer number.this is incoming invoice
,and in customization tax code is assigned, so its reflecting amount after including tax amount.
is there any way to find out solution? please give me some idea.
regards,
sujeet -
Tables or FM's for Purchase order ,Invoice, Taxes details
Hi,
I want to know from which tables or function modules we can get the condition type, amount and condition value.
Purchase order Line Item > Invoice (tab)> Taxes (tab)--> condition type, amount and condition value?
Regards,
Prem.Hi
LOGIC :
1 you will get po number fron EKPO
2, for same po you will get invoice in table RSEG
3.Pass the BELNR( Invoice number) in to BKPF into refernce field( where you will get invoice number+fiscal year) and same table you will get Fi doc in BELNR
4Then pass the BELNR in to BSET
5.Where all tax details available
Regards
Kailas ugale -
DRQ : Exposing the Tax details tables in PLD
Hi Experts,
Expose the respective Tax details tables in PLD for marketing documents ?
For example table INV4 for A/R Invoice.
Samir Gandhias I reach 10 post, I have to compulsorily close this thread
-
Withholding tax details screen
Hi ! I've created a report to display vendor withholding tax details. Now, i want to open the Withholding Tax details screen as soon as the user clicks on the vendor code in the report.
Following code used to call the XK02 screen:-
FORM USER_COMMAND USING LV_UCOMM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.
CASE LV_UCOMM.
WHEN '&IC1'.
READ TABLE IT_VENDOR INDEX SELFIELD-TABINDEX.
CASE SELFIELD-FIELDNAME.
WHEN 'LIFNR'.
SET PARAMETER ID 'LIF' FIELD IT_VENDOR-LIFNR.
SET PARAMETER ID 'BUK' FIELD IT_VENDOR-BUKRS.
CALL TRANSACTION 'XK02' AND SKIP FIRST SCREEN.
ENDCASE.
ENDCASE.
ENDFORM. "USER_COMMAND
Please help.Hi Dear
Check similar kind of reuirement i have done for FD33
CASE P_COMM.
Double Click Event
WHEN '&IC1'.
IF LS_SELFIELD-TABINDEX > 0 AND LS_SELFIELD-SUMINDEX LE 0.
READ TABLE PAYER_KNKK_1 INTO LS_PAYER INDEX LS_SELFIELD-TABINDEX.
PERFORM BDC_DYNPRO USING 'SAPMF02C' '0100'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RF02L-D0210'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'RF02L-KUNNR'
LS_PAYER-KUNNR.
PERFORM BDC_FIELD USING 'RF02L-KKBER'
LS_PAYER-KKBER.
PERFORM BDC_FIELD USING 'RF02L-D0210'
'X'.
PERFORM BDC_DYNPRO USING 'SAPMF02C' '0210'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=UPDA'.
opt-dismode = 'E'.
opt-defsize = 'X'.
CALL TRANSACTION 'FD33' USING I_BDCTAB OPTIONS FROM opt.
ENDIF.
ENDCASE.
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
I_BDCTAB-PROGRAM = PROGRAM.
I_BDCTAB-DYNPRO = DYNPRO.
I_BDCTAB-DYNBEGIN = 'X'.
APPEND I_BDCTAB.
CLEAR I_BDCTAB.
endform.
FORM BDC_FIELD USING FNAM FVAL.
I_BDCTAB-FNAM = FNAM.
I_BDCTAB-FVAL = FVAL.
APPEND I_BDCTAB.
CLEAR I_BDCTAB.
ENDFORM. "bdc_field
May be helpful. -
Tax details not geting populated
Hi Folks,
I have a problem in populating tax details.can anyone here please let me know where I am going wrong in the code.The last butone field is caluculation and can be ignored for the time being.
REPORT ZMMEXCISETEST .
*Tables.
TABLES : ekbe,
rbkp,
rseg,
bkpf,
bset,
lfa1,
makt.
*Declaration for ALV.
TYPE-POOLS: slis.
DATA : itfieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA : itrepid TYPE sy-repid.
itrepid = sy-repid.
DATA : itevent TYPE slis_t_event.
DATA : itlistheader TYPE slis_t_listheader.
DATA : walistheader LIKE LINE OF itlistheader.
DATA : itlayout TYPE slis_layout_alv.
DATA : top TYPE slis_formname.
DATA : itsort TYPE slis_t_sortinfo_alv WITH HEADER LINE.
DATA : itsort1 TYPE slis_sortinfo_alv.
DATA : itprintparams TYPE slis_print_alv.
DATA : itvariant TYPE disvariant.
DATA : date1 LIKE rbkp-budat,
date2 LIKE rbkp-budat,
string1(65) TYPE c,
title(65) TYPE c.
DATA:L_BELNR1 TYPE BKPF-BELNR,
L_AWKEY1 TYPE BKPF-AWKEY.
*Internal table Declarations.
TYPES: BEGIN OF ty_itfinal,
sl_no TYPE sy-tabix, " FOR SERIAL No.
belnr TYPE rbkp-belnr, " Material Doc. No.
budat TYPE rbkp-budat, " Posting Date in the Document
lifnr TYPE rbkp-lifnr, " Vendor Code
xblnr TYPE rbkp-xblnr, " Supplier Document Number
bldat TYPE rbkp-bldat, " Document Date
kursf TYPE rbkp-kursf, "
buzei TYPE rseg-buzei, " miro line item
ebeln TYPE rseg-ebeln, " po no
ebelp TYPE rseg-ebelp, " PO line item
matnr TYPE rseg-matnr, " part no
bwtar TYPE rseg-bwtar, " valuation type
menge TYPE rseg-menge, " quantity
wrbtr TYPE rseg-wrbtr, " value of goods
lfbnr TYPE rseg-lfbnr, "
wrbtr_r TYPE rseg-wrbtr, " Rate
wrbtr_v TYPE rseg-wrbtr, " Value of Goods
bewtp TYPE ekbe-bewtp, " PO history category
budat1 TYPE ekbe-budat, "
hwste_c TYPE bset-hwste, " ED/CVD(Tax Amount in Local Currency)
hwste_e TYPE bset-hwste, " E.Cess(Tax Amount in Local Currency)
hwste_s TYPE bset-hwste, " Snhe.Cess(Tax Amount in Local Currency)
accno TYPE bkpf-belnr, "
BELNR1 TYPE BKPF-BELNR,
AWKEY TYPE BKPF-AWKEY,
name1 TYPE lfa1-name1, " vendor name
maktx TYPE makt-maktx, " Material Description
END OF ty_itfinal.
DATA: itfinal TYPE ty_itfinal OCCURS 0 WITH HEADER LINE.
TYPES : BEGIN OF ty_itab1,
belnr LIKE rbkp-belnr, " Material Doc. No.
budat LIKE rbkp-budat, " Posting Date in the Document
lifnr LIKE rbkp-lifnr, " Vendor Code
xblnr LIKE rbkp-xblnr, " Supplier Document Number
bldat LIKE rbkp-bldat, " Document Date
kursf LIKE rbkp-kursf, " Ex.Rate
END OF ty_itab1.
DATA :itab1 TYPE ty_itab1 OCCURS 0 WITH HEADER LINE.
*Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.
PARAMETERS: p_bukrs LIKE rbkp-bukrs OBLIGATORY.
PARAMETERS: p_werks like rseg-werks OBLIGATORY.
SELECT-OPTIONS: s_budat FOR rbkp-budat OBLIGATORY.
PARAMETERS : p_gjahr LIKE rseg-gjahr OBLIGATORY.
SELECTION-SCREEN END OF BLOCK block1.
date1 = s_budat-low.
date2 = s_budat-high.
PERFORM getdata.
PERFORM alv.
*& Form GETDATA
text
--> p1 text
<-- p2 text
FORM getdata .
*Invoice Header
SELECT belnr
budat
lifnr
xblnr
bldat
kursf
FROM rbkp
INTO TABLE itab1
WHERE gjahr = p_gjahr.
IF sy-subrc NE 0.
MESSAGE 'No Values.' TYPE 'S'.
ELSE.
LOOP AT itab1.
IF itab1-budat NOT IN s_budat.
DELETE itab1.
ENDIF.
ENDLOOP.
ENDIF.
*Invoice Item.
LOOP AT itab1.
MOVE-CORRESPONDING itab1 TO itfinal.
SELECT buzei
matnr
bwtar
menge
wrbtr
lfbnr
XBLNR
FROM rseg INTO CORRESPONDING FIELDS OF itfinal
WHERE belnr = ITAB1-belnr.
ENDSELECT.
IF itfinal-lfbnr IS INITIAL.
SELECT belnr
budat
FROM ekbe INTO (itfinal-lfbnr, itfinal-budat1)
WHERE belnr = itab1-belnr.
ENDSELECT.
ENDIF.
*P.O. History
SELECT ebeln
ebelp
bewtp
FROM ekbe
INTO CORRESPONDING FIELDS OF itfinal
WHERE belnr = itab1-belnr.
ENDSELECT.
*<b>Accounting Doc.No.
SELECT BELNR
AWKEY
FROM bkpf INTO (ITFINAL-BELNR1,itfinal-aWKEY)
WHERE blart = 'RE' AND
GJAHR = P_GJAHR AND
BUKRS = P_BUKRS AND
BUDAT IN S_BUDAT.</b>
*Vendor Details.
SELECT name1
FROM lfa1 INTO (itfinal-name1)
WHERE lifnr = itfinal-lifnr.
ENDSELECT.
*Material Description.
SELECT maktx
FROM makt INTO (itfinal-maktx)
WHERE matnr = itfinal-matnr.
ENDSELECT.
ENDSELECT.
APPEND ITFINAL.
ENDLOOP.
<b>LOOP AT ITFINAL.
*Excise Duty and Ed.Cess.
SELECT HWSTE
FROM BSET INTO (ITFINAL-HWSTE_C)
WHERE BELNR = ITFINAL-BELNR1 AND
GJAHR = P_GJAHR AND
BUKRS = P_BUKRS AND
KSCHL = 'JMO1' AND
KSCHL = 'JMO2'.
ENDSELECT.
SELECT HWSTE
FROM BSET INTO (ITFINAL-HWSTE_E)
WHERE BELNR = ITFINAL-BELNR1 AND
BUKRS = P_BUKRS AND
GJAHR = P_GJAHR AND
KSCHL = 'JEC1' AND
KSCHL = 'JEC2'.
ENDSELECT.
MODIFY ITFINAL.
ENDLOOP.</b>
*Filtering the Internal Table w.r.t P.O History Category.
LOOP AT itfinal.
IF itfinal-bewtp EQ 'E'.
DELETE itfinal.
ENDIF.
itfinal-wrbtr_v = itfinal-wrbtr * itfinal-kursf.
itfinal-wrbtr_r = itfinal-wrbtr_v / itfinal-menge.
MODIFY itfinal.
ENDLOOP.
ENDFORM. " GETDATA
*& Form ALV
text
--> p1 text
<-- p2 text
FORM alv .
IF itfinal[] IS INITIAL.
MESSAGE 'No Values exist for the Selection.' TYPE 'S'.
STOP.
ENDIF.
LOOP AT itfinal.
itfinal-sl_no = sy-tabix.
MODIFY itfinal.
ENDLOOP.
DEFINE j_fieldcat.
itfieldcat-fieldname = &1.
itfieldcat-col_pos = &2.
itfieldcat-seltext_l = &3.
itfieldcat-do_sum = &4.
itfieldcat-outputlen = &5.
itfieldcat-edit = &6.
append itfieldcat to itfieldcat.
clear itfieldcat.
END-OF-DEFINITION.
j_fieldcat 'SL_NO' '' 'SL. NO' '' 03 ''.
j_fieldcat 'LFBNR' '' 'MATERIAL DOC.No.' '' 10 ''.
j_fieldcat 'BUDAT' '' 'POSTING DATE.' '' 08 ''.
j_fieldcat 'LIFNR' '' 'VENDOR' '' 10 ''.
j_fieldcat 'NAME1' '' 'VENDOR NAME.' '' 35 ''.
j_fieldcat 'XBLNR' '' 'SUPPLIER DOC.No.' ' ' 10 '' .
j_fieldcat 'BLDAT' '' 'ACCOUNTING DOC.DATE' '' 08 ''.
j_fieldcat 'MATNR' '' 'PART No.' '' 18 ''.
j_fieldcat 'MAKTX' '' 'DESCRIPTION' '' 40 '' .
j_fieldcat 'MENGE' '' 'QUANTITY RECEIVED' '' 08 ''.
j_fieldcat 'KURSF' '' 'ECHANGE RATE' '' 13 ''.
j_fieldcat 'WRBTR_R' '' 'RATE' '' 13 ''.
j_fieldcat 'WRBTR_V' '' 'VALUE OF GOODS' '' 13 ''.
j_fieldcat 'HWSTE_C' '' 'ED/CVD' '' 13 ''.
j_fieldcat 'HWST_E' '' 'EDU.CESS' '' 13 ''.
j_fieldcat 'HWST_S' '' 'S&HE.CESS' '' 13 ''.
j_fieldcat 'BWTAR' '' 'VALUTAION TYPE' '' 10 ''.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = itlayout
i_callback_user_command = ' '
i_callback_top_of_page = 'TOP'
it_fieldcat = itfieldcat[]
i_save = 'A'
is_variant = ITVARIANT
it_events = itevent[]
is_print = ITPRINTPARAMS
it_sort = itsort[]
TABLES
t_outtab = itfinal
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " ALV
*& Form TOP
Top of page for ALV Report
FORM top.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = itevent
EXCEPTIONS
LIST_TYPE_WRONG = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
string1 = 'Excise Input Details '.
CONCATENATE string1 p_werks date1 'to' date2 INTO title SEPARATED BY space.
walistheader-typ = 'H'.
walistheader-info = title.
APPEND walistheader TO itlistheader.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = itlistheader
I_LOGO = ''.
I_END_OF_LIST_GRID =
ENDIF.
CLEAR itlistheader.
ENDIF.
ENDFORM. "TOP
Thanks,
K.Kiran.
Message was edited by:
Kiran KHi,
Use select single in the select statement.
Try using modify before endselect.
Thanks,
Sriram Ponna. -
Withholding tax details - mass change
Hi All,
We have the requirement of changing the customer/vendor master withholding tax details (tables LFBW / KNBW).
we have tried using XD99. however XD99 does not update table KNBW. For vendors, we tried XK99 which can be used for changing fields of table LFBW. However it has following limitations,
1. The new value can only be one value for all the records. We cannot update different values for different records.
2. data can only be changed. It cannot be created or deleted.
Can anyone let me know if there is any other method other than above.
Thanks,
AmanHi,
Even In LSMW you will have to use BDC method where you will use transaction FK02 while creating recording or BDC.
Reference to the LSMW BDC method go to below link
http://www.financialsexpertonline.com/downloads/0703.doc
Regards,
Chintan Joshi. -
Hi ABAP gurus,
I have a requirement to design a report which displays the sales tax details for invoices payable to vendors. Can anybody please help me with this with what tables and transactions to look for the data?
Fast Replies will be appreciated.
Thanks in advance.
Shivani.Dear Shivani
Use TCode FBL1N in which you can get the required details.
The details are stored in BSEG. If you run SE16 / BSEG by giving vendor code in the respective field, you can get the details.
Thanks
G. Lakshmipathi -
In E-Business Tax - In which table the tax codes are stored?
Hi All,
I am new to Financials. I have a requirement in which I need to list all the TAX CODES pertaining to AP and AR. Kindly let me know in which table the tax codes are stored in E-Business Tax module. Also let me know how the tax is associated with the AP and AR modules. Is there any column in the table to identify whether the tax is for AP or AR?
Regards,
Ahmed.Hello Ahmed.
I was not aware that you were talking about R12. The information i gave you concerns 11.5.10.2. Anyway, i checked the ETRM's for R12 and checked that the tables also exist in rel 12. This is an excerpt from R12 ETRM:
TABLE: AP.AP_TAX_CODES_ALL
Object Details
Object Name: AP_TAX_CODES_ALL
Object Type: TABLE
Owner: AP
FND Design Data: SQLAP.AP_TAX_CODES_ALL
Subobject Name:
Status: VALID
AP_TAX_CODES_ALL contains information about the tax codes
you define. You need one row for each tax code you
want to use when entering invoices. When you enter
invoices, you can use a list of values to select a tax code
defined in this table. Your Oracle Payables
application also uses TAX_RATE to calculate use tax
when you enter a taxable amount for an invoice.
This table corresponds to the Tax Codes window.
Now you say that you cannot find the information into the tables. Are you working on a production instance. Are you sure that the taxes have already been defined?
Octavio -
How to pass the tax details for the PO in me23n to script??
Hi friends,
I have a requirement to display the tax details for every line item of the PO in PO layout through script. Here I am gettin the tax details value for Purchase Order from the transaction ME23N. In this transaction, there is tab called invoice, when you click the tab, you will get the tax details. I need to print this details in the my PO layout. I checked in the technical field, the values are getting from the structure KOMVD. I tried to pull the value from the structure itself, but I am getting only Gross price. I am not able to display the taxes details in the layout. I need the condition type value and name and amount field also.
Please help me how to achieve this.<< priority reduced>>
I would appreciate the replies.
Thanks in advance.
Please let me know if you need anything more.
Regards,
Ahamed.
Edited by: Rob Burbank on Oct 11, 2011 3:42 PMHi
You can Try with Tables EKPO AND BSET.
Regards
Ajit -
Table for tax code line item after miro
Can anybody tell table for tax code line item (other than BSET) after MIRO.
RajHi,
First let me explain you the logic in this repot.
If a document have more than one GL accounts relevant for tax and having the same tax code. So there is only one tax line for that tax code in BSET.
Now in the standard reports like S_ALR_87012357, output has the tax base amount etc, based on tax line from BSET which is a single line the above document. However this single line contains multiple tax relevant account and thus SAP can not show all the G/L account for this single line in the report S_ALR_87012357. So SAP picks up the first account in the output.
The declaration in this report is not wrong, as the total gets calculated based on the tax code and which is correct and meets the tax reporting requirement.
If you want to see the G/L account wise output, you can use the program RFUMSV10. Refer OSS note 1175418 "RFUMSV00: G/L account display" for details.
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1175418
In your report, you can use this program logic for reference.
Regards,
Gaurav -
Not getting the tax details in me23n using custom smartform
Hi to all,
I am useing bapi to get the details of service order and printing the details in my custom smartform which is assigned in me23n. My problem is i am getting all the details like line item and all related but not the tax details. I need to print the net amount which is net amount + tax . Can any one help me in this regards.Use function module CALL FUNCTION 'CALCULATE_TAX_ITEM'
EXPORTING
dialog = lc_n
display_only = lc_x
i_taxcom = lwa_taxcom
IMPORTING
E_NAVFW =
e_taxcom = lwa_taxcom
E_XSTVR =
nav_anteil = lv_taxamt
TABLES
t_xkomv = lt_komv
EXCEPTIONS
mwskz_not_defined = 1
mwskz_not_found = 2
mwskz_not_valid = 3
steuerbetrag_falsch = 4
country_not_found = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LT_KOMV will return the tax related data.
Nabheet -
Extarcting Tax details from CRM
hi all
i want to extract tax details especially TAX TYPE & TAX GROUP for a Business Partner from the CRM System.
Kindly help in knowing the different ways of doing it. Do we have a Standard Datasource, if not then what are the tables which stores this Details or any FM so that we can create a Generic DataSource.Hi,
Please see the below link.
http://help.sap.com/saphelp_crm40/helpdata/en/86/1ec63e22026e6be10000000a114084/frameset.htm
Tax Classification
Use
In order for SAP CRM to be able to calculate taxes, it has to know what taxes apply to each business partner and each product, and at what rate. For more information, see the example below.
No matter which tool you use to calculate taxes Transaction Tax Engine or the condition technique you have to specify which taxes each business partner and each product is liable to, and at what rates.
In SAP CRM, different taxes such as VAT (value-added tax) or excise duties, for example, on cigarettes, are called tax types. The different tax rates, for example, VAT at 15%, 7.5%, and 0%, are called tax groups.
Activities
Customizing
Carry out the activities in Customizing for Customer Relationship Management, by choosing Basic Functions ® Taxes ® Tax Types and Tax Groups.
Master Data
Business Partners
If you maintain a business partner in SAP CRM, assign it the appropriate tax types and tax groups, according to whether it is liable for tax at the full rate or reduced rate, or whether it is exempt from paying tax. To do so, in the business partner master, enter the tax types and tax groups on the Identification tab in the Tax Classification group box.
If you maintain customer master records in SAP R/3, the system automatically replicates them to SAP CRM, where it creates a business partner master record. If you have entered a tax classification in the SAP R/3 customer master data, SAP CRM automatically assigns the appropriate tax type and tax group to the corresponding business partner master record.
If, when a clerk creates a business partner in SAP CRM, he enters a tax type and tax group for a particular region in a country, the system does not replicate the tax data to SAP R/3. The clerk then maintains the customers tax classifications in SAP R/3 manually.
For more information about replicating business partner data, see Distribution of Business Partner Master Data.
Products
If you maintain a product in SAP CRM, assign it the appropriate tax types and tax groups, according to whether it is subject to tax and if so, whether at the full rate or reduced rate. To do so, in the product master, enter the country, tax types, and tax groups on the General tab in the Taxes group box.
If you maintain materials in SAP R/3, the system automatically replicates them to SAP CRM, where it creates a product master record. If you have entered a tax classification in the SAP R/3 material master record, SAP CRM automatically assigns the appropriate tax type and tax group to the corresponding product master record.
As with business partners, the system cannot replicate tax types and tax groups at regional level (see above).
Thanks, Aby Jacob -
from which table can i get article and store combination input and output tax details.
plz suggest.Hello,
Tax codes are stored in table MLAN.
Thanks,
Venu -
How to create one master table and two detail for it
I have one table , imagine it like mastertable( empid,deptid );
and two different tables like employeetable(empid ) , departmenttable ( deptid )....
I dont have any relation on database side. I need to create view link and ı need to use only one master table for two detail tables.
How can ı manage this scenerio ?
thanks...yes Shay ı really want to use two detail table in one UI as you suggest in your blog. But in that scenerio probably tables have link in database side with foreign key. My detail tables dont have any connection in database side with my master table. How can ı link them under one mastertableVO ?
I am really sorry about my bad explanation. I am a newbie and probably ı dont know the correct words to tell my problem.
Thanks for your time...
Maybe you are looking for
-
Why do I have to click on all of my flash components before I can navigate?
Without modification to the code...the component is there but it needs to be clicked on before I can navigate the site. Should Dreaweaver not know how to properly insert the code necessary allow the flash component to view properly? What am I missing
-
ABAP program is cancel , Function ROLLBACK on connection failed
We have an ABAP program (Z), the following program executes this task: 1.-Read table A (about 3 million records) 2.-Read table B (about 6 million records) 3.-Instert in to B table the match between A and B table When the program run in batch or dialo
-
The first day I downloaded Firefox 4, I had the "+" tab at the end of the tabs but after the first day, it disappeared so to open new tabs, I have to go to the Firefox tab on the left or use ctrl+t to open new tabs. The "list all tabs" button appears
-
Hi All, What is the use of transient property in userProfile.xml???? properties out side the table inside item-descriptor. 1) When do we create a transient property in the xyzRepository.xml files??? 2)What is the use of these transient property???
-
How to get value of inputFile?
Hi, I'm just start to learn JHS not for a long time I created a table for uploading and updating image. When uploading or updating an image, I need the pixel of the file so I have to get the value of the inputFile onsubmit, but how can I get it? And