Smartforms-item text

Hi exports,
I want to add item text for my form.
The condition is Read_text or internal text structure where id = vbbp language= nast-langu.Name = a concatenated vbak-vbeln and vbap-posnr abd object = zcri.
I am call function module Read_text in editor.I am getting error that language and id are not available.
Please give me suggestions.
thanks

do not remove the exceptions, place the same and uncomment it,as it woud be helpful in identifying the error.
DATA: G_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE,
G_ID LIKE THEAD-TDID,
G_LANG LIKE THEAD-TDSPRAS,
G_NAME LIKE THEAD-TDNAME,
G_OBJECT LIKE THEAD-TDOBJECT.
DATA: GT_VBAP LIKE VBAP.
DATA: G_VBELN(10) TYPE N,
G_POSNR(6) TYPE N.
PARAMETER: P_VBELN TYPE VBAK-VBELN.
SELECT SINGLE * FROM VBAP INTO GT_VBAP
WHERE VBELN = P_VBELN.
G_VBELN = GT_VBAP-VBELN.
G_POSNR = GT_VBAP-POSNR.
G_ID = 'VBBP'.
*G_LANG = 'E'.
G_OBJECT = 'ZCRI'.
CONCATENATE G_VBELN G_POSNR INTO G_NAME.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = G_ID
language = G_LANG
name = G_NAME
object = G_OBJECT
tables
lines = G_LINES
EXCEPTIONS
   ID                            = 1
   LANGUAGE                      = 2
   NAME                          = 3
   NOT_FOUND                     = 4
   OBJECT                        = 5
   REFERENCE_CHECK               = 6
   WRONG_ACCESS_TO_ARCHIVE       = 7
   OTHERS                        = 8.
Message was edited by: Sid

Similar Messages

  • PO header text, line item text in smartform

    HI,
    In my smartform I am fetching the 'PO header text', 'item text', and 'material text' for PO with "Include text"( by passing text name, object id etc..) with "no error if no text is maintained" checkbox checked
    This is working fine In the development servers....
    but when I moved these requests to quality servers...the above mentioned texts are not getting displayed in the smartform...while Texts are maintained in PO.
    What can be the problem??

    Hi,
    Thanx for ur reply...
    But will you pls tell me how to achieve the same??
    Thanx.

  • PO header and line item text in smartform

    HI,
    In my smartform I am fetching the 'PO header text', 'item text', and 'material text' for PO with "Include text"( by passing text name, object id etc..) with "no error if no text is maintained" checkbox checked
    This is working fine In the development servers....
    but when I moved these requests to quality servers...the above mentioned texts are not getting displayed in the smartform...while Texts are maintained in PO.
    What can be the problem??

    I guess there cant be any problem with the Include text . The problem can be either the text is not maintained or may be the include is not getting executed.
    See if you have any conditions in the condition tab.
    Check it in the debug mode and let me know if includ text is getting executed but value is not getting populated,
    Better you can do one thing
    Take the generated functional module name let us suppose your FM nae is /1BCDWB/SF00000100 then add SAPL   as below
    /1BCDWB/SAPLSF00000100
    Now go to SE38 and give this Program name and in the program find the code with the Text id .
    Supose your Text id is 'ZTXT'.
    find with this this ID and  find which function module is used to get your text.
    Put break point on the FM and now execute the form.
    Check whether values text is getting populated .
    Thnanks,
    Nageswar
    Reward if problem solved

  • Display header text and item text in smartform

    Hi all,
    I have to display header text and item text of PO in smartform BBP_SUSPO.
    So how to do that.. I have to use 'read_text' Fm or directly i can get values from any table ???
    Thanks in  advance.
    Regards,
    Anagha Deshmukh

    Hi Amit,
    I have used inculde text that is avalable in smartforms to display header & Item text in this way
    For header :
    Text Name         Header guid
    Text Object       BBP_PD
    Text ID           HTXT
    Language          EN
    For Item:
    Text Name         Item Guid
    Text Object       BBP_PD
    Text ID              ITXT
    Language          SY-LANGU
    U can used this attributes in read_text function mdule also.
    Thanks & Regards,
    Anagha Deshmukh

  • Item text needed in Smartform for Purchase Order

    Dear Friends
    i am creaing a smartform form for a Purchase Order , where i am to show item text , & material po text
    also but i am not getting how to show them , i have tried with Function Module Read_ text but if for any item text is not maintained it throw a error     text xxxxxxxxxx code f01 not found in language en .
    kindly somebody help me with the elaborated steps
    regards
    digvijay rai

    Requirement : Need to display the item text in the scripts Tcode me23n.
    problem: the below subroutine program which i wrote reads the entire paragraph but when the values transfered to the script, the script variable accepts only one line. can you please help to pass  the entire value to scripts.
    Actual output
    th respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the exchoose warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.D
    Displayed  output
          th respect to the materials. The only warranties for SAP Group products and s
    code written in scripts :
    DEFINE &VALUE& TYPE STRING(500)
    PERFORM ITEMTEXT IN PROGRAM ZDISPLAYINGITEMTEXT
    USING &EKKO-EBELN&
    USING &EKPO-EBELP&
    CHANGING &VALUE&
    ENDPERFORM
    Item Text : &VALUE&
    REPORT  ZDISPLAYINGITEMTEXT.
    DATA : name type thead-tdname,
           p_ebeln TYPE ekko-ebeln,            "  Purchase order Number
           p_ebelp TYPE ekpo-ebelp.
    types :strin(450).
    data : p_valu type strin.
       data : p_valu1 type strin.
    data: lines type table of tline with header line.
       data: IT_LINE LIKE STANDARD TABLE OF itcsy INITIAL SIZE 0 WITH HEADER LINE,
    IT_TEXT1 LIKE STANDARD TABLE OF itcsy INITIAL SIZE 0 WITH HEADER LINE,
    W_LINE LIKE IT_LINE.
    Types : stri(450).
    data f_name type stri.
    FORM itemtext TABLES i_intab STRUCTURE itcsy
                           i_outab STRUCTURE itcsy.
    *BREAK-POINT.
        READ TABLE i_intab INDEX 1.
      MOVE i_intab-value TO p_ebeln.
      READ TABLE i_intab INDEX 2.
      MOVE i_intab-value TO  p_ebelp.
    *parameters: p_ebeln type ekko-ebeln,
               p_ebelp type ekpo-ebelp.
    concatenate p_ebeln p_ebelp into name.
    call function 'READ_TEXT'
         exporting
              id                      = 'F01'
              language                = sy-langu
              name                    = name
              object                  = 'EKPO'
         tables
              lines                   = lines
         exceptions
              id                      = 1
              language                = 2
              name                    = 3
              not_found               = 4
              object                  = 5
              reference_check         = 6
              wrong_access_to_archive = 7
              others                  = 8.
    loop at lines.  "   INTO w_line.
    BREAK-POINT.
    *move w_line to it_text1.
    *append it_text1.
    *write:/ it_line.
    *p_valu = f_name.
    *p_valu1 = w_line.
    concatenate p_valu lines-tdline into p_valu.
    *p_valu = f_name.
    endloop.
    message p_valu type 'I'.
    READ TABLE i_outab INDEX 1.
        MOVE p_valu TO i_outab-value.
        MODIFY i_outab INDEX sy-tabix.
    *loop at lines.
    write:/ f_name.
    *endloop.
    *READ TABLE i_outab INDEX 1.
       MOVE lines TO i_outab-value.
       MODIFY i_outab INDEX sy-tabix.
    endform.

  • Printing item text smartforms

    Hai friends,
    In my invoice i have 7 line items and some materials are "Duty Paid". For this they are maintaining a text in "Item Text" tab in VF01 transaction for each materials.
    I have to print the text one by one in the footer.
    How can i do this. How to display the item text.
    Thanks.

    Hi,
    Use the Function module READ_TEXT to read the item texts and print them in the footer.
    You need to pass paramters to FM Read_text. Go to VF03. go to item texts. Highlight any item texts and click on the display button below. It will take you to the text editor. On that screen Go to-> Header will show the following details.
    Text Name       1203832486000140                     
    Language        EN                                   
    Text ID         0002 Item note                       
    Text Object     VBBP       Sales     Item texts      
    Pass the same values to the fields of READ_TEXT FM.
    TEXTNAME would be the concatenation of salesorder and line item.
    Thanks,
    Vamshi.

  • How to comment in smartform for text value in abap

    how to comment in smartform for text value in abap.
    i want to comment text value which is coming in output
    From drag and drop option i had dropped an item text in text window and now i dont want to delete it i just want to comment it so can any one help me in commenting the text value.
    Advance Thanks for your help

    hi
    open the text element in the smartform.
    on the left corner, we have text editor button.
    open that and change the editor (goto-->change editor)
    on the new line, give the format as comment line /*. and you can write the comments as required.
    such lines doesnt reflect in the output layout.
    thanks
    pavan

  • Getting Item Text  from sale order items

    Hi All,
    I am trying to get sale order item text using Include text in smartforms.
    my text object  is VBBP and my text id is 0004.
    What should I pass in Text Name  ?.---Order Number or Item Nunmber or Both.
    If both can you guys explain how to pass both ?.
    will be REVARDED.

    Hi,
    When you see the texts in the line item of va03..
    Double click on the text..
    Then in the menu..Goto -> Header..
    There you can find the Text name..
    Generally if it is Item text..Then the text name will be
    order number + line item
    Thanks
    Naren

  • Display 'item text' and 'material PO text' in a purchase order ?

    hello,
    i am creating a purchase order and i have inputted the 'item text' and 'material PO text' in the ITEM TEXT of the ITEM DETAILS section. I have a smart forms where i am displaying the purchase order by displaying fields from various tables like ekko,ekpo,t024,eket etc ..
    I want ti display the 'item text' and the 'material PO text' on the smartform but i cant find the table or the fields which keep these values(text) ??
    help me on this one ? thanks for yur time...

    c the example below:
    PERFORM read_text USING g_transp 'Z010'.
    FORM read_text USING l_text l_id.
      DATA : lt_text TYPE TABLE OF tline WITH HEADER LINE.
      DATA : l_name LIKE thead-tdname.
      CLEAR l_name.
      l_name = g_delivery.
      CLEAR lt_text.
      REFRESH lt_text.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
      CLIENT                        = SY-MANDT
          id                            = l_id
          language                      = sy-langu
          name                          = l_name
          object                        = 'VBBK'
        TABLES
          lines                         = lt_text
       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.
      CLEAR l_text.
      LOOP AT lt_text.
        CONCATENATE l_text lt_text-tdline INTO l_text.
      ENDLOOP.
    ENDFORM.                    "read_text

  • Item text in output

    Hi Friends,
    How to get item text in output (Smartform), which is maintained at Sales order Item Level - Text Tab aginast a line item. Pls reply me the table name and fielnd name.
    Text is maintianed almost 20 words (100 Char)
    Srikky.

    Hi
    Getting the sales order text item data is bit complex work. you can get the text by following
    1. Go to SE11 brows the table STXH
    Get  the following TEXT OBJECT " VBBK"
    TEXT NAME " Sales order No."
    TEXT ID " TEXT ID OF ITEM"
    2. GO TO SE37
    Put the function Module " READ_TEXT"
    Put the following Value
    ID "TEXT ID"
    NAME " Sales Order No."
    OBJECT "VBBK"
    BY THIS YOU CAN ACHIEVE THE TARGET.
    Regards
    Shambhu Sarkar

  • PO line item text and material po text

    Hi,
    I want to fetch the text maintained at item po level and print the same with form..
    I am passing following parameters in my Include text in smartforms..
    Text name         &VAR6& ..... concatenated po number and item
                            ( 4700000011 + 00010) = 470000001100010
    Text object       EKKO
    Text ID             F01
    Language          EN
    but its failing to fetch the same....I guess the problem is with var6 value...not sure
    also for material po text i m passing
    Text name         &G_ZEKPO-MATNR&  ..
    Text object       MATERIAL
    Text ID           BEST
    Language          EN
    This is also failing.....
    In both cases text is maintained...  what is the problem??
    Pls help..

    See this sample code
    ABAP READ_TEXT functions to read the SAP Long Text
    You have to used the READ_TEXT functions to read the SAP long text. e.g. Sales Order, Purchase Order Item text etc.
    To check your long text header, go into the long text. Click Goto -> Header
    Example of READ_TEXT functions reading tables PBIM - Independent requirements for material.
    REPORT ZTEXT .
    TABLES: PBIM.
    stxh, stxl, stxb - trans tables for text
    ttxit - text on text-ids
    ttxot - Short texts on text objects
    Transaction MD63
    SELECT-OPTIONS: S_MATNR FOR PBIM-MATNR,
                    S_WERKS FOR PBIM-WERKS.
    DATA: BEGIN OF HTEXT.
            INCLUDE STRUCTURE THEAD.
    DATA: END OF HTEXT.
    DATA: BEGIN OF LTEXT OCCURS 50.
            INCLUDE STRUCTURE TLINE.
    DATA: END OF LTEXT.
    DATA: BEGIN OF DTEXT OCCURS 50.
    DATA:   MATNR LIKE PBIM-MATNR.
            INCLUDE STRUCTURE TLINE.
    DATA: END OF DTEXT.
    DATA: TNAME LIKE THEAD-TDNAME.
    SELECT * FROM PBIM WHERE WERKS IN S_WERKS.
      MOVE PBIM-BDZEI TO TNAME.
      CALL FUNCTION <b>'READ_TEXT'</b>
           EXPORTING
              CLIENT                  = SY-MANDT
              ID                      = 'PB'
              LANGUAGE                = 'E'
              NAME                    = TNAME
              OBJECT                  = 'PBPT'
            ARCHIVE_HANDLE          = 0
         IMPORTING
              HEADER                  = HTEXT
         TABLES
              LINES                   = LTEXT
         EXCEPTIONS
              ID                      = 1
              LANGUAGE                = 2
              NAME                    = 3
              NOT_FOUND               = 4
              OBJECT                  = 5
              REFERENCE_CHECK         = 6
              WRONG_ACCESS_TO_ARCHIVE = 7
              OTHERS                  = 8.
      LOOP AT LTEXT.
        IF LTEXT-TDLINE NE ''.
          MOVE LTEXT-TDLINE TO DTEXT-TDLINE.
          MOVE PBIM-MATNR TO DTEXT-MATNR.
          APPEND DTEXT.
        ENDIF.
      ENDLOOP.
    ENDSELECT.
    LOOP AT DTEXT.
      WRITE:/ DTEXT-MATNR, DTEXT-TDLINE.
    ENDLOOP.
    http://www.sapdevelopment.co.uk/sapscript/sapscript_texts.htm
    Also
    *Internal table to store standard texts
    DATA: IT_TEXTS like T_LINE occurs o with header line.
    CALL FUNCTION 'READ_TEXT'
         EXPORTING
            CLIENT                  = SY-MANDT
              id                      =       "Text ID
              language                =       "Laguage
              name                    =       "Text name
              object                  =       "text object
            ARCHIVE_HANDLE          = 0
       IMPORTING
            HEADER                  =
         tables
              lines                   = IT_TEXTS   "Internal table
       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.

  • Getting text ID and Text object  associated with item texts in PO...

    Hi,
    To print standard text on smartform for a given item in purchase order, I need to find the text ID and object associated with it.
    There are various texts like item text, Info record PO text, Material PO Text, Delievry Text, etc...
    Now when I go to ME22N, and select item detail for any item -> Texts , how do I get text ID, and object associated with it ?

    Hi ,
        Use table stxh,stxl
        FM read_text.
        you can view the text id by following
        this link
         me23->header-text-double click on text->menu goto->
         header        
    Regards
    Amole

  • Long Purchasing Doc Item Text

    I am having an issue with out Purchase Order Smartform.  Our users input item text for their PO's that can be lengthy at times.  What I need to know is if there is a way I can make these long item texts automatically wrap to the next page?  Is there some setting for the window or the text field to make this happen?  Thanks in advance for the help.
    Edited by: Matthew Cassell on Apr 23, 2009 3:56 PM

    I've figured out the problem.  After some more testing of the form I got a more useful message that said that the contents of a row was greater then 176 cm. 
    Apparently a single row in a table in the form cannot have more then approximately 10 pages worth of text in it.  So what I did was take the text element out of the table and put it into a loop before the table and that fixed our issue.
    Thanks again for all the great help.

  • How to retrieve the Line item Text

    Hello,
    I need to retrieve the Line item Text in the PO (Material PO text). Can anyone provide me a sample code? i need to display this in a smartform.
    I could not retrive it from the Function Module READ_TEXT.
    Can any one help me regarding this?
    Regards,
    kvsskirankumar

    HI,
    Use function module READ_TEXT to fetch PO line item text by passing id, language, name and object.
    For Ex:-
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        CLIENT             = SY-MANDT
        id                      = 'F01'
        language          = 'E'
        name                 = << concatenate PO number & line item>>
        object                = EKKO
      tables
        lines                   = g_t_ltext.
    Thanks & Regards
    Sudheer Madisetty

  • PO item text does not display in form at first. Only after saving PO

    Hi Guys,
    We're facing a peculiar situation. We print line item texts of a PO in the smartform. However what we noticed was that as soon as the PO is created and we choose to print the po, the item texts do not appear. When we checked in tables STXH and STXL theese texts were not even registered in the tables. All this time the PO is saved.
    Then we went back into the PO in ME22n, made a slight change somewhere and saved the PO. Now these texts appear in the tables STXH/STXL and also in the print out. What could the reason be?
    Regards,

    Hi
    You should check your PO customizing, probably the text is set to be loaded in modification only
    Max

Maybe you are looking for