How to separate two fields in Text element of Smartform??

Hi,
I am trying to separate two fields by a space, for example &WA_ACC-G_L_ACCT& &GV_ACCT_TXT&, but evry time I save the smartform the space disappears and output is continous like 56000Product Materials.
The desired Output I am looking for is something like 
56000  Product Materials.
How do I do this ??
Thanks

Hi ,
  U can try what Narendra has said ,if u are not able achieve then do this :
Create constant c_space type char1 value space
and try printing it between ur variables, ur problem is solved this way
Reward if u find it useful
Regards
Sapsurfer

Similar Messages

  • How to change the font size of text element in smartform

    Hi
    i want to know how to change the font size of text element in smartform
    regards
    Gincy

    Hi
    You can create Smartstyles, in which you can define paragraph formats for texts and character formats for character level changes.
    Paragraph format ---> alignment, font size etc
    character format for ---> superscript, subscript.
    After creating, in your smartform, there will be a option in the text element to enter a style.
    You give the created style and you can use the paragraph and character formats i that style.
    Hope this is clear..
    Regards
    Sekar

  • How to Customize the Web item " Text Elements"in WAD

    Hi All,
    Can any one let me know how to customize the web item TEXT ELEMENTS. When we place the web item Text element in the web template, it displays the query details and the info provider details.
    I question is I do not want to list all the list that is displayed in the text elements. I want to see only part of the list....can any one whether this is possible or not..if possible how...?
    Thanks in Advance,
    Hash

    yes you need to specify the variable name
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TEXTELEMENTS_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value="BORDER"/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="SHOW_COMMON_ELEMENTS" value=""/>
            <b> <param name="ELEMENT_TYPE_1" value="VARIABLE"/>
             <param name="ELEMENT_NAME_1" value="0H_CCTR"/></b>         ITEM:            TEXTELEMENTS_1
    </object>
    Regards
    Raja

  • How to change general attribute of text element

    hi
    who now how to change general attribute of text element on screen dinamically? I wish to change text value dinamically for example.

    Hi Denis,
    I am not too sure on what you want.
    If you require that the text value be different based on some conditions you can declare as many text elements as conditions and call the relevant text element.
    But I dont think that you can assign dynamic texts to a single text element.
    Regards,
    Saurabh

  • VL01NO : how to add two fields

    Hi,
    Is there any possibility to add two fields (Format text) for Tcode : VL01NO because i want to enter two other informations ?
    Please help
    Regards.

    Hi jehade el aoumari  ,
    We can add the fields with the help of screen exits (BAdis) provided that , SAP has giving the feature to add to this particular transaction. This is work of ABAPer and they will add the fields , and they will popullate the appropriate database table as well.
    But pls tell me what exactly is your requirement so that we will let you know whether the option is available or not.
    Regards,
    Vvieks

  • How to separate two contact with same name

    Hi, anyone knows how to separate two contacts with same name in Contacts?  Actually they are two persons from two gmail contacts with same name but different contact numbers, different emails....etc, but Contacts assume they are same person and merge them as one!

    FG,
    In Lion, you have the File > Duplicate option. You will then have two copies of your document open, and the one on top will have the temporary filename "OriginalFileName copy", and your next responsibility is to File > Save (or Command-S) and rename the duplicate. At this point, you edit the copy's name, to perhaps ...copy 1, or whatever you wish. The document you had open when you initiated the File > Duplicate will still be there on your screen, waiting for you to Close it or continue editing.
    Jerry

  • Text element in smartforms

    Hi guys,
    What is the use of text elements in smartforms? I am getting confused. For texts, we generally use text modules rite? So what is the difference between the two. Wehn am i to use text element and when am i to choose text module. Please explain me in detail
    Regards,
    Prem

    Hi,
    Text Elements (locally in form)
    To include data from the form interface (data from application tables) or system data (date, time) into the text, use system fields or user-defined fields in the text When processing the form, SAP Smart Forms replaces these fields with the corresponding values
    Text Modules (for reusing texts)
    You can use text modules to store texts that frequently appear in your forms which is stored centrally in the system. This detaches text maintenance from form maintenance, with the result that you do not need to call the Form Builder to edit individual texts.

  • How to LINK two or more Text Field

    I have already asked once to get help with creating a link between two text fields (two fields created with a text tool) so that when text reached the end of one text field it will simply go into another. The given explanation was not specific enough. If you know how to do this and are willing to help, would you PLEASE give me SPECIFIC instructions, step-by-step on how this is done. Please do not assume that I have worked with the Adobe Acrobat program all my life. Thanks :)

    Stevan,
    It's almost laughable that I should give instructions since I know very little about JavaScript, but here goes . . .
    Be sure to follow George's instruction precisely. Make three text fields, which I'll call Text1, Text2, and Text 3.
    1) For the first text field, in the Options tab, remove Multi-line and remove Scroll long text. In the Format tab, in Custom Keystroke Script, click the Edit button, and enter the following:
    var t1=this.getField ("Text1");
    if (event.fieldFull)
    getField("Text2").setFocus();
    2) For the second text field, in the Options tab, remove Multi-line and remove Scroll long text. In the Format tab, in Custom Keystroke Script, click the Edit button, and enter the following:
    var t2=this.getField ("Text2");
    if (event.fieldFull)
    getField("Text3").setFocus();
    Click the Hand tool and start entering text in the first text field. When you run out of space in the first text field it should flow to the second text field and then to the third.
    As noted in my previous message of October 7, 8:05, there are some very severe limitations to this technique which I've not been able to overcome. I was hoping that George might have a suggestion to offer about the limitations, but since we haven't heard from him, maybe there are no workarounds for the limitations.

  • How to call new window and text element without changing print program

    Hi Friends,
       I have requirement like this . i have a standard print prog and custom form. i want add 2 to 3 extra windows in the form and i have to print some data. but how can v do this with out changing the print program. i know that to pick new fields through subroutines. but how can v call new windows and new text elements with out changing the print program.
    usually in the print program we write as follows.
    write_form
    window = 'HEADER'
    textelemtn = 'HEADER'
    can we accomplish this one also through subroutines or any other way is there.
    can any one pls suggest this.
    Thanks in advance.
    Rahul

    u  copy the standard print program and make custom program.
    write your own codes in it.
    assign this program in the place of standard print program.
    Reward points, if helpful.

  • How to find out all the text elements in the report using Java?

    How to trace the contents of an rpt file?
    I am able to open the rpt file in my report viewer but can not trace it using the JAVA code.
    Actually, I need to find out all the text elements of rpt (Report) file and replace them with the contents of resource bundle.
    My Java code to open a report is given below:
    import com.crystaldecisions.reports.sdk.ISubreportClientDocument;
    import com.crystaldecisions.reports.sdk.ParameterFieldController;
    import com.crystaldecisions.reports.sdk.ReportClientDocument;
    import com.crystaldecisions.sdk.occa.report.data.ConnectionInfo;
    import com.crystaldecisions.sdk.occa.report.data.ConnectionInfos;
    import com.crystaldecisions.sdk.occa.report.data.Fields;
    import com.crystaldecisions.sdk.occa.report.data.IConnectionInfo;
    import com.crystaldecisions.sdk.occa.report.data.ParameterField;
    import com.crystaldecisions.sdk.occa.report.data.ParameterFieldDiscreteValue;
    import com.crystaldecisions.sdk.occa.report.data.Values;
    import com.crystaldecisions.sdk.occa.report.lib.IStrings;
    import com.crystaldecisions.sdk.occa.report.lib.PropertyBag;
    import com.crystaldecisions.sdk.occa.report.lib.PropertyBagHelper;
    import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;
    import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;
    public String viewRpt()
                   //1.) Setting Database Infos
                            IConnectionInfo iConnectionInfoObj=setDatabaseConnectionInfos();
                   //2.) Setting Report Path
                   String reportPath=u201DE:
    was60
    rptFilesLocation
    u201D;
                   reportPath=(reportPath!=null)?                                             reportPath:AppConstants.CONSTANTS.BLANK;
                   String reportName="report1.rpt";
                   String reportFullPath = reportPath +   rptName;
                 //3.) Setting Report Source
                             ReportClientDocument reportClientDoc = new ReportClientDocument();
                                              reportClientDoc.open(reportPath, 0);
                  IReportSource reportSource = reportClientDoc.getReportSource();
                  setReportSource(reportSource);
                  reportClientDoc.close();
              //4.) Setting the Fields Starts
              setFieldsCrystal(null);
              Fields fields = new Fields();
              ParameterField pfield1 = new ParameterField();
              Values vals1 = new Values();
              ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue();
              pfield1.setName("@parameter1");
              pfieldDV1.setValue(u201Cvalue1u201D);
              vals1.add(pfieldDV1);
              pfield1.setCurrentValues(vals1);
              fields.add(pfield1);
              pfield1 = new ParameterField();
              vals1 = new Values();
              pfieldDV1 = new ParameterFieldDiscreteValue();
              pfield1.setName("@parameter2");
              pfieldDV1.setValue(u201Cvalue2u201D);
              vals1.add(pfieldDV1);
              pfield1.setCurrentValues(vals1);
              fields.add(pfield1);
              setFieldsCrystal(fields);
              //Setting the Fields Ends
    The sample jsp code to view the report is as follows:
    <%@taglib uri="http://www.businessobjects.com/jsf/crystalreportsviewers"
         prefix="bocrv"%>
    <bocrv:reportPageViewer viewerName="CrystalViewer"
                                                 reportSource="#{CrystalReportBeanObject.reportSource}"
                                                 displayToolbarRefreshButton="false"
                                                 allowDatabaseLogonPrompting="false"
                                                 allowParameterPrompting="false"
                                                 databaseLogonInfos="#{CrystalReportBeanObject.connectionInfosCrystal}"
                                                 parameterFields="#{CrystalReportBeanObject.fieldsCrystal}"
                                                 displayGroupTree="false" displayToolbarLogo="false"
                                                 displayToolbarToggleTreeButton="false"
                                                 enablePageToGrow="false" height="540"
                                                 zoomPercentage="100" width="750"
                                                 allowDrillDown="false"
                                                 displayToolbarPrintButton="true"
                                                 printMode="PDF"
                                                 ></bocrv:reportPageViewer>
    Edited by: JayKumarSharma on Mar 23, 2011 12:42 PM

    This is how you retrieve all the text fields in the reort:
    ReportObjects reportObjects = (ITextObject) oReportClientDocument.getReportDefController().getReportObjectController().getReportObjectsByKind(ReportObjectKind.text);
    for(int i=0; i< reportObjects.size();i++)
    ITextObject textObject = (ITextObject)reportObjects.get(i);
    // use ReportObjectController to modify the text object.
    If you want to modify the contents of the text element, you can do it as follows:
    TextObject oTextObject = new TextObject();
    Paragraphs oParagraphs = new Paragraphs();
    Paragraph oParagraph = new Paragraph();
    ParagraphElements oParagraphElements = new ParagraphElements();
    ParagraphTextElement oParagraphTextElement = new ParagraphTextElement();
    oParagraphTextElement.setText("This is the new text field");
    oParagraphTextElement.setKind(ParagraphElementKind.text);
    oReportClientDocument.getReportDefController().getReportObjectController().modify(textObject, oTextObject);
    oReportClientDocument.save();

  • Remove extra space value of the field  in text element

    Dear All,
    Can any one please help me out to remove the blank spaces in the text elements of SF.
    we are printing Label in which i want print  quantity of material. and i am using MSEG-MENGE for quantity of maetrial.
    But the issues is when we are printing the label. We are getting spaces  in the Text elements fields &MSEG-MENGE&.
    i am also check menge field within mseg table. in which menge field define as QUAN data type with length 13.
    <
    MAT CODE:&t_MSEG-MATNR&
    DESC:&MAKTX&
    QTY:&t_MSEG-MENGE&          
    UOM:&t_MSEG-MEINS&
    >
    My Output in SF:
    MAT CODE:11000002
    DESC:Coarse Aggregate 10mm Sieve
    QTY:             960
    UOM:LBM
    MIGO.NO.:4900000025
    how to remove extra blank spaces in the text elements ( QTY:             960 )
    guide me.........

    Dear All,
    I am using  code block in SF before text element.
    In  The Text Element ...
    <
    MAT CODE:&t_MSEG-MATNR&
    DESC:&MAKTX&
    QTY:&t_MSEG-MENGE&
    UOM:&t_MSEG-MEINS&
    MIGO.NO.:&t_MSEG-MBLNR&
    PO.NO.:&t_MSEG-EBELN&
    LOCATION:&t_MSEG-WERK&&NAME1&
    >
    In programe Line ( code block )....
    <
    read table t_mseg index w_index.
    qty = t_mseg-menge.
    condense qty.
    SELECT SINGLE name1 FROM t001w INTO name1 WHERE werks = t_mseg-werks.
    SELECT SINGLE maktx FROM makt INTO maktx WHERE matnr = t_mseg-matnr.
    >
    My Output:
    MAT CODE:11000002
    DESC:Coarse Aggregate 10mm Sieve
    QTY:                                                      960
    UOM:LBM
    MIGO.NO.:4900000025
    Only problem in value of Quantity field .
    guide me.........

  • How to separate two mixed things in Disc report

    Hi ,
    does anybody know how to separate job numbers in Disc report . I did a sorting and gave totals by all other fields but a main job have three diff jobcodes where two of them has to be in one group and third one needs to be separated to see the total amount spend on that job . Can anybody pls help me on this .
    Thanks
    Shruthi

    Hi,
    If you have this grouping in many reports then you should consider putting the grouping calculation in a folder in the EUL.
    You can sort the report using this calculation and set the sort type to be "Hidden" so that the calculation does not show in the report.
    Rod West

  • Awk: how to separate a field?

    Hello!
    Instead of having one awk field for date and time I wanna seperate them in two. I think the easiest would be to replace in every row the eleventh character by a space or tab. Just don't know how to do it.
    2008/03/01/00:00:00 -28.8748 +32.6493
    Thanks in advance
    Bastian

    Your question is somewhat leading because if you're already using awk you may have to integrate the rule into an existing workflow.
    That said, the simplest way to replace the 11th character with a space would be:
    awk '{print substr($0,1,10)" "substr($0,12,$NF)}'
    This takes $0 (the input string) and prints the first 10 characters followed by a space followed by characters 12 through the end.
    Another approach would be to use field delimiters - useful if the date format varies (e.g. uses single digit months):
    awk -F/ '{print $1"/"$2"/"$3" "$4}'
    In this model the input string is broken into fields based on the character /
    then it prints the first two fields followed by a / then the third field followed by a space, and finally the fourth field (or in this case, remaining text).
    There are countless other methods, too including sprintf.

  • How to subtract two fields

    Hi,
    All,
    I want to calculate balence quota. by usingdifference of  two fields.   ITAB-ANZHL and ITAB-ABWTG .
    . i have taken a variable A FOR balence Quota. in itab i have defined A TYPE C,  in field catalog i have written
    'A'    'ITAB'   'BALENCE QUOTA'. so how need to perform coding for calcualte balence quota.
    A is for balence quota.
    Thanks,
    Regards,
    Saurabh

    DATA : BEGIN OF ITAB OCCURS 0 ,
           PERNR LIKE PA2006-PERNR,
           KTART LIKE PA2006-KTART,
           KTEXT LIKE T556B-KTEXT,
           ANZHL LIKE PA2006-ANZHL, " Quota number
           BEGDA LIKE PA2006-BEGDA,
           ENDDA LIKE PA2006-ENDDA,
           KVERB LIKE PA2006-KVERB,
           AWART LIKE PA2001-AWART,
           ATEXT LIKE T554T-ATEXT,
           STDAZ LIKE PA2001-STDAZ,
           ABWTG LIKE PA2001-ABWTG,
           KALTG LIKE PA2001-KALTG,
           A TYPE I,
          END OF ITAB.
          DATA : B TYPE I.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : PERNR FOR  PA2006-PERNR NO-EXTENSION NO INTERVALS .
    SELECT-OPTIONS : BEGDA FOR  PA2006-BEGDA NO-EXTENSION NO INTERVALS.
    SELECT-OPTIONS : ENDDA FOR  PA2006-ENDDA NO-EXTENSION NO INTERVALS.
    SELECTION-SCREEN : END OF BLOCK B1.
    'PERNR'  'ITAB'  'Personnel no',
    *'GJAHR'  'ITAB'  'Year',
    'KTART'  'ITAB'  'Absence Quota type',
    'KTEXT'  'ITAB'  'Text',
    'ANZHL'  'ITAB'  'Quota Number',
    'KVERB'  'ITAB'  'Quota Deduction',
    'BEGDA'  'ITAB'  'Start',
    'ENDDA'  'ITAB'  'T0',
    'AWART'  'ITAB'  'Absence Quota Type',
    'ATEXT'  'ITAB'  'Text',
    'STDAZ'  'ITAB'  'Absence hours',
    'ABWTG'  'ITAB'  'Absence Days',
    'KALTG'  'ITAB'  'Calender Days',
    'ABWTG' 'ITAB'   'Quota Used',
    'A'      'ITAB'  'Balence Quota'.
    SELECT   M1~PERNR
             M1~KTART
             M1~ANZHL
             M1~BEGDA
             M1~ENDDA
             M1~KVERB
             M2~AWART
             M2~STDAZ
             M2~ABWTG
             M2~KALTG  INTO CORRESPONDING FIELDS OF TABLE ITAB
                       FROM PA2006 AS M1
                       INNER JOIN PA2001 AS M2
                       ON M1PERNR = M2PERNR
                         AND M1BEGDA = M2BEGDA
                         AND M1ENDDA = M2ENDDA
                       WHERE M1~PERNR IN PERNR AND
                             M1~BEGDA IN BEGDA AND
                             M1~ENDDA IN ENDDA .
         IF SY-SUBRC <> 0 .
         MESSAGE 'DATA NOT FOUND' TYPE 'W' .
         ENDIF .
    LOOP AT ITAB .
    SELECT SINGLE KTEXT FROM T556B INTO (ITAB-KTEXT)  WHERE KTART = ITAB-KTART.
    SELECT SINGLE ATEXT FROM T554T INTO (ITAB-ATEXT) WHERE AWART = ITAB-AWART.
    MODIFY ITAB INDEX SY-TABIX TRANSPORTING KTEXT ATEXT.
    ENDLOOP.

  • How to remove  'Empty Demarcation'  in Text Elements.

    Dear All,
    To remove 'Empty demarcation' in the WAD output, I had modified the standard program - SAPLRSSV (for this i took  access key from SAP). 
    The text element : 301 was changed to blank  and it worked.
    Recently we had a support package upgrade to SAPKW70018. With this upgrade my previous change to the program got reverted back and so i need to do the change again.
    However,  I'm not able to retrieve the list of Text elements for this program (SAPLRSSV). I open the program and when i go to Text element,  following message is displayed :
    "Untranslated texts from master language DE will  also be displayed"
    But no list (no text elements) is displayed.
    My question : How do i retrieve this list  and can i use the same acess key again or do i need to take another one from SAP.
    Regards,
    Nagendra.

    Sorry, I was referring to the incorrect program SAPLRSSV instead of SAPLRRSV.  The problem has been resolved.
    Regards,
    Nagendra.

Maybe you are looking for

  • How do I get a podcast on iTunes to show up on my iPhone?

    I listen to a podcast on a website but now that I have an iPhone, I'd like to able to listen to that podcast on my iPhone but I'm unable to. That particular radio station has apps to listen to the podcast for Blackberry and Androids, but not the iPho

  • How can I determine where to publish each comment in my website?

    How can I determine where to publish each comment in my website? I have one form for the comments, but I want to show them in different webpages depending on the user choice for example, I created 6 pages blue circle, pink circle,  green circle, blue

  • How to uoload the material in BPX

    Hi there ,              How can I upload the material that I have prepared in BPX...... Please advice me Regards Kaushik

  • HOW CAN I START ALL OVER WITH iCHAT???

    this is my 1st macbook. it is a refurbished laptop. it has snow leopard. i tried to set up an ichat account but it didnt complete the process. can i just start all over again??? with a new name, password, everything??? (for ichat)? i cant remember th

  • Hierarchy Level value displayed in BEx Query

    Is there a way to display the Hierarchy Level value (0, 1, 2, etc...) associated with each hierarchy level in BEx Query as a characteristic? we are currently using the Crystal Reports function HierarchyLevel(GroupingLevel(GL Account Node id)) to disp