SAPScript: How to combine two text in the same line?

Dear Gurus,
I have a case to combine hard code text and long text in the same line.
For example, i need to display following line:
'Project name:' <long_text>
How to do it in SAPScript?
Can we do it with following code?
/: 'Project name: ' INCLUDE Z_TEST OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS&
Thanks & Regards,
Ari

Hi,
    You can achieve that by this method,
Goto Tcode SO10
Give the Object Name 'Z_TEST' & Id
See the Paragraph format for the Text,  you can do it from Menu
Format>Line . If it is /: change it to =.  Save
Now in the SAPScript Text editor in which you want to print
P1 'Project Name :'
/: INCLUDE Z_TEST OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS&
the output will be
Project name : Abc xyz
Regards
Bala Krishna.
Edited by: Bala Krishna on Oct 17, 2008 7:11 PM

Similar Messages

  • How to get two parameters in the same line of selection screen?

    hello
    i need to get my selection csreen like bellow.
    r1 radiobuttion  -some space --p1 parameter
    i should not get the parameter in the next line of  radiobuttion.
    how to get two parameters in the same line of selection screen?

    hi....
    modify the following code
    it will work
    SELECTION-SCREEN BEGIN OF BLOCK SL1 WITH FRAME TITLE TEXT-003.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 10(15) TEXT-001
                     FOR FIELD P1.
    SELECTION-SCREEN POSITION POS_LOW.
    PARAMETERS : P1 TYPE   C USER-COMMAND R2 RADIOBUTTON GROUP R2 DEFAULT 'X',
      P2 TYPE SCARR-CARRNAME,
      P3 TYPE CHAR1 RADIOBUTTON GROUP R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK SL1.

  • How to write two item in the same line?

    In the smartforms,how to write two item in the same line?
    eg
    1   *************                                    2  *****************
    3  **************                                   4  ******************
    5  ***************
    Anyone got any idea to do this.
    Thanks in advance

    Hi,
    In the smartform the main windows is 20cm.I use the table output my data.Because the output is two item in same line,I define two rows in the table line type.
    Question:
    Should I define the table width 20cm?
    In the main area of table , should I define two folders and each of folder include a line? The second item I had already defined as Append Directly,but the item 1 and item 2 don't in the same line.
    Regards

  • How do I put text on the same line in CSS?

    Ok, I am placed three images on the page, and I like to have before, during, after underneath each images, and on the same line, I did the text-align:right and all that, but it keeps on putting the text on line below. Here is my CSS and html.Thanks!
    #small-box-container #bottom1{
        width: 600px;
        height: 130px;
        background-image:  url(../../../graphic%20design/website_sijiewang1/sijie/images/deck_before_sm.jpg);
        background-repeat: no-repeat;
        margin-top: 90px;
        margin-left: 50px;
    #textbox 1 {
        font-size: 14px;
        font-family: Arial, Helvetica, sans-serif;
        width: 200px;
        height: 100px;
    #small-box-container #bottom2{
        width: 439px;
        height: 130px;
        background-image: url(../../../graphic%20design/website_sijiewang1/sijie/images/deck_during_sm.jpg);
        background-repeat: no-repeat;
        margin-left: 180px;
    #small-box-container #bottom3{
        width: 439px;
        height: 130px;
        background-image: url(../../../graphic%20design/website_sijiewang1/sijie/images/deck_after_sm.jpg);
        background-repeat: no-repeat;
        margin-left: 180px;
    <div id="bottom1">
                     <div id="bottom2"> 
                    <div id="bottom3"></div>
                    <div id="textbox1"div style="clear: both;"></div>
                    <p style="text-align:left">Before</p>
                      <p style="text-align:center">During</p>
                      <p style="text-align:right">After</p> </div>
    </div>

    I might have mis-read this but do you want the three images in a row, next to one another? Then the text lined up under each image?
    If so the code below will do this. Just one point the images are wide 600px plus 2 x 439px.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    #small-box-container {
    width: 1478px;
    #small-box-container p {
    margin: 0;
    padding: 135px 0 0 0;
    #small-box-container #bottom1{
    float: left;
        width: 600px;
        height: 130px;
        background-image:  url(../../../graphic%20design/website_sijiewang1/sijie/images/deck_be fore_sm.jpg);
        background-repeat: no-repeat;
    #small-box-container #bottom2{
    float: left;
        width: 439px;
        height: 130px;
        background-image: url(../../../graphic%20design/website_sijiewang1/sijie/images/deck_du ring_sm.jpg);
        background-repeat: no-repeat;
    #small-box-container #bottom3{
    float: left;
        width: 439px;
        height: 130px;
        background-image: url(../../../graphic%20design/website_sijiewang1/sijie/images/deck_af ter_sm.jpg);
        background-repeat: no-repeat;
    }</style>
    </head>
    <body>
    <div id="small-box-container">
    <div id="bottom1">
    <p>Before</p>
    </div>
    <div id="bottom2">
    <p>During</p>
    </div>
    <div id="bottom3">
    <p>After</p>
    </div>
    </div> <!-- end small-box-container -->
    </body>
    </html>

  • How to get the Hardcoded text and the Standard text in the same line

    Hi,
    I have an SAP Layout. In that, it should show the Consignee name as below.
         Consignee: SAP LABS
    In this, the text 'Consignee: ' should be hardcoded in the layout itself. and the customer has requested to create a standard text for 'SAP LABS' sothat if they want to change the value in future, they would go and change the Standard text. I have created the Standard Text for SAP LABS. I am not able to get both these texts on the same line. I wrote in the layout like below and AS is the Paragraph format.
    AS     Consignee:
    /:        INCLUDE ZVRU_CONSIGNEE OBJECT TEXT ID ST LANGUAGE EN PARAGRAPH 'AS'
    But, both are coming in dofferent lines. As /: is a command line, it is coming in the next line. Is there any way of getting these two texts in the same line..? While Inserting the Standard Texts, will there be any option/command to print it in the same line..?
    Please share your thoughts. Thanks in advance.
    Thanks & Regards,
    Paddu.

    Hi Paddu,
    I have had a similar requirement. I did not use any FM or anything, simply did the following:
    In  SO10, for your standard text where u have used the text SAP LABS.
    Instead of P1/ default para, change it to =. And then Save ur Standrd text.
    Now in the SAPScript Text editor in which you want to print
    P1 'Consignee :'
    /: INCLUDE TEST OBJECT TEXT ID ST LANGUAGE EN
    the output will be
    Consignee : SAP LABS
    I have tried and tested this method. It will surely work.
    With regards,
    Niharika.

  • HOW TO PUT TWO PANNEL IN THE SAME PAGE

    HI ALL
    I NEED TO KNOW HOW TO PUT TWO PANNEL IN THE SAME PAGE TO FULLY UTILIZE FULL PAGE AREA BECAUSE THE PANNEL WIDTH IS TOO SMALL , SO I WANT TO MAKE THE PAPER CONTAIN TO PANNELS VERTICALLY.
    THANK YOU

    So Barb,
    I like to use multiple desktops and move back and forth between then using gestures. At the moment I have 5 open: Chrome, Firefox, Safari, Photoshop CS 6 and a desktop. I use "gestures" to navigate between them:
    Mac Basics: Multi-Touch gestures - Apple Support
    and I use Mission Control (F3) to move the various desktops around in the order I want them.
    Mac Basics: Mission Control - Apple Support
    So say I'm searching for a photo to open in CS 6, I find it on the open desktop then hit select "open" in CS 6 and go to that folder in the select pane.
    Even right now I'm typing this in Safari and "gesturing" back to Chrome where I did the search about multi touch and mission control. I drag copy the URL there  and gestured back here to paste the URL into this text.
    If you did a lot of photo searches, I set professional clients of mine in Chicago up with dual monitors (In this case you'd have an external monitor on extended desktop.). So all you need to do is just glance over at the second monitor slide your cursor over there open stuff up find your photo and go back to Photoshop and open it up.
    Hope this helps.

  • How to run two query  in the same preparedStatement

    Hi all,
    Please tell me how to run two queries in the same preparedStatement object ?
    In my module I have to run two queries and I don't want to make two methods for running two different queries.
    I just want to call this method for both of my queries.
    methodName(long param)
    Connection conn=null;
    PreparedStatement pstmt=null;
    //////////////// some coding
    Please Help !
    Thanks in advance
    amitindia

        public void foo()
            Connection connection = null;
            PreparedStatement stmt = null;
            try {
                connection = ...get from pool...;
                stmt = connection.prepareStatement("...");
                ...fetch results...;
                stmt.close();
                stmt = null; // So the finally statement works if there is an exception
                stmt = connection.prepareStatement("...");
                ...fetch results...;
            } finally {
                if (stmt != null) ..close it...;
                if (connection != null) ..return it to pool...;
        }

  • How to align output formatted and output text in the same line?

    Hi All,
    I want an output formatted label and a text on the same line,. I've surrounded these components wth a panel form layout and they automatically align one below the other. how do I kepe them in the same line?
    Thanks.

    Try as per the code snippet below:
    <af:document title="TestPage.jspx" id="d1">
    <af:messages id="m1" inline="true"/>
    <af:form id="f1">
    *<af:panelGroupLayout id="pgl1" layout="horizontal">*
    *<af:outputFormatted value="outputFormatted1" id="of1"/>*
    *<h:outputText value="outputText1" id="ot1"/>*
    *</af:panelGroupLayout>*
    </af:form>
    </af:document>
    Thanks,
    Navaneeth

  • How to select two things at the same time ?

    Hey guys, i'm French and I need your help !
    I'm working everyday on iWork and especially Pages.
    How to select two parts of a text at the same time ?
    Before we only need to select one, to press the "cmd" button and then to select another part. It doesn't work anymore!
    Thanks for you help
    and sorry for the mistakes !

    Hey guys, i'm French and I need your help !
    I'm working everyday on iWork and especially Pages.
    How to select two parts of a text at the same time ?
    Before we only need to select one, to press the "cmd" button and then to select another part. It doesn't work anymore!
    Thanks for you help
    and sorry for the mistakes !

  • How to put two files with the same name into the same folder?

    How can I put two files with the same name and the same extention into the same directory?
    Is this even possible?
    Thanks in advance. 

    Are you sure? I would be very surprised if that was the case.
    How does the computer/filing system differentiate the files, if not by their names?
    How do you tell the computer which one you want? (On the command line.)

  • How to insert  two queries in the same workbook in new BI 7.0 Bex web analy

    Hi
    Can you please advise how to insert multiple queries in the same workbook in BI 7.0 web analyser.
    Sarah

    Hi,
    You need to switch to design mode (BEx Analyser Menu - Design Toolbar - Design Mode). For each query that you want to embed, insert an analysis grid item in the workbook. Link each analysis grid to its corresponding data provider (query).
    Hope this helps.
    Regards,
    Rajkandula

  • SAPscript address name1 and name2 - print on the same line

    I want to print name1 and name2 on the same line in an address on a check. Does anyone know how to do that ? I am usign the ADDRESS SAPscript command.

    The ADDRESS command allows you to format according to different countries postal formats. If you want to put two lines in one, I don't think you can use the ADDRESS command, but will have to format it yourself.
    Rob

  • Two fields on the same line in sreen programming

    Hi All,
    I need to create a selection screen which would have two fields (their texts and their irespective input fields) in the same line, on the screen.
    I was able to achieve this by using code--
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-a04.
    PARAMETERS: sch_begd LIKE qppnp-begda.
    SELECTION-SCREEN COMMENT 52(22) text-a05.
    PARAMETERS: sch_endd LIKE qppnp-endda.
    SELECTION-SCREEN END OF LINE.
    This could allign the fields - start date (text-a04) and end date (text-a05) in the same line along with their input fields.
    But I am facing two issues with this code-
    1. I am not able to get the underline same as we get when we create selection screen using 'select-options' and 'parameters'.
    2. This is causing accessibility issues, as the field text and the input field are no more linked (since I am using text element to display the field text, like for start date), it cannot find the text to be read for the input field and hence the checkman errors.
    Please suggest how to achieve the same.
    Thanks and Regards,
    Arpita.

    Hi Arpita,
    Are you trying to have select-option field in your screen in dialog programming?
    If yes than you can use the following approach else ignore this.
    Create one screen (100) and create subscreen area on this screen and call this subscreen in PAI and PBO of screen
    Using call subscreen check F1 help for calling subscreen in PAI and PBO.
    Now you should create your selection screen on the subscreen use selection screen begin of screen (100) option of defining
    selection screen and then add your selection options here.
    Regards,
    Pawan

  • 2 fields with text on the same line

    Hi everyone,
    Could anyone let me know how I can get 2 fields with their text values in the same line. For eg:
    weight ______         unit of weight _____
    i need both of the fields and text to be visible.
    Thanks/
    Message was edited by:
            Raj Kali

    Hi,
    You can use SELECTION-SCREEN BEGIN OF LINE and SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(10) INPUT1.
    PARAMETERS P1 TYPE I.
    SELECTION-SCREEN COMMENT 40(10) INPUT2.
    PARAMETERS P2 TYPE I.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
    INPUT1 = 'FIELD1'.
    INPUT2 = 'FIELD2'.
    Regards,
    Ferry Lianto

  • Sapscript: How to combine two elements into a block when display ?

    /E  ITEM_CONDITIONS
    /:   PROTECT
    ZC &KOMVD-VTEXT&,,&KOMVD-KWERT&
    /:   ENDPROTECT
    /E  TOTAL_AMOUNT_ITEMS
    /:   PROTECT
    ZC &KOMK-SUPOS&
    /:   ENDPROTECT
    Hi, all. May i know how to combine the two elements into a same block when displaying?
    That's mean this two element content will not be split into two part between two pages when there is insufficient space in the front page.
    Thanks.
    Edited by: Jiansi Lim on Oct 8, 2008 12:24 AM

    You can evoke the PROTECT..ENDPROTECT in the print program before the call of the text elements.
          CALL FUNCTION 'CONTROL_FORM'
            EXPORTING
              command = 'PROTECT'.
          CALL FUNCTION 'CONTROL_FORM'
            EXPORTING
              command = 'ENDPROTECT'.

Maybe you are looking for

  • Error while deploying components in Websphere

    Hi am trying to configure LiveCycle 8 on Websphere App Server. I deployed the 3 EARS and initialized the database. But while deploying the components am getting an error. "Failed to connect to LiveCycle Service Container.LiveCycle Service container i

  • K8D Master, NO Printer PORT?

    Does the K8D Master board, with dual CPU support, come with a PRINTER port? It shows one in the book buy a frind of min says his is not there and wanted this asked for him.

  • How do I determine the status of a bug report whose tracking number is 3919162?

    I was given this tracking # by a tech support guy who passed my problem on to the engineering department as a bug. He told me that I could get the status on the 'pre-release forum' but I can't figure out how. Can someone advise? Thanks, Bob

  • Table compare and derive alter script between 2 schemas

    I am in Oracle 10g. We are in need to synchronise table structures between two different database. and execute the alter script in the target database. I have an idea to find the tables which have the table definition changed using all_tab_columns an

  • Best Practices for NCS/PI Server and Application Monitoring question

    Hello, I am deploying a virtual instance of Cisco Prime Infrastructure 1.2 (1.2.1.012) on an ESX infrastructure. This is being deployed in an enterprise enviroment. I have questions around the best practices for moniotring this appliance. I am lookin