How to solve below problem please help.

Hi
I want to display service tax  for each item
I want to out put like this
Item at 10 service tax (10.20%)       10
Item at 20 service tax (4.08%)          4
Item at 30 service tax (12.24%)       12.50
But I m getting output like this
Item at 10 service tax (10.00%)     10.
Item at 20 service tax (4.08%)          4.
Item at  30 service tax (12.24%)       12.50.
Below  is code what I written and also print screen is here please see it and if u fine any problem in code than tell me.
*Changed By: B.Gokul Sharmila
*Change Key: BGS221205
*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.
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.
break-point.
IF (  t_komv-waers = '%' OR t_komv-kschl = 'JSRE' OR t_komv-kschl = 'JSRF' ).
MOVE t_komv-kwert TO g_kwert.
ADD: g_kwert TO g_tax.
add t_komv-kbetr to l_stax-per.
    l_stax-item_no = t_komv-kposn.
    l_stax-amt = t_komv-kwert.
    l_stax-per = t_komv-kbetr / 10.
IF t_komv-kschl = 'JSRE'.
    g_percentage = t_komv-kbetr / 10.
  ELSE.
   g_percentage1 = t_komv-kbetr / 10.
ENDIF.
  if ( g_percentage IS not INITIAL or
       g_percentage1 IS  INITIAL ).
      g_mul = g_percentage * g_percentage1.
      g_percentage3 = g_percentage + ( g_mul / 100 ).
      l_stax-per = g_percentage3.
      append l_stax to it_stax.
  ENDIF.
CLEAR g_kwert.
endif.
ENDLOOP.

<b>if ( g_percentage IS not INITIAL or
g_percentage1 IS INITIAL ).</b>g_mul = g_percentage * g_percentage1.
g_percentage3 = g_percentage + ( g_mul / 100 ).
l_stax-per = g_percentage3.
append l_stax to it_stax.
ENDIF.
just check this if condition
if ( g_percentage IS not INITIAL or
g_percentage1 IS <b>NOT</b>  INITIAL ). " is this the one missing..
2.
<b>Item at 10 service tax (10.20%) 10</b> " u want this to appear in ur logic
Item at 20 service tax (4.08%) 4
Item at 30 service tax (12.24%) 12.50
But I m getting output like this
Item at 10 service tax (10.00%) 10.
Item at 20 service tax (4.08%) 4.
Item at 30 service tax (12.24%) 12.50.
im not able to make out what exactly is the query can u be bit more specific.
regards,
vijay
Message was edited by:
        vijay k

Similar Messages

  • My iphone 4 is acting like crap right i can't even restore it everytime i try to reboot it my iphone freezes at the apple logo it is ******* to the point where i just want to smash it how do i solve this problem please help?

    my iphone 4 is acting like crap right i can't even restore it everytime i try to reboot it my iphone freezes at the apple logo it is ******* me off to the point where i just want to smash it how do i solve this problem please help?

    Don't worry, just follow these steps to fix iPhone stuck on Apple logo
    => First of all Start your Computer and then connect with Internet connection, now Download the latest version of the iTunes application
    => Now install the iTunes application in your System and connect your Device with computer via Data cable
    => Now connect your Device with iTunes application and then Tab on summary option, see in the left side bar of iTunes
    => Now Select restore option from iTunes and then confirm the Restore Message for better results. After this unplug your Device and Restart it
    I hope that will surely
    Thank you...

  • Hi .. my iPad 4 with iso 7.0.3 he is restarting himself ... How can i solve this problem please help me

    Hi .. my iPad 4 with iso 7.0.3 he is restarting himself ... How can i solve this problem please help me

    Standard troubleshooting...
    1. Try a Restart by pressing the sleep/lock button until you see the slider.  Slide to power off.  Restart by pressing the sleep/lock button until you see the Apple logo.
    2. Try a Reset by pressing the home and sleep buttons until you see the Apple logo. Takes about 5-15 secs of button holding and you won't lose any data or settings.
    3. Remove apps from Recently Used list...
    - From any Home Screen, double tap the home button to bring up the Recents List
    - Swipe up on the app preview card to remove it from the list
    - Press the home button when done.
    4. If still a problem restore with your backup.
    5. If still a problem restore as new, i.e. without your backup. See how it runs with nothing synced to it.
    6. If still a problem, it's likely a hardware issue.

  • Hi my iphone 4 is disabled how can solve this problem? help me please

    hi my iphone 4 is disabled how can solve this problem? help me please

    What do you mean by "disabled"? Disabled by entering the wrong passcode? If so, you'll have to force the phone into recovery mode & restore it to get it working again & remove the passcode:
    Turn your phone off, then force it into recovery mode & restore it:
    Leave the USB cable connected to your computer, but NOT your phone, iTunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new.

  • My iPad stop working suddenly i see black screen only pressing the home? and sleep button dose not solve the  problem please help?

    My iPad stop working suddenly i see black screen only pressing the home and sleep button dose not solve the problem please help ?

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Home button not working or unresponsive, fix
    http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/
    Fixing an iPad Home Button
    http://tinyurl.com/om6rd6u
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • Hi guys i have an ipad 1 and when i plug it in to my macbook pro picasa opens up and show its name but when i open itunes i cant find the name, ive been working my head out to solve the problem please help me:(

    hi guys i have an ipad 1 and when i plug it in to my macbook pro picasa opens up and show its name but when i open itunes i cant find the name, ive been working my head out to solve the problem please help me:(

    Pay no attention to iinami, the amount of replies to people saying their handsets must have been jailbroken everytime iTunes throws out an error is tremendous. (Clearly you don't need to have any real knowledge to get to level 3 on these forums, let's hope apple's geniuses know a lot more than some of their customers.)
    http://support.apple.com/kb/TS3694
    Solution below.
    Error 9
    This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if the device is manually disconnected during the restore process. This issue can be resolved by performing USB troubleshooting, using a different USB dock-connector cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software.

  • My iphone is on recovery mode and i can´t turn on it, when i try to recover it from itunes i get: "unknown error (36), i´ve tried to do lot of things but i can´t  solve my problem. please help!!

    my iphone is on recovery mode and i can´t turn on it, when i try to recover it from itunes i get: unknown error (36), i´ve tried to do lot of things but i can´t solve my problem. please help!!

    Hi, i had the same problem. Try to find the file "apple" or "itunes" don't know it anymore exactly. Ahm well you need to delet any information or just plug in your iphone into an other computer. important is that your iphone never has been pluged in this computer before. This was what i did, and it worked!

  • How to solve this problem, pls help when I try to see remote camera system from home."Dual streaming is required for HTML viewing"

    How to solve this problem, pls help when, I try to see remote camera system(spec dvr) from home. The Error I get is "Dual streaming is required for HTML viewing"

    I had the same probelm and found that the problem lies with 64bit programs such as safari and microsoft internet explorer. I have resolved the issue on my PC based server by using a 32 bit ie and same on my mac by using the same running windows under parallels.
    So far the problem with the 64 bit side of it is still to be resolved.
    Hope this helps and gets you guys up and running until suchtime a 64 bit solution is found.
    Craig

  • HT5622 my apple id is not working when i sign in from my laptop it works but when i sign in from my iphone4 then its not working it gives the message of "your aapleid or password is incorrect"? how can i solve this problem please help

    my apple id is not working when i sign in from my laptop it works but when i sign in from my iphone4 then its not working it gives the message of "your aapleid or password is incorrect"? how can i solve this problem please help

    Hey nocillado,
    Thanks for using Apple Support Communities.
    It sounds like you have 2 things you want to address. These articles can help you use iCloud with your existing Apple ID.
    Get help activating your iPhone
    http://support.apple.com/kb/ts3424
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Using the same Apple ID for Store purchases and iCloud (recommended)
    Have a nice day,
    Mario

  • Invalid hotmail email account, can't solve the problem please help

    Hi,
    I got an email from my network required update password. I've entered her email address and password repeatedly and received the following message: 
    Invalid email address or password. Please verify your email address and password. The information you provided is incorrect. If the error persists contact hotmail.com (your email provider). Please try again. 
    Now I tried this more than 10 times from the blackberry email wizard and from my computer and still received the same messages. Also tried to change new password and set up again However still the same. I have 3 hotmail accounts, another 2 work well except my main email. (all of them are my personal email)
    Anyone can help?? Have no idea what wrong with my bb or hotmail. I went to Optus today, one of a staff said Sorry i can't help u as i have no idea about blackberry!!!! please help me.
    tried to delete and set up, take battary out ect... still can't set up it.

    All, please try it again now.
    By the way, my guy feeling is this is/was a MSN/Hotmail/Livemail server issue, as only those accounts were affected. Others such as Yahoo, gmail, etc., were not.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Hello, i have a problem when i want to download an app it asks for my secret question and answer but i forgot it how can i solve this problem please help?

    Hello today I wanted to download an app on my ipod touch infact its a game and as usual it asked for my appl id and password so I entered them but next it asked me to enter my passowrd againg and answer the secret question I submited when I first got my Ipod touch, the problem is i cant remember the question neither the answer,so is there a way I can find out what my secret question is and the answer of course I would appreciate youre help.
    Fouad

    Only you and Apple know your secret question.  See if changing the password via email will allow access to your account.. Then you can chnag yur secret question. See:
    http://support.apple.com/kb/HE36

  • I can't open a certain website, it says "Directory Listing Denied This Virtual Directory does not allow contents to be listed." how can i solve my problem, please help me guys...

    "Directory Listing Denied
    This Virtual Directory does not allow contents to be listed."

    URL of that website?

  • I cannot solve the problem-please help-IMPORTANT

    I have got the following two classes. It shows the elements (double-numbers) of a matrix in a frame. The problem is, if the matrix consists of too much numbers , I am not able to see the whole numbers, but rather the first digit of each number.
    I want to be able to scroll through the matrix and the numbers should be presented completely in the frame.
    But how????;-(
    public class MatrixFrame extends Frame {
    public MatrixPanel matrixPanel;
    public MatrixFrame(double[] [] values,int x, int y) {
    matrixPanel = new MatrixPanel(values,x,y);
    this.setSize(300,500);
    this.setLocation(200,200);
    add(matrixPanel);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    dispose();
    show();
    }//MatrixFrame
    public class MatrixPanel extends Panel {
    MatrixPanel(double[] [] values,int l, int r) {
    setLayout(new GridLayout(l,r));
    for (int i=0;i<l;i++) {
    for (int j=0;j<r;j++) {
    add(new MatrixValue(values [j]));
    //this.add(BorderLayout.CENTER);
    setVisible(true);
    class MatrixValue extends JComponent {
    private double data;
    MatrixValue(double d) {
    data=d;
    public void paint(Graphics g) {
    Dimension d= getSize();
    g.drawString(Double.toString(data),d.width/2,d.height/2);
    Thanx for your help
    Thomas

    Instead of extending JComponent, your MatrixValue should extend JLabel. JLabel sizes properly, thus allowing you to place it within a ScrollPane. Otherwise you will have do something like this:
    public MatrixValue extends JComponent {
    public void paint(Graphics _g) {
    Graphics2D g = (Graphics2D)_g;
    Rectangle r = g.getFontMetrics().getStringBounds(Double.toString(data), g);
    setPreferredSize(new Dimension(r.getWidth(), r.getHeight());
    g.drawString(Double.toString(data),d.width/2,d.height/2);
    }

  • Im my lap has hard disk problem,how to resolve the problem,pls help me...

    Hello,
               I have hp pavilion dv4 lap,in this lap has some hard disk problem,when i am turn on the lap that screen shows this message "The smart hard disk check has detected an imminent failure.To ensure not data loss,please backup the content immediately and run the hard disk test in system diagnostics".
               After that i was diagnostics the system but no changes in the lap,,again again lap shows hard disk error(301).
               Then i  am chosen the enter option to start up the lap it take long time for openning the windows,after enter the windows that also shows about the hard disk  error in within few minitues,
               What can i do?
               This lap bought at 12-oct-2012 from malasiya,now im in tamil nadu,how to solve the problem please help me.

    Hello srhk. Thank you for posting on the HP Forums.
    I understand the hard disk is experiencing issues. Error 301 indicates the hard disk possesses a hardware defect. I would contact HP Phone Support for assistance, or purchase an equivalent hard disk.
    If you choose to contact HP, their options will be based on the warranty status of the computer. If you do not have this information, you can locate it at this website: http://h20566.www2.hp.com/portal/site/hpsc/public/wc/home?ac.admitted=1384280905804.876444892.199480...
    You can utilize this website to learn how to contact HP appropriately, based on your region: http://www8.hp.com/us/en/contact-hp/ww-contact-us.html
    Please let me know if you have any other questions or concerns.
    Mario
    I worked on behalf of HP.

  • Axis Type Mapping problem,please help!!!

    i want to try out the encoding subsystem of axis,so i write an interface like this:
    public interface BookStore {
        public Book[] getAllBooks();
    }I use the Java2WSDL to generate the wsdl file and WSDL2Java to generate the client/server side bindings ,of course i implemented the BookStoreSOAPBindingImpl class,then use the deploy.wsdd file to deploy the service to axis.the deploy.wsdd is like this:
    <!-- Use this file to deploy some handlers/chains and services -->
    <!-- Two ways to do this: -->
    <!-- java org.apache.axis.client.AdminClient deploy.wsdd -->
    <!-- after the axis server is running -->
    <!-- or -->
    <!-- java org.apache.axis.utils.Admin client|server deploy.wsdd -->
    <!-- from the same directory that the Axis engine runs -->
    <deployment
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
    <!-- Services from BookStoreService WSDL service -->
    <service name="BookStore" provider="java:RPC" style="rpc" use="encoded">
    <parameter name="wsdlTargetNamespace" value="urn:bookstore"/>
    <parameter name="wsdlServiceElement" value="BookStoreService"/>
    <parameter name="wsdlServicePort" value="BookStore"/>
    <parameter name="className" value="axis.typemapping.collection.BookStoreSoapBindingSkeleton"/>
    <parameter name="wsdlPortType" value="BookStore"/>
    <parameter name="typeMappingVersion" value="1.2"/>
    <parameter name="allowedMethods" value="*"/>
    <typeMapping
    xmlns:ns="urn:bookstore"
    qname="ns:Book"
    type="java:axis.typemapping.collection.Book"
    serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
    deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    />
    <typeMapping
    xmlns:ns="urn:bookstore"
    qname="ns:ArrayOfBook"
    type="java:axis.typemapping.collection.Book[]"
    serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
    deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    />
    </service>
    </deployment>
    As you could see, the necessary ser/deser factories are declared.
    and i checked the http://locahost:8080/axis page and found the service is just right there in the list.
    Then i wrote the client like this:
    import axis.typemapping.collection.*;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ParameterMode;
    public class Client
        public static void main(String [] args)
            try {     
                String endpointURL ="http://localhost:8080/axis/services/BookStore";
                String textToSend;
                Service  service = new Service();
                Call     call    = (Call) service.createCall();
                call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
                call.setOperationName( new QName("urn:bookstore", "getAllBooks") );
                Object[] ret =(Object[])call.invoke( new Object[] {  } );
                System.out.println("book name:"+(Book)ret[0]);
                System.out.println("book name:"+(Book)ret[1]);
            } catch (Exception e) {
                System.err.println(e.toString());
    }But when i execute the client i got the following exception:
    org.xml.sax.SAXException: No deserializer defined for array type {urn:bookstore}
    BookAs you can see,it is the problem that the Book[] can't be deserialized!
    but in the deploy.wsdd the deserializer is declared,so what i have missed?and how to solve this problem please?
    best regards:)

    Some systems are fussy about the method names and some require indexed accessors for array items. I would suggest starting with an implementation like
    public class BookStore {
        private Book[] books = ...;
        public Book[] getBooks() {return books};
        public void setBooks(Book[] books) {this.books = books};
        public Book getBooks(int j) {return books[j]};
        public void setBooks(Book book, int j) {this.books[j] = book};
    }-- Frank

Maybe you are looking for