While displaying the amount

hi.
i am displaying the amount in smartform. the amount should be displayed as the percentage. but it is displaying as amount.
eg : tax% is 4.000% . but it is displaying as 40.00.
can any one tell me the solution.

Hi J ,
while working on conddition, its rates u need to remember that all % will be for 1000 not for 100.
regards
Prabhu

Similar Messages

  • HT4623 I updated to the latest iOS and now YouTube and the Ap store are no longer on my phone. Also, not all my music will play and if I play a song it will actually play a different song while displaying the one I chose. Any ideas how to fix this?

    I updated to the latest iOS and now YouTube and the Ap store are no longer on my phone. Also, not all my music will play and if I play a song it will actually play a different song while displaying the one I chose. Any ideas how to fix this?

    You have to download the individual youtube app now. It is no longer a nataive ios app from apple in ios6

  • Alignment required in to display the  Amount field

    Hi Friends,
    kindly help me facing problem in to display the amount using decimal places also
    nedd to display the Pretax and aftertax amount for that purpose
    written below code . 
    it is picking amount fields but the amount is printing like this
    pretax                  aftertax
    $ 34.67               $     0.00
    $ 21.64               $   120.90->
    I need to display amount fields in order like, thens, hundreds, thousands like.
    read table lt_final into ls_final with key bplan = 'PRD'.
       if ls_final-pretx = 'X'.
         pretax = ls_final-eecst.
         write pretax to lv_pre.     "#EC UOM_IN_MES
         concatenate c_dollar lv_pre into lv_dollar.
          shift lv_dollar right deleting trailing space.
    *Pretax totals
         lv_pretax = lv_pre.
         read table out_pay1 with key name = 'PRETAX'.
         check sy-subrc = 0.
         out_pay1-value = lv_dollar.
         modify out_pay1 index sy-tabix.
         clear out_pay1.
       else.
         aftertax = ls_final-eecst.
         write aftertax to lv_after. 
         concatenate c_dollar lv_after into lv_dollar1.
          shift lv_dollar1 right deleting trailing space.
    Aftertax totals.
         lv_aftertax = lv_after.
         read table out_pay1 with key name = 'AFTERTAX'.
         check sy-subrc = 0.
         out_pay1-value = lv_dollar1.
         modify out_pay1 index sy-tabix.
         clear out_pay1.
       endif.
    Thanks,
    Sai

    Hi Daya,
    I would like to print two amount values with decimals.
    like :  like Pretax      after tax
                                   $      0.00
          $   3.45             $  120.67
          $   0.00             $      0.00
    I created using right justification one paragraph format with two tabs
    60.00              ch           Right
    68.00              ch           Right
    But my program output is comming like this.
    any one please help me.
    Program output:
    Pretax               after tax
                                   $    0.00
          $   3.45           $  120.67
          $   0.00             $    0.00
    Thanks,
    Sai

  • The bill document printed from a contract is not displaying the amount at i

    When we execute the print layout form a bill document from a contract is not displaying the amount at item level however the total amount of the document is correctly displayed in the button of the document.
    Thank you and best regards.

    Hi Alberto
    please check the field which has been mapped in the SAP Script and the Smart form.
    it must be the header amount field. you can replace it with the VBAP_NEtWR or similar fields like kzw1 if you have mapped the sub totla sot get the amount at item levels
    thanks
    akasha

  • How can I remove u0091*u0092 s and display the amount

    My coding
    T1  TOTAL,,,,,,&REGUD-SWABZ&    &REGUD-SWNES&
    Doubt :
    REGUD-SWNES is the value coming from structure REGUD,
    But the value is coming as **********70.250,92
    But I need to display as 70.250,92
    How can I remove ‘*’ s and display the amount ?

    Not sure why it is coming like that.   Is the field length big enough? 
    I guess, you could try....
    translate REGUD-SWNES using '* '.
    condense REGUD-SWNES no-gaps.
    But again, I have no clue as to why you are seeing this.
    Regards,
    Rich Heilman

  • Urgent: Issue while displaying the PDF Reports Using XDO Common region

    Hi all,
    In our product code we are trying to display the PDF Reports, using the xdo common region.
    Previously we were writing the pdf reports direclty onto the response direclty.
    This displays the report onto the browser but if navigate throw browser back button, it doesn't displays the report as the response stream is empty while navigating through back button.
    So to solve this issue, i tried to write the report using the OAHTMLWebBean and xdo common region. Here is the code:
    ByteArrayOutputStream xdoOutput = new ByteArrayOutputStream();
    XDOUtility.retrieveReport(xdoOutput,
    parameters,
    prop,
    appMod
    BlobDomain bxdoOutput = new BlobDomain();
    bxdoOutput.setBytes(xdoOutput.toByteArray());
    String redirectURL = DocumentHelper.getOutputURL(pageContext,
    bxdoOutput,
    "Report",
    "PDF");
    OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean (pageContext, OAWebBeanConstants.HTML_WEB_BEAN, null, "IFRAME");
    outRegion.setHTMLAttributeValue("src", redirectURL);
    outRegion.setHTMLAttributeValue("width", "100%");
    outRegion.setHTMLAttributeValue("height", "100%");
    outRegion.setHTMLAttributeValue("title","Report");
    outRegion.setHTMLAttributeValue("name","Report");
    pageContext.getPageLayoutBean().addIndexedChild(outRegion);
    This successfully displays the report in the XDO Common region. But now the issue is that there are hyperlinks in the Report displayed where from where the user can navigate to other detail pages.
    When we click on these links, a new session starts in the xdo common region.
    Is it possible that when the user click the links in the report displayed, instead of starting a new session in the xdo region, the detail pages is displayed with in the older session.
    Regards
    Sandeep

    Hi all,
    In our product code we are trying to display the PDF Reports, using the xdo common region.
    Previously we were writing the pdf reports direclty onto the response direclty.
    This displays the report onto the browser but if navigate throw browser back button, it doesn't displays the report as the response stream is empty while navigating through back button.
    So to solve this issue, i tried to write the report using the OAHTMLWebBean and xdo common region. Here is the code:
    ByteArrayOutputStream xdoOutput = new ByteArrayOutputStream();
    XDOUtility.retrieveReport(xdoOutput,
    parameters,
    prop,
    appMod
    BlobDomain bxdoOutput = new BlobDomain();
    bxdoOutput.setBytes(xdoOutput.toByteArray());
    String redirectURL = DocumentHelper.getOutputURL(pageContext,
    bxdoOutput,
    "Report",
    "PDF");
    OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean (pageContext, OAWebBeanConstants.HTML_WEB_BEAN, null, "IFRAME");
    outRegion.setHTMLAttributeValue("src", redirectURL);
    outRegion.setHTMLAttributeValue("width", "100%");
    outRegion.setHTMLAttributeValue("height", "100%");
    outRegion.setHTMLAttributeValue("title","Report");
    outRegion.setHTMLAttributeValue("name","Report");
    pageContext.getPageLayoutBean().addIndexedChild(outRegion);
    This successfully displays the report in the XDO Common region. But now the issue is that there are hyperlinks in the Report displayed where from where the user can navigate to other detail pages.
    When we click on these links, a new session starts in the xdo common region.
    Is it possible that when the user click the links in the report displayed, instead of starting a new session in the xdo region, the detail pages is displayed with in the older session.
    Regards
    Sandeep

  • Error while displaying the attached file

    Hi ,
    I am doing one task ,where I need to attach a TIFF file to the workitem .
    I am getting desired output while attaching the file from presentation server but While doing from application server , I am able to attach the file to corrseponding workitem but when i tried to display it ,it gives an error <b>" Operation could not be performed"</b>
    So could you please help me out how to do this ?
    I am using a FM "SCMS_UPLOAD" for uploading file from application server .
    Is there any other way to upload or read the file .
    Thanks

    Hi,
    Use the other FM's
    'SO_OBJECT_UPLOAD'
    OR
    If you are trying to read the file from an SAP Application server,
    1) "OPEN DATASET" to open the file,
    2) "READ DATASET" to read the data into an internal table
    3) "CLOSE DATASET".
    OR
    *   Retrieve Data file from Application server(Upload from Unix)
    DATA: i_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.
        OPEN DATASET i_file FOR INPUT IN TEXT MODE.
        IF sy-subrc NE 0.
          MESSAGE e999(za) WITH 'Error opening file' i_file.
        ENDIF.
        DO.
    *     Reads each line of file individually
          READ DATASET i_file INTO wa_datatab.
    *     Perform processing here
        ENDDO.
    Regards,
    Nandha

  • Suppress leading spaces while displaying an amount field in a Smart form

    Hi all,
    In a smart form, I am using fields like KONV-kbetr and VBAP-netwr each of them currency type and 2 decimal places. I want to suppress the decimal places and also the leading spaces while displaying these fields in a smartform cause when this field is inserted in a sentence, a lot of gap is there between the field and the words of the sentence. I dont want to change the field length cause it can be that huge in some cases.
    Please help.
    Thanks ,

    Hi, if you would place it in a sentence, it would be an option to concatenate the text and values into one string and then condense it.
    concatenate <text> <value> into lv_sentence.
    condense lv_sentence.
    but another way is to use codes for displaying values in smartforms:
    This is from a smartforms PDF i have..
    Output Options for Field Contents
    Use the Formatting options to adapt the value of a field before printing it. You can enter the
    relevant parameters directly behind the field name. Make sure to write the short forms of the
    different options in uppercase letters. Some of the options can be combined.
    General Information
    The formatting options are not suited for all data types of fields (for example, for character fields
    you need no exponential representation). You must distinguish between numeric fields and
    character fields.
    Numeric Fields
      If specified, the system first evaluates the length (<length>).
      If no length is specified, the system displays the value in its overall length.
      The trailing blank indicates a positive sign. To suppress it, use formatting option S.
      Any offset <offset> specified is ignored.
    Sequence of evaluation: (<length>), sign to the left(<),Japanese date (L), suppress blanks (C),
    right-justified display (R), insert fillers (F).
    Character Fields
    By default, the system displays the value of a field in its overall length, but truncates trailing
    blanks.
    Sequence of evaluation: suppress blanks (C), <offset> and (<length>), right-justified display (R),
    insert fillers (F).
    Overview
    Formatting Options for Fields
    Syntax Description
    &field+<offset>& Skips <offset> places of the field value (character fields only). If the
    offset is greater than the length of the value, nothing is displayed.
    &field(<length>)& Sets the output length to <length>.
    &field(*)& If the field is defined by a Data Dictionary type, Smart Forms set the
    output length to the value specified there.
    &field(S)& Suppresses the sign
    &field(<)& Displays the sign to the left of the number
    &field(.<nat.number>)& Limits output of decimal places to <nat.number>
    &field(E<nat.number>)& Displays the field value with the fixed exponent <nat.number>. The
    mantissa is adapted to this exponent by shifting the decimal
    character and inserting zeros.
    SAP Smart Forms (BC-SRV-SCR) SAP AG
    Output Options for Field Contents
    72 April 2001
    &field(T)& Suppresses thousand indicators when displaying fields of types
    DEC, CURR, INT, and QUAN.
    &field(Z)& Suppresses leading zeros of numbers
    &field(I)& Suppresses display of initial values
    &field(K)& Deactivates a conversion routine specified in the Data Dictionary.
    &field(R)& Right-justified display. Use this option only when specifying an
    output length as well.
    &field(F<filler>)& Replaces left-justified blanks in the value by the fill character <filler>.
    &field(L)& Converts and a date field to a local date and displays it. The date is
    then formatted using edit mask JPDAT.
    Since this representation uses Japanese characters, use it in the
    Japanese version of the SAP System only.
    &field(C)& The system takes the field value as a sequence of words separated
    by blanks. Option C shifts these words to the left and leaves only
    one blank inbetween as separator. Any leading blanks are
    suppressed. This effect corresponds to that of the ABAP statement
    CONDENSE.

  • Displaying the Amount with seperators

    hello ABAPers,
    i have a field displaying the grand total of amount.here i need seperators(comma's)for large amount(hundreds, thousands  and lakhs).
    PLZ help me with the procedure

    Hi Declare a field as
    wf_amount type konv-kwert
    suppose, currently u have ur amount value in the variable wf_var_amout.
    Then write as
    wf_amount = wf_var_amount.
    When u ll print wf_amount , the format will be picked from SU3 settings.
    The su3 settings can be controlled as below
    Go to transaction SU3>Defaults>there u can change the number type, as per your required format...
    Hope this helps u out..

  • Getting an unexpected error while displaying the bound HtmlOutputText

    I am getting this unexpected error when I am trying to display the HtmlOutputText which is bound to a backing bean HtmlOutputText component.
    Error:
    java.lang.IllegalStateException: strict servlet API: cannot call getOutputStream() after getWriter()
         at weblogic.servlet.internal.ServletResponseImpl.getOutputStream(ServletResponseImpl.java:253)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:176)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    The JSP Page is :
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Two Beans</title>
    </head>
         <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
        <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <body>
    <f:view>
    <h:form id="TwoBeansForm">
         <h:selectOneMenu id="Dropdown" value="#{hlb.cb.selVal}">
              <f:selectItems value="#{RgsRequestBean.compLookup.competencyAreaMap}"/>
         </h:selectOneMenu>
         <h:commandButton id="TestButton" value="Display" action="#{hlb.display}"/>
         <h:outputText id="SelectedValue" binding="#{hlb.text}"/>
    </h:form>
    </f:view>
    </body>
    </html>The backing bean code is:
    package trial;
    import javax.faces.component.html.HtmlOutputText;
    public class HighLevelBean {
         private ChildBean cb;
         private HtmlOutputText text;
         public HighLevelBean(){
              cb=new ChildBean();
         public ChildBean getCb() {
              return cb;
         public void setCb(ChildBean cb) {
              this.cb = cb;
         public HtmlOutputText getText() {
              return text;
         public void setText(HtmlOutputText text) {
              this.text = text;
         public String display(){
              text=new HtmlOutputText();
              text.setValue(cb.getSelVal());
                return "goback@twobeans";
    }The goback@twobeans string provides the navigation to the same jsp page.
    Childbean just have one String member variable.
    The values in the drop down is getting populated but when I am trying to get the selected value to be displayed through the HtmlTextOutput the above error is thrown...

    Hi  ,
    For troubleshooting your issue, please take steps as below:
    1. Open web.config file of current web application
    2. Find the node that begins
    <trust level=
    3. Change the trust level from WSS_Minimal to
    WSS_Medium
    4. Save the file
    5. Drop to command prompt and execute : 
    iisreset
    If your issue persists, please provide detail error message of ULS log  to determine the exact cause of the error?
    For SharePoint 2010, by default, ULS log is at      
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Error :Display document : Update was terminated.While displaying the PO

    Hi All,
    I am creating a PO with respect to contract in SAP 4.6C system using ME21.PO is getting created successfully.But when I want to display the same in ME23 it giving me a message 'Display document : Update was terminated'.( an express message is getting generated to view in SBWP transaction code ).
    I went through some of SDN forums and checked the tcode SM13 to resolve the issue .I found that there is no ABAP dump got generated for the same .
    Please help me to resolve the issue ..
    Regards,
    Praveen GB.

    Hi Lakshman.
    I did that, systesm is showing below  error :
       1      ME_CREATE_DOCUMENT              V1 NORMAL         Err
    when click on that ,I got one more window with an option to check ABAP dump,But there is no ABAP dump exists for the same.
    I cheked in ST22 also there is no DUMP available for the above issue.
    Please let me know how to crack this issue.
    Regards.,
    Praveen GB

  • Run time error while displaying the list of km folders

    hi
    i am trying to display the list of contents in the km folder using km api but the application is displaing an runtime error
    package com.sap.test;
    error in init method component
    any body know the solution for this problem .
    thanks

    hi there
    public class kmportalcomp extends AbstractPortalComponent
              public String outtxt;
              int depth;
              int rowid = 0;
              int counter = 0;
         public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              IUserContext userCtx =request.getUser();
              IResourceFactory factory;
              IPortalComponentContext compContext = request.getComponentContext();
              IPortalComponentProfile profile = compContext.getProfile();
              try {IUser serviceUser = WPUMFactory.getServiceUserFactory().getServiceUser("ccadmin_service");
                   String webpath = request.getWebResourcePath();
                   IResourceContext resourceContext = new ResourceContext(serviceUser);
                   response.write(webpath);
                   String fpath;
                   fpath = profile.getProperty("path").trim();
                   depth = Integer.valueOf(profile.getProperty("depth").trim()).intValue();
                   RID rid = RID.getRID(fpath);
                   ICollection folder = (ICollection)ResourceFactory.getInstance().getResource(rid, resourceContext);
                   IResourceList  fileList = folder.getChildren();
                   response.write("d.add(0,-1,'"folder.getName()"');\r\n");
                   rowid = 0;
                   scan_km(response, fileList,0);
                   response.write("document.write(d);\r\n");
                    response.write("//--></script>");
                    response.write("</div>");
                } catch (Exception e) {
                    response.write("Error Occured<br>");
                    response.write(e.toString());
              public void scan_km(IPortalComponentResponse response,IResourceList list,int level) {
                   int currentrowid = rowid;
                   if (level>depth&&depth!=0) {
                         return ;
                     String rid = " ";
                     IResourceList tmpreslist;
                     ICollection tmpcollection;
                     level++;
                     for (int i = 0; i < list.size(); i++) {
                         IResource tmpres = list.get(i);
                         try {
                             if (tmpres.isCollection() && tmpres.getLinkType() == LinkType.NONE ) {
                                  //&& tmpres.getLinkType() == LinkType.NONE
                                  tmpcollection = (ICollection) tmpres;
                                tmpreslist = tmpcollection.getChildren();
                                if (tmpreslist.size()>0) {
                                    rowid++;
                                    response.write("d.add("rowid","currentrowid",'");
                                    response.write(tmpres.getName());
                                    response.write("','');\r\n");
                                    scan_km(response,tmpreslist,level);
                             else {
                                rowid++;
                                String dispname;
                                dispname = tmpres.getDisplayName();
                                if (dispname==null||dispname.equals(""))
                                    dispname = tmpres.getName();
                                rid = "/irj/go/km/docs"+tmpres.getAccessRID();
                                response.write("d.add("rowid","currentrowid",'"dispname"','"rid"');\r\n");
                         } catch (Exception ex) {
    the error is am getting is
    com.sapportals.wcm.repository.enum.LinkType and com.sapportals.wcm.repository.enums.LinkType     kmportalappproject/src.core/com/sap/test     kmportalcomp.java     
    thanks

  • Problem while displaying the data when double clicked on JTable element

    Hi All,
    i have one List box( JList ) and one table (JTable). Both JTable and JList are positioned on the same Frame. I am able to drag the elements from JList to JTable and also i have added the mouse click action on both List box and JTable.
    if i double click on JList element, that will popup one dialog box.
    if i double click on JTable cell element that was dragged from JList, that will popup same dialog box which was opened earlier for JList action.
    But my problem here is:
    Suppose if i drag the four elements one by one from JList to JTable and (after four elements dragged) double clicked the first element which was dragged first that displayed the popup dialog box structure correctly but the data displayed in that was not correct. It is showing the data of recent dragged element( i.e, fourth element).
    But if i double click on JList element that is showing the correct data according to the double clicked element.
    What might be the problem here, why it was not displaying the correct data when double clicked on JTable element.
    Please help me here.
    Many thanks in advance.
    The following code is used in mouse clicked event method of JList
    private void listMouseClicked(java.awt.event.MouseEvent evt) {                                              
             if(evt.getClickCount()==2){
             AssigningResourcesUI assignResource=new AssigningResourcesUI(this,true);
             assignResource.show();
    }                AND The following code is used in mouse click enevet method of JTable.
    private void tableMouseClicked(java.awt.event.MouseEvent evt) {                                          
            if(evt.getClickCount()==2){
             int row=table.rowAtPoint(new Point(evt.getX(), evt.getY()));
             int col=table.columnAtPoint(new Point(evt.getX(), evt.getY()));
             if(row==-1||col==-1){
                 return;
              Object obj=table.getModel().getValueAt(row, col);
             if(obj==null||(obj.equals(""))){
               }else{
             AssigningResourcesUI assignResource=new AssigningResourcesUI(this,true);
             assignResource.show();
         }            Thanks & Regards,
    Maadhav....
    Edited by: maadhav on Jul 1, 2009 7:22 AM

    I doubt it is related to your problem but:
    int row=table.rowAtPoint(new Point(evt.getX(), evt.getY()));Why are you creating a new Point? Just use evt.getPoint().
    Object obj=table.getModel().getValueAt(row, col);Don't get the data through the model method, get the data through the table method:
    Object obj = table.getValueAt(...)
    This way it will work even if the table happens to be sorted.
    Instead of creating a AssigningResourcesUI object, just disply the value retrieved from the model. That way you know whether the problem is with the mouse event code or your UI class. Like Walter suggested above I"m guess the problem is with your UI class.

  • Return delivery error while displaying the confirmation in EBP

    Hi All,
    I face an error in EBP when I try to return delivery after confirmation of PO. Just to explain you all in detail-
    I created a shopping cart, ordered it and then confirmed it using Create Confirmation. Now when i try to make <b>Return Delivery</b>, it gives me an error saying, No return delivery can be entered for confirmation, followed by another error- Interface data contains errors.
    Pls help!!!!!!!!!!
    Thanks in advance.
    Regards,
    Swapna

    Hi Yann,
    As per your suggestion, I tried to do a return delivery through backend with PO quantity same as delivered quantity. I am able to do a return delivery successfully. So the error seem to be in EBP,, is it?
    While debugging BBPCF02, I noticed that it calls a function module -
    BBP_CF_ASSIGNMENT_BACKEND.
    In this function module, it calls a routine tolerance_check_backend which checks for the below code
    lv_open_tol_quan = is_tol_check-quantity
    ( 1 + is_tol_check-overdel_tol / 100 )
                         - is_tol_check-deliv_qty.
    If this field lv_open_tol_quan is 0, it throws the error.
    Now in backend, where the purchase order gets created, i checked for over delivery tol,,its 0.
    so if both the qtys are same, I will alwz get the same error.
    Can you please help me to understand this???
    Thanks in advance.
    Regards,
    Swapna
    and since

  • Message while displaying the form preview

    hi everybody
    when i tried to view the print preview of my form the following system message is displaying after cliking the print preview button
    <b>form z_cust language EN is not active and has no errors</b>
    and i am not able to see the preview
    can someone tell me what is the error and how i should correct it
    regards
    hridhayanjili

    Hi,
    As per the error status mentioned, there is no problem in the form side(SE71), the things u need to check is when you are calling the function modules like OPEN_FORM, WRITE_FORM, CLOSE_FORM,..., You need to pass the values like the script name, language, user name,  Text Element name to the respective function modules in Capital Letter and also check whether in between single codes('') in the export or import parameters have you left any blank spaces.
    Regards:-
    <b>Santosh</b>

Maybe you are looking for