Convert ABAP Spoollist back to a Listobject

Hi,
I would like to convert an ABAP Spool Job (compare RSPO_RETURN_ABAP_SPOOLJOB) back to a Listobject (Structure ABAPLIST, see function Module LIST_FROM_MEMORY).
Has anyone an idea or know an appropriate function module ?
thanks 4 your help.
Johann

I think something like this should work:
parameters:  p_rqid type TSP01-RQIDENT.
DATA: MEM_TAB LIKE ABAPLIST OCCURS 10.
DATA: HTML_TAB LIKE w3html OCCURS 10.
  SUBMIT RSPOLIST EXPORTING LIST TO MEMORY AND RETURN
                    WITH RQIDENT = p_RQID
                    WITH FIRST = '1'
                    WITH LAST = '0'.
  CALL FUNCTION 'LIST_FROM_MEMORY'
         TABLES
              LISTOBJECT = MEM_TAB
         EXCEPTIONS
              NOT_FOUND  = 1
              OTHERS     = 2.
  CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
         TABLES
              HTML = HTML_TAB
              LISTOBJECT = mem_tab.
Basically, run RSPOLIST to get the list to memory, extract the list, and then call the function to generate HTML.

Similar Messages

  • I changed from i iphone 5 back to a iphone 4.. now my itunes does not recognise that i have a iphone 4! how do i convert my last back up (on iphone 5) to my new iphone 4?

    i changed from i iphone 5 back to a iphone 4.. now my itunes does not recognise that i have a iphone 4! how do i convert my last back up (on iphone 5) to my new iphone 4?

    In your case you can only restore from a backup that has been created with the same iOS version. An iPhone 4 can only run 7.1.2, and, unless your iPhone 5 did not run the same version, you can't use a newer iOS backup of the 5 on the iPhone 4

  • Convert abap reports into crystal reports

    Hi,
    We are trying to convert abap reports into crystal reports.We could convert these reports into XML files
    Now we want to create utility which will automate the conversion of XML files into RPT files of crystal reports.Later on we can refresh the data in reports by changing the datasource location.
    Can you please guide us whether it is possible and if yes how should we go about it?
    regards,
    shital

    Hi, i suggest, 2 technies to do this, the first one, you can use,
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        APPLICATION            = 'C:\Program Files\crystalreports.exe'
      EXCEPTIONS
        CNTL_ERROR             = 1
        ERROR_NO_GUI           = 2
        BAD_PARAMETER          = 3
        FILE_NOT_FOUND         = 4
        PATH_NOT_FOUND         = 5
        FILE_EXTENSION_UNKNOWN = 6
        ERROR_EXECUTE_FAILED   = 7
        SYNCHRONOUS_FAILED     = 8
        NOT_SUPPORTED_BY_GUI   = 9
        OTHERS                 = 10.
    where, exe file could be, a crviewer.exe, and, use a parameters  ( on exe ) to indicate rpt file, or, define of standar mode, a generic name and put, xml file generated via abap, on  a repository, this way, rpt file, when launched, displaying file.
    the second choice, could be,  go SM69, click create. enter a command name 'ZCREXE', enter the path and the exe file name in operating system command field. You can call this exe from ABAP using SXPG_COMMAND_EXECUTE.
    i hope so that my answers help you.
    greetings.

  • Convert ABAP code to a flowchart

    Is there any tool that can Convert ABAP code to a flowchart? Please give  me the details like download link if there any.
    Please help

    Is there any tool that can Convert ABAP code to a flowchart? Please give  me the details like download link if there any.
    Please help

  • Can I convert a PDF back into a PUB file?

    Can I convert a PDF back into a PUB file?

    Use Acrobat XI (Pro or Standard) to export the PDF to Word.
    Use Calibre to bring the Word file into ePub.
    Be well...

  • Convert abap list to DOC

    how do i convert abap list to DOC .
    Rendi

    hi,
    this program to convert abap list to PDF file.
    *& Report  ZWARUN_TEST4
    REPORT  ZWARUN_TEST4.
    tables:mara,bseg.
    data:begin of itab occurs 2,
         matnr like mara-matnr,
         ernam like mara-ernam,
        end of itab.
    data:begin of it_bseg occurs 2,
         bukrs like bseg-bukrs,
         belnr like bseg-belnr,
         gjahr like bseg-gjahr,
         shkzg like bseg-shkzg,
         dmbtr like bseg-dmbtr,
        blart like bkpf-blart,
         end of it_bseg.
    data: lv_numbytes type i,
          lv_spoolno type tsp01-rqident,
          c_layout like pri_params-paart value 'X_65_132',
          C_X type c value 'X',
          numbers type i,
          cancel.
    data:it_pdf like tline occurs 10 with header line.
    data:p_down like rlgrap-filename.
    *at selection-screen.
    selection-screen:begin of  block blk with frame.
    select-options:s_matnr for mara-matnr,
                   s_bukrs for bseg-bukrs.
    parameter: download as checkbox default 'X',
               p_file like rlgrap-filename default 'c:\warun.pdf'.
              p_down LIKE RLGRAP-FILENAME DEFAULT 'c:\warun2.txt'.
    selection-screen:end of block blk .
    selection-screen pushbutton 12(20) push user-command cl1.
    at selection-screen.
      perform validate.
    top-of-page.
      write:/10 sy-repid inverse color 3.
      write:/2 'Date:' , sy-datum,
             40 'Time:' , sy-uzeit.
      write:/2 sy-uline.
    end-of-page.
      write:/50 'Intelligroup Asia Pvt'.
      write:/20 sy-pagno.
    start-of-selection.
      select matnr
             ernam
             into table itab
             from mara
             where matnr in s_matnr.
      if sy-subrc = 0.
        sort itab by matnr.
      endif.
      perform besg_data.
    set pf-status 'PUSH'.
    at user-command.
    if sy-ucomm = 'DOWNLOAD'.
      if download = space.
        perform get_file.
      endif.
    end-of-selection.
      if download = 'X'.
        perform PDFfile.
      ENDIF.
    *&      Form  validate
    FORM validate .
      data: v_temp(40).
      select single
             matnr
             into v_temp
             from mara
             where matnr in s_matnr.
      if sy-subrc <> 0.
        message e000(zz) with 'no data found'.
      endif.
    ENDFORM.                    " validate
    at line-selection.
      set parameter ID 'MAT' FIELD ITAB-MATNR.
      CALL TRANSACTION 'MM03' .
      WRITE:/ 'Material data displayed' .
      write:/2 itab-matnr.
    *&      Form  PDFfile
    FORM PDFfile .
      data:lk_params type pri_params,
            lv_valid.
    All the parameters passed are constants, so exceptions
    doesn't get raised
      call function 'GET_PRINT_PARAMETERS'
        EXPORTING
          immediately    = ' '
          layout         = c_layout                             "'X_65_132'
          no_dialog      = c_x
        IMPORTING
          out_parameters = lk_params
          valid          = lv_valid.
      if lv_valid <> space .
        new-page print on parameters lk_params no dialog.
    *--To display the final report
        perform print_report.
        new-page print off.
    *---To convert the download to PDF
        perform conv_to_pdf_download.
        perform download.
      endif.
    endif.
    *--To display the final report
      perform print_report.
    ENDFORM.                    " PDFfile
    *&      Form  print_report
    FORM print_report .
      loop at itab.
        write:/2 sy-vline,
               4 itab-matnr  color 4 HOTSPOT,
               40 sy-vline ,
               41 itab-ernam color 5,
               55 sy-vline.
        HIDE: ITAB-MATNR.
      endloop.
    ENDFORM.                    " print_report
    *&      Form  conv_to_pdf_download
    FORM conv_to_pdf_download .
      wait up to 2 seconds.
      lv_spoolno = sy-spono.
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid                    =  lv_spoolno
         no_dialog                      = ''
       DST_DEVICE                     =
       PDF_DESTINATION                =
       importing
         pdf_bytecount                  = lv_numbytes
       PDF_SPOOLID                    = pdfspoolid
       LIST_PAGECOUNT                 =
       BTC_JOBNAME                    = jobname
       BTC_JOBCOUNT                   = jobcount
       tables
         pdf                            = it_pdf.
    ENDFORM.                    " conv_to_pdf_download
    *&      Form  download
    FORM download .
      check download = 'X'.
      call function 'DOWNLOAD'
        EXPORTING
          bin_filesize = lv_numbytes
          filename     = p_file
          filetype     = 'BIN'
        IMPORTING
          act_filename = p_file
          filesize     = lv_numbytes
          cancel       = cancel
        TABLES
          data_tab     = it_pdf.
      if cancel = space.
        write: / lv_numbytes, p_file.
      endif.
    ENDFORM.                    " download
    *&      Form  get_file
    FORM get_file .
      Data: s_filename like rlgrap-filename,
            s_filepath like rlgrap-filename,
            tm_filepath like rlgrap-filename.
      CALL FUNCTION 'WS_FILENAME_GET'
       EXPORTING
         DEF_FILENAME           = s_filename
         DEF_PATH               = s_filepath
            MASK                   = ' '
            MODE                   = ' '
            TITLE                  = ' '
       IMPORTING
         FILENAME               =  tm_filepath
      IF SY-SUBRC = 0.
        p_down = tm_filepath.
        perform download2.
      endif.
    ENDFORM.                    " get_file
    *&      Form  download2
    FORM download2 .
      DATA: LV_STRING TYPE STRING.
      LV_STRING = P_DOWN.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                        = LV_STRING
         FILETYPE                        = 'ASC'
      APPEND                          = ' '
         WRITE_FIELD_SEPARATOR           = 'X'
        TABLES
          DATA_TAB                        = itab
       EXCEPTIONS
         FILE_WRITE_ERROR                = 1
         NO_BATCH                        = 2
         GUI_REFUSE_FILETRANSFER         = 3
         INVALID_TYPE                    = 4
         NO_AUTHORITY                    = 5
         UNKNOWN_ERROR                   = 6
         HEADER_NOT_ALLOWED              = 7
         SEPARATOR_NOT_ALLOWED           = 8
         FILESIZE_NOT_ALLOWED            = 9
         HEADER_TOO_LONG                 = 10
         DP_ERROR_CREATE                 = 11
         DP_ERROR_SEND                   = 12
         DP_ERROR_WRITE                  = 13
         UNKNOWN_DP_ERROR                = 14
         ACCESS_DENIED                   = 15
         DP_OUT_OF_MEMORY                = 16
         DISK_FULL                       = 17
         DP_TIMEOUT                      = 18
         FILE_NOT_FOUND                  = 19
         DATAPROVIDER_EXCEPTION          = 20
         CONTROL_FLUSH_ERROR             = 21
         OTHERS                          = 22
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                                                    " download2
    *&      Form  besg_data
    FORM besg_data .
    if itab is initial.
    select bukrs
           belnr
           gjahr
           shkzg
           dmbtr
          into corresponding fields of table it_bseg
           from bseg
          where bukrs in s_bukrs.
    endif.
    ENDFORM.                    " besg_data
    regards
    warun

  • Convert an EXE back to a VI?

    Hello all,
    I'm just getting started with Labview.  My question is in regards to the possiblity of converting an EXE back to a VI. We have diagnostic software that we use on our equipment and would like to make some modifications to some timing features due to recent hardware/software upgrades.  We'd also like to switch most of the current hardware (ISA DAQ's) to a more modern portable setup (preferably PCMCIA or USB DAQ's).  Is it possible to convert back to VI's so we can make the changes or do we need to start from scratch and rewrite the VI's?  The originals were written a long time ago and the engineers are long since gone.
    Wayne

    I seem to recall reading about some little tricks you can use to get some information from the EXE - something about using LabVIEW to get the name of all VIs in memory.  That will just get you names of the subVI calls, though, and I'm guessing that wouldn't be terribly helpful.
    At least you can take some comfort in knowing that converting something that ran on ISA DAQs would probably require some pretty substantial rewriting anyway to work with modern stuff . (And if you want to hire someone to do it for you, there's always the Jobs forum down below.)
    Message Edited by kehander on 01-31-2008 01:44 PM

  • Converting a byte[] back to key problem

    I CAN create a key and convert the key to a byte array, then convert the array to a string(base 64):
    KeyGenerator generator = KeyGenerator.getInstance("DES");
    generator.init(new SecureRandom());
    key = generator.generateKey();
    byte[] keyBytes = key.getEncoded;
    BASE64Encoder encoder = new BASE64Encoder();
    String randomKey = encoder.encode(keyBytes);
    and I CAN save that string to a database, forget about it, then sometime later reload it and convert it to a byte array again:
    String loadedKey = "WhAt3Ver-It-I5" //from DB
    BASE64Decoder decoder = new BASE64Decoder();
    byte[] loadedKeyBytes = decoder.decodeBuffer(loadedKey);
    what I CAN'T do is convert the loadedKeyBytes back into the key of the same type as it was originally, enabling me to decrypt whatever that key originally encrypted.
    Does anyone know.
    I know I need to convert it to a KeySpec, I presume as:
    DESKeySpec keySpec = new DESKeySpec(loadedKeyBytes);
    this compiles correctly.... but how do i then recreate the key so i can use it for decryption.
    Once i've finished this test program I should be able to port it to my application.
    Many thanks in advance guys!
    Cheers!
    Relisys
    ================ CODE FOLLOWS ======================
    import java.io.*;
    import java.security.*;
    import java.security.spec.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import com.sun.crypto.provider.SunJCE;
    import sun.misc.*;
    public class SecPrescrip {
    public static void main(String[] args) throws Exception {
    // Create Key.
    Key key;
    KeyGenerator generator = KeyGenerator.getInstance("DES");
    generator.init(new SecureRandom());
    key = generator.generateKey();
    // Get a cipher object
    Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
    // Encrypt the input string:
    cipher.init(Cipher.ENCRYPT_MODE, key);
    String input = "Medicare Secure Prescription: 30 Tamazopan 200mg tablets. Dosage: 1 to be taken every 4 hours";
    System.out.println("Stage 1: ENCRYPT PRESCRIPTION WITH A RANDOM DES KEY");
    System.out.println("===================================================");
    System.out.println(" - Input Plain Text: "+input);
    System.out.println("");
    byte[] stringBytes = input.getBytes("UTF8");
    byte[] raw = cipher.doFinal(stringBytes);
    BASE64Encoder encoder = new BASE64Encoder();
    String ciphertext1 = encoder.encode(raw);
    System.out.println(" - Cipher Text: "+ciphertext1);
    System.out.println("");
    byte[] keybytes = key.getEncoded();
    String randomkey = encoder.encode(keybytes);
    System.out.println(" - Random Prescription Key: "+randomkey);
    System.out.println("");
    System.out.println("ENCRYPTION SUCESSFULL");
    System.out.println("");
    System.out.println("");
    System.out.println("Stage 2: ENCRYPT RANDOM KEY WITH PATIENT MEDICARE KEY");
    System.out.println("=====================================================");
    BASE64Decoder decoder = new BASE64Decoder();
    String passphrase = "ABCD1234efghIJ56"; //Patient Medicare Key
    System.out.println(" - Patient Medicare Key: "+passphrase);
    System.out.println("");
    System.out.println(" - Input Plain Text: "+randomkey);
    String algorithm = "PBEWithMD5AndDES";
    byte[] salt = new byte[8];
    int iteration = 20;
    KeySpec ks = new PBEKeySpec(passphrase.toCharArray());
    SecretKeyFactory skf = SecretKeyFactory.getInstance(algorithm);
    SecretKey key2 = skf.generateSecret(ks);
    byte[] input2 = decoder.decodeBuffer(randomkey);
    MessageDigest md = MessageDigest.getInstance("MD5");
    md.update(passphrase.getBytes());
    md.update(input2);
    byte[] digest = md.digest();
    System.arraycopy(digest, 0, salt, 0, 8);
    AlgorithmParameterSpec aps = new PBEParameterSpec(salt, iteration);
    cipher = Cipher.getInstance(algorithm);
    cipher.init(Cipher.ENCRYPT_MODE, key2, aps);
    byte[] outputFinalKey = cipher.doFinal(input2);
    String ciphertext2 = encoder.encode(outputFinalKey);
    String saltString = encoder.encode(salt);
    String encryptedCiphertext = saltString+ciphertext2;
    System.out.println("");
    System.out.println(" - Cipher Text (Final Prescription Key): "+ciphertext2);
    System.out.println("");
    System.out.println(" - Salt: "+saltString);
    System.out.println("");
    System.out.println(" - Full Encrypted Output: "+encryptedCiphertext);
    System.out.println("");
    System.out.println("ENCRYPTION SUCESSFULL");
    System.out.println("");
    System.out.println("");
    System.out.println("Stage 3: DECRYPT PRESCRIPTION KEY USING PATIENT MEDICARE KEY");
    System.out.println("============================================================");
    //NOT CHANGED String passphrase = "ABCD1234efghIJ56";
    System.out.println(" - Patient Medicare Key: "+passphrase);
    System.out.println("");
    System.out.println(" - Input Plain Text: "+ciphertext2);
    algorithm = "PBEWithMD5AndDES";
    salt = new byte[8];
    iteration = 20;
    ks = new PBEKeySpec(passphrase.toCharArray());
    skf = SecretKeyFactory.getInstance(algorithm);
    SecretKey key3 = skf.generateSecret(ks);
    //Load in the input bytes as if they had been loaded from an sql database or the like
    String saltIn = encryptedCiphertext.substring(0,12);
    String ciphertext3 = encryptedCiphertext.substring(12,encryptedCiphertext.length());
    byte[] saltArray = decoder.decodeBuffer(saltIn);
    byte[] ciphertextarray = decoder.decodeBuffer(ciphertext3);
    aps = new PBEParameterSpec(saltArray, iteration);
    cipher = Cipher.getInstance(algorithm);
    cipher.init(Cipher.DECRYPT_MODE, key3, aps);
    byte[] outputKey2 = cipher.doFinal(ciphertextarray);
    String plaintext2 = encoder.encode(outputKey2);
    System.out.println(" - Plain Text (Random Generated Key): "+plaintext2);
    System.out.println("");
    System.out.println("");
    System.out.println("ENCRYPTION SUCESSFULL");
    System.out.println("");
    System.out.println("");
    System.out.println("Stage 4: DECRYPT PRESCRIPTION KEY USING PATIENT MEDICARE KEY");
    System.out.println("============================================================");
    // The decrypter string plaintext should be the same as the BASE64 Encoded representation of the random DES string
    byte[] randomKeyFetched = decoder.decodeBuffer(plaintext2);
    generator = KeyGenerator.getInstance("DES");
    DESKeySpec keyspec = new DESKeySpec(randomKeyFetched);
    * Stuck here! Once the key is reformed it will be complete!
    }

    You need to use a SecretKeyFactory to convert the byte array back to a SecretKey to use in decryption. Continuing your example:
    SecretKeyFactory skf = SecretKeyFactory.getInstance("DES");
    DESKeySpec desKeySpec = new DESKeySpec(loadedKeyBytes);
    SecretKey sk = skf.generateSecret(desKeySpec);
    Use sk in the call to the Cipher init() function. (Note that you don't call KeyGenerator to restore a key from its bytes.)
    Incidently, if you're using ECB mode for encryption I don't think you need to worry about the Initialization Vector. However, if you're using CBC mode (which is the default DES mode for the default SunJCE provider), I believe you also have to make sure that the decryption system starts from the same Initialization Vector that was used for encryption. To deal with this, if 'cipher' is your encryption Cipher object, then you call
    byte bytIV[] = cipher.getIV();
    to get the 8-byte IV array. To decrypt, you need to call:
    IvParameterSpec iv = new IvParameterSpec(bytIV);
    This is an AlgorithmParameterSpec, and can be used as the third argument to the init() function for Cipher to set up decryption, e.g.
    Cipher cd = Cipher.getInstance("DES/ECB/PKCS5Padding");
    cd.init(Cipher.DECRYPT_MODE, sk, iv);
    I believe that CBC mode is more secure than ECB mode when you have more than 8 bytes of material to encode (e.g. use "DES/CBC/PKCS5Padding"
    when you create the Cipher objects).
    To simplify things a bit, you might just want to use a fixed 8-byte Initialization Vector by constructing a IvParameterSpec and using it for all DES encryption and decryption.
    The documentation on all of this is extraodinarily obscure.

  • Converting PDF file back to word need assistance please, have adobe reader 11.0.10

    Need assistance converting PDF documents back to Word format, have adobe Reader 11.0.10 will this work and directions please

    Sadly no. And strange thing is that only this pdf file have problem with saving sigh...even if I told him to send again still can't save this file...my classmate doesn't have this problem  :I for this pdf...but only me specifically on this pdf...it go cray cray (crazy)

  • Convert javadoc output back to java class.

    Hi All,
    I have the javadoc for a certain specification and would like to convert that to the java interface definition class. The generated source code would be used to generate the implementation class later.
    Do you know of any utility that converts javadoc html back into java source code?
    Thanks in advance,
    Piyush.

    Just use your browser's copy and past functions to cut the text out of the documentation and then paste it into a programming editor.
    Delete the text and add a couple of semi-colons and you are all set.

  • Converting "Apple Lossless" back to "AAC" - More than 1 track at a time...

    Hello,
    Short version: I have hundreds of tracks that need to "Create AAC Version", and I can't right-click 8,536 songs in my library one at a time to find them all.  Is there a method to sweep the entire library and convert all songs to this format if they are not already? 
    The problem with this is it still creates a duplicate of the song and the other original needs to be deleted. 
    Note - the file name changing (it appends a "1" on the M4A file), the "tag" displayed in iTunes retains the song name.
    Thanks!,
    Joseph
    Long version:  For the benefit of people facing the same problem and combing the forums for help, here's the rest of the story...
    I'm not entirely sure when this changed (and I've reset my Import settings back to AAC 128-bit now), but I've managed to import a good number of CDs at this higher quality "Apple Lossless" format.  Essentially, that's overkill - I listen to an iPod classic with headphones the majority of the time (98%) and I won't hear the difference.
    CHECK:  Edit | Preferences | "General" tab | "Import Settings" button
    Essentially my hard-drive space has been disappearing at a rapid rate.  I downloaded a tool (WinDarStat) and found my iTunes folder is 50% of my 200GB used.  (Yes, I'm on an older laptop -- HD=220GB -- and am getting the 'out of space' warnings.)  I found some folders for recent CDs were over 1GB alone and started digging. 
    I happend to have REM's studio "Man on the Moon" on here twice.  The IN TIME version is AAC 128-bit and only 4.9MB in size, whereas the PART LIES version is Apple Lossless 1068-bit and 8x's larger at 39.9MB. 
    If you right-click a track, it provides option to "Create [other] version.", depending on going to/from ACC to Lossless or vice-versa.
    Once I did this for "Man on the Moon", I got 75% of the song's space back ... from approximately 40MB to 11MB.
    It does create a second copy of the song, so the original has to be deleted - be certain to "Move the song to the Recycle Bin" when warned.
    A better option - all be it more time consuming - is to re-import the CDs.

    For backup see this user tip.
    The Create <Format> version tool uses whatever the current import settings are.
    You can create a playlist of things that need converting as Ed says above.
    To ease the conversion process, and keep your current ratings, playcounts, and playlist membership, plus recyle the old files automatically see my script ConvertFormat. Test on say a single album first to make sure it works as you expect/need.
    tt2

  • Trying to convert a int back to a textfield - help

    Okay this is what I want. I want to type a number in a TextField and double it.... So lets say I type in 10, it will output 20.. But I cant seem to get it to work. The integer won't change it back to a textfield usable text thing .. any help? And yes, i'll admit, its for school, not really for marks, but just to learn.. Theres like 10 of them. And I've been trying to get it to work for awhile, and I ain't asking for coding, or cheating. I'm just asking for help :)
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Myname extends Applet implements ActionListener
         Button pressMe = new Button("Enter a number");
         TextField answer = new TextField(10);
         Font bigfont = new Font("TimesRoman", Font.ITALIC,24);
         public void init()
              add(pressMe);
              add(answer);
              answer.requestFocus();
              pressMe.addActionListener(this);
         public void actionPerformed(ActionEvent thisEvent)
              int doubleamount = (new Integer(answer.getText())).intValue();
              int doubleamount2 = doubleamount + doubleamount;
              answer.setText(doubleamonut2);
              invalidate();
              validate();
    Thats what I have

    You need a String.valueOf (doubleamount2)to convert your int to a String, and you don't need
    the revalidate ().
    Kind regards,
    LeviYeah, Levi is correct. :-)

  • Convert ABAP code in start routine/update rule to transform. start routine

    Dear BW ABAPers,
    I have created a custom purchasing info cube (YCP_PURC1) based on 0CP_PURC1 standard cube. I would like to convert this new data flow to BI7 (from 3.x), and convert the standard update rule to transformation. I would need to rewrite the below start routine from the standard update rule to a start routine ABAP code in the newly created  transformation / start routine. My ABAP knowledge is limited. Will you please help?
    *this is the start routine from the update rule. As a side note, the data source is 2LIS_02_SCL.
    LOOP AT SOURCE_PACKAGE.
        IF (     SOURCE_PACKAGE-cppvlc  EQ 0
             AND SOURCE_PACKAGE-cppvoc  EQ 0
             AND SOURCE_PACKAGE-cpquaou EQ 0 ).
          DELETE SOURCE_PACKAGE.
          CONTINUE.
        ENDIF.
    no_scl is initial ( e.g. for good receipts, billing)
    value has to be set depending on storno
        IF SOURCE_PACKAGE-no_scl IS INITIAL.
          IF SOURCE_PACKAGE-storno = 'X'.
            SOURCE_PACKAGE-no_scl = -1.
          ELSE.
            SOURCE_PACKAGE-no_scl = 1.
          ENDIF.
          MODIFY SOURCE_PACKAGE.
        ENDIF.
      ENDLOOP.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    Many thanks and look forward to your kind feedback.
    Kind regards,
    Csaba

    Dear All, Durgesh,
    thanks to you all for your valuable input. Mainly the ABAP part was more interesting for me.
    Durgesh, thanks for your input, it was useful. I just had to change the info objects to data source fields and add the lines before the loop:
    DATA: I_PACKAGE TYPE TYT_SC_1.
        FIELD-SYMBOLS <i_package> TYPE tys_sc_1.
        I_PACKAGE[] = SOURCE_PACKAGE[].
        LOOP AT SOURCE_PACKAGE assigning <i_package>.
          IF ( <i_package>-BWGEO EQ 0
          AND <i_package>-BWGEOO EQ 0
          AND <i_package>-BWMNG EQ 0 ).
            DELETE SOURCE_PACKAGE index sy-tabix.
            CONTINUE.
          ENDIF.
    no_scl is initial ( e.g. for good receipts, billing)
    value has to be set depending on storno
          IF <i_package>-NOSCL IS INITIAL.
            IF <i_package>-ROCANCEL = 'X'.
              <i_package>-NOSCL = -1.
            ELSE.
              <i_package>-NOSCL = 1.
            ENDIF.
          ENDIF.
        ENDLOOP.
    Points have been assigned accordingly.
    Thanks,
    Csaba

  • How to convert abap output/excel output to pie charts

    Hi.......
    I've managed to output my Hierarchial sequential report output into a excel file....converting the abap output to xml and then mailing it.....now how can i convert this to pie chart......and mail it.....is it possible to have a pie chart in sheet1 and excel output in other sheet2 in the same excel sheet.......i've looked on the demo programs....in the package SOFFICEINTEGRATION and programs like SAPRDEMOEXCELINTEGRATION2.This are in object oriented language..............can any one come with coding in abap languge with step by step procedure to write the logic....i even got to look into FM called XXL_FULL_API.......
    Points wud be surely rewarded.............Thank in Advance

    Try demo sample program GFW_PROG_PIE
    ot t_code GRAL to find such programs.
    In addition to this please also check the chart engine (cl_gui_chart_engine).
    You can download --> SAP Chart Designer from SDN -> Downloads -> WebAS.

  • How to convert Abap output/excel output into pie charts

    Hi.......
    I've managed to output my Hierarchial sequential report output into a excel file....converting the abap output to xml and then mailing it.....now how can i convert this to pie chart......and mail it.....is it possible to have a pie chart in sheet1 and excel output in other sheet2 in the same excel sheet.......i've looked on the demo programs....in the package SOFFICEINTEGRATION and programs like SAPRDEMOEXCELINTEGRATION2.This are in object oriented language..............can any one come with coding in abap languge with step by step procedure to write the logic....i even got to look into FM called XXL_FULL_API.......
    Points wud be surely rewarded.............Thank in Advance

    Hi Younus Khan,
    sample code to load output to excel sheet.
    Use function module GUI_UPLOAD
    The FILETYPE refer to the type of file format you need: For e.g 'WK1' - Excel format , 'ASC' - Text Format etc.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = 'C:\test.csv'
    FILETYPE = 'ASC'
    TABLES
    DATA_TAB = itab
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    NO_AUTHORITY = 6
    UNKNOWN_ERROR = 7
    BAD_DATA_FORMAT = 8
    HEADER_NOT_ALLOWED = 9
    SEPARATOR_NOT_ALLOWED = 10
    HEADER_TOO_LONG = 11
    UNKNOWN_DP_ERROR = 12
    ACCESS_DENIED = 13
    DP_OUT_OF_MEMORY = 14
    DISK_FULL = 15
    DP_TIMEOUT = 16
    OTHERS = 17.
    or,
    U can use the FM
    SAP_CONVERT_TO_XLS_FORMAT
    to convert itab data to excel
    check this FM also
    GUI_DOWNLOAD
    And, for converting into xml format. I did it in ecc6.0
    *& Report ZTESTSDN
    REPORT ztestsdn.
    TABLES: vekp,
    likp,
    vbak.
    TYPE-POOLS: ixml.
    DATA: itab LIKE but000 OCCURS 0 WITH HEADER LINE.
    TYPES: BEGIN OF my_xml ,
    data(256) TYPE x,
    END OF my_xml.
    DATA: xml_table TYPE TABLE OF my_xml.
    DATA: l_xml_size TYPE i,
    ld_fullpath TYPE string.
    START-OF-SELECTION.
    SELECT * FROM but000 INTO TABLE itab UP TO 10 ROWS.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
    I_FIELD_SEPERATOR = ','
    I_LINE_HEADER =
    I_FILENAME =
    I_APPL_KEEP = ' '
    I_XML_DOC_NAME =
    IMPORTING
    pe_bin_filesize = l_xml_size
    TABLES
    i_tab_sap_data = itab
    CHANGING
    i_tab_converted_data = xml_table
    EXCEPTIONS
    CONVERSION_FAILED = 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.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = l_xml_size
    filename = 'C:\test.txt'
    filetype = 'BIN'
    IMPORTING
    filelength = l_xml_size
    TABLES
    data_tab = xml_table
    FIELDNAMES =
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    You can go use ADOBE AIR for developing the pie chart widget...
    kindly reward if found helpful.
    cheers,
    Hema.

Maybe you are looking for

  • Video Out on iPhone 4 and iOS 6

    To watch downloaded video, I connect my iPhone 4 to my TV using an AV dock-to-component cable. Since installing iOS 6, my iPhone says it "does not support that accessory." I knew of the video out issues with iPhone 5 but didn't read anywhere that it

  • Help!! Unnatural display growth...

    Everything on my MacBook Pro screen has suddenly tripled in size. Menus, Safari, the dock, everything. All text is pixillated, nothing fits on the page. I went to "displays" in system prefs but that didn't help. Anyone?

  • Highest dunning level becoms lower

    Hi masters i have a issue for greece customers customer has 10  open line items one item is due from 2007 it should be the 4th level dunning level remaining 9 items over due items for this year ,  as per very old due item in customer master should be

  • Parameter with Long String

    I am opening a new JSP from current JSP. The new JSP needs a parameter, which happens to be very large > 3800 chars. I am using javascript function window.open(url) where url has everything including above large string. When I print the string I rece

  • MacBook Pro not working with Optima projector

    This was never a problem before, but now I only see the MacBook wallpaper, no icons, won't show the keynote slide show.  Using the mini port to VGA connection.