Converting issues of QUAN clomn

Dear All
I tried to take a clue from a thread posted before but not working for me
I want. 1,000 is printed as 1. But even after coding below in smartforms it gives me 1,000.
GS_FKIMG is of type BDMNG
GS_ITEM-FKIMG is of type FKIMG of type QUAN (13,3)
In %CODE program lines for Element I am using
GS_FKIMG = GS_ITEM-FKIMG.
I am printing &GS_FKIMG(.0)& but not working
I also tried using &GS_FKIMG(C.0)& but in vain.
could you guide if I am writing program lines wrong or at wrong place.

Hi,
Smartforms will link your quantity with unit then print out. It also take the configuration of decimal of each unit.
If you want to archive your goal, I think you have to convert your quantity to string then delete right zero if needed. Please try this:
Write [QUANTITY] TO TEXT UNIT [UNIT].
"and use form routine below to delete the right zero
FORM delete_right_zero  USING    p_text.
  IF p_text CP '*,*'.
    SHIFT p_text RIGHT DELETING TRAILING space.
    SHIFT p_text RIGHT DELETING TRAILING '0'.
    IF p_text+69(1) EQ ','.
      SHIFT p_text RIGHT BY 1 PLACES.
    ENDIF.
  ENDIF.
ENDFORM.   
Best regards,
Thien

Similar Messages

  • Judge weather a character-string can be convert to type QUAN

    HI all.
    Is there any Function that can judge weather a character-string can be convert to type QUAN?
    IF no, could someone give me an efficient arithmetic.
    Let me show my example:
    FUNCTION z_judge_quan.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(STRING_IN) TYPE  CHAR12
    *"  EXPORTING
    *"     REFERENCE(QUAN) TYPE  BSEG-BPMNG
    *"     REFERENCE(MESSAGE) TYPE  CHAR120
      DATA: len TYPE i,
           temp_str(20) TYPE c VALUE '00000000000000000000'.
      DATA pos TYPE i.
      DATA: a TYPE i.
      DATA string(20) TYPE c.
      DATA: off TYPE i.
      DATA: string_temp(20) TYPE c.
      string = string_in.
      CONDENSE string NO-GAPS.
      len = STRLEN( string ).
      temp_str(len) = string.
      a = len - 1.
      string_temp = string.
      CONDENSE string_temp.
      FIND '.' IN string  MATCH OFFSET off MATCH LENGTH pos.
      REPLACE SECTION OFFSET off LENGTH pos OF:
                    string_temp WITH '|'.
      IF sy-subrc <> 0.
        IF  temp_str CO '0123456789'.
          message = 'Number'.
          quan = string.
        ELSE.
          message = 'not number'.
        ENDIF.
      ENDIF.
      IF sy-subrc = 0.
        pos = sy-fdpos + 2.
        FIND '.' IN string_temp." starting at pos
        IF sy-subrc =  0.
          message = 'not number'.
        ELSE.
          IF temp_str CO '0123456789.' AND temp_str0(1) <> '.' AND temp_stra(1) <> '.' .
            message = 'number'.
            quan = string.
          ELSE.
            message = 'not number'.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFUNCTION.

    Hi,
    You can trap the exception as follows:
      DATA: oref TYPE REF TO  cx_sy_conversion_no_number.
      DATA: oflow TYPE REF TO cx_sy_conversion_overflow.
      data: c_menge type mseg-menge,
              p_inp(16) type c value 'ABCDEFGH'.
      TRY.
          CLEAR oref.
          c_menge = p_inp.
        CATCH cx_sy_conversion_no_number INTO oref.
          IF NOT oref IS INITIAL.    "if error
               message 'Not valid quantity'.
            exit.
          ENDIF.
        CATCH cx_sy_conversion_overflow INTO oflow.
          IF NOT oflow IS INITIAL.  "if overflow.
            CLEAR: p_inp.
            message 'not valid quantity'
            EXIT.
          ENDIF.
      ENDTRY.
    Please award points if helpful..
    regards,
    S. Chandra Mouli.

  • DNG 5.4 beta converter issues with Hasselblad H2D-39 files

    I was directed to this forum when I posted a note on the DNG converter 5.4 beta, converting to use on Photoshop CS3 (see thread http://forums.adobe.com/thread/436940?tstart=0 )
    The converter has a very interesting "fail pattern" when converting Hasselblad .3fr files:
    First file fails (error message displayed is "Unknown error", second file converts OK, 3rd fails, 4th OK, 5th fails, 6&7 OK, 8th fails..
    By about the 20th file, 5 are successfully converted in a row and then by file 30, no more failures!
    So it would seem that there is not really a problem with actually reading/processing the .3fr file content. Instead looks like some form of memory or other issue in the code??
    I have also noted a few cases of problems with the conversion itself, picture ends up totally posterized, see attached file which is unmodified out of raw -> PS  CS3:
    Finally, processing the DNG files converted still fails on Photoshop CS3 as reported earlier in this thread:
    http://forums.adobe.com/thread/421742?tstart=0
    If I open the DNG file in PS CS3 and save pretty much immediately, saving works. If I do almost any processing, the "Save as" freezes PS3 before the file/directory selection dialog starts. Only forcefully stopping Photoshop helps. Looks like there is something in the "Save as" dialogue that does not check for exceeding max memory allocated to Photoshop or similar?

    Hi,
    Thanks for responding. I thought this was the forum pointed to from the download site, was not aware of the dng forum. Though there is another post on probs with convering Hasselblad files ( http://forums.adobe.com/thread/436615?tstart=0 ), my symptoms are quite similar ("Unknown error") so I would suspect this could be related to the same prob? As I am quite keen to get rid of the Phocus software, if there is anything I can do to help you fix the bug, just send me a note.
    Thanks, Håkan
    Ian Lyons kirjoitti 31.05.2009 kello 11:30:
    If you're using the DNG converter then raising the issue on the
    appropriate
    forum might get a bit more attention
    http://forums.adobe.com/community/dng
    >

  • B1IF mass data process(convert) issue

    Hi All,
    I have a issue converting a large amount of data that I queried from my SAP database via a B1IF sql call.
    The data must be covert to another format before converting the xml to a string to be dropped on MQ.
    I have 120 other messages that works the same way without any issue.
    The process just stops when I try to convert the data to a string.
    The atoms with data looks like this before passing it to the XML2TXT call.The xml disapeared and changed to text (maybe this is because it is a mass of data ?)
    Please assist...
    Kind Regards,
    Brenden Draper

    Hi All,
    I have a issue converting a large amount of data that I queried from my SAP database via a B1IF sql call.
    The data must be covert to another format before converting the xml to a string to be dropped on MQ.
    I have 120 other messages that works the same way without any issue.
    The process just stops when I try to convert the data to a string.
    The atoms with data looks like this before passing it to the XML2TXT call.The xml disapeared and changed to text (maybe this is because it is a mass of data ?)
    Please assist...
    Kind Regards,
    Brenden Draper

  • Re:Contents L001 from field /BIC/NTrtc cannot be converted in type QUAN

    Hi ,
    When loading from Flat file I am getting the following error in the developement.
    Message no. RSAR198
    Diagnosis
    The value 'L001' from field /BIC/NTrtc cannot be converted into the DDIC data type QUAN of the InfoObject in data record 1. The field content could not be transferred into the communication structure format.
    System response
    The data to be loaded has a data error or field /BIC/NTrtc of the transfer structure is mapped to an unsuitable InfoObject.
    The conversion of the transfer structure into the communication structure was cancelled. The processing of data records with errors was continued with respect to the settings in the error handling of the InfoPackage (Tab Page: Update Parameters).
    Please suggest some the resolution.
    Thanks and Regards,
    Ravi.
    Assigning points is the way to say thanks in SDN.
    Edited by: Ravi Bw on Dec 21, 2007 1:45 PM
    Edited by: Ravi Bw on Dec 21, 2007 1:53 PM
    Edited by: Ravi Bw on Dec 21, 2007 2:41 PM

    can you please answer some one this is very imporant for me..
    Siri

  • Help request: Adobe Converter issue

    Hi!
    May I trouble someone, it's likely a simple issue but is driving me insane
    My Adobe Professional - 8 used to convert MS-Word 2007 files (up to this morning) while keeping all the original text colors/fonts.  Now when it converts, the resulting PDF file only shows "black" text.
    Just prior to this happening, with the last conversion I attempted I saw a pop-up message, an error of sorts, saying something regarding a feature that would need to be disabled if this problem had occurred before (don't quite remember the exact words...an add-on  feature?).  I ignored the message.
    Thanks
    PF

    Thanks Jimmy...
    I do MS-Office 2007, not 2003.  I did solve my issue, but what I actually
    did was uninstall Adobe and re-install it

  • PL/SQL Character to date convertion issue

    Dear all,
    I encounter an issue with character to date convertions in PL/SQL.
    The following is a short description:
    I use an Oracle DBMS 8i and the problem is a wrong insertion of a date value to a column table.
    The date value is retrieved from a table and is type of VARCHAR2(240). Then a convertion to the DATE type takes place and this value (date) is inserted to another table column of type DATE.
    For example if the date retrieved as VARCHAR2 is '21/05/2003' the value inserted is '21/5/0003'.
    The convertion is made by the following portion of code:
    dateVariable Date := NULL:
    dateStringVariable is retrieved from the db and is type of VARCHAR2(240)
    DATE_FORMAT is a string retireved from the db with value equals to 'DD/MM/YYYY HH24:MI:SS'
    dateVariable := TO_DATE(dateStringVariable, DATE_FORMAT);
    Then the dateVariable is inserted to a recordSet which in turn is the one inserted to the db.
    My guess is that the problem is during the char to date convertion.
    I wonder if anyone knows what produces this error.
    Any suggestion is welcome.
    With regards

    SQL> desc t
    Name                                      Null?    Type
    DATE#                                              DATE
    SQL> alter session set nls_date_format = 'DD-MON-RR';
    Session altered.
    SQL> select * from t;
    no rows selected
    SQL> insert into t values(to_date('21/05/2003','DD/MM/YYYY'));
    1 row created.Now Oracle keeps correct date - 21th of May 2003.
    How you display it depends on your NLS_DATE_FORMAT settings:
    SQL> select * from t;
    DATE#
    21-MAY-03
    SQL> alter session set nls_date_format = 'MM/DD/YYYY';
    Session altered.
    SQL> select * from t;
    DATE#
    05/21/2003So now try to do
    SELECT to_char(<<your new date column>>,'DD/MM/YYYY') from <<your table>>
    to be sure your date is kept right.
    Rgds.

  • [SOLVED] imagemagick - convert issue.

    When issuing the command:
    convert /home/marst/aur.svg /home/marst/aur.jpg
    I get error message:
    convert: no decode delegate for this image format `/home/marst/aur.svg' @ error/svg.c/ReadSVGImage/2815. 
    convert: missing an image filename `/home/marst/git/darchboard/aur.jpg' @ error/convert.c/ConvertImageCommand/2919.
    Name           : imagemagick
    Version        : 6.5.9.5-1
    URL            : http://www.imagemagick.org/
    Licenses       : custom 
    Groups         : None
    Provides       : None
    Depends On     : lcms  libwmf  librsvg  libxt  gcc-libs  ghostscript  openexr>=1.6.1  libtool  heimdal  bzip2 
                     libxml2  jasper 
    Optional Deps  : None
    Required By    : inkscape 
    Conflicts With : None
    Replaces       : None
    Installed Size : 8284.00 K
    Packager       : Eric Belanger <[email protected]>
    Architecture   : x86_64
    Build Date     : Sun 14 Feb 2010 07:07:09 PM EST
    Install Date   : Sun 28 Feb 2010 08:17:49 PM EST
    Install Reason : Explicitly installed
    Install Script : No
    Description    : An image viewing/manipulation program
    Oops.  Looks like it is me svg file that is no good.  Apologies.
    Last edited by marxav (2010-03-01 01:32:52)

    I get this all the time whether I use png, jpg, svg or some other format. I can't get convert to work ever.

  • H:selectBooleanCheckbox converter issue

    HI,
    I want to override the default behaviour of h:selectBooleanCheckbox .
    <h:selectBooleanCheckbox id="value" value="#{bean.value}"
    immediate="false" >
    <f:converter converterId="BinaryStringConverter"/>
    </h:selectBooleanCheckbox>
    I have binded the h:selectBooleanCheckbox to property of string type in bean.
    String value;
    public String getValue(){
    return value;
    public void setValue(String s){
    value = s;
    What I want to do is when the checkbox is checked , bean's value should be set as 1 and when unchecked i should be set as 0 and vice versa.
    I have implemented converter BinaryStringConverter for this purpose.
    Still I am getting conversion error.
    What i have found is
    But getAsObject() method is never called.
    Only getAsString() method is called.
    When I use the same converter on h:inputText it works fine.
    What I feel h:selectBooleanCheckbox calls its standatd BooleanConverter to convert the String value to boolean and vice versa.
    Is it possible to override this so that this converter is not called.
    Best regards,
    Ankur Mittal

    You can't. It is a SelectBooleanCheckbox. Not a SelectStringCheckbox ;)
    Try to do a feature request against the JSF spec. http://javaserverfaces.dev.java.net

  • Creative Zen - video converter issues

    I've been trying to convert AVIs and MKVs to view on my Creative Zen and keep running into a problem.
    No matter what settings I seem to use on any video converter, my player refuses to play the resulting WMV.
    I am encoding to as close as possible to the required specifications, making sure no bitrate, frame rate, or resolution is too high for the player, but nothing seems to want to play.
    Exactly what settings are required to convert a file to work on a Creative Zen?
    I know the Creative Video Converter works, but the time taken to convert each file is far too long.

    Hi there:
    No worries!
    Here I would like to offer you my opinions.
    First, we should have a basic information of Creative Zen. In terms of its formats supported, it generally supports AVI, WMV, MPG, MPEG-, MPEG-2 and MP4. But there are still some users feeback that it can not perfectly accept AVI. Okay, based on my own experience using video converters, I am sure that Moyea Video Converter got via Google can definitely help solve the problem.
    Step one: free download Moyea Video Converter and install it.
    Step two: load AVI and MKV files to this program, select output format as "Creative Zen-Zen Player Video (.*WMV)" from pull-down menu of Format, and then locate the destination folder.
    Step three:expand "Settings" button to enter the Profile section, in which you can easily modify resolution, Codec, size,sample rate, channels, and audio streams. (If you just want keep the original settings, you can skip this Step and directly continue Step four.)
    Step four:click "Convert" button on the main interface to begin with the conversion.
    Step four: Once the conversion above is completed, you can drag or put the converted files to ur Creative Zen or other portable devices for playback or entertainment.
    By the way, Moyea Video Converter is much easier and faster to operate. Moreover, it applies Dolby TrueHD audio technology, which can enhance the output audio effects.
    Code:
    my-video-converter.com/video_converter/
    Truely urs:
    Norman

  • Convertion issue

    I keep getting an error message saying conversion failure when I try to convert a pdf to word format

    Hi jenev89,
    I would love to help, but need a little more information to go on. Your answers to the following questions should help us get to the bottom of things:
    Are you converting from the ExportPDF website, or from within Reader?
    How large is the PDF that you're trying to convert? There is a 100 MB file-size limit, but even the a PDF falls within that limit, the complexity of the file can prevent it from converting before the service times out.
    Are you using the service from a work or home computer? Firewall/proxy settings can prevent your computer from uploading files to the Internet.
    Do other files convert without error?
    What happens when you convert from within Word with OCR disabled, as described here: How to disable Optical Character Recognition (OCR) when converting PDF to Word or Excel.
    That's a lot of questions, I know! But they'll help us sort things out for you.
    Best,
    Sara

  • Dynamic Converter Issue

    Hi,
    We are using the below script template for tif and pdf files
    <$setContentType("text/xml")$><$setHttpHeader("Cache-Control", "no-cache")$><$setMaxAge(0)$><?xml version="1.0" encoding="UTF-8"?>
    <message>
    <status>OK</status>
    <dDocTitle><$dDocTitle$></dDocTitle>
    <xPageOrientation><$xESIPageOrientation$></xPageOrientation>
    <t_images>{## repeat element=sections}<t_image>{## insert element=sections.current.image suppress=tags width=100}</t_image>{## /repeat}</t_images>
    <page_images>{## repeat element=sections}<page_image>{## insert element=sections.current.image suppress=tags width=825}</page_image>{## /repeat}</page_images>
    </message>
    and we are getting the below output.
    <?xml version="1.0" encoding="UTF-8"?>
    -<message> <status>OK</status> <dDocTitle>Viewer_PDF</dDocTitle> <xPageOrientation>,0,0,</xPageOrientation> -<t_images><t_image>/cs/groups/gwpublic/documents/document/y2nf/mdaw/~edisp/~export/WCC_000429~1~ESI_ALL_IMAGE_FORMATS_IN_XML/1038_1.jpg</t_image></t_images> -<page_images><page_image>/cs/groups/gwpublic/documents/document/y2nf/mdaw/~edisp/~export/WCC_000429~1~ESI_ALL_IMAGE_FORMATS_IN_XML/1038_2.jpg</page_image></page_images> </message>
    and we have the custom component for vieweing which fetches this images and displays the content and thumbnail image.
    Now we want to have the same functionality for text and html,your thoughts on this would be helpfull for us.
    Thanks in advance,
    Regards,
    Rohit

    Some of the best documentation for Dynamic Converter templates are actually in the old 10g documentation for Content Publisher:
    Oracle Web Content Management - Oracle Application Server Documentation
    I'd check out Seven Easy Lessons... there might be a trick in there that you could use:
    http://docs.oracle.com/cd/E10316_01/ContentPublisher/Pdf/CP_Seven_Easy_Lessons.pdf

  • HT4108 iPad 2 and HDMI converter issues

    Does anyone have an ipad 2 and find that most mirroring works fine EXEPT video (sound, but no picture) and Keynote (I can see the slides up until I try to play my show, then TV goes black)? I have a presentation in a week; please help!

    Jakobus-
    Do you happen to have an HDTV-to-Standard TV converter box?  If so, check to see if it has alternate inputs that you can try with either of your cable/adapters.  You may find a combination that does what you need.
    Fred

  • Convertion issue from CS(or CS2) to CS4

    hello, i have a big issue with opening an older project from premiere cs or cs2. I can open the complete projecft, however the whole timeline is empty (no sequences). this happens with all projects I have.
    Help would be more then appriciated,
    Koos thanks,

    > Wonder why we have User to User Forums?
    > For things that aren't in the manuals, of course.
    It is a question worth asking. In today's world, individuals do not get formal education to do many things, and they manage to learn programs and do a lot without even reading manuals. Users stick with PC or with Mac because the user interface is designed to be similar from program to program, and applications are designed to take advantage of that. So the modestly diligent user, tries, then checks help, then googles and/or searches a favorite forum, then asks. The lazier user asks earlier. Some problems are difficult to search correctly even when they have been discussed a lot, in part because the user doesn't perceive the underlying problem.
    Some of us accept that this is the way forums work, and when it annoys us we simply move on. It is annoying to have to "listen" to complaints about it so routinely. If it is so easy to search (and many times it certainly is), then respond with "search these forums for ...." and be sure it is a search that works.
    Harm, I liked your response at post #1 better than many. You answered the question, encouraged searching, and presented the information about how frequently this has come up as a question.

  • Audio converter issues

    Hello,
    I just bought a new iMAC running OS X 10.9.1.  I am a DJ and run my Rane mixer into a M Audio M Track which I then run to the mac with a USB.  Upon recording I get heavy static and I'm wondering if this is because of the 3.0 USB port or Fusion drive or what?
    Does anyone know how I can get a clear signal in to the machine?  Do I have to get an audio converter that is USB 3.0?
    Thank you.

    Please read the warranty paperwork that came w/your computer.
    You have 14 days to return the computer w/no questions asked.
    You have 90 days of FREE phone tech support on top of your standard 1 year warranty unless you also purchased AppleCare which gives you an additional 2 years of coverage plus FREE phone support.
    Strongly suggest that you take FULL advantage of the above before it runs out.  Let Apple deal w/the problems.
    If you DIY and mess up, your warranty will be VOIDED!

Maybe you are looking for

  • Can You Make Text Links Different Colours in DW Cs5?

    Hi everyone, in DW Cs5 how do you make text links on the same page different colours, I have some text links across the top of the page, these go with a certain colour scheme but some more on the page it's self these need to be a different colour. I

  • Define custom shape error in Photoshop CC 14.2.1

    whene I try to define Custom Shape I got this message

  • How to parse XML for internal table

    hi guys, I would like to know how to parse xml for an internal table. I explain myself. Let's say you have a purchase order form where you have header data & items data. In my interactive form, the user can change the purchase order quantity at the i

  • Can't quit Dreamweaver CC

    I'm having a really strange problem where I can't seem to quit Dreamweaver CC. Doing it all the usual ways has no effect. It's not frozen, so when I right click on the icon in the dock, "Force Quit" is not an option (and "Quit" has no effect.) Does a

  • Premierre crash on dissolve on adjustment layer

    In my project under a title i need some blure and luma curve adjustments. I placed an adjustament layer under the title and i like to fade in the effect. However, as soon as i place the dissolve on the adjustmentlayer premierre does not play anymore