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

Similar Messages

  • 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

  • Checkbox and 2 Textbox in the same line

    Hi,
    I am having a problem trying to show one checkbox and two textboxes at the same line,
    the problem is with the text (comment) I want to display for each item.
    when I try to activate or run  the report , I got this error message :
    Error when generating the selection screen "1000"
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN POSITION 1.
      parameters:
      ck1 AS CHECKBOX ,
      p_u  like rlgrap-filename  default 'C:\data\',
      p_ux(9) default '500'.
      "SELECTION-SCREEN COMMENT 4(10) text-c01 for FIELD ck1.
      "SELECTION-SCREEN COMMENT 17(10) text-c02 for FIELD p_u.
      "SELECTION-SCREEN COMMENT 30(10) text-c03 for FIELD p_ux.
       SELECTION-SCREEN end OF LINE.
    I think the problem is with the position of the comment ?
    how to fix this?
    Thanks
    Misbah

    Hi  Misbah ,
    i had faced a similar issue some months ago, following is the solution----->>>
    SELECTION-SCREEN BEGIN OF BLOCK F WITH FRAME TITLE TEXT-014.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(18) text-015.
    PARAMETERS : P_DNR(10) TYPE C.
    SELECTION-SCREEN COMMENT 35(14) text-016.
    PARAMETERS : P_ST  AS CHECKBOX.
    SELECTION-SCREEN COMMENT 56(8) text-017.
    PARAMETERS : P_IC  AS CHECKBOX.
    SELECTION-SCREEN COMMENT 72(14) text-018.
    PARAMETERS : P_CA  AS CHECKBOX.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK F.
    OUTPUT LOOK AS BELOW------>>>>>
    Debit Entry Number  ___________   Stock Transfer [ ]      IC Sales [ ]       Credit Allowed [ ].
    HERE,  Debit Entry Number, Stock Transfer, IC Sales, Credit Allowed are the text sysmbols saved at 015, 016,017 and 018.
    see the above code , the logic is the text stored in text 15 is of length 18.
    after which i print a blank input field i.e the parameter p_dnr which is of length 10.
    so now the next text or field has to be printed at 18 + 10 =  28.
    so 28 or any number more than 28 should be the starting position of the next text or parameter or checkbox  , etc.
    similarly u have to calculate the start position and end position  for all the selection screen variables ur printing in a line .
    if the calculation goes wrong and variables in a line get overlapped on each other , then u get an error message as u r getting now.....something like selection screen error.
    Regards,
    Akash Rana

  • 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 can I combine the nav bar and menu bar on the same line to save space?

    Firefox v29 seems to be a huge step backward in customization. I need to save space for content so previously I turned off tabs and combined the menu bar and nav bar on the same line. The url space is way too long anyway. Now with v29 all my customization is gone and I cannot get it back. I can no longer move items on the nav bar to combine it with the menu bar. Why was this done? It only limits my ability to customize my browser? I am very frustrated that you took a great browser and ruined it.

    I get it that Firefox has changed, but the change is for the worse. It makes it impossible to customize menus as I had before v.29.

  • Is there a way to print over the same line of text?

    Hey everyone, does anyone know if it's possible to write over the same line in a console window? I am formatting a diskette an currently it is going:
    1 percent complete
    2 percent complete
    3 percent complete
    4 percent complete
    5 percent complete
    I am currently doing:
    System.out.println(bufferedReader.readLine());
    to display this .. is there anyway to write over and over on the same line?
    Thanks again.

    I just thought of something!!! Try this:
    System.out.println("When the zeros have printed twenty times the disk has been formatted\n");
    System.out.println("|-----------------------------------|"\n)
    Then add the zeros to the line underneath it as it formats.  This will give a progress bar effect.  The zeros, when completely done, should fill up the whole |---| segment.
    Hope this helps.
    Virum                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How do I customize the toolbars to put the Navigation and Menu toolbars on the SAME line? I want to maximize browser window space on my laptop.

    I want to keep my browser tools very minimalistic so as to maximize the browser window space on my small laptop screen. I only need the navigation and menu toolbars, plus a Google search window. I'd like to put them all on the same line on the toolbar. Right now the navigation toolbar defaults to sit below the menu bar.
    Is there any way to combine them on one line? Thanks.

    I want to keep my browser tools very minimalistic so as to maximize the browser window space on my small laptop screen. I only need the navigation and menu toolbars, plus a Google search window. I'd like to put them all on the same line on the toolbar. Right now the navigation toolbar defaults to sit below the menu bar.
    Is there any way to combine them on one line? Thanks.

  • Column printing on the same line in reports

    guys,
    i have a report with lets say n no. of columns. Now i want to display column 1 and 2 on the same line, i.e without giving a line break (given the fact that my report is page wise and not tabular). Can i do that? If so, then how?
    Any help will be highly appreciated. Kindly reply asap

    Hi Mike,
          Sorry, I should have realized you were using LabVIEW's HTML VIs - and it doesn't look like they provide for Table "Nesting" (at least through 7.1)!
    Here's a couple of VIs that might help you out.  Util.HTML.Table builds the HTML for a table.  SideBySide.vi uses this Util to embed two tables into an HTML Report.
    I whipped these up just for you - so they may need "polishing".  Should you need to fine-tune the table-appearance, I'm afraid you're on your own, though there's lots of help on the web.  Don't worry, HTML is pretty easy - and you'll find a nice HTML resource here. 
    Cheers!
    Message Edited by tbd on 03-05-2007 12:47 AM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    Util.HTML.Table.vi ‏63 KB
    SideBySide.vi ‏68 KB

  • Two address books and two iclouds on the same computer?

    is there any way to have two seperate address books and two iclouds on one computer and/or one ipad2?  i have the icloud synched for the macbook pro, ipad and my iphone 4s, but curious if my wife can have icloud and have seperate calendars and contacts.  i don't want her to get my contacts and calendar synched to her iphone 4s.  thoughts/suggestions anyone?  appreciate it!

    In a similar predicament.  I would like to have my wife set up on her iphone 4s so she can have her own contacts and calendar but updating to the three mac's we have.

  • How can we have a column having text and radio button in the same line?

    Hi,
    I have a column which needs to have data with a radio button. Was able to achieve this by using <trh:tableLayout>. But when i select the radio button it shifts to the next line. Want to stop this behavior of radio button of shifting to the next line. This column also includes a hyperlink.So the text and hyperlink are made visible invisible based on radio button action.
    Adding one more doubt. Can a particular columns horizontalgrid can be made invisible?
    Any help would be appreciated.
    sample code:
    <trh:cellFormat id="cf8" halign="start">
    <af:activeOutputText value="#{row.Actions}" id="aot2"/>
    <af:goLink text="#{row.Actions}" id="gl1"
    clientComponent="true" visible="false"
    targetFrame="_blank" destination="http:// + #{row.BUTTON_URL}">
    </af:goLink>
    <af:selectBooleanRadio text="" id="sbr1">
    <af:clientListener method="selectCheckBox" type="click"/>
    </af:selectBooleanRadio>
    </trh:cellFormat>
    Thanks,
    Nita

    Remove the <trh:> components. Put the other components as direct children of the PanelGroupLayout:
    <af:column id="c2" headerText="Actions">
      <af:panelGroupLayout id="pgl6" layout="horizontal">
        <af:activeOutputText value="#{row.Actions}" id="aot2"/>
        <af:goLink text="#{row.Actions}" id="gl1"
                   clientComponent="true" visible="false"
                   targetFrame="_blank" destination="http:// + #{row.BUTTON_URL}">
        </af:goLink>
        <af:selectBooleanRadio text="" id="sbr1">
          <af:clientListener method="selectCheckBox" type="click"/>
        </af:selectBooleanRadio>
      </af:panelGroupLayout>
    </af:column>If you need to add some horizontan space between the components, you can put <af:spacer>(s) between the components.
    Dimitar

  • Rt justified and left justified in the same line

    Hi Geeks ,
    i need help regarding scripts 
    i want text to be printed left justified and amount at right justified
    in same line
    TAX                                                                           12.000
    Total                                                                          140000

    in se71
    go to Paragraph formats choose a parag  which ur using
    do to tabs there u can defain as per ur req.......
    and u can use  it in editor......
    if it is useful Plz reward
    Regards
    Anbu

  • How do I put an af:InputText and af:CommandButton on the same line?

    How do I put an af:InputText and af:CommandButton horizontally level with each other in my JSPX page?
    atm they sit on top of each other which is no good. Must I contain each item inside a form or something??

    Hi, you can do it this way:
            <af:panelGroupLayout layout="horizontal">
              <af:inputText label="Label 1"/>
              <af:commandButton text="commandButton 1" id="button1"/>
            </af:panelGroupLayout>Regards,
    Branislav

  • Printing on chars on the same line using system.out.println

    i have the following string:
    String msg = "This is a message brought to you by one and the only";
    msg.toCharArray(); //converted to a char array.
    i've written a loop which goes through each of the char elements
    and puts it in it's own array:
    int i = 0;             
    while (i < msg.length)
                    char[] test = {msg};
    System.out.println(test);
    the problem is system out println prints out each of the elements on seperate lines is
    it possible to have them in one line to reform the original string?

    No exactly sure what you are trying to do. Does this
    help?
    String msg = "This is a message brought to you by one
    and the only";
    char[] test = msg.toCharArray();
    System.out.println(test);
    not really because i want to convert the string to a char array and then reform it in another char array and then i can choose which elements i want included and not to be so that it can be printed on the same line. I can do it the following way:
    char[] test = {test[0], test[1]]};
    but say i want all the letters containing the chracter T (and again i can use the above solution and select the elements from the string but i don't want to hardcode it, say the string changes etc) in the test array so then i thought of writing a loop:
    while (test[i] == 'T')
    char[] test2 = {test[i]};
    System.out.println(test);
    i++;
    but it puts each T in a new line...

  • Retrieve n and n-1 rows on the same line

    In a database I am trying to get the latest employee information and the previous entry. The latest entry can be determined by the fact that DATEFIN is empty and the previous entry is returned by MAX(DATEFIN). All previous entries have a DATEFIN value
    So I wrote a query which returned both the lines per employee. i.e. n and n-1
    Actually what is needed is to compare certain fields of each line, so I need to show employee n and n-1 on the same line. This time I used LEAD so emp,date,field1,Lead(field1,1) etc etc.
    As all the employee lines are returned, I used a minus function to remove all those where the DATEFIN IS NOT NULL, given that the LEAD line returned the information required BEFORE the minus removed it.
    However, I am still getting n and n-1 rows, even though the minus part run by itself removes n-1,n-2... rows.
    Question
    How can I structure the minus or LEAD query just to get the n row and n-1 LEAD information
    select trim(to_char(se.idexport,'0999'))
    || '|'
    || sa.referentiel_id
    || '|'
    || sa.idunique
    || '|'
    || sa.matricule
    || '|'
    || sr.niveau
    || '|'
    || LEAD(sr.niveau,1) OVER (ORDER BY sr.salarie_id,sr.datedebut desc )
    || '|'
    || sr.echelon
    || '|'
    || sr.coefficient
    || '|'
    || fo.code
    || '|'
    || sr.salairemensuel
    || '|'
    || sr.tauxhoraire
    || '|'
    || to_CHAR(ca.datevaleurrevisions,'DD/MM/YYYY')
    || '|'
    || em.code
    || '|'
    || fi.code
    || '|'
    || cc.code
    || '|'
    || sr.datedebut
    || '|'
    || LEAD(sr.datedebut,1) OVER (ORDER BY sr.salarie_id,sr.datedebut desc )
    || '|'
    || sr.datefin
    || '|'
    || LEAD(sr.datefin,1) OVER (ORDER BY sr.salarie_id,sr.datedebut desc )
    AS Text
    from salarie sa
    inner join selection_export se on (se.IDUNIQUE = SA.IDUNIQUE AND se.idexport = 42 AND se.exporter = 1)
    inner join salarierevision sr on (SR.SALARIE_ID = se.IDUNIQUE AND SR.ACCESRESTREINT = 0)
    inner join campagne ca on CA.ISANNEEENCOURS = 1
    inner join parambranche pb on (ca.organisationlds_id = pb.organisationlds_id)
    inner join utilisateur u on (u.CODE = 'gagross' AND U.ORGANISATIONLDS_ID = CA.ORGANISATIONLDS_ID)
    left outer join fonction fo on (fo.id = sr.fonction_id)
    left outer join emploi em on (em.id = sr.emploi_id)
    left outer join filiere fi on (fi.id = sr.filiere_id)
    left outer join CONVENTIONCOLLECTIVE cc on (cc.id = sr.CONVENTIONCOLLECTIVE_ID)
    minus
    select trim(to_char(se.idexport,'0999'))
    || '|'
    || sa.referentiel_id
    || '|'
    || sa.idunique
    || '|'
    || sa.matricule
    || '|'
    || sr.niveau
    || '|'
    || LEAD(sr.niveau,1) OVER (ORDER BY sr.salarie_id,sr.datedebut desc )
    || '|'
    || sr.echelon
    || '|'
    || sr.coefficient
    || '|'
    || fo.code
    || '|'
    || sr.salairemensuel
    || '|'
    || sr.tauxhoraire
    || '|'
    || to_CHAR(ca.datevaleurrevisions,'DD/MM/YYYY')
    || '|'
    || em.code
    || '|'
    || fi.code
    || '|'
    || cc.code
    || '|'
    || sr.datedebut
    || '|'
    || LEAD(sr.datedebut,1) OVER (ORDER BY sr.salarie_id,sr.datedebut desc )
    || '|'
    || sr.datefin
    || '|'
    || LEAD(sr.datefin,1) OVER (ORDER BY sr.salarie_id,sr.datedebut desc )
    AS Text
    from salarie sa
    inner join selection_export se on (se.IDUNIQUE = SA.IDUNIQUE AND se.idexport = 42 AND se.exporter = 1)
    inner join salarierevision sr on (SR.SALARIE_ID = se.IDUNIQUE AND SR.ACCESRESTREINT = 0)
    inner join campagne ca on CA.ISANNEEENCOURS = 1
    inner join parambranche pb on (ca.organisationlds_id = pb.organisationlds_id)
    inner join utilisateur u on (u.CODE = 'gagross' AND U.ORGANISATIONLDS_ID = CA.ORGANISATIONLDS_ID)
    left outer join fonction fo on (fo.id = sr.fonction_id)
    left outer join emploi em on (em.id = sr.emploi_id)
    left outer join filiere fi on (fi.id = sr.filiere_id)
    left outer join CONVENTIONCOLLECTIVE cc on (cc.id = sr.CONVENTIONCOLLECTIVE_ID)
    where sr.datefin is not null
    Thanks and I hope this is clear
    Colin

    Assuming that the sr.salarie_id column identifies the employee I think you need to partition by it, not order by it in the analytic functio. If it does not identify the employee, then you need to partition by whatever uniquely identifies an employee. I would likely structure it something like this:
    SQL> with t as (
      2     SELECT 1 emp_id, TO_DATE('01-jul-2010', 'dd-mon-yyyy') dt, 'Jul' descr
      3     from dual union all
      4     SELECT 1, TO_DATE('01-aug-2010', 'dd-mon-yyyy'), 'Aug' from dual union all
      5     SELECT 1, TO_DATE('01-sep-2010', 'dd-mon-yyyy'), 'Sep' from dual union all
      6     SELECT 1, TO_DATE('01-oct-2010', 'dd-mon-yyyy'), 'Oct' from dual union all
      7     SELECT 1, TO_DATE(NULL), 'Current' from dual union all
      8     SELECT 2, TO_DATE('01-jan-2010', 'dd-mon-yyyy'), 'Jan' from dual union all
      9     SELECT 2, TO_DATE('01-mar-2010', 'dd-mon-yyyy'), 'Mar' from dual union all
    10     SELECT 2, TO_DATE('01-may-2010', 'dd-mon-yyyy'), 'May' from dual union all
    11     SELECT 2, TO_DATE('01-jul-2010', 'dd-mon-yyyy'), 'Jul' from dual union all
    12     SELECT 2, TO_DATE(NULL), 'Current' from dual)
    13  SELECT emp_id, curr_dt, last_dt, curr_descr, last_descr
    14  FROM (SELECT emp_id, dt curr_dt,
    15               LEAD(dt) OVER(PARTITION BY emp_id
    16                             ORDER BY dt desc nulls first) last_dt,
    17               descr curr_descr,
    18               LEAD(descr) OVER(PARTITION BY emp_id
    19                             ORDER BY dt desc nulls first) last_descr
    20        FROM t)
    21  WHERE curr_dt IS NULL
        EMP_ID CURR_DT     LAST_DT     CURR_DE LAST_DE
             1             01-OCT-2010 Current Oct
             2             01-JUL-2010 Current JulWhere my t is your set of joined tables without the where sr.datefin is not null predicate.
    John

  • Elements in the same line

    Hi!
    How can I insert one element and his child in the same line?
    thank you!

    macweaz,
    I believe you are referring to "text range" elements, sometimes called "inline" elements. It's part of the format properties for an element. In the EDD, the element hierarchy is normally something like:
    TextFormatRules > AllContextsRule > TextRangeFormatting > TextRange
    You should be able to search on these items in the Structure Developers Guide to find out more.
    Russ

Maybe you are looking for