Sapscript include command

I am printing text lines via INCLUDE statement in Invoice(ZFKORD50). Each text has more than one lines. Just after printing first line it needs to print figures on the same line and then continue with rest of the lines.
Output should be,
Line 1            | xxxx | xxxx|
Line 2
Line 3
If I write below code
INCLUDE lv_name' OBJECT lv_obj ID lv_id' LANGUAGE 'E' PARAGRAPH 'MD'
= &WRSHB_POS&     &WRSHB_DISC&
It shows figures at last line of text, (gives below output)
Line 1
Line 2
Line 3
.........            | xxxx | xxxx|
How can I achive first out put?
I have tried using READ_TEXT via subroutine. In that case its not possible to retrive all the text lines in the script. (what if they are in 100s)
Regards
K

Calling through subroutine, means using READ_TEXT function module to get text data?
I am already calling WRITE_FORM  within loop and then calling subroutine withing that element. For one line item I will have few text lines to print. Amount for that line item should print against 1st line of each line item.
If I am using read_text via subroutine it prints above format. But when I use subroutine with USING AND CHANGING command, how can I bring all the lines of that text line as USING AND CHANGING doesn't accept internal table. So if I have to get just one line or fixed line it can be called by passing fix number of CHANGING in subroutine.
In this case number of lines of text are not fixed. It can be n.
Thanks
K

Similar Messages

  • Reg INCLUDE command in SAPscript

    Hi Folks,
       Can anybody tell me is it possible to give tab in INCLUDE command in SAPscripts.
       What I mean is I want to display standard text after few spaces.
       Thanks in Advance
       Punit

    Hi Punit,
          You cannot give tabs for INCLUDE command. On the other hand you can read the text in your print program using READ_TEXT function module. You can modify the text using SAVE_TEXT and send it to the SAPScript for output.
    With Regards,
    Nelson

  • Include command in Sapscript

    Dear all,
    I've added an include command in the main window of my sapscript in order to display text object in my forms. THe thing is that I would like to be able to position the free text not on the left of the windows but in the middle of it. But it seems that I can't use tab strip with the include command.
    /: ,,,,include &VBDPA-TDNAME& OBJECT VBBP ID 0002 Language en does not work for instance.
    Any idea?
    Regards.
    NC.

    Hi,
    Do one thing I am not sure that this will serve your purpose.
    Create one new window and place it on your main window where you want to print that text.
    In that created window INCLUDE your text object and make that window as CENTER justification in paragraph format.
    Here you will face one problem with size of the window.
    That is if your TEXT exceeds your window width or height then the TEXT will be truncated.
    So you need to take care of it.
    Try with this i hope it will solve your issue.
    Thanks.

  • Importance of language in include command

    Hi All,
    wat is the importance of language in INCLUDE command? in sapscript
    i mean wat happens if we ignore/omit language in INCLUDE command?
    for example i have 3 item texts
    z003 - FR
    z007 - IT
    z008 - BE
    these languages may be changed by the user to any language as per his choice,,,,so we cannot pass hard-code values for lanague in INCLUDE statement..
    Thanks
    John

    John,
    Adding to the points mentioned by our frnds above, if you really want the form output to be displayed in different languages, its SE63 T-code which helps in translation.
    You can create the standard texts in SO10 with teh same name but in different languages. In translation, in the appropriate version you can call the text in the desired language.
    IT works as you require. Try it out and get back for any other issues.
    Regards
    Priya

  • Returncode from include command in sap scipt

    HI,
    If  I include a textelemt with the /: include command I can not identify if that textelement was available or not. So I would like to check a returncode after my include.  Is there any way to do so?
    Because I try to do following as final version:
    include   header_customer_no
    if include fail
    include  header_material_no
    if include fail
    include header_default.
    Any hints how I can do so?
    Thanks
    Jens

    Hi,
    I'm not sure if you can check for this in the SAPScript itself, however, what you could do (if the print program is a Z program) is to add logic to determine if the text exists in table STXH, using the text name, object, id and language.  Based on the results of the select, you could move on to the next STXH until you either get a match or not.  Then you could set global variables to hold the object, id, name and language and pass those to a single INCLUDE statement in the SAPScript element.
    If your print program is not a Z program then you can achieve the same effect by using the /: PERFORM statement to call a subroutine in a Z program object and use this to determine and return the object, id and name.
    Hope this makes sense.
    Regards,   Andy

  • Sapscript Control Commands

    Dear All,
                in Sapscript Control Command  there is one command
                INCLUDE .
                Pls explain it.

    Hi Kapoor,
    <b>INCLUDE: </b>To include the contents of another text into the current text, use the INCLUDE control command. SAPscript still treats the text to be included as a separate text. The text is copied over only at the point at which the output is formatted.
    Thus the use of the INCLUDE command always ensures that the most current version of a text is included into the output, since the text is not read and inserted until the output is formatted.
    <b>Syntax:
    /: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p]
    [NEW-PARAGRAPH np]
    </b>
    You must specify the name of the text to be inserted. It can be up to 70 characters long. If the name of the text contains spaces, then you must enclose it in quotes as a literal value. You can, alternatively, specify the name via a symbol. All remaining parameters in the INCLUDE command are optional. If an optional parameter is not specified, then SAPscript uses default values as applicable for the calling environment.
    /: INCLUDE MYTEXT
    The text MYTEXT is included in the language of the calling text.
    /: INCLUDE MYTEXT LANGUAGE 'E' PARAGRAPH 'A1'
    The text with the name MYTEXT and the language E is included, regardless of the language of the calling text. The paragraph format A1 will be used as the standard paragraph type for this call.
    Optional parameters:
    LANGUAGE
    If this parameter is not specified, then the language of the calling text or the form language are used for the text to be included. If the language is specified, then the text will be fetched in this language, regardless of the language of the calling text.
    PARAGRAPH
    The text to be included is formatted using the style allocated. The PARAGRAPH parameter can be used to redefine the standard paragraph for this style for the current call. All *-paragraphs in the included text will then be formatted using the paragraph specified here.
    NEW-PARAGRAPH
    The first line of the text to be included will be given this format indicator, as long as it is not a comment or command line. If the optional PARAGRAPH parameter (see above) is not specified, then all *-paragraphs of the included text will also be formatted using the paragraph specified in the NEW-PARAGRAPH command.
    OBJECT
    In order to completely specify a text, information about the text object is also required. There are a number of restrictions and other rules that depend on the object type of the calling text:
              o Any kind of text can be included in a form. If no object is specified, then TEXT will be used (standard texts).
              o In the case of a document text (DOKU object), you can include only document texts. This object type is also assumed if no object is specified in this environment.
              o Only hypertexts and document texts can be included in a hypertext (DSYS object). If the OBJECT parameter is missing, then DSYS is used as the default value.
              o In the other kinds of text you can include only standard texts (TEXT object), document texts or hypertexts. If there is no specification, then the default object is TEXT.
    ID
    The text ID is a part of the text key, which permits further text objects within a given object. If no ID is specified, then the default include ID is used from the TTXID table for the calling text. If there is no entry in this table, then the text ID of the calling text is used.
    The following consistency check is applied both to the ID and the object:
    All text IDs are allowed in a form.
    In document texts, only document texts may be included that have text IDs TX (general texts) or UO (authorization objects) and also other document texts with the same text ID as the calling document text.
    In DSYS texts, all DSYS texts can be included, whatever ID they have. Document texts to be included must have one of the IDs TX or UO.
    Into the other texts, standard texts with any allowable text ID, DSYS texts with all IDs, and document texts with the IDs TX and UO can be included.
    The INCLUDE command returns a status code in the SAPSCRIPT-SUBRC symbol:
    0: the text include was successful.
    1: the command could not be executed because it contained syntax errors.
    2: the rules governing the text to be included were not followed (see above).
    This value cannot occur if the command is used in a SAPscript form.
    4: the specified text could not be found.
    <b>Friendly Note:</b> You have many open threads and Plz close the threads if they are answered/solved and reward points to the people who are helping you by taking their  time.
    Thanks,
    Vinay

  • Include command line args in executable jar?

    Hello all,
    I'm trying to package up some software which takes 2 command line args to run (for example, java -jar prog.jar FooBar 3.14159). I'm using a utility called Jar2Exe to wrap it up into an exe (still needs JRE to run, but it's nicer packaging for distribution).
    My question is, how can I included command line arguments in the jar? Or can I? Or, are there any exe-wrapping utilities out there that will allow me to accomplish this?
    Thanks,
    -Thok

    Thok wrote:
    Hello all,
    I'm trying to package up some software which takes 2 command line args to run (for example, java -jar prog.jar FooBar 3.14159). I'm using a utility called Jar2Exe to wrap it up into an exe (still needs JRE to run, but it's nicer packaging for distribution).
    My question is, how can I included command line arguments in the jar? Or can I? Or, are there any exe-wrapping utilities out there that will allow me to accomplish this?
    Thanks,
    -ThokOkay, did some more research... It appears you can't specify command line options in a jar, but if you package it into an exe, you can--depending on what utility you use to wrap it, that is. I downloaded a free one (Launch4j) and it does the trick.
    -Thok

  • Include command in SapScript to fill in a local field

    Dear all,
    Normally when we are using the INCLUDE SAPscript command, the system is printing the information retrieved.
    My question is, if someone of you know, whether is possible to put the information retrieved into a local field, defined as DEFINE &wa_localfield& := include &tdname& object vbbk ...
    Many thanks in advance !
    Rgds., Anton

    No, that is not possible using the INCLUDE statement.
    Welcome to SDN!
    Regards,
    Rich Heilman

  • For SAPscript INCLUDE TEXT, how to align as Paragraph format

    Hi experts and ABAP colleagues!
    Need your help on this sapscript problem:
    How to align texts taken from "INCLUDE TEXT" in SAPscript, according to tab defined in Paragraph Format?
    For example, I defined BG to have tabstop at the 2nd column (or equivalent to 1st tab position) where I need to print the text, and then declared it in SE71 like below:
    However the text prints at the leftmost instead of at the 2nd col position - (8th char tab defined in par. format BG).  Hence it is not aligned to its proper heading.  Line Number instead of Description - which is not okay for client view that needs these Thai texts. 
    The technical details I included below.  Kindly examine:
    1.)  Window >Main > Text Element > Include Text command
    /E   ITEM_TEXT
    BG   ,,&TTXIT-TDTEXT&
    /:   INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID&
    /:   NEW-PARAGRAPH BG
    Note:  I used command "NEW-PARAGRAPH" and had exactly the above code in se71.  Anything missed here?  Pls. help.  Thanks.
    #2.) Paragraph Format > Tab
    No. -
      Tab Position -
    Alignment
    1            8,00 CH            LEFT
    2            28,00 CH          CENTER
    etc.
    Note:   and then i put in  ",,&TTXIT-TDTEXT&" (see above) with the 2 comma's beforehand to say that its on the 1st tab or at the 8th character where it should be printed, but does not give intended result... pls help.
    #3.) Paragraph Formats > Standard Attributes
    Left Margin - 0 cm
    Alignment - Left
    no blank lines checkbox - ticked
    Note:  Is there any more attribute i can manipulate from here to force display at the right position?
    Thank you so much in advance for all your help.  Our project team will really appreciate it.  May the Lord bless you as we go through our SAP work!
    Sincerely,
    Celeste

    Here's a thought, instead of using tabs, try writing a method that takes a string that is the starting string, a pad character, and a length and returns a string padded to that length with the specified character.
    public String padR(String src, String padChar, int len)
        // ... You get to fill in the rest suggestion try to do it without a loop
    }Have fun,
    PS.

  • Problem with SAPScript BOTTOM Command

    I have a SAPScript form with multiple paragraphs. In the original version I put a footnote at the bottom of a page by doing something like:
    >/E FOOT_NOTE                                                            
    >/: BOTTOM                                                               
    >B1 <NR><I0><HL><IT> Some fixed text.</>                                                 
    >/: ENDBOTTOM                                                            
    That worked correctly. Now I am changing the form so that a number of paragraphs may or may not appear at the bottom of the page. Since I donu2019t know which paragraph may be first, I tried creating two new paragraphs:
    >/E           START_BOTTOM
    >/:           BOTTOM
    >/*                                                                                  
    >/E           END_BOTTOM
    >/:           ENDBOTTOM
    I call START_BOTTOM, then conditionally call whatever paragraphs are needed and finally call END_BOTTOM.
    The problem is that the paragraphs simply continue on from the last line that was printed, not at the end of the page.
    (I had also tried putting:
    >/E           START_BOTTOM
    At the beginning of each paragraph that could appear at the end, and it worked to a point u2013 each paragraph appeared at the end, but overwrote whatever previous paragraphs were there.)
    Can anyone help me with controlling my BOTTOM?
    Thanks
    Rob

    Yes that's true, that Split in BOTTOM command doesn't work same as it works with the PROTECT.. ENDPROTECT.
    But, after some research I got success.
    Don't create any element in your MAIN window for BOTTOM / ENDBOTTOM. Use the FM WRITE_FORM_LINES to append entire BOTTOM .. ENDBOTTOM lines. Like:
    data: la_head like THEAD,
          lt_lines type standard table of TLINE,
          la_lines like line of lt_lines.
    select single * from stxh into la_head
      where TDOBJECT = 'FORM'
        and TDNAME   = 'ZTEST_WATERMARK'
        and TDID     = 'DEF'
        and TDSPRAS  = sy-langu.
    * Bottom Start
    la_lines-tdformat = '/:'.
    la_lines-TDLINE  = 'BOTTOM'.
    append la_lines to lt_lines.
    * Generic Text
    la_lines-tdformat = '*'.
    la_lines-TDLINE  = 'This is BOTTOM'.
    append la_lines to lt_lines.
    * Include Text1
    la_lines-tdformat = '/:'.
    concatenate '''' 'A1' '''' into la_lines-TDLINE.
    concatenate 'INCLUDE ZTEST_NP OBJECT TEXT ID ST PARAGRAPH '
      la_lines-TDLINE into la_lines-TDLINE separated by ' '.
    append la_lines to lt_lines.
    * Include Text1
    la_lines-tdformat = '/:'.
    concatenate '''' 'A1' '''' into la_lines-TDLINE.
    concatenate 'INCLUDE ZTEST_NP1 OBJECT TEXT ID ST PARAGRAPH '
      la_lines-TDLINE into la_lines-TDLINE separated by ' '.
    append la_lines to lt_lines.
    * Bottom End
    la_lines-tdformat = '/:'.
    la_lines-TDLINE  = 'ENDBOTTOM'.
    append la_lines to lt_lines.
    * Append lines to MAIN
    CALL FUNCTION 'WRITE_FORM_LINES'
      EXPORTING
        FUNCTION                       = 'APPEND'
        header                         = la_head
    *   TYPE                           = 'BODY'
        WINDOW                         = 'MAIN'
      tables
        lines                          = lt_lines
    EXCEPTIONS
       FUNCTION                       = 1
       TYPE                           = 2
       UNOPENED                       = 3
       UNSTARTED                      = 4
       WINDOW                         = 5
       BAD_PAGEFORMAT_FOR_PRINT       = 6
       SPOOL_ERROR                    = 7
       CODEPAGE                       = 8
       OTHERS                         = 9
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Naimesh Patel

  • SAPSCRIPTS - BOX COMMAND.

    Hi ,
    I hava script in which i am supposed to print an internal table.
    now. the script is designed in such a way that on first page the main window starts at line 17 of the page and on second page the main window starts at line no 7.
    i ma printing my internal table in the main window. i am ussing box command to get a tabular look n feel . on first page the y pos of the box is set to 18 LN. n its gettin printed properly.
    till first 15 records the data gets printed on first page but if the records in the internal table are more than 15 then then the output continues to second screen.
    now while setting the ypos how should  set the value? how exatly i am supposed to count the value to set for the y pos? when we say BOX ypos 7 LN dose it mean set ypos  at line 7 from upword direction? n line of the window or line 7 of the page?

    Hi
    See this and use accordingly
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    POSITION WINDOW
    SIZE WIDTH '160' MM HEIGHT '140' MM
    BOX FRAME 10 TW
    Box
    BOX HEIGHT '11' MM WIDTH '160' MM FRAME 10 TW INTENSITY 35
    linessssssss
    BOX XPOS '20' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '45' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '80' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '120' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    Boxes, Lines, Shading: BOX, POSITION, SIZE
    Use the BOX, POSITION, and SIZE commands for drawing boxes, lines, and shading to print particular windows within a form or passages of text within a window in a frame or with shading.
    The SAP printer drivers that are based on page-oriented printers (the HP LaserJet driver HPL2, the Postscript driver POST, the Kyocera Prescribe driver PRES) employ these commands when printing. Line printers and page-oriented printers not supported in the standard ignore these commands. You can view the resulting printer output in the SAPscript print preview.
    Syntax:
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    BOX Command
    Syntax
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.
    XPOS, YPOS
    Upper left corner of the box, relative to the values of the POSITION command.
    Default: Values specified in the POSITION command.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    WIDTH
    Width of the box. Default: WIDTH value of the SIZE command.
    HEIGHT
    Height of the box. Default: HEIGHT value of the SIZE command.
    FRAME
    Thickness of frame.
    Default: 0 (no frame).
    INTENSITY
    Grayscale of box contents as %.
    Default: 100 (full black)
    Measurements: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period as the decimal point character. See also the examples listed below.
    Units of measurement: The following units of measurement may be used:
    TW (twip)
    PT (point)
    IN (inch)
    MM (millimeter)
    CM (centimeter)
    LN (line)
    CH (character).
    The following conversion factors apply:
    1 TW = 1/20 PT
    1 PT = 1/72 IN
    1 IN = 2.54 CM
    1 CM = 10 MM
    1 CH = height of a character relative to the CPI specification in the form header
    1 LN = height of a line relative to the LPI specification in the form header
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shading having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
    POSITION Command
    Syntax
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started, the POSITION value is set to refer to the upper left corner of the window (default setting).
    Parameters: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in other words, as a value that specifies an offset from the upper left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the parameter specifications is missing, then no change is made to this parameter.
    XORIGIN, YORIGIN
    Origin of the coordinate system.
    WINDOW
    Sets the values for the left and upper edges to match those of the current window (default setting).
    PAGE
    Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
    /: POSITION WINDOW
    Sets the origin for the coordinate system to the upper left corner of the window.
    /: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
    Sets the origin for the coordinate system to a point 2 cm from the left edge and 2.5 cm from the upper edge of the output page.
    /: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM
    Shifts the origin for the coordinates 1.5 cm to the left and 1 cm up.
    SIZE Command
    Syntax
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started, the SIZE value is set to the same values as the window itself (default setting).
    Parameters: If one of the parameter specifications is missing, then no change is made to the current value of this parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value.
    WIDTH, HEIGHT
    Dimensions of the rectangle or line.
    WINDOW
    Sets the values for the width and height to the values of the current window (default setting).
    PAGE
    Sets the values for the width and height to the values of the current output page.
    /: SIZE WINDOW
    Sets WIDTH and HEIGHT to the current window dimensions.
    /: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
    Sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm.
    /: POSITION WINDOW
    /: POSITION XORIGIN -20 TW YORIGIN -20 TW
    /: SIZE WIDTH +40 TW HEIGHT +40 TW
    /: BOX FRAME 10 TW
    A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as to avoid obscuring the leading and trailing text characters.
    <REMOVED BY MODERATOR>
    Regards
    Anji
    Edited by: Alvaro Tejada Galindo on Jul 8, 2008 10:59 AM

  • Composite clients:  include command button inside data table

    Directly placing the command button into the datatable does work. However, I'd like to move it outside to another file and then include it. What's the best approach, to use ui:include? Is there a better approach?
    I'd like to have datatable.xhmtl and deletebutton.xhtml
    <?xml version='1.0' encoding='UTF-8' ?>
    <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                    xmlns:h="http://java.sun.com/jsf/html"
                    xmlns:f="http://java.sun.com/jsf/core"
                    template="./beatlesTemplate.xhtml">
        <ui:define name="content">
            <h:dataTable value="#{beatles.list}"  var="beatle">
                <h:column>
                    <ui:include src="deleteButton.xhtml"/>
                </h:column>
                <h:column>
                     <h:commandButton id = "btnn" value="new row" actionListener="#{pc_Test.newRow}" />
                </h:column>
                <h:column>
                    <h:outputText value="#{beatle.title}"/>
                </h:column>
                <h:column>
                    <h:outputText value="#{beatle.comments}"/>
                </h:column>
            </h:dataTable>
        </ui:define>
    </ui:composition>
    <?xml version='1.0' encoding='UTF-8' ?>
    <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                    xmlns:h="http://java.sun.com/jsf/html"
                    xmlns:f="http://java.sun.com/jsf/core"
                    template="./beatlesTemplate.xhtml">
        <ui:define name="deleteButton">
            <h:commandButton id = "btnn" value="new row" actionListener="#{pc_Test.newRow}" />
        </ui:define>
    </ui:composition>

    RaymondDeCampo wrote:
    Your approach seems reasonable, did it work when you tried it?No, it didn't. Pardon, I don't have more information on that, but will come back to the topic later (probably on the mailing list, which I prefer.)

  • Include command line args in jar file

    If I make and executable jar file, how can I make it so that when it runs certain comman line arguments are included

    If by "executable jar" you mean that you want to click the jar and run the program (and are using Windows), then you would have to alter the Windows file association for jar files that Java created, adding those options to the javaw command. Note that that would affect all jars that are run this was.
    If you're willing to use the "javaw -jar" command, then just add the options to the javaw command.

  • SAPScript /: INCLUDE statement, no new line

    dear all, i am sure there is a way of doing this, just cannot see how.
    quite simply, i wish to have a description before the
    /:INCLUDE &T166P-TXNAM& OBJECT &T166...
    gets displayed, but on the same line !
    currently this,
    /E   ITEM_TEXT              
    D1   Material Description   
    /:   INCLUDE &T166P-TXNAM& OB...
    throws a new line, which i know, but dont want
    thanks in advanced
    ps. print program must stay the same, also, no shelling out to other zprogram. want to do this in SAPScript

    Use a subroutine program to get the Include text value. With this you can get your requirement.
    Refer this link
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
    Text Include / Read_TEXT  in Smartforms
    http://www.sap-img.com/abap/use-fm--read-text-to-read-the-various-text.htm
    http://www.sapdevelopment.co.uk/fmodules/fms_readtext.htm
    Edited by: Bala Krishna on Sep 12, 2008 8:36 AM

  • SAPScript: includung a domain documentation in a data element documentation

    Dear ABAPers,
    I have a couple of (self-defined) DDIC data elements referring all to the same domain. How does the SAPScript INCLUDE-command need to look like in order to include the domains text in the data element text? (which object and which ID needs to be provided for domain documentation?).
    Thanks in advance
    Andreas

    Hi Pushpraj,
    for any kind of DDIC-object (table, structure, data element, domain...) you can maintain documentation, which is saved as SAPScript (there is a button "Documentation" or in the case of the domains you have to go via the menu "Goto -> documentation"). In that sort of SAPScript-based texts you can basiscally include any other SAPScript-Text with the INCLUDE-Command.
    Example: with SAPScript Command "INCLUDE BELEGART" you can reuse SAPs standard help-text for field BKPF-BLART. But usually the SAPScript INCLUDE command looks like this:
    INCLUDE <name_of_text> OBJECT <object> ID <ID>.
    Thanks
    Andreas
    Edited by: Andreas Fluegel on Mar 9, 2009 3:11 PM

Maybe you are looking for

  • Variable in the Cursor definition?

    Shall we provide a variable in the cursor definition.? Like this, CREATE OR REPLACE PROCEDURE PRC_PROCEURE1 (v_table in varchar2) IS CURSOR C1 IS select COL1,COL2,COL3 from V_TABLE where ...... order by 1 asc Getting the error :table or view does not

  • Table maintanance generator problem

    Hi Experts, I have created a Ztable with 5 fields like Field1,Field2,Field3,Field4,Field5. I have created Table maintenance generator  for that table. I want to disable Field4(created By), Field5(created Date). I have modified in se80 tcode througg s

  • APEX 3.0.1 and SQL Developer integration - what is it?

    Hello In the Apex Release 3.0.1 page, it reads "Supports direct integration with Oracle SQL Developer 1.2.". What does this exactly mean? I looked at the patch notes but could not find any info... I am not a current user of SQL Developer (long way to

  • Safari not displaying Quicktime

    Safari is not playing my video (I get a Q and question mark). I can view it on my iphone but on my other computers its a no-go. Video plays fine on Firefox; I believe it was working before I installed Snow Leopard; but I am not 100% sure. New to Mac

  • Lightroom 5 vs Photoshop Elements

    Can anyone tell me why I should buy Lightroom 5 rather than upgrading my Photoshop Elements to the latest release?  I'd love to get PhotoShop CS but can't afford it!