PID (FPGA) - Convert 16bit output to 24 bit

Hello,
Im controlling a device in Closed Loop using the PID (FPGA) vi.  The output of this is I16, but it would be nice if I could convert it to a I24, or I32.  The output of this vi is sent to two different Analog Outs on my Op-Amp circuitry.  The op-amps are set up as summing amps, so it would be ideal to send the lower 8 bits to the first AO (fine output), and the top 16 (15+sign) to the second AO (coarse output).
I haven't found an easy way to do this yet.  So far, I've been thinking of just using the I16 output value, split it into two 8 bit numbers.  The lower 8 bit controls my first AO.  The upper 8 bits is combined with another 8 bit register that gets incremented everytime the 8-bit number becomes saturated, and controls the 2nd AO.
I've attached a pic to make it more clear (I hope?).  If I should be doing this another way, please let me know.
Or maybe I need to be controlling this system with 2 parrallel PIDs? One controlling the coarse control, the other the fine.  The feedback would be the same for both PIDs. 

Hi bones,
even on FPGA you should be able to use "split numbers" and "join numbers" functions...
And you can use boolean operators on numbers. Like sign = I16 && 0x8000
That way you would get away from all those number TO boolean array TO cluster of booleans TO unbundle TO bundle TO boolean array TO number conversions (also called RubeGoldberg, search for this in the forum!).
Message Edited by GerdW on 12-07-2009 08:52 PM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • PID FPGA

    Bonjour à tous,
    Devant développer une régulation numérique en PID, je m'était inspiré d'un exemple de PID FPGA se trouvant dans LabVIEW pour développer mes programme RT et FPGA que vous trouverez en piece jointe.
    Ayant finis la premiere partie de développement pour pouvoir tester le PID simplement sur mon système, je suis passé aux tests.
    J'ai commencé par agir sur le coefficient proportionnel pour asservir le procédé, jusque là rien de bien compliqué. Une fois le gain proportionnel fixé, la suite logique est de fixé le gain intégrateur qui est sensé supprimé l'erreur statique qui pourrait resté. Mais là c'est le drame ! Cette partie ne fonctionne pas du tout et fais faire n'importe quoi au systéme.
    Je voulais donc savoir si quelqu'un avait réussit a faire fonctionner ce PID et comment il avait fait. 
    Sinon est-ce que qu'un aurait une idée de comment je pourrais m'y prendre ?
    Cordialement
    Nathan
    Pièces jointes :
    PID.zip ‏401 KB

    a couple of things.  you are specifying 2 usec as loop rate but the module you are using for output is 10 usec.
    you are specifying loop rate of 2 usec but your acquisition rate is specified as 20 usec.
    the value of the calculated integrator coefficient is likely too small for the 16 bit PID calculation NI uses.
    you will be better off coding your own PID algorithm modeled after the NI one.
    Stu McFarlane
    Viewpoint Systems, Inc.

  • Convert smartform output in to PDF using CONVERT_OTF function  how to do it

    Hi Anil , and  Hi All
             I am trying to display smartforms output in java webdynpro
             for that i have got the following code in sdn.
               can anybody please clarify these doubts in the  below code
               1) What are the mandatory input and output parameters
                   I have to pass here in this code to my application
               2) please check my previous post also in this regards please
       . Please reply at the very earliest. Check the below code
    Convert smartform output in to PDF using CONVERT_OTF function module and you can write pdf using parameter 'binfile' of this function in WebDynpro using the following code:
    It is copied from my prg. I hope you understand it.
    public void onActionGetQuote(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionGetQuote(ServerEvent)
    wdThis.wdGetOppt_QwriterCustController().executeZquote_Writer_Input();
    String fileName = wdContext.currentZquote_Writer_InputElement().getOrder().toString().trim() + System.currentTimeMillis() + ".pdf";
    String pdfOutput = new String(wdContext.currentOutputElement().getBinfile());
    if (pdfOutput != null)
    try
    String pdfResoucePath = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), fileName);
    FileOutputStream fileOutputStream = new FileOutputStream(new File(pdfResoucePath));
    PrintStream ps = new PrintStream(fileOutputStream);
    ps.print(pdfOutput);
    ps.close();
    //Display the PDF to the browser
    String fileURL = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(), fileName);
    IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(fileURL, "Pdf Browser", false);
    window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    window.removeWindowFeature(WDWindowFeature.MENU_BAR);
    window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
    window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    window.open();
    // To collect all the file created in the server by user
    quoteFiles.add(quoteFiles.size(), pdfResoucePath);
    } catch (Exception e)
    throw new WDRuntimeException(e);
    //@@end

    Hi
        ABAPers prepared a BAPI function module which calls Smart form , how can i execute it from java Webdynpro, so that I can display the smart form in Webdynpro. Pleas reply at the very earliest.  Every answer will be rewarded.
    regards
    jalandhar

  • How to convert the output of Applescript which is in object format to text or string format??

    Hi All,
    I want to convert the output of Applescript which is in object format to string or text format, am running Applescript with Java, I need to display the output of applescript in Eclipse Java Console, since its object format the output is not properly displayed..
    Pls suggest.. I used the below code
    repeat with i in allContents
                if class of i is button then set the end of allStaticText to contents of i
            end repeat
    Applscript ouptput
    {button 1 of window "Player Installer" of application process "Install  Player" of application "System Events", button 2 of window "Player Installer" of application process "Install  Player" of application "System Events", button 3 of window "Player Installer" of application process "Install  Player" of application "System Events", button "Finish" of UI element 1 of scroll area 1 of window "Player Installer" of application process "Install  Player" of application "System Events"}
    Java output
    <NSAppleEventDescriptor: 'obj '{ 'form':'indx', 'want':'butT', 'seld':1, 'from':'obj '{ 'form':'name', 'want':'cwin', 'seld':'utxt'(" Player Installer"), 'from':'obj '{ 'form':'name', 'want':'pcap', 'seld':'utxt'("Install  Player"), 'from':'null'() } } }>

    Here's an improved version of the previous script, where the handler now returns "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"" instead of "button \"2\" of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"":
    tell application "System Events"
        get button 2 of window 1 of process "TextEdit"
        my objectToText(result) --> "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\""
    end tell
    on objectToText(UI_element)
        set theText to ""
        tell application "System Events"
            repeat
                if exists attribute "AXParent" of UI_element then
                    set theParent to value of attribute "AXParent" of UI_element
                    set theClass to class of UI_element
                    if name of UI_element exists then
                        set theName to name of UI_element
                        set theText to theText & (theClass as text) & " \"" & theName & "\" of "
                    else
                        set k to 0
                        get UI elements of theParent whose class is theClass
                        repeat with thisItem in result
                            set k to k + 1
                            if contents of thisItem is UI_element then exit repeat
                        end repeat
                        set theIndex to k
                        set theText to theText & (theClass as text) & " " & theIndex & " of "
                    end if
                    set UI_element to theParent
                else
                    set theClass to class of UI_element
                    set theName to name of UI_element
                    set theText to theText & (theClass as text) & " \"" & theName & "\" of application \"System Events\""
                    exit repeat
                end if
            end repeat
        end tell
        return theText
    end objectToText
    Message was edited by: Pierre L.

  • Converting Smartforms output content into HTML File

    Hi,
    I have a requirement, Smartforms output contents needs be converted as HTML File and it should be sent as email.
    I am able to get the Smartforms output in html format but the output is shown as binary format.
    After the fm call the job_output_info parameter is holding the smartforms output content in
    job_output_info-XMLOUTPUT[]           (xsf content)
    job_output_info-XMLOUTPUT-STSHEET[]   (css content)
    job_output_info-XMLOUTPUT-TRFRESULT[] (html content)
    Help me out how to handle the job_output_info details to html format.
    Code
    DATA v_fm_name TYPE rs38l_fnam.
    DATA v_tdsfname TYPE tdsfname VALUE 'ZVR39_SF'.
    DATA output_options TYPE ssfcompop.
    DATA job_output_info TYPE ssfcrescl.
    DATA document_output_info TYPE ssfcrespd.
    DATA job_output_options TYPE ssfcresop.
    DATA w_control TYPE ssfctrlop.
    *-Finding the Smartform Layout Name
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = v_tdsfname
      IMPORTING
        fm_name            = v_fm_name
      EXCEPTIONS
        no_form            = 1
        no_function_module = 2
        OTHERS             = 3.
    *-Defining the output to HTML Format
    *-Activating XSF Output
    output_options-xdfcmode   = 'X'.
    output_options-xdf        = space.
    output_options-xsfcmode   = 'X'.
    output_options-xsf        = 'X'.
    output_options-xsfoutmode = 'A'. "
    output_options-xsfoutdev  = 'P863'.
    output_options-xsfformat  = 'X'.
    *-Calling the Smartform Layout
    CALL FUNCTION v_fm_name
      EXPORTING
        output_options       = output_options
        user_settings        = 'X'
      IMPORTING
        document_output_info = document_output_info
        job_output_info      = job_output_info
        job_output_options   = job_output_options
      EXCEPTIONS
        formatting_error     = 1
        internal_error       = 2
        send_error           = 3
        user_canceled        = 4
        OTHERS               = 5.
    Giri

    Hi,
    Check this link.In that,I am converting the output of smartform to PDF and then attaching it through mail.
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/smartforms/smartform in abap.pdf

  • How to convert an output retrieved from database to an excel sheet?

    Hello friends,
    I am preparing an online JSP based project for our training and placement department.
    In this context, I am showing an output into a JTable format to the user for the shortlisted candidates by retrieving this information from my database (MySQL).
    Now I need to convert this output into the Excel Sheet so that I can perform various operations over there.
    So, what are the things required to perform from my side for implementing the same.

    The easiest thing for you to do would be to save it as CSV (Comma Separated Values). In general, your fields would be separated by commas, and any fields that are not numbers would be surrounded with double quotes:
    1,"text",...
    Dates and times are semi-tricky, but excel is pretty good about accepting "YYYY/MM/DD" and "HH:MI AM" format.
    Other than that, you'll be learning the internal structures of Excel or perhaps there is a third-party library that can do this for you...

  • Converting RPAD output from VARCHAR2 to CHAR

    I am trying to create a 1000-character fixed-width file using SQL*Plus. The query consists of 3 fields with a pad of 25 characters each, with the remaining 925 characters as filler using spaces. Using RPAD I can insert spaces between the three field values, but because the RPAD function uses VARCHAR2 to return the result it is not recognizing the ~945 filler spaces I need at the end of each row.
    Is there a way to convert the output of RPAD to a CHAR data type in the query itself? Maybe something equivalent to the CONVERT function in t-SQL?
    Query I'm using:
    Select RPAD(Col1, 25, ' ') || RPAD(Col2, 25, ' ') || RPAD(Col3, 950, ' ') From Table1;
    Thanks,
    Matt

    Hi,
    Welcome to the forum!
    You can ihave trailing spaces (950 of them if you want, no problem) in a VARCHAR2 column. I suspect your font-end tool is not displaying them.
    The SQL*Plus commands
    SET  TRIM        OFF
    SET  TRIMSPOOOL  OFFshould guarantee that trailing spaces are displayed in screen- and SPOOL file output, respectively.
    Also, make sure your lines are long enough:
    SET  LINESIZE    1000If you still have a problem, post a complete test script (including all the SQL*PLus formatting commands you use) as well as a query. (Something using dual or scottt.dept should illustrate the problem adequately).

  • Converting servlets output to PDF fle

    How to convert Java Servlets output html file to PDF file or a Word document.

    not sure what u mean by 'convert' the output to PDF or word document
    Do you mean you want to force the browser to open file using MSWord / PDF viewer? If yes :
    For showing output as a word document, you can set the servlet response MIME type to 'application/ms-word' and set its extension to .rtf . You can then use a RTF template to build servlet output (since RTF is flat file format). By replacing placeholder tags in RTF template, you can generate content.
    For showing output as PDF, you'll need some library for PDF writing.
    hth,
    Subodh

  • Converting the output of FS10N into smartforms

    Hi Experts,
    I have a requirement to convert the output of the tcode FS10N into a smartform and append it with a cover sheet.
    Kindly guide me
    Regards,
    Manjusha S
    Edited by: manjusha srinivasan on May 20, 2009 7:00 AM

    Yes Multiple selctions Possible.
    For this: Based on the input populate the accounts to a Internal Table.
    After that use the below steps
    Loop at <ITAB>
    USE BAPI_GL_GETGLACCPERIODBALANCES
    Process table account_balances infor to other  iternal table in required fromat.
    Endloop.
    NOTE: During calculation of Begining Balance part for period 1 balance_carried_forward
    is the key. just include this condition also.
          IF Period EQ 1.
            Beg_balance = Beg_balance + balance_carried_forward value.
          ENDIF.
    BR,
    Rajani

  • Convert BSP output to PDF

    Hi All,
         I have a BSP application wherein a Dashboard report is presented. basically it has a selection screen and a tableview which is displayed. There are two buttons to decide whether its a management report or a regular report. Depending upon the buttons the output inthe table changes. This part is working fine. In case of management report i have to color some cells based on a particular condition. There is another button for  ' Export to PDF'. I need to convert the output of the tableview to PDF. I could not find a direct way to do , so I created an ABAP report of similair output called Z01_BSPPRDDASH_SPOOL . when user presses the button, the report output is genereated and sent to spool. The spool is converrted to PDF using the std FM 'CONVERT_ABAPSPOOLJOB_2_PDF'. After this i need to display the pdf. but the code given below is not doing that. I am unable to see any output. Can you pls telle me what is going wrong . Also let me know if my approach is correct. Can there be any other way of converting a tableview to pdf. I need to solve this urgently as my delivery date is nearing for this object.
    Code :
          DATA: ITAB TYPE TLINE,
                  WITAB TYPE TABLE OF TLINE,
                  OUTPUT TYPE STRING ,
                 CONTENT TYPE XSTRING,
                  WF_SPONO TYPE TSP01-RQIDENT ,
                  WF_PARAMS TYPE PRI_PARAMS,
                  VALID_FLAG(1) TYPE C ,
                  LC_RQ2NAME TYPE TSP01-RQ2NAME ,
                  TSP01_WA TYPE TSP01 .
          DATA: CACHED_RESPONSE TYPE REF TO IF_HTTP_RESPONSE.
          DATA: RESPONSE TYPE REF TO IF_HTTP_RESPONSE.
          DATA: GUID TYPE GUID_32.
          DATA: L_PDF_XSTRING  TYPE XSTRING,
           lt_lines       type table of tline,
               LS_LINE        TYPE TLINE,
               DISPLAY_URL TYPE STRING,
               L_PDF_LEN      TYPE I.
          DATA: OUTPUT_OPTIONS      TYPE SSFCOMPOP,
                CONTROL_PARAMETERS  TYPE SSFCTRLOP,
                OUTPUT_DATA         TYPE SSFCRESCL,
                DEVTYPE             TYPE RSPOPTYPE.
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            EXPORTING
              DESTINATION    = 'LOCL'
              IMMEDIATELY    = ' '
              RELEASE        = ' '
              NEW_LIST_ID    = 'X'
              LINE_SIZE      = 255
              LINE_COUNT     = 65
              LAYOUT         = 'X_65_255'
              SAP_COVER_PAGE = 'X'
              RECEIVER       = 'SAP*'
              DEPARTMENT     = ''
              NO_DIALOG      = 'X'
            IMPORTING
              OUT_PARAMETERS = WF_PARAMS
              VALID          = VALID_FLAG.
          IF VALID_FLAG = 'X' AND SY-SUBRC = 0.
            SUBMIT Z01_BSPPRDDASH_SPOOL TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                              SPOOL PARAMETERS WF_PARAMS
                               AND RETURN  .
          ENDIF.
    this is to get the spool no. created. Not a real nice
    way though. if someone knows a better method please do
    share
          CONCATENATE 'SAPMHTTP'
                       SY-UNAME+0(3)
             INTO LC_RQ2NAME SEPARATED BY '_'.
          SELECT * FROM TSP01 INTO TSP01_WA WHERE  RQ2NAME = LC_RQ2NAME AND
                                                   RQOWNER = SY-UNAME
          ORDER BY RQCRETIME DESCENDING.
            WF_SPONO = TSP01_WA-RQIDENT.
            EXIT.
          ENDSELECT.
          IF SY-SUBRC NE 0.
            CLEAR WF_SPONO.
          ENDIF.
          IF NOT  WF_SPONO IS INITIAL.
            CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
              EXPORTING
                SRC_SPOOLID              = WF_SPONO
                NO_DIALOG                = 'X'
              TABLES
                PDF                      = WITAB
              EXCEPTIONS
                ERR_NO_ABAP_SPOOLJOB     = 1
                ERR_NO_SPOOLJOB          = 2
                ERR_NO_PERMISSION        = 3
                ERR_CONV_NOT_POSSIBLE    = 4
                ERR_BAD_DESTDEVICE       = 5
                USER_CANCELLED           = 6
                ERR_SPOOLERROR           = 7
                ERR_TEMSEERROR           = 8
                ERR_BTCJOB_OPEN_FAILED   = 8
                ERR_BTCJOB_SUBMIT_FAILED = 9
                ERR_BTCJOB_CLOSE_FAILED  = 10
                OTHERS                   = 11.
          ENDIF.
          IF SY-SUBRC EQ 0.
            LOOP AT WITAB INTO ITAB .
              TRANSLATE ITAB USING ' ~'.
              CONCATENATE OUTPUT ITAB INTO OUTPUT IN CHARACTER MODE.
            ENDLOOP.
            TRANSLATE OUTPUT USING '~ ' .
            CREATE OBJECT CACHED_RESPONSE TYPE CL_HTTP_RESPONSE EXPORTING
          ADD_C_MSG = 1.
            L_PDF_LEN = STRLEN( OUTPUT ).
            CACHED_RESPONSE->SET_CDATA( DATA   = OUTPUT
                                LENGTH = L_PDF_LEN ).
         CACHED_RESPONSE->SET_HEADER_FIELD( name  =
    if_http_header_fields=>content_type
                                            VALUE = 'application/pdf' ).
            CACHED_RESPONSE->SET_STATUS( CODE = 200 REASON = 'OK' ).
            CACHED_RESPONSE->SERVER_CACHE_EXPIRE_REL( EXPIRES_REL = 180 ).
            CALL FUNCTION 'GUID_CREATE'
              IMPORTING
                EV_GUID_32 = GUID.
            CONCATENATE RUNTIME->APPLICATION_URL '/' GUID '.pdf'
            INTO DISPLAY_URL.
            CL_HTTP_SERVER=>SERVER_CACHE_UPLOAD( URL      = DISPLAY_URL
                                               RESPONSE = CACHED_RESPONSE ).
          navigation->goto_page( display_url ).
            RETURN .
    Regards,
    Sriprabha

    Hi Graham ,
       Thanks for the code. But right now I am getting a Blank output. Could you tell me what could be wrong.
    Following is my code :
    DATA: CACHED_RESPONSE TYPE REF TO IF_HTTP_RESPONSE.
    IF NOT  WF_SPONO IS INITIAL.
            CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
              EXPORTING
                SRC_SPOOLID              = WF_SPONO
                NO_DIALOG                = ' '
              TABLES
                PDF                      = WITAB
              EXCEPTIONS
                ERR_NO_ABAP_SPOOLJOB     = 1
                ERR_NO_SPOOLJOB          = 2
                ERR_NO_PERMISSION        = 3
                ERR_CONV_NOT_POSSIBLE    = 4
                ERR_BAD_DESTDEVICE       = 5
                USER_CANCELLED           = 6
                ERR_SPOOLERROR           = 7
                ERR_TEMSEERROR           = 8
                ERR_BTCJOB_OPEN_FAILED   = 8
                ERR_BTCJOB_SUBMIT_FAILED = 9
                ERR_BTCJOB_CLOSE_FAILED  = 10
                OTHERS                   = 11.
          ENDIF.
          IF SY-SUBRC EQ 0.
            LOOP AT WITAB INTO ITAB .
              TRANSLATE ITAB USING ' ~'.
              CONCATENATE OUTPUT ITAB INTO OUTPUT IN CHARACTER MODE.
            ENDLOOP.
            TRANSLATE OUTPUT USING '~ ' .
            CREATE OBJECT CACHED_RESPONSE TYPE CL_HTTP_RESPONSE EXPORTING
          ADD_C_MSG = 1.
            L_PDF_LEN = STRLEN( OUTPUT ).
            CACHED_RESPONSE->SET_CDATA( DATA   = OUTPUT
                                LENGTH = L_PDF_LEN ).
         CACHED_RESPONSE->SET_HEADER_FIELD( name  = 'content-type'
                                            VALUE = 'application/pdf' ).
    some Browsers have caching problems when loading PDF format
            CACHED_RESPONSE->set_header_field(
                               name  = 'cache-control'
                               value = 'max-age=0' ).
            CONCATENATE RUNTIME->APPLICATION_URL '/' 'test.pdf'
            INTO DISPLAY_URL.
            CACHED_RESPONSE->set_header_field(
                               name  = 'content-disposition'
                               value = DISPLAY_URL ).
            navigation->response_complete( ).
    Regards,
    Sriprabha

  • While converting smartform output toPDF: end command // missing in OTF data

    Hi,
    While Converting smartform output to PDF i am getiing the following error.
    end command // missing OTF data . And also in the importing parameter of smartform  function module also (job_output_info ) i did not findout the data. Where did i make a mistake. How can i correct this error. Thanks in advance.

    Implemented SAP Note 1123505 - OTF-PDF conversion.

  • 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

  • Convert Graphics2D Output to HTML

    Hello,
    Does anybody know of a library that converts Graphics2D output to HTML text?
    Thanks

    Hello,
    Does anybody know of a library that converts Graphics2D output to HTML text?
    Thanks

  • Convert billing output to an ASCII format

    Dear Gurus,
    We have set up a new printer to convert billing output to an ASCII format.
    It's working fine except
    The formatting is not as we would expect, and we are missing some data.
    Can you please help me out what settings need to look out that can be changed.
    It would be a great help.
    Regards,
    Sandeep

    please go through the following two links this will provide u the necessary information
    http://help.sap.com/saphelp_45b/helpdata/en/d6/0dbadd494511d182b70000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/EN/d9/4a933c51ea11d189570000e829fbbd/content.htm
    Please do check the necessary settings mentioned in these links
    hope this will help u out

  • Error while converting smartform output to pdf

    hi
    while converting smartform output to pdf error occured otf data not founr.
    regarding code is as follows:
    otfitab = i_job_output_info-otfdata.
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
    EXPORTING
       USE_OTF_MC_CMD               = 'X'
      ARCHIVE_INDEX                =
       IMPORTING
       bin_filesize                  = l_pdf_len
       TABLES
        otf                          = otfitab
        doctab_archive               = t_docs_tab
        lines                        = pdfitab
    EXCEPTIONS
      ERR_CONV_NOT_POSSIBLE        = 1
      ERR_OTF_MC_NOENDMARKER       = 2
      OTHERS                       = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    rest all declarations are up to date.
    thanks in advance..........

    Hi Mayank,
    I am not sure if u know this already, we can convert the spool ouput to PDF
    by using the program RSTXPDFT4.
    Regards,
    Vivek

Maybe you are looking for