Chart on smartform

Hi ,
Can anybody please explain me the procedure to print chart on smart form ?
I'm able to display it before the smart form print.Here my requirement is to pull the data dynamically & print the same through graph on smartform.
Thanks in advance.

Hi,
Hope you get good information here.
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/abap%2bdevelopment%2band%2bprogramming
http://www.sap-press.com/downloads/h955_preview.pdf
regards
nag

Similar Messages

  • Gantt chart in smartform?

    Hi everyone,
    I have been assigned to put a gantt chart in smartform. Does anyone have any idea of how this can be done?
    Thank you in advance,
    Shkelqim

    Hi Stefanie,
    I already have this project. But when i am importing this project in to my NWDS. Not a single View is opening. Its giving me lot of errors.
    I dont know how i will manage...i am really stucked up.
    Thanks for reply...

  • Dynamic bar charts in smartforms

    hi all,
              i have got a requirement to design a smartform with dynamic bar charts and line(scatter) charts.could any body give sample code or way to proceed.
    Thanks,
    Srikanth.A

    Hi,
    Refer to GFW_PROG* programs.
    thanks,
    sama

  • BAR CHARTS IN SMARTFORMS

    HAI
      PLEASE SEND THE STEPS  HOW TO CREATE A BARCHARTS IN SMARTFORMS?
    FROM
    SITARAM

    Go through this threads... it may help you...
    /thread/210384 [original link is broken]
    Creating charts with ABAP
    Issue related to Barcharts
    Regards,
    SaiRam

  • Charts in Smartforms

    Does anyone have a complete example how to include a chart in a Smartform?
    We are trying to generate a smartform with a chart and a datatable, then convert it to a PDF file.

    To Lanka:
    First of all many thanks for the reply. We already looked at the possibilities you mentioned. Unfortunately it does not help us since the chart is generated on a BSP page via the HTMLB chart object. In addition to the chart a list with values is generated as well. What we wanted to do is regenerate the same output, chart and data table in a PDF form for printing and storage purpose. Other possibilities we see in the future is saving the PDF file and attaching it to mass emails.

  • Dynamic Pie charts in smartforms

    Hi All,
    I need to print a pie chart dynamically in smart forms.
    I have seen all the threads available on this.
    Can anyone guide me step by step process of doing this.

    Hi,
    Refer to GFW_PROG* programs.
    thanks,
    sama

  • Dynamic Pie Chart in Smart Form

    Hi Frn's ,
      How can i show the dynamic Pie chart in Smartform .
    Thanks and Regards
    Priyank Dixit

    Hi,
    Refer to this link [How to display pie chart in smart forms|Re: how to display pie chart in smart forms]

  • EXPORT chart (graph) to JPG, GIF .etc

    Hello.
    I have a problem with this. I want to export chart into SMARTFORM, but must have JPG or GIF picture. the question is - how export chart, graph to picture format?
    Tkanks very much.

    hi daniel,
                 you can export picture in smartforms but it must be in bitmap format so u must change the format and then in your samartform creare new node or do right click create->graphic and give the name of that graphic and object 'GRAPHICS and ID is BMAP, for exporting the grachic use the transaction se78. if it is use full for u then plz give reward points.
    Thanks
    Anirudh Saini

  • Vertical bar Graph to be  printed in smartform

    Dear Abapers ,
    Thank you in advance, my requirement is I want a print a vertical bar graph in the smartform. This vertical bar graph is
    changing everymonth that means a monthly performance report is to be propared where it shows the monthly sales and production of products and this data is to be shown in the form of graph along with tabular values. The format of report they need is in the form of any invoice form(for example) so I am preparing the smartform for this.So, Please tell the procedure with example to print the graph in one of the window of smartforms.
    Again thanks in advance.
    Regards
    Dinakar

    Hi Dinakar,
    Please check whether the following link is of any use to you,
    Bar charts in SMARTFORMS
    Best Regards.
    - Reward points if it is helpful.

  • Dynamic Insertion of graphics in Smart from

    Hi guys,
    I want to insert a dynamic graphic image from the presentation server into smart from its possible?
    Reg,
    Hriharan

    Hi Mohd,
    here's how to do it.
    I presume you have alredy done charting in general with the cl_gui_chart_engine. You need the data and the customizing XML strings of that chart to print it out.
    Follow this coding:
        DATA: l_igs_viewer TYPE REF TO cl_igs_chart_engine,
              i_igs_image_converter TYPE REF TO cl_igs_image_converter.
    * Generate an Internet Graphics Server Chart Engine
        CREATE OBJECT l_igs_viewer
          EXPORTING
            destination = 'GFW_ITS_RFC_DEST'.  "IGS must exist, destination be installed
    * IGS gets data and customizing
        CALL METHOD l_igs_viewer->set_data( data_doc = l_ixml_doc ).
        CALL METHOD l_igs_viewer->set_customizing(
          custom_doc = l_ixml_custom_doc ).
    * and now renders the chart.
        CALL METHOD l_igs_viewer->execute
          EXCEPTIONS
            communication_error = 1
            internal_error      = 2
            external_error      = 3
            OTHERS              = 4.
    * Next step ist to convert the image to an MS-BMP.
          DATA:
            l_image TYPE  w3mimetabtype,
            l_image_size  TYPE  w3param-cont_len,
            l_image_type  TYPE  w3param-cont_type.
    * get your image
          CALL METHOD l_igs_viewer->get_image
            IMPORTING
              image      = l_image
              image_size = l_image_size
              image_type = l_image_type.
    * Create an image converter on the IGS
          CREATE OBJECT i_igs_image_converter
            EXPORTING
              destination = 'GFW_ITS_RFC_DEST'.
          i_igs_image_converter->input = 'image/gif'.
          i_igs_image_converter->output = 'image/x-ms-bmp'. " !!!!
    * Hand the image over
          CALL METHOD i_igs_image_converter->set_image
            EXPORTING
              blob      = l_image
              blob_size = l_image_size.
    * and convert it to a BMP
          CALL METHOD i_igs_image_converter->execute
            EXCEPTIONS
              communication_error = 1
              internal_error      = 2
              external_error      = 3
              OTHERS              = 4.
          IF sy-subrc = 0.
    * if OK, get that image.
            CALL METHOD i_igs_image_converter->get_image
              IMPORTING
                blob      = l_image
                blob_size = l_image_size
                blob_type = l_image_type.
          ENDIF.
        ENDIF.
    At this point, we have a BMP-24, and we are ready to save it to the SE78 BDS graphics system.
    This is by far the slowest part of the story. Not applicable for mass printing, the conversion of a bitmap can take up to 1 minute!
        DATA: l_docid TYPE stxbitmaps-docid.
        PERFORM save_bitmap_bds
                USING    'TEMP_CHART0181'
                         'GRAPHICS' 'BMAP' 'BCOL' 'BMP'
                         'Temporäre Grafik Chart 0181'(i16)
                         con_blank
                         con_x
                         con_x
                CHANGING
                         l_image_size
                         l_image
                         l_docid.
    The next part ist the form that converts and saves the BMP to BDS.
    FORM save_bitmap_bds
        USING    p_name           TYPE stxbitmaps-tdname
                 p_object         TYPE stxbitmaps-tdobject
                 p_id             TYPE stxbitmaps-tdid
                 p_btype          TYPE stxbitmaps-tdbtype
                 p_format         TYPE c
                 p_title          TYPE bapisignat-prop_value
                 p_resident       TYPE stxbitmaps-resident
                 p_autoheight     TYPE stxbitmaps-autoheight
                 p_bmcomp         TYPE stxbitmaps-bmcomp
        CHANGING
                 p_image_size     TYPE i
                 p_image          TYPE w3mimetabtype
                 p_docid          TYPE stxbitmaps-docid.
      DATA: l_object_key      TYPE sbdst_object_key.
      DATA: l_tab             TYPE ddobjname.
      DATA: l_filename        TYPE string,
            l_bytecount       TYPE i,
            l_error           TYPE c.
      DATA: l_color(1)        TYPE c.
      DATA: l_bds_object      TYPE REF TO cl_bds_document_set,
            l_bds_content     TYPE sbdst_content,
            l_bds_components  TYPE sbdst_components,
            l_dpi             TYPE  stxbitmaps-resolution,
            wa_bds_components TYPE LINE OF sbdst_components,
            l_bds_signature   TYPE sbdst_signature,
            wa_bds_signature  TYPE LINE OF sbdst_signature,
            l_bds_properties  TYPE sbdst_properties,
            wa_bds_properties TYPE LINE OF sbdst_properties.
      DATA  wa_stxbitmaps TYPE stxbitmaps.
      DATA:
        l_width_tw TYPE  stxbitmaps-widthtw,
        l_height_tw TYPE  stxbitmaps-heighttw,
        l_width_pix TYPE  stxbitmaps-widthpix,
        l_height_pix TYPE  stxbitmaps-heightpix,
        l_bds_bytecount TYPE  i,
        l_docid TYPE stxbitmaps-docid.
      CALL FUNCTION 'SAPSCRIPT_CONVERT_BITMAP_BDS'
        EXPORTING
          color                     = 'X'
          format                    = 'BMP'
          bitmap_bytecount          = p_image_size
          compress_bitmap           = 'X'
        IMPORTING
          width_tw                  = l_width_tw
          height_tw                 = l_height_tw
          width_pix                 = l_width_pix
          height_pix                = l_height_pix
          dpi                       = l_dpi
          bds_bytecount             = l_bds_bytecount
        TABLES
          bitmap_file               = p_image
          bitmap_file_bds           = l_bds_content
        EXCEPTIONS
          format_not_supported      = 1
          no_bmp_file               = 2
          bmperr_invalid_format     = 3
          bmperr_no_colortable      = 4
          bmperr_unsup_compression  = 5
          bmperr_corrupt_rle_data   = 6
          tifferr_invalid_format    = 7
          tifferr_no_colortable     = 8
          tifferr_unsup_compression = 9
          bmperr_eof                = 10
          OTHERS                    = 11.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    * Enqueue
      PERFORM enqueue_graphic USING p_object
                                    p_name
                                    p_id
                                    p_btype
                              CHANGING l_error.
      CHECK l_error EQ con_blank.
      SELECT SINGLE docid INTO p_docid
        FROM stxbitmaps
        WHERE tdobject = p_object
          AND   tdname   = p_name
          AND   tdid     = p_id
          AND   tdbtype  = p_btype.
      IF sy-subrc NE 0.
        CLEAR p_docid.
      ENDIF.
      IF p_btype = c_bmon.
        l_color = con_blank.
      ELSE.
        l_color = con_x.
      ENDIF.
    * Save bitmap in BDS
      CREATE OBJECT l_bds_object.
      wa_bds_components-doc_count  = '1'.
      wa_bds_components-comp_count = '1'.
      wa_bds_components-mimetype   = c_bds_mimetype.
      wa_bds_components-comp_size  = l_bds_bytecount.
      APPEND wa_bds_components TO l_bds_components.
      IF p_docid IS INITIAL.          " graphic is new
        wa_bds_signature-doc_count = '1'.
        APPEND wa_bds_signature TO l_bds_signature.
        CALL METHOD l_bds_object->create_with_table
          EXPORTING
            classname  = c_bds_classname
            classtype  = c_bds_classtype
            components = l_bds_components
            content    = l_bds_content
          CHANGING
            signature  = l_bds_signature
            object_key = l_object_key
          EXCEPTIONS
            OTHERS     = 1.
        IF sy-subrc <> 0.
          PERFORM dequeue_graphic USING p_object
                                        p_name
                                        p_id
                                        p_btype.
          MESSAGE e012 WITH p_name  'BDS'.
        ENDIF.
        READ TABLE l_bds_signature INDEX 1 INTO wa_bds_signature
        TRANSPORTING doc_id.
        IF sy-subrc = 0.
          p_docid = wa_bds_signature-doc_id.
        ELSE.
          PERFORM dequeue_graphic USING p_object
                                        p_name
                                        p_id
                                        p_btype.
          MESSAGE e012 WITH p_name 'BDS'.
        ENDIF.
      ELSE.                " graphic already exists
    ********* read object_key for faster access *****
        CLEAR l_object_key.
        SELECT SINGLE * FROM stxbitmaps INTO wa_stxbitmaps
            WHERE tdobject = p_object
              AND tdid     = p_id
              AND tdname   = p_name
              AND tdbtype  = p_btype.
        SELECT SINGLE tabname FROM bds_locl INTO l_tab
           WHERE classname = c_bds_classname
              AND classtype = c_bds_classtype.
        IF sy-subrc = 0.
          SELECT SINGLE object_key FROM (l_tab) INTO l_object_key
            WHERE loio_id = wa_stxbitmaps-docid+10(32)
              AND classname = c_bds_classname
                AND classtype = c_bds_classtype.
        ENDIF.
    ******** read object_key end ********************
        CALL METHOD l_bds_object->update_with_table
          EXPORTING
            classname     = c_bds_classname
            classtype     = c_bds_classtype
            object_key    = l_object_key
            doc_id        = p_docid
            doc_ver_no    = '1'
            doc_var_id    = '1'
          CHANGING
            components    = l_bds_components
            content       = l_bds_content
          EXCEPTIONS
            nothing_found = 1
            OTHERS        = 2.
        IF sy-subrc = 1.   " inconsistency STXBITMAPS - BDS; repeat check in
          wa_bds_signature-doc_count = '1'.
          APPEND wa_bds_signature TO l_bds_signature.
          CALL METHOD l_bds_object->create_with_table
            EXPORTING
              classname  = c_bds_classname
              classtype  = c_bds_classtype
              components = l_bds_components
              content    = l_bds_content
            CHANGING
              signature  = l_bds_signature
              object_key = l_object_key
            EXCEPTIONS
              OTHERS     = 1.
          IF sy-subrc <> 0.
            PERFORM dequeue_graphic USING p_object
                                          p_name
                                          p_id
                                          p_btype.
            MESSAGE e012 WITH p_name 'BDS'.
          ENDIF.
          READ TABLE l_bds_signature INDEX 1 INTO wa_bds_signature
          TRANSPORTING doc_id.
          IF sy-subrc = 0.
            p_docid = wa_bds_signature-doc_id.
          ELSE.
            PERFORM dequeue_graphic USING p_object
                                          p_name
                                          p_id
                                          p_btype.
            MESSAGE e012 WITH p_name 'BDS'.
          ENDIF.
        ELSEIF sy-subrc = 2.
          PERFORM dequeue_graphic USING p_object
                                        p_name
                                        p_id
                                        p_btype.
          MESSAGE e012 WITH p_name 'BDS'.
        ENDIF.
      ENDIF.
    * Save bitmap header in STXBITPMAPS
      wa_stxbitmaps-tdname     = p_name.
      wa_stxbitmaps-tdobject   = p_object.
      wa_stxbitmaps-tdid       = p_id.
      wa_stxbitmaps-tdbtype    = p_btype.
      wa_stxbitmaps-docid      = p_docid.
      wa_stxbitmaps-widthpix   = l_width_pix.
      wa_stxbitmaps-heightpix  = l_height_pix.
      wa_stxbitmaps-widthtw    = l_width_tw.
      wa_stxbitmaps-heighttw   = l_height_tw.
      wa_stxbitmaps-resolution = l_dpi.
      wa_stxbitmaps-resident   = p_resident.
      wa_stxbitmaps-autoheight = p_autoheight.
      wa_stxbitmaps-bmcomp     = p_bmcomp.
      INSERT INTO stxbitmaps VALUES wa_stxbitmaps.
      IF sy-subrc <> 0.
        UPDATE stxbitmaps FROM wa_stxbitmaps.
        IF sy-subrc <> 0.
          MESSAGE e012 WITH p_name 'STXBITMAPS'.
        ENDIF.
      ENDIF.
    * Set description in BDS attributes
      wa_bds_properties-prop_name  = 'DESCRIPTION'.
      wa_bds_properties-prop_value = p_title.
      APPEND wa_bds_properties TO l_bds_properties.
      CALL METHOD l_bds_object->change_properties
        EXPORTING
          classname  = c_bds_classname
          classtype  = c_bds_classtype
          object_key = l_object_key
          doc_id     = p_docid
          doc_ver_no = '1'
          doc_var_id = '1'
        CHANGING
          properties = l_bds_properties
        EXCEPTIONS
          OTHERS     = 1.
      PERFORM dequeue_graphic USING p_object
                                    p_name
                                    p_id
                                    p_btype.
    ENDFORM.                    "save_bitmap_bds
    Your final part will now be to print out the graphic using a SmartForm. The method I showed above, saves the graphics always with the same name, in this case TEMP_CHART0181. So this method is not qualified for concurrent use by multiple users.
    Try it out and see how slow this works unfortunately.
    I hope SAP will provide a performant way soon to print charts with smartforms better than that above.
    One last hint concerning size and resolution of the bitmap. Take a low resolution of say 50 dpi to gain higher performance but lower print quality. I never tried high resolutions of like 300dpi, it just became too slow for me and I qualified that as simply unpracticable.
    I hope the coding snippets can help you.
    Kind Regards
    Ernst

  • How to display pie chart in smart forms

    hii experts,
                      my requirement is to display pi chart in smart forms . i have  googled but could not get any meaning full results. If any one knows this pls share ..
    Thanks and Regards
    Aditya Shrivastava

    Hi
    I really doubt If you did search at all in the first place. Anyhow, check this:
    https://www.sdn.sap.com/irj/scn/advancedsearch?query=piechartin+smartforms&cat=sdn_all
    Vishwa.

  • In R/3 display smartform as pdf in a custom container

    Hello,
    I want to display smartform as pdf in a custom contianer . I was able to find all the right code from sdn.
    but my problem is that when executed my sap gui is closed without any error.
    I am unable to understand what is going wrong.
      CALL METHOD G_HTML_CONTROL->SHOW_URL( URL = LV_URL
        IN_PLACE = 'X' ).  does not show the pdf.
    Can any one help me to find out if we need to do some setting for MIME type application/pdf. Because I tried to display a bar chart in the custom container of MIME type text/html , and this is working fine.
    Is any setting missing in our R/3 because of which the code is not getting executed.
    below code is the exact copy from a post in sdn:
    report ztest_pdf.
    DATA: LT_PDF TYPE TABLE OF TLINE,
          LS_PDF LIKE LINE OF LT_PDF,
          LV_URL TYPE CHAR255,
          PDF_FSIZE TYPE  I,
          LV_CONTENT  TYPE XSTRING,
          LT_DATA TYPE STANDARD TABLE OF X255.
    DATA : L_JOB_OUTPUT_INFO TYPE SSFCRESCL.
    DATA : LS_CONTROL_PARAM  TYPE SSFCTRLOP.
    DATA : G_HTML_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
           G_HTML_CONTROL   TYPE REF TO CL_GUI_HTML_VIEWER.
    *      pdf_control type ref to cl_gui_pdfviewer.
    DATA : P_VBELN TYPE  VBELN_VL.
    DATA : i_html TYPE w3htmltabtype.
    ",       g_url  TYPE w3url
    FIELD-SYMBOLS <FS_X> TYPE X.
    INITIALIZATION.
    LS_CONTROL_PARAM-GETOTF = 'X'.
    LS_CONTROL_PARAM-NO_DIALOG = 'X'.
    START-OF-SELECTION.
      CALL FUNCTION '/1BCDWB/SF00000298'
    EXPORTING
    *    ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
         CONTROL_PARAMETERS         = LS_CONTROL_PARAM
    *     P_VBELN                    = P_VBELN
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    *   OUTPUT_OPTIONS             =
    *   USER_SETTINGS              = 'X'
    IMPORTING
    *      DOCUMENT_OUTPUT_INFO  = L_DOCUMENT_OUTPUT_INFO
           JOB_OUTPUT_INFO       = L_JOB_OUTPUT_INFO
    *      JOB_OUTPUT_OPTIONS    = L_JOB_ OUTPUT_OPTIONS
    EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5
      IF SY-SUBRC <>  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    data pdfxstring type xstring.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          FORMAT                = 'PDF'
        IMPORTING
          BIN_FILESIZE          = PDF_FSIZE
          bin_file              = pdfxstring
        TABLES
          OTF                   = L_JOB_OUTPUT_INFO-OTFDATA
          LINES                 = LT_PDF
        EXCEPTIONS
          ERR_MAX_LINEWIDTH     = 1
          ERR_FORMAT            = 2
          ERR_CONV_NOT_POSSIBLE = 3
          OTHERS                = 4.
      CALL SCREEN 100.
    module STATUS_0100 output.
    *  SET PF-STATUS 'xxxxxxxx'.
    *  SET TITLEBAR 'xxx'.
      CREATE OBJECT G_HTML_CONTAINER
        EXPORTING
          CONTAINER_NAME = 'PDF'.
    CREATE OBJECT G_HTML_CONTROL
        EXPORTING
          PARENT = G_HTML_CONTAINER.
    * Convert xstring to binary table to pass to the LOAD_DATA method
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER     = pdfxstring"LV_CONTENT
        TABLES
          BINARY_TAB = LT_DATA.
    * PERFORM bar_chart .
    * Load the HTML
      CALL METHOD G_HTML_CONTROL->LOAD_DATA(
         EXPORTING
           TYPE         = 'application' "'text' " 'application'
           SUBTYPE      = 'pdf' "'html'  "'pdf'
         IMPORTING
           ASSIGNED_URL         = lv_URL
         CHANGING
           DATA_TABLE           =  LT_DATA "i_html "LT_DATA
         EXCEPTIONS
           DP_INVALID_PARAMETER = 1
           DP_ERROR_GENERAL     = 2
           CNTL_ERROR           = 3
           OTHERS               = 4 ).
    * Show it
      CALL METHOD G_HTML_CONTROL->SHOW_URL( URL = LV_URL
        IN_PLACE = 'X' ).
    Thanks,
    Jaya.
    Edited by: kishan P on Jun 9, 2011 1:40 PM

    Hello Sandra,
    Thanks for your reply, but eventhen it fails to load the pdf. Is ADS required to be installed for this?
    Can I just pass the pdf_fsize imported from  CONVERT_OTF which is of type i.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          FORMAT                = 'PDF'
        IMPORTING
          BIN_FILESIZE          = PDF_FSIZE    
    bin_file              = pdfxstring
        TABLES
          OTF                   = L_JOB_OUTPUT_INFO-OTFDATA
          LINES                 = LT_PDF
        EXCEPTIONS
          ERR_MAX_LINEWIDTH     = 1
          ERR_FORMAT            = 2
          ERR_CONV_NOT_POSSIBLE = 3
          OTHERS                = 4.
      CALL METHOD G_HTML_CONTROL->LOAD_DATA(
         EXPORTING
           TYPE         = 'application' "'text' " 'application'
           SUBTYPE      = 'pdf' "'html'  "'pdf'
           size           = PDF_FSIZE
         IMPORTING
           ASSIGNED_URL         = lv_URL
         CHANGING
           DATA_TABLE           =  LT_DATA "i_html "LT_DATA
         EXCEPTIONS
           DP_INVALID_PARAMETER = 1
           DP_ERROR_GENERAL     = 2
           CNTL_ERROR           = 3
           OTHERS               = 4 ).
    Thanks,
    Jaya.

  • How to change window sizes dynamically in smartform

    Hi,
    Dear ABAP Experts,
            I need to show different materials current sales by comparing previous year’s sales (month wise) as a table and their difference in the form of chart( diagram). Can anyone share how to draw chats(rectangular boxes) in smartform.
        Please can any one tell me how to pass dynamic coordinates (left margin, width, upper margin and height) to create window. If I know this one I can solve my problem.
    Thanks in advance,
    Meeravali Shaik.

    hi Raju,
    You can do onething. Create a variable in global defination of charcter lenth 1.
    when you are selecting your address on the basis of address number. suppose we have two address add1 and add2.
    if you get add1 set this variable 'X'.
    otherwise set it 'Y'.
    Now create two text node.
    in one text node put your add1 and in other one put add2. in text node yyou will get tab conditions.
    Put the condition varible = 'X' for add1.
    and 'Y' for add2.
    so it will execute one the basis of that condition and print the one of the addresses u have.
    Hope this will help you out.
    Reward if useful.
    Regards,
    Azad.
    do remember to clear the variable after printing.

  • ITS and Pie Charts

    We need to display charts (bar and pie) in a Web report/application running on SAP 4.6 and ITS (no WebAS, no BSP, no Portal). We need those charts to be real-time (not saved as a static image). The charts are user-specific. How would you do it?
    I have few ideas:
    1. Build bar charts with HTML tables or image blocks. No pie charts are possible.
    2. Generate PDFs using Sapscript/Smartforms and call PDF from the Web page. Questions: Can you have charts in this solution? Can you generate those PDFs on the fly?
    3. Use Adobe SVG for client side charts (SVG viewer is required)
    4. Use ActiveX or Java Applets
    Thank you for advice.

    Kai,
    It's a great suggestion to use IGS. But I am still not sure how this would work. Yes, I can use classes in the ABAP dialog program to call IGS. But how do I pass the images to ITS?
    I see few possible scenarios. Am I close?
    1. Responding to a call from ABAP, IGS is generating a GIF image and saves it in a location accessible from the Web (e.g. ITS WGate or IGS server). IGS is returning a reference for the image name/location to the ABAP dialog program. The reference is passed to ITS HTML template.
    2. Responding to a call from ABAP, IGS is returning a bitstream of the image back to the calling program. There should be a way to save it as GIF in ABAP and post the GIF image to WGate as a MIME object. Also, if I can save it a GIF in SAP, I can alternatively build a smartform that would use that newly generated GIF and convert the document into a PDF an then display the PDF with a text and charts on the Web.
    3. You call IGS directly from ITS, not the ABAP. You pass parameters to IGS telling what chart do you need and what data to use. IGS returns a GIF image back to ITS.
    Can please provide some clarity here.
    Thank you,
    Andre Polakoff

  • Graphs in Smartforms ?

    Hi ,
    I believe printing graphs (bar charts with values changing depending on data) is possible in Smartforms.
    can anyone give some more hints on how to go about this ?
    I tried serching the net and SDN but did not get anything close to the solution.
    Thank you,
    Sandip.

    HI
    GOOD
    Additional Fonts for your SMARTFORMS
    You can create additional fonts and style with transaction SMARTSTYLES
    This can then be define in the paragraph and character formats, which you can then be assign to texts and fields in the Smart Form.
    The character formats includes effects such as superscript, subscript, barcode and font attributes.
    GO THROUGH THE FOLLOWING LINK
    http://www.zebra.com/id/zebra/na/en/documentlibrary/misc/sap_smart_forms_faqs.File.tmp/SAP_SmartFormsFAQ.pdf&dvar1=null&dvar2=null&dvar3=null
    THANKS
    MRUTYUN

Maybe you are looking for

  • Color bars in FCP

    I have made a DVD with the FCP NTSC color bars in order to calibrate my TV but no natter how high I turn up the brightness (black level) there is no way for me to see super black distinct from black. I also note that when I view the color bars on my

  • Deploy BC4J to 8i

    Hi!! Hope to get help here.I developed BC4J appln in Jdeveloper3.1 and wld like to deploy it as Oracle 8i EJB session Bean .When I tried Deployment an error occured as follows- 'Generating EJBHome and EJBObject on the server... An exception occurred

  • Change password for Domain\SAPservice SID and sid adm user

    Hi guys During NW711 installation, Ii gave OS User password different with master password. Now i would like to synchronise the  OS User password with master password(DDIC/SAP) How to change the password for below users SAP System administrator <Doma

  • Change global_name risk

    what do you think the risk, after you change the global_name of the database. (using alter database rename global_name to aaa.bbb command) In my system, previous database link is not work, I think this is only a little thing that I can handle, just o

  • About waveform chart

    hello , actually i want to ask that how can i change the data format of the Waveform graph, by defult it shows as DBL but i want to change it to cluster icon or SGL etc.. if any one cant understand my point plz look at the attach image i want to chan