Dynamic graphics in Smart Forms

Dear All:
I have a requirement in my SMARTFORM page development that i have to place a dynamic graphics and printout.
Does anyone know how to control the dynamic graphics in Smart Forms?
Any help whould be highly appreciated.
Many thanks in advance.
Regards,
Elvis

Hello,
You can call the graphic dynamically as per your requirement by calling the Graphic dynamically, For ex: Name of the graphic: &WA_ITAB-FIELD1& ( which is a field of IntTab ITAB taken into Work area WA_ITAB ).
Also please note that you cannot print / overlay text in a diamond, perhaps you can have a work around to print the graphic and beside the graphic you print the Customer short name. for this you can either define a table / template.
Hope this helps you.
Best Regards,Murugesh AS

Similar Messages

  • Dynamic picture in Smart forms

    hi all,
    i need to include the  picture of am employee dynamically in the smart form deponding on the personnel no selected .so each page will need to include the picture. how to create graphics node dynamically / assign the picture .
    can any one tell me the logic .
    thanks
    senthil

    Hi Senthil,
    Create a graphic node in the Smartform and under the tab  'General Attributes' fill the Name, Object and Id with variables (e.g. &NAME&, &OBJECT& and &ID&) and fill these parameters to get the picture you want at runtime.
    Regards,
    John.

  • Dynamic graph in Smart Forms

    Hi
    I have searched the forums and noticed this question has been put forward many times but without a complete solution.
    I have so far managed to use the IGS to create a .JPG/PNG file for me. I seem to have an error while trying to create a BMP file, basis is currently looking into this for me, i get a LISTENERRFC : error.
    I'm using class : cl_igs_chart_engine
    to generate a chart from the IGS, this is returned to me in a MIME table format.
    Now how can I use this MIME table to insert it dynamically in the SMARTFORM. I see there is provision for Dynamic determined graphics in smart forms but i don't think it can be used here.
    Does anyone know how to do this ? Is there any other more effective way of inserting dynamic graphs into SAMRTFORMS
    Another question is class : cl_igs_chart_engine, how can you create a line graph instead of a bar graph ?
    Thanks

    Hi Kevin,
    Dynamic graphic in samrtform is supported provided you have the BMAP ( Bitmap ) created in SAP. In the graphics node of SMARTFORM you can assign a variable &GRAPHIC& as the name. From the program pass the graphic name in variable "GRAPHIC" through samrtform interface .
    The prerequisite is that the graphics should be there in SAP database at the time you call smartform .
    About your other question I have no idea but I can say that if you can have a graphics created on your PC at runtime you can always upload it to SAP using report RSTXLDMC , just before calling smartform. However this would generate a lot of graphics on SAP even if it is for one time use by smartform . You will have to find a way to delete subsequently .
    Cheers

  • Include a pie chart graphics in Smart Form

    hi ,
    my req. to include a pie chart graphics in Smart Form .
    my logic
    1) write a pie chat program using the data .
    2) convert into bmp and upload into se78
    3) include the pic in smart form .
    is there any other way
    can u please mention the class and method to include the picture directly .
    currently i have downloaded the pic in the local server using the
    CALL METHOD GP_INST->IF_GRAPHIC_PROXY~EXPORT
    EXPORTING
    FORMAT = 3
    WIDTH = 1000
    HEIGHT = 3000
    NAME = 'c:\s'
    IMPORTING
    CONTENT_TYPE = ct
    CONTENT_LENGTH = cl
    CONTENT = t
    RETVAL = RETVAL
    but the picture is not visible ( not in jpg format) . its not readble.
    am attaching the code .
    its urgent , please reply.
    cheers
    senthil

    Thanks problem resolved.

  • Possible to generate graphics within smart forms dynamically like SVG ?

    Hello,
    I would like to generate a graphic for a smart form. This graphic will only be needed in the smart form. Therefore my question:
    It is <b>possible to generate dynamically graphics using ABAP</b> as programming language? In the same line like SVG (Scalable Vector Graphics) or ChartDirector? I know it works in many other programming languages.
    Smart forms can handle *.bmp and *.tif picutres. Therefore the output of this ABAP program should be a picutre within the format *.bmp and *.tif.
    Daniel

    Welcome to SDN,
    I am not sure whether you can use SVG in smart form, but certainly in ABAP yes. check out the following atricle for more info.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/how to generate and display svg graphics in abap,%20Part%201.article
    Regards
    Raja

  • Dynamic Logos in Smart forms

    We have a business case to choose different logos based on a condition. This invloves significatn effort from Change mangement point of view.
    Is there any solution by which I don't need to change any thing in smart forms but able to derive the graphic dynamically.  
    any help in this regard is appreciated.
    regards,
    Sadam

    Hi Harpit,
    I did as follow in my requirement... i have to print logo based the company code.. for this
    i have created 1 graphic window, then given the name as<b> &V_LOGO& then press the Button right arrow (looks like ">").</b> so that system will understand the name will comes form vareiable V_LOGO(is type char20. rest is same.
    but some how we need to pass the logo name for this i have written code in GOBALDIFINATION-->INITIALIZATION tab...
    if xxx-BUKRS = 1008.
    V_LOGO = 'xxxxxxxx'.
    elseif xxx-BUKRS = 1011.
    V_LOGO = 'yyyyyy'.
    elseif xxx-BUKRS = 1152.
    V_LOGO = 'zzzzzzzz'.
    endif.
    Please Close this thread.. when u r problem is solved
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Regards
    Naresh Reddy K
    Edited by: Alvaro Tejada Galindo on Oct 1, 2008 3:25 PM

  • Writing Dynamic code in smart form

    Hi All,
       I have a issue on Smart form . the smart form is customized view of bbp_po(srm) for po(purchase order) details  in that in a secoundary window where vedor adress is displaying .In the first line of the address name1 and name2 are displaying now my need is if the name1+name2 is more than 47 chars then i need  to shift name2 to next line how can i do this dynamic code plase i need it urgently .
    Thanks
    channu sajjanar

    Hi
    Write code yto count the no of character, if it is more than 47 then display NAME2 in second line else write in first line.
    for second line put conditionin text element  NAME2 <> space.
    This will work
    Thanks
    Shiva

  • Dynamic graphic in Mail forms

    Hi All,
    I have a mail form which has been created in transaction CRMD_EMAIL. I have been asked to enhance it with a dynamic graphic image.
    There will be uploaded 1 image pr customer in transaction SE78.
    And for each document I must find the corresponding image.
    In normal smartform I can choose between 'Fixed value' and 'Dynamic field value' for graphichs name. And I can see that it works when I create a global variabel eg. 'TESTNAME' and assign it the value '123456'. if I then enter &TESTNAME& as dynamic graphic name, and test print it works fine and prints graphical image 123456.
    But in with the mail forms in CRMD_EMAIL, this is not available. If I enter a variable the field disaperes and in test mode i get the error 'Graphic cannot be displayed' - This is identical to the error I get in smartforms if I enter a name that does not exist.
    Does anybody knows if this is possible to do in mail forms. Or if I can use the smartforms instead of the Mail forms when working with campaigns.
    Best regards
    Dennis Lybecker

    Hi Gregor,
    Thanks for your quick response.
    The document was ment to include a technical drawing regarding the specific installation for the customer/prospect.
    It looks like we are going to include this drawing in a different document, which should be created in smartform.
    If anybody come up with a way to do this - please let us all know.
    Best regards
    Dennis

  • Dynamic Table in SMART FORMS

    Dear,
    I just want to pass dynamic internal table to smart form which i have created in print program.How it is possible and i am also using border for field in layout.
    Anuj Modi

    Hi Anuj Modi,
    Smart forms are not really dynamic (except if you are talking about the number of lines), could you please explain what rendering you want to achieve exactly?
    Sandra

  • How to Printe Graphics in Smart-Forms

    Guys,
    Need your help…
    Is it possible to print graph in smart form???
    If yes, if you have any document, please pass it to me…
    Dhiraj

    Hi Ram,
    Go through this hope u can understand.
    How to Upload graphics (IMAGE) to your Sapscript?
    Command in your Sapscript
    /: INCLUDE Z_YOUR_LOGO OBJECT TEXT ID ST LANGUAGE E
    These are the steps to be followed for uploading graphics in R/3 system 
    1.   First save the file as BMP 
    2.   Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and 
          make it Zoom as 100% and save as *.TIFF 
    3.   Open SE38 and execute program RSTXLDMC
    4.   Give your TIFF file path name 
    5.   Select Bcol (for Color) 
    6.   TEXT ID will be ZHEX-MACRO-*. 
    7.   Inplace of * write your own logo name (ZCOMPANYLOGO) 
    8.   Execute the program 
    9.   Now Goto SE71 create your ZFORM 
    10. Create logo window 
    11. Goto text element of logo window 
    or
    In 4.6x :-
    1.  Goto SE71 Change the mode to GRAPHICAL 
    2.  Choose the Graph Tabstrips
    3.  Now type in some name for the LOGO WINDOW 
    4.  Press the IMPORT BUTTON (third button from left) and then IMPORT the BMP file from your DESKTOP 
    5.  The code will be written automatically. You just need to drag and drop wherever you want
         the graphics to be. 
    /:   INCLUDE Z_COMPANY_LOGO OBJECT GRAPHICS ID BMON LANGUAGE EN
    Reward points if help ful.
    http://www.sap-img.com/ts001.htm
    Sorry i think for Scripts ..
    better to go for above post . it definetly works
    Thanks
    Naveen khan
    Message was edited by:
            Pattan Naveen

  • Dynamic Changes in Smart Form ( From External Source )

    Dear Sap Folks ,
                Whether the SF layout attributes can be changed from the external loading program dynamically .
    Please give your views on this topic.
    Thanks in advance .
    Best Regards,
    Raj

    Hi Raja,
    As far as my understanding goes this cannot be achieved by an external program but what you can do is that you can some flags that you can set in the print program and when you pass them to the smart form function module(the function module generated by the smartform) you can decide whether certain windows need to be displayed or not by giving a condition to them. You can have two windows with diferrent attributes and then switch between them with the help of flags acting as conditions.
    Hope this will help
    Sudhi

  • Unable to print graphics using smart forms

    Please some one help in printer settings for graphical printing in smart forms.
    Instead of graphic it  interprits the graphics as a text and prints text.
    please urgent...................help me

    hey no worries I got the answer thank you.

  • ABAP - Dynamic Table in Smart Form

    Dear All,
                 Can i assign a table at run time mens table rows and column will depend on user selection and no. of records fetched by query.  Is there any utility.
    Plz let me know ASAP if there is any. Looking forward to your co-operation.
    Thanks & Regards,
    Gulrez Alam

    Dear All,
                 At the time of table creation in Smart Form, we had to assign no. of columns and its width.
    In the case when no. of coulumns will be decided by the no of records return from the query. how can i link smart form with that records.
    No. of coulms in the smart form will be decided on the i/p no. given by the user. it can be any no.
    Plz suggest me the appropriate things.
    Is it possible or not in the smart forms.
    Thanks in Advance
    Gulrez Alam

  • Dynamic columns in smart form

    Hi All,
    The requirement is to display columns in the form dynamically based on the user input. For example if a country is chosen, each of the states is to come as a column. So based on the country, the no. of states is likely to change. This would call for dynamically changing the no. of columns in the smartform based on the country chosen. Is this possible to achieve in smartforms?
    Regards,
    Divya.

    You cannot have dynamic columns in smartform instead create all the required columns and display them based on the conditions passed from the program.
    Refer the link -
    Re: smartforms - dynamic column of tables
    Regards,
    Amit
    Reward all helpful replies.

  • Smart forms - Dynamic sizing of the windows.

    Hi gurus, iam working on smartforms, i have a problem.
    My requirement is: Printing a table data on the smart form. Is the window which prints this table data is resized with the amount of table data, if so, what is the procedure i should follow for to print this data in the window.
    Please give me the steps to go with the above issue. iam new to smartforms. what is the size of the window i should give in the Form painter and what all the attributes i should declare.
    Plz give a detailed explanation..
    Regards,
    chaitanya

    Hi Chaitanya.
    I would like to suggest a few references,
    [SDN - Reference for Smart form - setting dynamic window height  |Smart form-setting dynamic window height;
    [SDN Library - Standard Reference - Dynamic Window Height - SMARTFORM Tutorial|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d937ec90-0201-0010-0ca8-b6cb3b6dd1ef]
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

Maybe you are looking for

  • MacBook Pro keeps crashing...I'm new to Mac please help?!?!

    On several occassions everything I had saved on my MacBook stopped working. All the icons I had once placed on my dock disappeared and my settings were changed. Some of the programs I had previously downloaded were no longer available and I lost all

  • My Itunes ID has been disabled how do I get it back?

    My Itunes ID has been disabled. How do I get it working again?

  • Display Repeated Values in a Crosstab - Design Studio 1.2

    I've a report in Design Studio from a Bex query. There are repeated values in few columns which Design Studio 1.2 refuses to display. note: I've already unchecked the box "Hide Repeated Key Values" in the query properties of Bex query designer and i'

  • Can I receive emails for different BT addresses in...

    I have several BT Yahoo email addresses but is it correct I can only view each email sent to me by logging in each time to the seperate account windows.  I ideally would like to have, after logging in for instance to my main account, to have one rece

  • Problem about XML?

    Hello:     Now I am creating blog using the XML like as the blog in SDN. In the bolg publishing interface of the SDN ,there is a tpoics list ,in this list you can select single or multiples. I find the <u><b>XFList</b></u> in the Function Bar.My prob