Remove Decimals in Smartform not working

Hi,
I use
&struc-field(C)&
to hide decimals in a SF.
The type of this field is LGMNG.
This code works for all instances, except when the UOM is type ROL (Role). I have put a break-point in the SF just before the value is output and they are identical.
But the output would be, for example say five units:
a) 5 SH (Correct)
b) 5,000 ROL (incorrect)
Anyone seen this before?
Thanks.

Nick,
thanks for the reply. I tried both of these already:
&struc-field(.0)&
&struc-field(C.0)&
And, for both, I am told at runtime that (.0) is not a correct "formatting option for the field struc-field".
I'm going to put a code block in to convert to an integer and display that. It will work - I just thought that (C) or (.0) would work too?
Thanks.

Similar Messages

  • I accidentally downloaded the search engine called Genieo and I am trying to remove it but it just wont go away! I followed the step to remove it but its not working. I am begging for someone's help!!

    I accidentally downloaded the search engine called Genieo and I am trying to remove it but it just wont go away! I followed the step to remove it but its not working. I am begging for someone's help!!

    See if these instructions work:
    http://www.thesafemac.com/arg-genieo/
    Ciao.

  • Iphoto remove photos from iphone not working

    For the past couple months iphoto will not delete the photos from my iphone. It successfully imports them, prompts to delete, appears to delete but doesn't actually remove them. They are still on my iphone. iphoto recognizes that they have already been imported and asks to delete them again the next time I plug in my phone, I accept, looks like something is happening but they are still there. I've tried image capture as well and there is no way to delete off the phone in image capture. Help!?

    Can it be, that you have enabled iCloud Photo Library (Beta) on your iPhone with iOS 8.1.3?  Then you can import photos from the phone, but deleting from Image Capture or iPhoto will not work, if the photos are in iCloud Photo Library.
    iCloud Photo Library beta FAQ
    Delete the photos directly on the iPhone or using the icloud webpage -
    Use the "Photos Beta" app on your iCloud page:
    https://www.icloud.com

  • ADCS Remove child table is not working

    Hi
    The AD out-of-box adapter ADCS Remove from child table is not working correctly.
    when i remove data from child table the task status shows completed, but the description inside the task shows that the GROUP HAS BEEN REMOVED ALREADY FROM TARGET.
    But on checking the AD I found the groups were not removed actually.
    In the log i found this error
    Running Remove User From Group
    DEBUG,03 Nov 2009 10:21:06,099,[OIMCP.ADCS],tcUtilADTasks::removeUserFromGroup() Enter
    DEBUG,03 Nov 2009 10:21:06,099,[OIMCP.ADCS],tcUtilADTasks::getLookupCodeValue() Enter
    DEBUG,03 Nov 2009 10:21:06,115,[OIMCP.ADCS],tcUtilADTasks::getLookupCodeValue() Exit
    DEBUG,03 Nov 2009 10:21:06,115,[OIMCP.ADCS],tcUtilADTasks::getObjectByObjectGUID() Enter
    DEBUG,03 Nov 2009 10:21:06,115,[OIMCP.ADCS],tcADUtilLDAPController::search() Enter
    DEBUG,03 Nov 2009 10:21:06,115,[OIMCP.ADCS],tcADUtilLDAPController::getPath() Enter
    DEBUG,03 Nov 2009 10:21:06,115,[OIMCP.ADCS],tcADUtilLDAPController::getPath() Exit
    DEBUG,03 Nov 2009 10:21:06,115,[OIMCP.ADCS],tcADUtilLDAPController::connectToAvailableAD() Enter
    DEBUG,03 Nov 2009 10:21:06,115,[OIMCP.ADCS],tcADUtilLDAPController::hashTableEnvForDirContext() Enter
    DEBUG,03 Nov 2009 10:21:06,115,[OIMCP.ADCS],tcADUtilLDAPController::hashTableEnvForDirContext() Exit
    DEBUG,03 Nov 2009 10:21:06,115,[OIMCP.ADCS],tcADUtilLDAPController::hashTableEnvForLDAPContext() Enter
    DEBUG,03 Nov 2009 10:21:06,115,[OIMCP.ADCS],tcADUtilLDAPController::hashTableEnvForLDAPContext() Exit
    INFO,03 Nov 2009 10:21:06,115,[OIMCP.ADCS],SSL option is not selected in ITResource
    DEBUG,03 Nov 2009 10:21:06,131,[OIMCP.ADCS],tcADUtilLDAPController::connectToAvailableAD() Exit
    DEBUG,03 Nov 2009 10:21:06,334,[OIMCP.ADCS],tcADUtilLDAPController::disconnect() Enter
    DEBUG,03 Nov 2009 10:21:06,334,[OIMCP.ADCS],tcADUtilLDAPController::disconnect() Exit
    DEBUG,03 Nov 2009 10:21:06,334,[OIMCP.ADCS],tcADUtilLDAPController::search() Exit
    DEBUG,03 Nov 2009 10:21:06,334,[OIMCP.ADCS],tcUtilADTasks::getObjectByObjectGUID() Exit
    DEBUG,03 Nov 2009 10:21:06,334,[OIMCP.ADCS],tcADUtilLDAPController::getPath() Enter
    DEBUG,03 Nov 2009 10:21:06,334,[OIMCP.ADCS],tcADUtilLDAPController::getPath() Exit
    DEBUG,03 Nov 2009 10:21:06,334,[OIMCP.ADCS],tcADUtilLDAPController::connectToAvailableAD() Enter
    DEBUG,03 Nov 2009 10:21:06,334,[OIMCP.ADCS],tcADUtilLDAPController::hashTableEnvForDirContext() Enter
    DEBUG,03 Nov 2009 10:21:06,334,[OIMCP.ADCS],tcADUtilLDAPController::hashTableEnvForDirContext() Exit
    DEBUG,03 Nov 2009 10:21:06,334,[OIMCP.ADCS],tcADUtilLDAPController::hashTableEnvForLDAPContext() Enter
    DEBUG,03 Nov 2009 10:21:06,334,[OIMCP.ADCS],tcADUtilLDAPController::hashTableEnvForLDAPContext() Exit
    INFO,03 Nov 2009 10:21:06,334,[OIMCP.ADCS],SSL option is not selected in ITResource
    DEBUG,03 Nov 2009 10:21:06,349,[OIMCP.ADCS],tcADUtilLDAPController::connectToAvailableAD() Exit
    DEBUG,03 Nov 2009 10:21:06,349,[OIMCP.ADCS],tcADUtilLDAPController::modifyAttributes() Enter
    *ERROR,03 Nov 2009 10:21:06,349,[OIMCP.ADCS],The error occured in tcADUtilLDAPController::modifyAttributes():null*
    DEBUG,03 Nov 2009 10:21:06,349,[OIMCP.ADCS],tcADUtilLDAPController::disconnect() Enter
    DEBUG,03 Nov 2009 10:21:06,349,[OIMCP.ADCS],tcADUtilLDAPController::disconnect() Exit
    DEBUG,03 Nov 2009 10:21:06,349,[OIMCP.ADCS],tcUtilADTasks::removeUserFromGroup() Exit
    Any thoughts would be grateful
    TIA,
    Manoj

    Hi Manoj,
    The error message below is performed when the connector tried to remove the user from a user group removeUserFromGroup() (ADCS Remove User From Group), so the user group will not be removed. To delete a group, you have to run the delete group task of AD Group process.
    When the user has already been removed from the group, the connectors shows null to the tcADUtilLDAPController::modifyAttributes():null
    Renato.

  • Removing _root code does not work

    I've tried removing or using this and code dose not work. Any help is appreciated.
    var j:Number;
    for (j = 0; j < 7; j++) {
    _root["holder_mc"+j].onPress = function() {
    with(this){
        startDrag(false);
           lineStyle(3,0xcccccc,100);
          lineTo(_root.myWidth,0);
           lineTo(_root.myWidth,_root.myHeight);
           lineTo(0,_root.myHeight);
           lineTo(0,0);

    I used:
    eval("holder_mc"+j).onPress = function()

  • Remove decimals in smartforms

    Hello all,
    How can we suppress decimals in smartform. Because I do not want it for a Quantity field.
    Thanks.

    Hi
    &symbol(Z)& Omit Leading Zeros
    &symbol(S)& Omit Leading Sign
    &symbol(<)& Display Leading Sign to the Left
    &symbol(>)& Display Leading Sign to the Right
    &symbol(C)& Compress Spaces
    &symbol(.N)& Display upto N decimal places
    &symbol(T)& Omit thousands separator
    &symbol(R)& Right justified
    &symbol(I)& Suppress output of the initial value
    Regards
    Pavan

  • Dunning Smartforms not working

    Help please...
                                                                                    Form ZFSCD_DUNNING_TG language EN is not available in client 220                                                                               
    Message no. TD131                                                                               
    Diagnosis                                                                               
    You want to display a form which does not exist.                                                                               
    System Response                                                                               
    If the form does not exist in the specified language in the current   
         client, the form which was used for printing is displayed by accessing
         another client. The search is thus graded as follows:                                                                               
    -   Current client, form in specified language, status irrelevant                                                                               
    -   Current client, form in original language, status active                                                                               
    -   Client '000', form in specified language, status active                                                                               
    -   Client '000', form in original language, status active                                                                               
    Procedure                                                                               
    You can obtain a list of the form available in the current client using 
         the function 'Find' in the initial screen of the form maintenance. Here 
         you can also output a list of the forms in your current client or       
         another client, using the menu option 'Utilities -> Client comparison'. 
    Did this but still not working                                                                               
    After executing F150 it is not printing dunning letter as it showing
    Forms for MAHNR: 'TG', RBUKM: '2200', KOART: 'D' do not exist (T047E)
    Thanks

    Hi Hiren,
    Ref.Dunning Procedure for Texts should have a value equal to your custom dunning procedure which you have created or you may enter 0001, 0003 or 0005 if you are using any of the standard dunning procedures.
    This should solve or problem. Please do let us know if you find something else.
    Regards
    Harpreet

  • Remove Decimals in smartform for QUAN Field

    Hi,
    I want to display the Quantity field in smartform by Suppressing Decimals,
    if i give &field(13.0)& it is showing Error : Incorrect formatting option.
    The Same will work with CURR Field. Then what i have to give for QUAN Field.
    Thanks & Regards
    Praveen.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Mar 24, 2009 10:42 AM

    Hi Praveen,
    Maybe you can try it with &field(.0)& ,
    But it is possible that it is concerning a field which formatting is customized with transaction CUNI.
    Hope this will help.
    Gr.,Frank

  • Smartform not working for  languages other than EL (english) !

    I have a scenario of producing a pdf form(smartform) by clicking on a button in PC-UI portal .
    Whenever i tried generating the pdf form (smartform) in any  diff. language rather  than english by logging in PCUI portal in that language  , i found the following:
    In the code, generated by the smartform, there is a function call to function ssfcomp_process_document.
    It returns sy-subrc 1 and the error is FORMATTING_ERROR.  , whenver other 4 languages are used instead of english .
    Can anyone help? suggest possible reasons for this ?
    Thanks a lot,
    Piyush

    Hi
    I think you need to first translate the smartform into other languages. Before translation, it wont work.
    Steps for translation:
    1. goto Transaction SE63
    2. in R3 Enterprise select form menu
    Translation - ABAP Objects - Other long texts
    3. select FS - SSF-Smart Form
    4. Object Name: choose your smart form
    5. select target language
    6. press edit
    Regards,
    Vishwa.

  • Smartform not working in PCUI

    Hi experts,
    I'm facing this issue:
    I created a Z* form for opp print, it works perfectly fine in GUI, but cannot open in PCUI.
    There's an error like this: "An error exists on this page. Acrobat may not display the page correctly".
    Any suggestion on this?
    Thanks a lot

    Hi Bhargava,
    I would suggest you to place a breakpoint at class- CL_CRM_BSP_IL method-READ and see if MAC is sending the et_screen_structure correctly filled in.  MAC may not be sending the data to PCUI framework correctly. If it's , write further.
    I hope it helps.
    Thanks,
    Gyan.

  • Remove All Website Data Not Working

    Hello All,
    I am currently using a MacBook Pro, running OS X 10.8.5 with Safari ver 6.2.2. Recently I have noticed that when I go to preferences and click on Remove All Website Data it does not clean out the sites I have visited. Is this a common problem or do I have a virus or is there a fix? Please help. Thank you for your time.

    If you want to delete only the browsing history and keep all other data, select Show History from the History menu. In the window that opens, select all the history items and press delete.

  • Command in Smartform not working

    Hi all,
    I need to print totals in every page, for that how to know the end of the page.
    i tried to print only 15 rows in page and set a flag, if flag = X then im printing total in footer.
    But in some instances, the page has more than 15 rows then after 15th row the total is printing then the
    remaining records are printing. Now i called the Command with flag = X and in goto new page i gave second page.
    But the flag has set to X, total is also printing but the command is not trigerring.
    after 15th record the total is getting displayed and remaining item are printing.
    anybody has a clue on this why the command is not trigerring?
    pls suggest.
    Regards,
    Priya

    Declare your total line in Footer of table. There you will have the option to display it at end of table or end of each page.
    No need to calculate 15 lines or so.
    Just keep calculating the total in a variable and display it in footer.
    Double click on Footer node of table and you will see the optin to display it 'At page break' or 'End of table'
    Revert if in any doubt.
    Edited by: Ankesh Saharan on Dec 24, 2008 2:19 PM

  • Page protection in smartform not working

    Dear All,
    I have a smartform with one page. For a range of order numbers multiple pages would come in output. Example : 5 order numbers , 5 page output. There is a header part, that has to come on each page which is hard coded i.e company name .
    when we give small range of order number ,output comes perfect. But when range is over ten. the header part  moves for some pages into previous page...........

    Hi Shiva,
    I am using only one page. In it I am using  loop to display all content.
    Pattern of each page is:
                                                                    Company Name
    doc no.      123456                                       code:456                                  city:nnnnnnnnnnnnnnn
    table  with 4 cols.
    footer part. of table
    pm sign                                     authority sign                                                  reviewer sign
    So, when there are more then three pages, the last line in smartform goes in to next pages .Due to which other pages indentation also goes wrong.  This is happening when table size is increasing more then it is in first page.
    Please Help.........

  • Automatic removal of previous backups not working

    retention policy is window of 7 days
    Sat:
    crosscheck backup
    report need backup
    delete obsolete
    backup incremental level 0 database
    backup archivelog all delete input all
    Sun-Fri:
    crosscheck backup
    report need backup
    delete obsolete
    backup incremental level 1 cumulative
    backup archivelog all delete input all
    Here is what is in the backup directory
    incremental level 0 & acrchivelogs : Feb 25
    incremental level 1 & acrchivelogs : Feb 26
    incremental level 0 & acrchivelogs : Mar 4
    incremental level 1 & acrchivelogs : Mar 5
    Shouldn't everything before Mar 4 have been deleted by "delete obsolete"? I thought I understood RMAN but apparently not. Please help.

    Hi
    That you continue to have a full backup of Feb. 25 is correct. Retention policy set to 7 days means that you should be able to restore till 7 days ago; to do that you need a backup older than 7 days.
    Your output is correct!
    Bye, Aron

  • Remove Element does not work

    Hi Experts,
    I want to loop over a node and remove all elements in this node if they don't match a certain pattern (which needs to be checked by getting the details o these elements).
    So looping over the node and checking whether the pattern matches works pretty fine (I've checked by using a counter variable which counts the number of matches and compares to the total size of the node). But removing the elements does not work.
    I always get the complete table as the result but not without all those elements I that they'd be removed already. I also check the success status (boolean) of the remove function and it delivers always "true" so it seems to work.
    This is the relevant coding:
           for(int c = 0 ; c < wdContext.nodeMatnrlist().size() ; c++){
              wdContext.nodeMatnrlist().moveTo(c);          
              GetMaterialDetails(wdContext.currentMatnrlistElement().getMaterial());          
              if(!wdContext.currentMaterialDetailsElement().modelObject()
    .getOutput().getMaterial_General_Data().getCreated_By().equals("BAIV-SS09-21")){
                   success = wdContext.nodeMatnrlist().removeElement(wdContext.nodeMatnrlist().getCurrentElement());
                   counter++;
    any Ideas on this?
    Many thanks in advance!
    Cheers
    Tobias
    Edited by: Tobias Fickinger on Sep 4, 2009 7:04 PM

    Hi Tobias.
    Try this instead:
    wdContext.nodeMatnrlist().invalidate();
    Regards.
    Julio Herrera

Maybe you are looking for

  • ShowDocument url permission denied in 1.6.0_24

    Have a JWS application, which was bringing up the default browser. Sometime the url was http & others was file ( sort of a print preview function). Starting in 1.6.0_24, I am getting a SecurityException "ShowDocument url permission denied" for both.

  • Unknown error (-45054)

    When I try to synchronize my apps on iTunes 11.2.01 (1) I get the message We could not complete your iTunes Store request. An unknown error occured (-45054). (the screendump is in Dutch) I have emptied my iTunes Cache but that did not solve the probl

  • Cleaning up filesystem after project completed

    Hi everyone I've edited several large (2 Hours+) DVD sessions recently for various events, and the projects are completed. What I'd like to know, is what files can I safely remove from my system now that the projects are complete? I'd like to retain

  • EHP6 upgrade

    Hi All, I'm just starting a EHP 6 upgrade project. Doing my research by reading all my documents and notes. Creating a post check document and so on, I came across a statement in the Master Guide SAP EHP 6 for SAP ERP 6.0 for win/sql. Chapter 2, sect

  • Flash exposure

    Why does a frame exposed with a flash flicker? What can be done about it if you want to increase its duration?