Box in Long text of sapscript

Hi All,
I have  created a script.....in that i have to print  only long text in the main window.
Now my problem is...the LONG text is breaking and going to next page...
means a part on 1 page and remaining  on subsequent pages..
And the problem is the box which i have put arround the main window is coming only in first page and last page .  In between pages the box arround the main window is not coming .
How to get the box around those pages also.
help me out...
Thanks,
Guru

Hi
The property of MAIN window is like that, If the Data is more than a Page it automatically goes to next pages.
So better decide where I mean in which you wants to print ? In MAin window , then it automatcially goes to other pages. use a new paragraph format and mention PAGE PROTECTION for that such that it prints in the Same page.
For the boxes see the seetings of the main window in all pages, especially in NEXT page.. so that the box is coming properly
see the box related commands
SAPScripts
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.
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
<b>Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • PASS THE LONG TEXT TO SAPSCRIPT

    Hello Friends,
    I m using itcsy structure to pass long text of quality certificate to sapscript output but im able to show only 80 characters in the output but my long text is more than 250 characters.
    so how i can show these many characters value in my sapscript pls guide....
    Regards,
    Sunny

    If you want to print the long text, you should use the INCLUDE statement in your SAP SCript.
    1. You don't have to take the pain of fetching the text.
    2. You don't have to reformat the same.
    INCLUDE TEXT_NAME OBJECT TEXT ID
    example:-
    INCLUDE ZSDINV2A OBJECT TEXT ID ST LANGUAGE EN
    Edited by: krupa jani on Nov 25, 2008 10:17 AM

  • Display long text in SAPScript

    Hi
    I'd like to display long text of line item text which is there in VF03 (Billing/Invoice docu) menugoto-items-texts    in output of SAPSCRIPT  form.It would like to write the command in script text editor as: " /: INCLUDE &VBDPR-TDNAME& OBJECT VBBP ID 0001 PARAGRAPH HT " .
    will this piece of code is enough to display on form. are is there anything that i need to do. like declaring in print program.....? please, suggest me experts....
    thank you....

    that is enough, but make sure you populated the TDNAME in the driver.
    /: INCLUDE &VBDPR-TDNAME& OBJECT VBBP ID 0001 PARAGRAPH HT

  • FB03 Long text to sapscript

    Hi
      My requirement is ,i have to read the long text entered in the FB03 transaction(it may be several lines) in my Z Print program and pass that to the sapscript form that it gets displayed as line item. can you please send sample how to do in program and how it is called in sapscript form..
    Thanks
    Swarna.

    Hi
    You have to use FM READ_TEXT.
    In FB03 Transaction, you can get the Technical information of the Text Area. Use those as inputs to this FM, which will return the text entered into an internal table.
    You can use this Internal table data to write onto script.
    Eg:
    stxl_id-tdobject = 'VBBK'.
    stxl_id-tdname = wa_vbfa-vbelv.
    stxl_id-tdid = '0012'.
    stxl_id-tdspras = 'EN'.
    DATA: BEGIN OF tlines OCCURS 10.
    INCLUDE STRUCTURE tline.
    DATA: END OF tlines.
    clear: i_text.
    *DATA : l_text(120) TYPE c,
    DATA : l_text(1050) TYPE c,
    v_tline LIKE tline-tdline.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    client = sy-mandt
    id = stxl_id-tdid
    language = stxl_id-tdspras
    name = stxl_id-tdname
    object = stxl_id-tdobject
    archive_handle = 0
    local_cat = ' '
    IMPORTING
    HEADER =
    TABLES
    lines = tlines
    EXCEPTIONS
    id = 1
    language = 2
    name = 3
    not_found = 4
    object = 5
    reference_check = 6
    wrong_access_to_archive = 7
    OTHERS = 8
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT TLINES.
    CALL FUNCITON 'WRITE_FORM' with the text element..
    ENDLOOP.
    Regards,
    Raj

  • Problem in Reading  Material Long text in Sapscript

    Dear firends,
    I have written  following code in sapscrit to fetch the longtext of the material
    INCLUDE &MARA-MATNR(K)& OBJECT MATERIAL ID GURN LANGUAGE &NAST-SPRAS&
    Test name - material no(MARA-MATNR)
    object - MATERIAL
    text id - GURN
    LANGUAGE - EN
    but i am not table read the longtext by using above code, when i see in debug mode  ,i am getting warning message
    "data is not available for materil 0000013,GURN,MATERIAL" like that.
    i don't find any problem in code , long text also availble for material 0000013.
    i don't where is the problem , please give me solve this issue.
    Regards,
    D.prabhu

    Hi
    You have to fetch this Long text of this Material using READ_TEXT fun module by passing the 4 parameters as mentioned by you  by writing some code in the program or by writing the external subroutine using PERFORM statement
    Only Application HEADER and ITEM texts can be included in script using the INCLUDE command
    So write the code for the Read _Text fun module and fetch it into Internal table lines and pass/print those to script
    pass the same 4 parameters
    Test name - material no(MARA-MATNR)
    object - MATERIAL
    text id - GURN
    LANGUAGE - EN
    see the sample code
    data:begin of it_stxh occurs 0,
            tdobject type tdobject,
            tdname type tdobname,
            tdid type tdid,
            tdspras type spras,
          end of it_stxh.
    types:begin of ty_lines.
            include structure tline.
    types:end of ty_lines.
    data:it_lines type standard table of ty_lines with header line.
    it_stxh-tdid = 'GRUN'.
    it_stxh-tdspras = 'E'.
    it_stxh-tdobject = itab-matnr.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        ID                            = it_stxh-tdid
        LANGUAGE                      = it_stxh-tdspras
        NAME                          = it_stxh-tdname
        OBJECT                        =  it_stxh-tdobject
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      TABLES
        LINES                         = it_lines
    EXCEPTIONS
      ID                            = 1
      LANGUAGE                      = 2
      NAME                          = 3
      NOT_FOUND                     = 4
      OBJECT                        = 5
      REFERENCE_CHECK               = 6
      WRONG_ACCESS_TO_ARCHIVE       = 7
      OTHERS                        = 8
    IF SY-SUBRC eq  0.
    loop at it_lines.
    < Print these lines in script by passing to script>
    endloop.
    ENDIF.
    Regards
    Anji

  • Long Text printing in SAP SCRIPT

    Hi Experts,
    I have a requirement of printing long text in sapscript.
    There are 15 condition types for each item in sales order and one long text for each condition record.
    Each long text has multiple lines i.e. for one long text it may have 2 lines and other may have 1 or 3 lines or etc.
    My trials :
    I used read_text() function mudule in a routine which is being called from the sap script to get the whole long text which has 5 lines and is stored in an internal table.
    Now is there a way to transfer the whole internal_table data as a whole into the script i.e. is there a way to transfer the table from the routine to the sapscript.
    Thanks in advance.
    kalikonda.

    Hi
    In addition of my include solution.
    you ofcourse can use a perform statement if you havea maximum of lines which is possible.
    like (if you have a maximum of 5 lines
    define &line_1& := ' '
    define &line_2& := ' '
    define &line_3& := ' '
    define &line_4& := ' '
    define &line_5& := ' '
    Perform getsomedate in program abcxyz
    using orderno
    using itemno
    changing &line_1&
    changing &line_2&
    changing &line_3&
    changing &line_4&
    changing &line_5&
    Endperform
    when printing the data
    /: if &line_1& NE ' '
    IL &line_1&
    /: endif
    /: if &line_2& NE ' '
    IL &line_2&
    /: endif
    /: if &line_3& NE ' '
    IL &line_3&
    /: endif
    /: if &line_4& NE ' '
    IL &line_4&
    /: endif
    /: if &line_5& NE ' '
    IL &line_5&
    /: endif
    Gr., Frank

  • RFQ header text in Sapscripts

    I have copied MEDRUCK sapscripts to ZMEDRUCK and I have a requirement to print some rfq header text. I have got the Text ID (A01), Text name (600000022), Text Object (EKKO).
    What is the syntax to print this header text using a INCLUDE statement ? I have to print the heading and the contents of this text object. Can I get some examples ?
    Also, the heading should not print if the text is blank.
    Thanks.
    Edited by: NewComer on Dec 27, 2007 6:06 PM

    Check these threads. U have sample code.
    Display long text in SAPScript
    Text printing in SapScript
    Regards,
    Maha

  • Long Text box in Selection Screen

    Hi,
    How to create a long text box in the selection screen.
    Is there any example/demo program in standard??
    Regards
    Jiku.

    erm, what do you want to achieve with this?
    should your users be able to search for long texts?
    That will probably fail since there are differences between the input and the long text you are searching for.
    Or do you have users making no faults?

  • Long Text Box in a dialog program

    Hi
    I have a requirement to have a long text box ( which can typically hold 1000 characters ) on a dialog screen. I do not want to use table control .Is there any other way we can have a long text box .
    Thank you
    Krish

    Check this standard program. saptextedit_demo_3
    this will explain how to create and use the TextEdit Control
    regards
    Muthu

  • Long Text Printing in SAPSCRIPT

    Hi Experts,
       I got one requirement that i the long text which user will enter that
    has to be displayed on the layout of one window not main.
       The text comes from FB03 application, that has to be displayed.
       I want to know how to do this, i tried to use the hardcoded RSTXT-TDNAME text in my script as define &x& = 'AU1018000010152008001'
    and then include command i used.
       It will be okay for one item, if there are multiple items then it will not be worked.
       so please give me an idea to proceed.
    Regards,
    sivananda P.

    hi,
           it_tline like tline occurs 0 with header line,
           v_info(50),                                                "#EC
        clear it_tline.
        refresh it_tline.
        clear v_info.
        v_name = it_out-ebeln.
        call function 'READ_TEXT'
          exporting
            client                  = sy-mandt
            id                      = 'F05'
            language                = sy-langu
            name                    = v_name
            object                  = 'EKKO'
          tables
            lines                   = it_tline
          exceptions
            id                      = 1
            language                = 2
            name                    = 3
            not_found               = 4
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            others                  = 8.
        if sy-subrc eq 0.
          read table it_tline.                                                         "#EC *
          v_info = it_tline-tdline(50).
        endif.
    if helpful give the points,
    Regards,
    Venkat

  • Long Text getting truncated in IW32

    We are using BAPI_ALM_ORDER_MAINTAIN to createa orders with long text.
    When reviewing the long text in the Office integration screen, We can see that all text is there.
    If, a user modifies the long text in the long text window of IW32, any text that does not display is lost when the order is saved
    If a user modifies teh long text in the office integartion screen, no text is lost.
    Any help on the cause and how to prevent this would be appreciated.
    Scott

    hi ,
    thanx for the reply,
    text gets truncated in print preview itself.
    i put breakpoint in  se38  and in sapscript.
    in se38 the variable shows full text, but in sapscript, it gets truncated.
    coding in sapscript
    /:           POSITION WINDOW
    /:           POSITION XORIGIN '-0.5' CH YORIGIN '-0.10' LN
    /:           SIZE WIDTH '+0.3' CH HEIGHT +0.85 LN
    /:           BOX HEIGHT '9.0' LN FRAME 10 TW
    /:           PERFORM PO_TEXT_DISP IN PROGRAM ZTEST_DRIVER
    /:           USING  &EKKO-EBELN&
    /:           CHANGING &PO_TEXT&
    /:           ENDPERFORM
    /:           IF &PO_TEXT& NE ''
    S7           &PO_TEXT&
    /:           ELSE
    /:           ENDIF
    regards
    senthil

  • Wht is Long Text?

    Hi,
            Wht is Long text, How we have to achive the long text in Trans: MM01?
    With regards,
    Thiru.*

    Hi
    If you see the different views of material like BASIC data and SALES TEXT and PURCHASE ORDER TEXT
    you will find a big box right side and left side Language is maintained.
    Here you can maintain some number of lines of text with some important related data this texts can be written in text editor and are stored with 4 parameters OBJECT,ID,OBJECTNAME and LANGUAGE
    when you double click on text from text ediotr
    menu GOTO-> HEADER
    you will see these 4 parameters
    you have to pass these 4 parameters to READ_TEXT fun module to fetch the lon text
    see the doc
    READ_TEXT
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
    Function call:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING CLIENT = SY-MANDT
    OBJECT = ?...
    NAME = ?...
    ID = ?...
    LANGUAGE = ?...
    ARCHIVE_HANDLE = 0
    IMPORTING HEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    NOT_FOUND =
    OBJECT =
    REFERENCE_CHECK =
    WRONG_ACCESS_TO_ARCHIVE =
    Export parameters:
    CLIENT
    Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
    Reference field: SY-MANDT
    Default value: SY-MANDT
    OBJECT
    Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
    Reference field: THEAD-TDOBJECT
    NAME
    Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
    Reference field: THEAD-TDNAME
    ID
    Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
    Reference field: THEAD-TDID
    LANGUAGE
    Enter the language key of the text module. The system accepts only languages that are defined in table T002.
    Reference field: THEAD-TDSPRAS
    ARCHIVE_HANDLE
    If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
    The value '0' indicates that you do not want to read the text from the archive.
    Reference field: SY-TABIX
    Default value: 0
    Import parameters:
    HEADER
    If the system finds the desired text, it returns the text header in this parameter.
    Structure: THEAD
    Table parameters:
    LINES
    The table contains all text lines that belong to the text read.
    Structure: TLINE
    Exceptions:
    ID
    The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
    LANGUAGE
    The parameter LANGUAGE contains a language key that does not exist in table T002.
    NAME
    The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
    Possible errors:
    The field contains only blanks.
    The field contains the invalid characters ‘*’ or ‘,’.
    OBJECT
    The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
    NOT_FOUND
    The system did not find the specified text module.
    REFERENCE_CHECK
    The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
    WRONG_ACCESS_ TO_ARCHIVE
    The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
    Reward if useful
    Anji

  • Where write long text referred at sales order item ?

    Hello,
    Where is possible to write long text referred at sales order item ?
    Tks.

    Hi,
    It is understood that you want to add a long text in the sales order at item level; say the long text is having around 10 pages of text. This text is to be added to the item level whenever you want.
    Follow the steps given below.
    1.     Keep the 10 pages of text in a text file.
    2.     Store the 10 pages of the text in the system; Menu Path >> SAP Easy access >> Tools >> Form Print out >> SAPscript >> Standard text; transaction code is SO10. Double click on that and give a text name u2018TEST001u2019, text id u2018STu2019; click on u2018Createu2019. Copy the text file and paste in the work file opened.
    3.     Select the item details in VA02. Select the text tab. Select the material sales text (or whichever you want). Click on details. u2018Change item noteu2019 will open; Click on u2018Standardu2026.u2019 (Ctrl +Shift + F5).
    4.     You will get u2018Insert Textu2019 box.
    5.     Enter the text name u2018TEST001u2019
    6.     Select u2018Expand immediatelyu2019.
    7.     Click on u2018Continueu2019.
    8.     Text will be pasted in the window opened.
    9.     Save the text.
    10.     The text can be viewed by clicking on details u2018buttonu2019. Menu path: VA02 >> item details >> text >>  material sales text >> Details button.
    11.     You can check all the texts stored in SAPscript by (Ctrl +Shift +F5) at step level 3. Click on u2018Findu2019. All the text will be displayed.
    Hope this information will be useful to you.
    Regards,
    K Bharathi

  • How to get Long text in CJ20n

    Hi,
       I need to get the long text that we maintained in CJ20n tcode under long text at project level. I need to display the same in Script layout or report. I didnot find any table or functional module to get it. please help me out.
    regards,
    Chandra

    Hi
    Double click on the Long text, it will take you to Text editor
    from the Menu GOTO-> HEADER
    you will find the OBJECT,ID,OBJECTNAME and LANGUAGE parameters for that lang text which are to be passed to the READ_TEXT fun module
    for displaying it on report use the above fun module and fetch the text in IT_LINES internal table and write it on report output
    You can also see the doc of the read_text
    READ_TEXT
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
    Function call:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING CLIENT = SY-MANDT
    OBJECT = ?...
    NAME = ?...
    ID = ?...
    LANGUAGE = ?...
    ARCHIVE_HANDLE = 0
    IMPORTING HEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    NOT_FOUND =
    OBJECT =
    REFERENCE_CHECK =
    WRONG_ACCESS_TO_ARCHIVE =
    Export parameters:
    CLIENT
    Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
    Reference field: SY-MANDT
    Default value: SY-MANDT
    OBJECT
    Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
    Reference field: THEAD-TDOBJECT
    NAME
    Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
    Reference field: THEAD-TDNAME
    ID
    Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
    Reference field: THEAD-TDID
    LANGUAGE
    Enter the language key of the text module. The system accepts only languages that are defined in table T002.
    Reference field: THEAD-TDSPRAS
    ARCHIVE_HANDLE
    If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
    The value '0' indicates that you do not want to read the text from the archive.
    Reference field: SY-TABIX
    Default value: 0
    Import parameters:
    HEADER
    If the system finds the desired text, it returns the text header in this parameter.
    Structure: THEAD
    Table parameters:
    LINES
    The table contains all text lines that belong to the text read.
    Structure: TLINE
    Exceptions:
    ID
    The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
    LANGUAGE
    The parameter LANGUAGE contains a language key that does not exist in table T002.
    NAME
    The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
    Possible errors:
    The field contains only blanks.
    The field contains the invalid characters ‘*’ or ‘,’.
    OBJECT
    The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
    NOT_FOUND
    The system did not find the specified text module.
    REFERENCE_CHECK
    The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
    WRONG_ACCESS_ TO_ARCHIVE
    The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
    IN SCRIPTS you can use the INCLUDE statement to print the Long texts
    /: INCLUDE TEXT<name> ID <id>  Lang <en> paragraph <za>
    Regards
    Anji

  • How to get Long text in report from FBL3N

    Hi,
    I need to get Long Text from FBL3N (G/L Account Line Item Display) in my report.Can anyone tell me in which table it is stored?

    Hi
    These long texts are not stored completely in any tables
    where as the parameters of these texts like OBJECT,OBJECTNAME and ID, LANGUAGE are stored in STXH table
    You have to pass these 4 parameters to the fun module READ_TEXT and to fetch the text.
    Double click on the long text will goes to text editor
    from menu GOTO-> HEADER  you will see the above 4 paramters
    see the doc of READ_TEXT fun module
    READ_TEXT
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
    Function call:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING CLIENT = SY-MANDT
    OBJECT = ?...
    NAME = ?...
    ID = ?...
    LANGUAGE = ?...
    ARCHIVE_HANDLE = 0
    IMPORTING HEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    NOT_FOUND =
    OBJECT =
    REFERENCE_CHECK =
    WRONG_ACCESS_TO_ARCHIVE =
    Export parameters:
    CLIENT
    Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
    Reference field: SY-MANDT
    Default value: SY-MANDT
    OBJECT
    Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
    Reference field: THEAD-TDOBJECT
    NAME
    Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
    Reference field: THEAD-TDNAME
    ID
    Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
    Reference field: THEAD-TDID
    LANGUAGE
    Enter the language key of the text module. The system accepts only languages that are defined in table T002.
    Reference field: THEAD-TDSPRAS
    ARCHIVE_HANDLE
    If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
    The value '0' indicates that you do not want to read the text from the archive.
    Reference field: SY-TABIX
    Default value: 0
    Import parameters:
    HEADER
    If the system finds the desired text, it returns the text header in this parameter.
    Structure: THEAD
    Table parameters:
    LINES
    The table contains all text lines that belong to the text read.
    Structure: TLINE
    Exceptions:
    ID
    The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
    LANGUAGE
    The parameter LANGUAGE contains a language key that does not exist in table T002.
    NAME
    The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
    Possible errors:
    The field contains only blanks.
    The field contains the invalid characters ‘*’ or ‘,’.
    OBJECT
    The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
    NOT_FOUND
    The system did not find the specified text module.
    REFERENCE_CHECK
    The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
    WRONG_ACCESS_ TO_ARCHIVE
    The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
    <b>Reward points for useful Answers</b>
    Regards
    Anji

Maybe you are looking for

  • No screen brightness control on an envy 17

    I had some maleware that was removed and it broke the Catalyst Control Center, I only has the Intel 300 HD to view the screen from. I used the 14-4-mobility-win7-win8-win8.1-64-dd-ccc-whql from 3D GuRu and, win64_152822 intel hd 3000 from the intel s

  • Heating Issue in BlackBerry 9220

    Hey, I took my BlackBerry 9220 few days back and configured my enterprise mail. Post activation of enterprise mails my handset start heating some time due to which my battery got down. Kindly suggest some way if I can use enterprise mails without hea

  • Adding excess quantity field in QA11

    Hello experts, I have a requirement to add one more field "extra recieved" in tcode QA11 below the field "short received" on screen "Record usage decission:stock" under tab "inspection lot stock". Is it possible to add this new field in this tcode,if

  • Handle National Character Objects

    Hi, I am working on Oracle Database 11g. To fetch the data from csv file loaded we are using a function which calls another function that converts the BLOB(csv file saved as blob column in one of the tables)  data into NCLOB. Please find below the fu

  • My thumb drive isn't being recognized on the windows.

    My thumb drive is being recoginzed on my mac but it is not recognized on Windows. It said "Unkown Category" I believe it happened when I did something to my thumb drive so that it will be put on password. I don't want that anymore, I just want my thu