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

Similar Messages

  • How to write source code in smart forms?

    hi friends,
    can anyone can help me in writing  sorcecode in smartforms r
    any materail link.
    if it is helpful points can b rewarded.Thanks in advance.

    Hi,
    Check this link for
    how to write source code in smart forms?
    http://****************/Tutorials/Smartforms/GettingStarted/SimpleText.htm
    You can write Source Code in smartforms By Choosing Program Lines.
    Check this link with Screen Shots
    http://****************/Tutorials/Smartforms/PO/page1.htm
    Reward All Helpfull Answers
    Regards
    Fareedas
    Edited by: Fareeda Tabassum S on May 21, 2008 3:09 PM

  • 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 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

  • Print Bar code in Smart form

    Hi,
      Can you pls tell me how to print bar code in smart form?

    Hi,
    You create a bar code or change a bar code in the font maintenance transaction (transaction SE73). To do this, proceed as follows:
    &#9675; Start transaction SE73, and choose System Bar Codes ® Change.
    &#9675; If you create a bar code, the system asks whether you want to use the new bar code technology or traditional system bar codes. Choose New.
    You can enter a name and a description for the bar code. Note that the name must begin with a Zto avoid conflict between your bar codes and the standard bar codes.
    2. If you have created a new bar code, you must now add this to a Smart Style as a character format. For information about this, see the section Maintenance of Styles with the Style Builder and its subsections in the Smart Forms documentation.
    If you have only changed the bar code, continue with the next step.
    3. You can now select text in Smart Forms and choose the corresponding style with the bar code as the character format for this text.
    4. You can then print the bar code.
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=10581664&messageID=3321556
    Check the pdf below..
    http://www.sap-press.com/downloads/h955_preview.pdf
    Regards
    Kiran
    Edited by: Kiran Sure(skk) on Apr 10, 2008 11:01 AM

  • 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

  • How to print BAR code in SMART Form

    Hi All,
    I have the requirement to print BAR CODE in Smartforms.
    For this, I create a character format with Bar code in style forms and create a text element in Smart form and associate bar code character format with this text element.
    Now when I look the print preview for the data, then it shows me data in bar code format but not in right format i.e. its shows me all the similar block in bar code.
    If you look the bar code in SAP script, its always show you bar code with similar block, but in SMART FORM it will show you exact bar code; as in SAP Script, bar code is generated at printer end and in SMARTFORM bar code is generated as graphic in SAP and then sent to printer for print.
    PLease let me know, why in SMARTFORM its not showing BAR CODE in correct format in print preview.
    Thanks
    Piyush Mathur

    Hi,
    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Detailed information about SAP Barcodes
    A barcode solution consists of the following:
    - a barcode printer
    - a barcode reader
    - a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    reward if useful
    regards,
    ANJI

  • 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

  • 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

  • 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

  • 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.

  • It is possible to writing vertically in script/smart forms

    I am trying to write vertically in script,
    how to write in script
    then how to draw vertical line in script?
    I try to draw vertical line / box
    my code is, 
    &vline(10)&
    bt it appered
    I I I I I I I I I I
    Thanks,
    Vino

    Hi Vino,
    The only way I can see to place text like this is to write it as invidual characters on each line like you have done above. Perpahs you canj use tab stops to place the characters on each line for alignment.
    There are commands to rotate text but this will not give the result you require.
    Regards,
    Aidan

  • Bar codes in Smart Forms

    Hello,
    Maybe anyone could provide short guidance how to create SmartForm for fixed assets barcode labeling?

    hi,
    You need to use a SMARTSTYLE and create a CHAR format and create a BAR Code there and use it in the Smartform.
    If you need more info, goto Transaction : SMARTSYLES, do an F4 and in the text area, look for Bar Codes. And see how these Styles are used in the Smartforms.
    If somehow you can't preview it properly and the printout didn't show any barcode at all..
    First try to use Standard Barcodes like TYPNR or RSNUM etc in the charcter format...
    You can preview the output at any moment IF YOU USE THE CORRECT BARCODE FORMAT.
    But printer should support barcode printing for taking printout. Otherwise in printout it will print junk values...
    If you want to print bar codes from R/3 using device type HPLJ4, HPLJ5, HPLJ5SI or HPLJ4000 on HP LaserJet 4, 5, 6 or 4000 series printers, you need what is known as a SIMM module (IC card). This SIMM module is called "JetCAPS Intelligent Barcode SIMM" and can be obtained for most HP LaserJet 4, 5, 6 and Laser Jet 4000 printers. For more detailed information regarding barcode printers refer to Notes 5196, 121305, 119471
    Hope this helps.
    PLZ reward Points if helpful.

  • Error during running of Smart Form of Packing list.

    Hi,
    I am working on packing list using the standard program.
    while writing the code in smart-form i am using the SALES_UNIT field of IT_GEN.
    but it is giving the error as follows.
    *The data object "IS_DLV_DELNOTE" does not have a component called "IT_GEN-SALES_UNIT".*
    I have declared IS_DLV_DELNOTE as ledlv_delnote in Form Interface of smartform.
    Please help me in above issue.

    Hi
    The structure LEDLV_DELNOTE is having the IT_GEN
    if you  are using it for delivery then use the above structure
    Regards
    Shiva

Maybe you are looking for

  • Cisco Jabber for Mac - Directory Lookup and Contact Fields

    Hello, After having issues myself with Cisco Jabber for Mac 9.2 specifically with Active Directory lookups not working, or contact information not populating (and therefore not being able to call users from the contact list as no telephone informatio

  • If I change my Apple ID on my IPOD, will I lost my existing settings and game progress?

    I linked two IPODs to the same apple id and have been using them that way for a few months.  When I download something on one, and it shows up on the other.  Each ipod seems to have its own game prefs stored locally, but we cannot play multi-player g

  • 11.5.10 Installation error on win2003 enterprise server with AMD sampron

    Hardware : AMD sempron 2200+ processor with MSI mother board, 120 gb hdd (Baracoda) , 256 mb ram. Software : windows 2003 server enterprise edition. Installation Reqiurements for ora apps 11i. completed and checked. Error showed at step 2 of 5. while

  • Problems with my New A6000

    Recently got this phone and face a couple of problems: a) Import of messages from my earlier android (via the Backup messages) doesn't yield i.e. none of the older messages get imported to the new phone. b) Have been trying in vain to get Whatsapp ru

  • Creating standby database through Grid Control.

    Hi, I want to know if source database which we term as primary database goes down during Db creation process when given option of "Perform a live backup of primary database" during Add standby wizard in Grid Control. Please let me know if people have