How to combine to similar taxes in smartform

we want to add similar taxes and taxes amount also
eg: item at 10 service tax(10.20%) = 10
item at 20 service tax(4.20%) = 4.8
item at 30 service tax(10.20%) = 10
here we want item 10 and item 30 amount to be added and that should be display in only one line like below
ieg:service tax(10.20%) = 20
service tax(4.20%) = 4.8.
for the below code we are getting output like this
eg:item at 10 service tax(10.20%) = 10
item at 20 service tax(4.20%) = 4.8
item at 30 service tax( 10.20%) = 10
but we want like this
eg:service tax(10.20%) = 20
service tax(4.20%) = 4.8.
*break-point
Determine Excise Duty
CLEAR: g_vtext,g_kwert,l_kwert.
data: l_vat type ty_tax occurs 0 with header line.
data: l_stax type ty_tax occurs 0 with header line.
data: l_saltax type ty_tax occurs 0 with header line.
data: s_tax1 type ty_tax occurs 0 with header line.
data: s_tax type ty_tax occurs 0 with header line.
data : TAXCOM like TAXCOM.
data: begin of t_komv occurs 0.
include structure komv.
data: end of t_komv.
move-corresponding <fs> to TAXCOM.
taxcom-BUDAT = zxekko-BEDAT.
taxcom-BlDAT = zxekko-BEDAT.
taxcom-kposn = <fs>-EBELP.
taxcom-WAERS = taxcom-HWAER = zxekko-WAERS.
taxcom-XMWST = 'X'.
taxcom-WRBTR = <fs>-netwr.
taxcom-mglme = <fs>-menge.
taxcom-SHKZG = 'H'.
taxcom-lifnr = zxekko-lifnr.
taxcom-ekorg = zxekko-ekorg.
taxcom-land1 = zxekko-lands.
*break-point.
CALL FUNCTION 'CALCULATE_TAX_ITEM'
EXPORTING
ANZAHLUNG = ' '
DIALOG = ' '
DISPLAY_ONLY = ' '
INKLUSIVE = ' '
I_ANWTYP = ' '
I_DMBTR = '0'
I_MWSTS = '0'
I_TAXCOM = taxcom
PRUEFEN = ' '
RESET = ' '
IMPORTING
E_NAVFW =
E_TAXCOM =
E_XSTVR =
NAV_ANTEIL =
TABLES
T_XKOMV = t_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.
*******BGS221205
DOCTYPE = ZXEKKO-BSART.
*******BGS221205
loop at t_komv where kposn = <fs>-ebelp.
SELECT SINGLE vtext INTO g_vtext FROM t685t
WHERE spras = sy-langu
AND kschl = t_komv-kschl.
IF g_vtext CS '%'.
MOVE t_komv-kwert TO g_kwert.
ADD: g_kwert TO g_excise.
CLEAR g_kwert.
ENDIF.
*********BGS211205
IF ( T_KOMV-KSCHL = 'JSRE' OR T_KOMV-KSCHL = 'JSRF' ).
MOVE T_KOMV-KWERT TO G_KWERT.
ADD: G_KWERT TO G_TAX.
CLEAR G_KWERT.
ENDIF.
*********BGS211205
Determin tax for Non Service PO
if ( t_komv-kschl = 'JIPL' ).
ADD: t_komv-kwert TO G_SLTAX.
l_saltax-item_no = t_komv-kposn.
l_saltax-amt = t_komv-kwert.
l_saltax-per = t_komv-kbetr / 10.
append l_saltax to it_saltax.
endif.
*laxman
*if ( t_komv-kschl = 'JIPC' or t_komv-kschl = 'JVRD' ).
ADD: g_vat to g_kwert.
*endif.
if ( t_komv-kschl = 'JIPC' or t_komv-kschl = 'JVRD' ).
vat tax
if ( t_komv-MWSK1 = 'C4' OR t_komv-MWSK1 = 'C3' OR t_komv-MWSK1 = 'C6' OR
t_komv-MWSK1 = 'B4' OR t_komv-MWSK1 = 'B5' ). "OR t_komv-MWSK1 = 'AT'
ADD: t_komv-kwert TO G_VAT.
l_vat-item_no = t_komv-kposn.
l_vat-amt = t_komv-kwert.
l_vat-per = t_komv-kbetr / 10.
append l_vat to it_vat.
ELSE.
ADD: t_komv-kwert TO G_SLTAX.
l_saltax-item_no = t_komv-kposn.
l_saltax-amt = t_komv-kwert.
l_saltax-per = t_komv-kbetr / 10.
append l_saltax to it_saltax.
endif.
endif.
calculation for non creditable service tax (GSPC)
IF ( t_komv-kschl = 'JSRE' OR t_komv-kschl = 'JSRF' OR
t_komv-kschl = 'JSER' OR t_komv-kschl = 'JSVD' OR
t_komv-kschl = 'JSRC' OR t_komv-kschl = 'JSRD' ).
MOVE t_komv-kwert TO g_kwert.
ADD: g_kwert TO g_tax.
CLEAR g_kwert.
endif.
calculation for creditable service tax (GSPL)
IF ( t_komv-kschl = 'JSRE' OR t_komv-kschl = 'JSRF' ).
MOVE t_komv-kwert TO g_kwert.
ADD: g_kwert TO g_tax.
CLEAR g_kwert.
endif.
Excise calculation for GSPL
IF ( t_komv-kschl = 'JMX1' or t_komv-kschl = 'JEX1' ).
MOVE t_komv-kwert TO g_kwert.
ADD g_kwert TO g_excise1.
CLEAR g_kwert.
ENDIF.
*IF ( t_komv-kschl = 'JIPC' ).
MOVE t_komv-kwert TO g_kwert.
ADD g_kwert TO g_excise1.
CLEAR g_kwert.
*ENDIF.
*service tax calculation loop
break-point.
IF ( t_komv-waers = '%' OR t_komv-kschl = 'JSRE' OR
t_komv-kschl = 'JSRF' ).
IF t_komv-kschl = 'JSRE' .
g_percentage = t_komv-kbetr / 10.
move g_percentage to l_stax-per.
add: l_stax-per to s_tax.
ELSE.
g_percentage1 = t_komv-kbetr / 10.
ENDIF.
add t_komv-kwert to l_stax-amt.
add l_stax-amt to g_percentage1.
ENDIF.
IF ( t_komv-waers = '%' OR t_komv-kschl = 'JSER' OR
t_komv-kschl = 'JSVD' ).
IF t_komv-kschl = 'JSER' .
g_percentage = t_komv-kbetr / 10.
ELSE.
g_percentage1 = t_komv-kbetr / 10.
ENDIF.
add t_komv-kwert to l_stax-amt.
ENDIF.
*break-point.
IF ( t_komv-waers = '%' OR t_komv-kschl = 'JSRC' OR
t_komv-kschl = 'JSRD' ).
IF t_komv-kschl = 'JSRC' .
g_percentage = t_komv-kbetr / 10.
ELSE.
g_percentage1 = t_komv-kbetr / 10.
ENDIF.
add t_komv-kwert to l_stax-amt.
ENDIF.
IF ( ( g_percentage IS NOT INITIAL AND
g_percentage1 IS NOT INITIAL ) AND
( t_komv-kschl = 'JSRE' OR t_komv-kschl = 'JSRF' OR
t_komv-kschl = 'JSER' OR t_komv-kschl = 'JSVD' OR
t_komv-kschl = 'JSRC' OR t_komv-kschl = 'JSRD') ).
g_mul = g_percentage * g_percentage1.
g_percentage3 = g_percentage + ( g_mul / 100 ).
l_stax-per = g_percentage3.
if l_stax-per eq l_stax.
add g_percentage to g_percentage1.
if g_percentage1 = l_stax.
g_percentage5 = l_stax-amt.
move l_stax-amt to l_stax.
append l_stax to it_stax.
endif.
clear : g_percentage, g_percentage1.
ENDIF.
ENDLOOP.

Hi
U can use a new internal table where you collect the records with the same tax code, or you define (in this new table) a char field for the percentage and collect all tax record with the same percentage.
Max

Similar Messages

  • Hi, I have converted different smartforms to pdf format.How to combine pdf?

    Hi All,
    I have converted different smartforms to pdf format. How to combine all the pdf's into single pdf.
    I need all the smartforms to be in single pdf.
    Please help me in this regard.
    Thanks in advance.

    Hi Keshu,
    Individual pdf should be sent to individual user.
    And at last all the pdfs of the smartform should be combined into one.
    And admin have the provision to download it .
    I mean the requirement is
    For example.
    For the month of september i will generate Pay Slip to each employee. And each pdf will be send to corresponding employee.
    And finally all the pay slips of all the employees will be combined into single PDF and admin will download it and keep it for reference.
    So as of now. I have generated individual pdfs and mailed it accordingly.
    But how to combine it into one PDF is my question.
    Please help me in this regard.
    Thanks in advance.

  • Combine with similar request dived values

    Dear All,
    I have one report with using Combine with similar request.(Union)
    TableA
    Name Amount SAR
    TableB
    Name Amt SAR
    Result Column:
    Name Salary
    My requirment in salary result column i shoul use divided by 100.
    When i clicl fn button i am not able to see in result column.
    How will divide /100 then Multipla with another result column SAR
    Thanks
    Govind R

    Hi ,
    When you are using the combine with similar request..
    under the results columns we wil not have the fx there will be only formarting options avilable.
    If you want to perform any calculation you have to do on the each criteria ..then it will work
    Thanks,
    Ananth

  • How to combine output of two queries

    Hi, I have the following two OBIEE queries in one subject area:
    *1. number of daily new customers:*
    min(date)|customer unique number (aggregated in the pivot table as count distinct)
    day1 | 1000
    day2 | 1500
    *2. number of daily total customers:*
    date|count(distinct (customer unique number))
    day1 | 5000
    day2 | 9500
    How can I combine them based on date in one table?
    day1 | 5000| 1000
    day2 | 9500| 1500
    Thank you for your hints in advance

    *1. number of daily new customers:*
    *2. number of daily total customers:* Are these two measures coming from a same column in the presentation layer or two different columns? If two then simplay add two measures with your time dimension, it will give you your results. no need of combine with similar requests.

  • How the system pic the tax (cst and BED) into sales order

    Hai Guru
    How the system pic the taxes into sales order level ...
    Anybody tell me in a sequence........
    Thanks

    Dear Anjaneyu
    In TAXINJ, UTXJ is the triggering condition type to determine taxes.
    UTXJ links taxcode, Pricing procedure & tax procedure. UTXJ records are maintained in VK11. In taxcode (FTXP)  the BED & CST % maintained. For each combination of BED, Add cess, she cess, VAT/ CST diffrent taxcodes are maintained in FTXP. Tax posting in FI (OB40)
    TAXINN tax rates are maintained in condition records. For each condition type the possible condition records are maintained in VK11. For MM it is FV11
    If you require detail you can search in SDN. Here FI postings thru VKOA
    If you require more information search in SDN itself. Many posting related to TAXINN & INJ
    Thanks
    Deepu Pillia

  • How to combine two datarows (business component data) in BI Publisher

    Hi ,
    We are using BI Publisher in Siebel Environment.
    We have data coming from two business components (like from 2 diff tables)
    a) <?for-each:ssTest1?>
    b) <?for-each:ssTest2?>
    ssTest1 and ssTest2 are the business components
    We need to combine these 2 datarows (a&b) and show the data into a single combined data row for ex like <?for-each:ssTest1ssTest2?> and show all the fields in that.
    I'm not sure how we can combine these two data rows into a single combined data row and show the data.
    Any help from any one would be apprecated.
    Thanks
    PV
    Edited by: user8633002 on Oct 21, 2010 4:05 PM

    Hi sajid
    There was nothing more description about your issue in this site and I found an issue below is mostly like yours
    http://www.codeproject.com/Questions/855487/how-to-combine-two-table-value-in-rdlc-report
    In the issue above, if you want to show the two other tables in the report, I think you could combine the tables into one datatable joining on key. The link below show an example of a DataSet Helper from Microsoft about combine DataSets. Take note of
    the related content for other DataSet Helper examples. And then you could use the datatable in your RDLC.
    # HOW TO: Implement a DataSet JOIN helper class in Visual C# .NET
    http://support.microsoft.com/kb/326080/en-us
    In an alternative way, I think you could create a view in the database which combine your tables and use it in your rdlc.
    In addition, your issue is about asp.net and you could get more support in the asp.net forum whose link as below.
    http://forums.asp.net
    Best Regards
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • How to enter condition wise tax amount manually in MIR7 & MIRO?

    We have a PO with a tax code entered in it.
    but while parking invoice in MIR7, we want to enter condition wise tax amount manully which is different than calculated tax amount through tax code and subsequently we want the same manual tax amount to be displayed in MIRO also
    I tried to enter amount for each condition in 'Detail' screen of 'Tax' tab in MIR7,
    but at the time of simulating, amount calculated as per tax code is only shown and not the amount entered by me
    'Calculate Tax' checkbox is not selectd in this case.
    Can anybody tell me how to enter condition wise tax amount manully in MIR7 & MIRO and post an accounting entry with this manually entered tax amount?

    Hi,
    i checked their is no unplanned delivery cost and in FV13 tax is 12.5%. In FTXP No Tax Percent rates.
    Regards
    Mahesh

  • How to use different page scapes in smartforms

    hi
    How to use different page scapes in smartforms.
    I want Potrait format in the 1st page and Lanscape format in 2nd page is it possible if so plz suggest me an idea

    Hi,
    It is possible in smart forms, but not in scripts.
    we can have 3 tabbed options for pages in smart forms.
    <b>General...
    Output options
    Conditions</b>.
    In <b>output options</b> u can define whether a page can portrait or land scape in <b>print attributes</b>.
    Reward if helpful.
    Regards,
    Sandhya

  • Does anyone know how to combine two apple ID's together?

    I have found out that I have two Apple ID's! One is for my apps on my iphone and the other is for iTunes.  Somehow they are set to different email addresses but are being sent to the same email address.  Does anyone know how to combine them, so I use just one Apple ID?

    This is my solution too.
      You see, what I also downloaded all the free apps I have on iPhone to this account I choose to use, so this way I didn't need to change accounts (of course it was on the iOS 5 times)

  • How to print a tickbox in SAP smartform

    Dear All,
    Can anyone help as to how to print a tickbox in the smartform.
    A tickbox is a blank checkbox with a tick in between.
    The symbols <697>(Crossed checkbox) and <727>(Blank Checkbox) do not serve my user requirement.
    Regards,
    Rijuraj

    Dear Deepak,
    Thanks.This is the closest solution we could get to
    [<709>].
    With the same line of thinking we can also have,
    [<769>]
    or
    [<799>].
    We can also highlight the square brackets to "Bold" if required.
    Best Regards,
    Rijuraj
    Edited by: Rijuraj Raju on Sep 21, 2011 1:00 PM

  • How to modify a wrong tax category in the G/L master

    Hi, SAP experts,
    1. User using T-code "FS00" to create an operating expense G/L account '6492009', but choose the wrong Tax category( '>'
    output tax)  on the tab 'Control Data'.  It still create a cost element anyway.
    2. Then user create/post billing with the entries Dr. AR Cr. 6492009 and a cost center value can be assigned correctly.
    3. Now user using T-code "F-02" to post an adjust FI document,but meet the error message 'Account 6492009 requires an 
    assignment to a CO object'. But because of  the wrong Tax category, nowhere we can input the cost center value.
    4. Even we try to modify wrong Tax category back, we meet the error message "Changing the tax code not possible,
      accoutn has a balance".
    Here are my two questions: 1. Why the accounting document posted from the Billing is correct and normal
    disregarding the wrong Tax category setup? It shouldn't be posted successfully.  2. How do we change the tax category
    in the G/L master from  ( '>' output tax)  to ( '+' Only output tax allowed)  under the balance is not zero, then we can
    use T-code  "F-02"  to post ? Or we have to recreate a new G/L account to replace the current G/L account "6492009"?

    1. Why the accounting document posted from the Billing is correct and normal
    disregarding the wrong Tax category setup? It shouldn't be posted successfully > First, check your OB40 set up if the output tax account is correctly set up there. The system will still be able to post since the correct tax account assignment is maintained.
    2. How do we change the tax category
    in the G/L master from ( '>' output tax) to ( '+' Only output tax allowed) under the balance is not zero, then we can
    use T-code "F-02" to post ? Or we have to recreate a new G/L account to replace the current G/L account "6492009"? > you need to create a dummy GL account to transfer the balances from this account to make it zero then change the tax category of 6492009.

  • How to combine sales and delivery data

    hi
    i have requirement to make a report from sales as well as deliveries. Important fields in report are sales document , material , plant , sales document type , country key , sold to party , ordered quantity , delivered quantity , price from vakon ( KBETR ), actual goods issue date.
    The required extractors are 2LIS_11_VASCL, 2LIS_11_V_SSL ,2LIS_11_VAKON.
    Problem is how to combine sales and delivery data as V_SSL has different key figures.Multicube is not the solution as dont have plant , sold to party and many other fields in V_SSL.
    Kindly suggest how to combine sales and deivery data.
    Regards,
    Monika

    I guess you do have shipping point in delivery.
    In most scenarios shipping point may not(or) may be same like order plant.
    Although they are different you can still roll up the delivery information to order level by plant since you have order # available as reference key in delivery.
    With this reference key you can convert all delivery information to order (item) level.
    I guess you can use one merge ODS with one cube (or) with 2 ODS for each at order level for validation.
    You may have to map delivery type to order type as per R3 configuration as well.
    speak with any Logistics guys for help.
    cheers
    Martin

  • Dataretrieval in hr abap  (how to combine both pa and om in hr abap)

    Hi Experts?
        My requirement is i wants to retrieve the data from HRP1000 table i.e get the long text from the field sc_text ,for this they have provided me some field values like PLVAR='01'  ,  OTYPE='O'  , OBJID -
    (not given)  ,ENDDA =9999.12.31. and also they have mentioned table PA0001-BUKRS(field).
          how to get objid field?
       Please provide me query ,how to combine Organizational data(hrp1000)  with Personnel administration data(pa0001-bukrs)
    Thanks in advance,
    mohan

    Hi mohan,
    1. Its very impractical,
       especially in SAP HR Tables,
       to directly get data from tables using joins.
    2. In your case,
       first read from infotype 0001
       using direct select statement,
       (or u can use HR_READ_INFOTYPE)
    3. After wards, LOOP / FOR ALL ENTRIES IN
       and then read from the other required tables HRP1000.
    regards,
    amit m.

  • How to combine the line items of 2 Sales orders into 1 delivry

    how to combine the line items of 2 Sales orders into 1 delivry
    and their process, pre-requisites and tcode

    The prerequisites are:
    1) In the customer master sales area data, shipping tab, there is a field called Order combination. u must tick that.
    2) for the two orders, the sold to party & ship to party must be same
    3) both orders must have created from same plant & shipping points
    4) the line items must have same loading grp.
    5) the both orders sheduline line date must be same.
    transaction code for the same is VL04.
    enter the required data and select the order nos to be processed.
    Do reward points if it is useful

  • How to write Protect endprotect concept in Smartforms

    hi
    can any one suggest me
    How to write Protect endprotect concept in Smartforms
    i have some content to coem without break in SMARTFORM
    how to do that
    Thanks & Regards
    kalyan
    <thread moved, has nothing to do with ABAP Objects. Please choose your forums more carefully in future>
    Edited by: Mike Pokraka on Sep 26, 2008 12:50 AM

    Hi,
    For 4.7 version if you are using tables, there are two options for protection against line break: 
    - You can protect a line type against page break.
    - You can protect several table lines against page break for output in the main area.
    Protection against page break for line types 
    - Double-click on your table node and choose the Table tab page. 
    - Switch to the detail view by choosing the Details pushbutton. 
    - Set the Protection against page break checkbox in the table for the relevant line type.  Table lines that use this line type are output on one page. 
    Protection against page break for several table lines 
    - Expand the main area of your table node in the navigation tree. 
    - Insert a file node for the table lines to be protected in the main area. 
    - If you have already created table lines in the main area, you can put the lines that you want to protect again page break under the file using Drag&Drop. Otherwise, create the table lines as subnodes of the file. 
    - Choose the Output Options tab page of the file node and set the Page Protection option.   All table lines that are in the file with the Page Protection option set are output on one page. 
    In 4.6, Alternatively in a paragraph format use the Page protection attribute to determine whether or not to display a paragraph completely on one page. Mark it if you want to avoid that a paragraph is split up by a page break. If on the current page (only in the main window) there is not enough space left for the paragraph, the entire paragraph appears on the next page. 
    Regards,
    Himanshu Verma

Maybe you are looking for