Convert 1,000 to 1 in ALV

Hi
I hope somebody can help me.
I need to eliminate all not relevant 0 behind the comma.
For example: 1,000 should be 1 and 1,5040 should be 1,504
I would like to use the converter in the alv-field-catalogue,
but therefore i need to know a suitable conversion-routine.
Does somebody know a list of all routines or a suitable routine?
In the SE37 I found more than 1600 matches for conversion-exits
Thx in advance

hi,
i think there is not function moduel which can give u this kind of result ..
you will have to write a code.
i can provide u a sample code.
hope it will be help full to u.
DATA : v TYPE i, v1 TYPE i, v2 TYPE i.
DATA : var(20) TYPE c VALUE '290,347000'.
v = strlen( var ).
IF var CS ','.
  v1 = sy-fdpos.
  DO .
    v2 = v - 1.
    IF var+v2(1)  EQ '0'.
      var = var+0(v2).
      v = v - 1.
    ELSEIF var+v2(1)  EQ ','.
      EXIT.
    ELSE.
      EXIT.
    ENDIF.
  ENDDO.
ENDIF.

Similar Messages

  • Batch Sequences can't convert 10.000 pdf-files at one time

    I have Acrobat Professional 7.0 and I am running on Windows XP.
    To convert from PDF to EPS I am using Advanced - Batch processing - Batch Sequences.
    Every week I have around 5.000 PDF-files which have to convert to EPS without any problems.
    Sometimes I have more than 10.000 PDF-files. After converting to EPS I thought Acrobat Pro was finishing to convert all the PDF, but if I look at the number of EPS, it seems Acrobat Pro didn't convert them all and it didn't give any error message.
    This always happened when I have more than 10.000 PDF-files.I think Batch sequences cannot convert above 10.000 files at one time.
    Is this a known issue? Is there any solution?

    File > Export >  Export Multiple Files will work as well.
    You can choose your conversion settings in Edit > Preferences > General > Convert from PDF.

  • Use Post Expression to convert 1.000 to 99999

    I have a program that reports a 1.000 if the value returned is 1.#INF, by using the Val() function.
    Can I use Post Expression to check to see if Step.Result.Numeric == 1.000 and if it is then convert it to 99999?
    Currently I have Val( Step.Result.Numeric ) in the post expression box.  My version of TestStand is too old to use an If statement.  In most cases the value returned will not be 1.#INF so I want to make sure I don't convert every result to 99999.
    Thanks in advance.

    Hi,
    Try 
    (Step.Result.Numeric == 1.000) ? (Step.Result.Numeric = 99999) : 0
    Regards
    Ray
    Regards
    Ray Farmer

  • How do I convert 10,000 assorted jpg files to pdf for ocr?

    Hi all, my first post here.
    Over the years, I've scanned many thousands of documents using various settings and scanners. Now I want to OCR them. I don't have any document imaging system (should I?), I just keep them in folders. I did Acrobat Action to insert a bunch of files and save them as PDFs. This worked, but created a number of problems:
    1) it's sloooow
    2) I have not checked yet, but I was told it results in image loss? That's the most important part I guess. Any way to wrap my jpg into pdf as is? I was told it can be done programmatically!
    3) somewhere in the middle of conversion, Acrobat froze, and now I have thousands of files that have been converted, and thousands more than have not.
    I am actually a programmer, but I am under a time crunch and want to do this fast, so while tips and tricks for learning to program Adobe would be very interesting, I just want to get it done at the simplest level possible, for now. I don't care if the process is very slow, as long as it's automated. The one exception is, if there are any command line arguments that could help me, I'd definitely be game (I have cygwin). Or if I get precise instructions.
    While I am at it, are there any 3rd party products that do what I want?
    Edit: I was told I want to look at DCTDecode filter, but I am very new to Adobe (in fact, this is my second day); how do I do that?

    Acrobat isn't designed to process that many files at once, it's designed to be very accurate, so yes it will be slow. OCR is a processor-intensive task even when it's not being done very well.
    You may not have a choice other than splitting the files into batches and waiting for Acrobat to finish - normally that many files would be processed with specialist bulk OCR software (which is often bundled with high-volume scanner hardware). As standalone software it tends to be expensive or complex to set up, for example some programs run on a network of Linux servers to distribute the load. If you want accuracy there's no escaping the amount of processing required.

  • How to change data 100000- to -100,000 use edit_mask in alv

    hey experts,
       i want to display data '-100,000' use '100000-'.i use edit_mask 'v_____' to put '-' in the front of 100000. but the comma is disappeard.
      how can do that.
    thanks,
    heum

    Hi Kim,
    Use the function module:
    CLOI_PUT_SIGN_IN_FRONT
    [Example|http://abaplovers.blogspot.com/2008_06_23_archive.html]
    Regards,
    Chandra Sekhar

  • How to convert the alv list data into pdf format

    Hi Expersts,
                      Is it possible to convert the alv list output data into PDF format? if yes, then please help me with this issue.
    thanks in advance,
    Regards,
    Samad

    hii samad,
    you can go through these link.i hope it ll solve your purpose
    How to convert list output to PDF
    Display ALV list output in PDF format
    regards,
    Shweta

  • Converting ME2N Output to ALV Grid

    Hello,
    Is there any Class or Function Module which converts the output of ME2N into ALV Grid.
    Thanks and Regards,
    Prabhjot Singh

    Hi Prabhjot Singh,
    you can select ALV Output in parameter "scope of list" within ME2n
    Regards
    REA

  • Finding sum for time field in alv

    hi gurus.,
              i need to find total hours.. i am using field of data type 'TIMS' ... i converted the value to decimal in ALV and founfd total hours .. i need the total hours in Time format .. how can i achieve this in alv .. its very urgent ...
    thanks&regards.,
    S.Sivakumar

    Hi Shivakumar,
    I suggest you not to convert TIMS to Decimal
    because it won't give you correct result..
    Eg...
    Time1 = '11:56:32'
    Time2 = '11:50:10'        
    now add these two times...
    u will get the sum of these as 23:06:42
    but in real life... you want the result as 23:46:42
    So the better way for getting accurate result is to convert this
    HH:MM:SS to Seconds
    and then sum these seconds
    then again convert it to HH:MM:SS
    1 hr = 3600 sec
    1 min = 60 sec
    Hope it will solve your problem...
    Reward points if useful...
    Thanks & Regards
    ilesh 24x7

  • Download ALV report to PDF with Lights

    Hi,
    I have a requirement wherein, when i download ALV report to PDF which has Lights in the first column.  My problem is these lights are not displayed instead i get the following in the PDF
    PDF o/p:
    XOO RED SIGNAL
    OXO YELLOW SIGNAL
    OOX GREEN SIGNAL
    Please let me know how to get the lights in the PDF o/p
    Thanks & Regards,
    Sandhya

    Hi Sandhya,
    U can convert any type of display(SF,ALV) to PDF.....
    User Program rstxpdft4 to convert it first the O/P need to be converted into spool.
    cheers,
    Naveen.

  • Header(S) and Item(S) in ALV Grid

    Hi All,
    Is it possible to have multiple headers and its corresponding item details in ALV Grid Display?
    The requirement is to convert the display of MB51 in ALV Grid. Is it possible in ALV Grid to have this kind of display?
    Best Regards,
    Kumar.

    Hi.
    When i execute MB51,it displays in a hierarchical ALV format.
    Just have a look on the following code to display the Item and
    Header details.
    TYPE-POOLS: SLIS.
    DATA: BEGIN OF I_VBAK OCCURS 0,
          VBELN LIKE VBAK-VBELN,
          ERNAM LIKE VBAK-ERNAM,
          ERDAT LIKE VBAK-ERDAT,
          AUDAT LIKE VBAK-AUDAT,
          VAR1,
          END OF I_VBAK.
    DATA: BEGIN OF I_VBAP OCCURS 0,
          VBELN LIKE VBAP-VBELN,
          POSNR LIKE VBAP-POSNR,
          MATNR LIKE VBAP-MATNR,
          CHARG LIKE VBAP-CHARG,
          END OF I_VBAP.
    DATA: FLDCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
          LAYOUT TYPE SLIS_LAYOUT_ALV,
          KEY TYPE SLIS_KEYINFO_ALV.
    DATA: IT_HEADER1 TYPE SLIS_T_LISTHEADER.
    DATA: WA_HEADER1 TYPE SLIS_LISTHEADER.
    DATA: IT_EVE1 TYPE SLIS_T_EVENT,
          WA_EVE1 TYPE SLIS_ALV_EVENT.
    SELECT VBELN ERNAM ERDAT AUDAT FROM VBAK
    INTO CORRESPONDING FIELDS OF TABLE I_VBAK
    UP TO 20 ROWS.
    SELECT VBELN POSNR MATNR CHARG FROM VBAP
    INTO CORRESPONDING FIELDS OF TABLE I_VBAP
    UP TO 20 ROWS.
    FLDCAT-FIELDNAME = 'VBELN'.
    FLDCAT-TABNAME = 'I_VBAK'.
    FLDCAT-REF_FIELDNAME = 'VBELN'.
    FLDCAT-REF_TABNAME = 'VBAK'.
    FLDCAT-SELTEXT_M = 'SALES DOC.'.
    FLDCAT-COL_POS = 0.
    FLDCAT-KEY = 'X'.
    APPEND FLDCAT.
    CLEAR FLDCAT.
    FLDCAT-FIELDNAME = 'ERNAM'.
    FLDCAT-TABNAME = 'I_VBAK'.
    FLDCAT-REF_FIELDNAME = 'ERNAM'.
    FLDCAT-REF_TABNAME = 'VBAK'.
    FLDCAT-SELTEXT_M = 'NAME OF PERSON'.
    FLDCAT-COL_POS = 1.
    APPEND FLDCAT.
    CLEAR FLDCAT.
    FLDCAT-FIELDNAME = 'ERDAT'.
    FLDCAT-TABNAME = 'I_VBAK'.
    FLDCAT-REF_FIELDNAME = 'ERDAT'.
    FLDCAT-REF_TABNAME = 'VBAK'.
    FLDCAT-SELTEXT_M = 'RECORD DATE'.
    FLDCAT-COL_POS = 2.
    APPEND FLDCAT.
    CLEAR FLDCAT.
    FLDCAT-FIELDNAME = 'AUDAT'.
    FLDCAT-TABNAME = 'I_VBAK'.
    FLDCAT-REF_FIELDNAME = 'AUDAT'.
    FLDCAT-REF_TABNAME = 'VBAK'.
    FLDCAT-SELTEXT_M = 'DOCUMENT DATE'.
    FLDCAT-COL_POS = 3.
    APPEND FLDCAT.
    CLEAR FLDCAT.
    FLDCAT-FIELDNAME = 'POSNR'.
    FLDCAT-TABNAME = 'I_VBAP'.
    FLDCAT-REF_FIELDNAME = 'POSNR'.
    FLDCAT-REF_TABNAME = 'VBAP'.
    FLDCAT-SELTEXT_M = 'SALES DOC ITEM'.
    FLDCAT-COL_POS = 4.
    APPEND FLDCAT.
    CLEAR FLDCAT.
    FLDCAT-FIELDNAME = 'MATNR'.
    FLDCAT-TABNAME = 'I_VBAP'.
    FLDCAT-REF_FIELDNAME = 'MATNR'.
    FLDCAT-REF_TABNAME = 'VBAP'.
    FLDCAT-SELTEXT_M = 'MATERIAL NO'.
    FLDCAT-COL_POS = 5.
    APPEND FLDCAT.
    CLEAR FLDCAT.
    FLDCAT-FIELDNAME = 'CHARG'.
    FLDCAT-TABNAME = 'I_VBAP'.
    FLDCAT-REF_FIELDNAME = 'CHARG'.
    FLDCAT-REF_TABNAME = 'VBAP'.
    FLDCAT-SELTEXT_M = 'BATCH NUMBER'.
    FLDCAT-COL_POS = 6.
    APPEND FLDCAT.
    CLEAR FLDCAT.
    LAYOUT-EXPAND_FIELDNAME = 'VAR1'.
    KEY-HEADER01 = 'VBELN'.
    KEY-ITEM01 = 'VBELN'.
      CLEAR WA_EVE1.
      WA_EVE1-NAME = 'TOP_OF_PAGE'.
      WA_EVE1-FORM = 'TOP-OF-PAGE1'.
      APPEND WA_EVE1 TO IT_EVE1.
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
      EXPORTING
       I_CALLBACK_PROGRAM             = SY-REPID
       IS_LAYOUT                      = LAYOUT
       IT_FIELDCAT                    = FLDCAT[]
       IT_EVENTS                      = IT_EVE1[]
        I_TABNAME_HEADER               = 'I_VBAK'
        I_TABNAME_ITEM                 = 'I_VBAP'
        IS_KEYINFO                     = KEY
      TABLES
        T_OUTTAB_HEADER                = I_VBAK
        T_OUTTAB_ITEM                  = I_VBAP
    EXCEPTIONS
       PROGRAM_ERROR                  = 1
       OTHERS                         = 2.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    FORM TOP-OF-PAGE1.                                          "#EC CALLED
      WA_HEADER1-TYP = 'H'.
      WA_HEADER1-INFO = 'Hierarchical Display'.
      APPEND WA_HEADER1 TO IT_HEADER1.
      CLEAR WA_HEADER1.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY       = IT_HEADER1[].
      REFRESH IT_HEADER1.
    ENDFORM.                    "TOP-OF-PAGE1
    Regards,
    Chandu.

  • Convert AS2 To AS3

    So I made this basic game a few years ago which was in AS2 and Flash 6.  Now I want to convert this game from AS2 to AS3 but I have no idea where to start.  The code is approximalty 4k lines long and I don't know what to change to make it work in AS3.  What do you guys suggest?

    Are you using external .as files and classes or are you using frame scripts directly in the timeline? Are you used to any other object oriented programming languages? Knowing more about other languages you might know would help a lot.
    AS2 very informal and specialized to Flash. It relates to pretty much no other language out there, like JavaScript seldom relates. They're c-esque but only in a very distant 3rd cousin style.
    AS3 is much more OOP oriented and typed versus the less formal, error-prone loose dynamic nature of AS2. While your game would benefit greatly from the speed increases and error reduction, I think you're really swinging for the fence on this one. While some classes may resemble their AS2 counterpart and the core global functions work the same, everything else is different. Starting off trying to convert 4,000 lines of code is a little steep.
    As mentioned, the resources to learn AS3 are excessive and plentiful from video training to tutorials to the API reference itself. Google has it all.
    I think you really should lower your target and just try some really simple, basic things. Draw a shape, add a listener, do something basic when clicked, etc. You'll get a good idea of how different things are with the new display list rather than tearing your hair out converting your as2 game.

  • Slow response of ALV report for a high volume internal table

    We have a requirement in which we have to display more than 5 lac records (= 500,000) in a single alv report. The internal table has 30 fields. it takes around five minutes to display the alv.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = l_repid
    i_callback_pf_status_set = pfstatus
    it_fieldcat = it_fcat[]
    i_save = 'A'
    is_layout = gs_layout
    is_variant = import_variant
    it_events = events[]
    TABLES
    t_outtab = i_tab.
    above is the code used to display the alv. Any change in the coding to be done to improve the performance?
    Thanks in advance.
    K Mohan
    Edited by: Thomas Zloch on May 23, 2011 4:16 PM

    Hi,
    As Thomas said ALV is not designed to display such a huge data, any how you can limit the data in the selection screen. one more reason is if you display 5Lak records in one ALV list then if you download them to excel sheet, you can download upto 65000 records only. So limit the display not more than 60000 for a better performance.
    Thanks,
    Bhargav.

  • Classical List to ALV format in sap abap report

    Hi All,
    I have a requirement to change the existing abap report in which teh output is dispalyed in classical list format.
    I want to convert this list report output into ALV format.
    COuld anyone please help me how to convert this from Classical list to ALV format?
    Thanks,
    Komal.
    Moderator message: sorry, this not the place to teach the basics, please search for available information. If you understand the classical list and how to use ALV, then you can also do the transfer yourself.
    Edited by: Thomas Zloch on Aug 12, 2011 4:44 PM

    This will be very difficult for you.....
    Since you are getting a time out error....it looks like, you are runnning this report in foreground....................
    Try running it in background it will work...
    ELSE....you have to fetch in small chunks....but the question is how will you do it. Since the USR02 only has BNAME as primary key...
    Either put the BNAME as part of selection screen and fetch the data.....it will solve your problem....
    Only fetch for those BNAME which is entered in the selection screen...
    Hope it helps!

  • 50,000 tracks = slow conversion

    Does anyone have a suggestion for converting 50,000 wav files? I selected all within iTunes & set them to convert. It has been running non-stop for 5 days & has finished only 30,000 or so.
    The total WAV size is 19gb, im converting them to Mp3 because the iPod classic is having mixed results playing the WAV. Sometimes i have sound, sometimes i dont. It seems that the more files i converts, the slower iTunes functions. My database is 100mb & rising.
    I could wait, but im afraid it will be another 4 days or more.
    Any tips are appreciated.
    Thanks

    You might try a third-party application such as Sound Converter or Max (though it's listed as a CD ripper, Max can also convert existing tracks). One of those might well process more quickly.
    Message was edited by: Dave Sawyer

  • Covert the Simple list program into ALV

    Hi Guy's,
    Please help me present requirement like convert the simple list report to ALV format.
    I worked to convert the simple to ALV but i struck up at : in selection screen contain 2 radio buttons
    1.Detailed 2. summary.
    when select the Detailed it displays the 8 fields information.
    when select the Summary it displays the 3 fields information.
    how to work this senario.
    Thanks,
    Sai.

    Hello Sai
    Assuming that both lists - detailed and summary - have the same fieldcatalog but should display different numbers of columns the correct approach is as following:
    FORM build_fieldcatalog.
    * define local data
      data: ls_fcat    TYPE lvc_s_fcat.
    " NOTE: GT_FCAT contains the columns of your ALV list.
    " User chooses detailed list (p_opt1 = 'X') -> display all columns
    " User chooses summary list (p_opt2 = 'X') -> display only three columns
      CHECK  ( p_opt2 = 'X' ).
      LOOP AT gt_fcat INTO ls_fcat
                                WHERE ( fieldname = 'COLUMN4'   or
                                               fieldname = 'COLUMN5'   or
                                              ... ).  " list columns to be hidden
        ls_fcat-tech = 'X'.  " completely hide from user
        MODIFY gt_fcat FORM ls_fcat INDEX syst-tabix.
      ENDLOOP.
    ENDFORM.
    Regards
      Uwe

Maybe you are looking for

  • FCP QT Conversion, Why result in wider aspect ratio ??

    When I export "selfcontained" QT from FCP, it is in the same aspect ratio as I see in canvas (4:3), however when I export the same project "using QT conversion", the exported movie file is saved and plays in wider ratio. Please help, how could I keep

  • Help needed in rendering images...ThAnkS

    I have 2 classes for rendering images. When i run the application, the images kept flashing, may i know how could i actually have 1 image appearing instead of many images flashing? In other words, i would like in a way similar to mosaic rendering pro

  • How do I install mountain lion not as an upgrade

    Hi, I'm running OS 10.6 on my computer. I'd like to upgrade to mountain lion. But instead of installing it over the existing system, I want to format my computer and start it fresh. How can I do that?

  • How to add a user directory in oracle e-business?

    Dear all, How can I add user directory (for interface purpose) in utl_file_dir? Please advice. Thanks.

  • Invalid Table Name

    There is an Oracle database set up on our network with data I need to extract. I have an odbc connection to this database. When I connect via MS Access to link the table, the table name is listed DOVE.MCORPS. When I connect to the database and use th