SAP SCRIPT Header text and Item text not printing in customized PO

Hello Experts,
                      I have copied the standard MEDRUCK to ZMEDRUCK and customized the form according to the requirement.
I want to print the header text and Item text in my form.
For Header text I have used :
/: INCLUDE &EKKO-EBELN& OBJECT EKKO ID F01
Problem 1: The text what I enter in header text is flowing only when I hit on print preview without saving the form. Once I save the SAP SCRIPT  and click on print preview the field is appearing blank. I also tried to print the form, but the field is appearing blank even on the print out.
Problem 2: For item text the field is concatenation of  EBELN & EBELP. Can anyone suggest me how to concatenate and fetch the text in item text.

Hi,
    Im getting an error in my subroutine pool for i_xtline which is to fetch ITEM TEXT., It says its not a in any internal table nor defined as data. How can I proceed further. I have pasted my code below. Please check and revert ASAP
PROGRAM  ZMEDRUCK_SUBP1.
TABLES: EKPO, EKKO.
FORM fetch_table_data TABLES in_tab STRUCTURE itcsy
                             out_tab STRUCTURE itcsy.
data xname like THEAD-TDNAME.
data i_xtline like xtline.
clear i_xtline.
refresh i_xtline.
CONCATENATE EKPO-ebeln EKPO-ebelp INTO v_item_text.
MOVE v_item_text to ITEMTXT.
CALL FUNCTION 'READ_TEXT'
  EXPORTING
  CLIENT                        = SY-MANDT
    id                            = F01
    language                      = EN
    name                          = ITEMTXT
    object                        = EKPO
  ARCHIVE_HANDLE                = 0
  LOCAL_CAT                     = ' '
IMPORTING
  HEADER                        =
  tables
    lines                         = i_xtline
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.
ENDFORM.

Similar Messages

  • PO Header Texts and item texts

    Dear Experts
                        PO header texts and item texts are stored in which table. please tell me the table name.
    Here i have configured PO version management. in that i want to control some sensitive fields change only version management will get triggered. it is done through  for this i have configured the sensitive fields in PO Print relevant changes. in that config the PO header texts and item texts table and field name is not exist.
    Now i have change the PO through me22n in header texts version management is triggered for this. i want to control this if some body change the po header texts and item texts version management should not triggered.
    is it possible.
    Regards
    Anand.

    Hai,
    Try this  table STXH.
    Get the required information(input) for the function module 'READ_TEXT'.
    CALL FUNCTION 'READ_TEXT'
          EXPORTING
            ID                            = 'ST'
            LANGUAGE                      = sy-langu
            NAME                          = thead-tdname
            OBJECT                        = 'TEXT'     
        ARCHIVE_HANDLE                = 0
        LOCAL_CAT                     = ' '
      IMPORTING
        HEADER                        =
          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
        if sy-subrc eq 0.
          loop at lines.
            wa_HEADER_TEXTS-TEXT_FORM = lines-TDFORMAT.
            wa_HEADER_TEXTS-TEXT_LINE = lines-TDLINE.
            append wa_HEADER_TEXTS to lt_tmp_HEADER_TEXTS.
          endloop.
    Better take the help of abaper.
    With Regards,
    Jaheer

  • Purchase requisition - Header Texts and Item Texts

    Hi,
    In Creating Purchase requisition if we enter the Header note text and Item text, in which table these texts will be stored.
    Regards,
    Ram

    Hi,
    To see any text go to the detail of that text you will have a magnify button below that text click there you will get the stand text editor open.
    Click on GOT->Header it will give the information you need to get this text via function module 'READ_TEXT' they are sored in STXH.
    Points if find this helpful
    Regards,
    Yakub Shah

  • 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

  • Header Text and Item Text for Sales Order

    Hi,
    Can any one help me on Header Text and Item Text............ ASAP.
    <b>STXH & STXL</b> 
    TDOBJECT :
    TDID:
    TDNAME :
    Regards,
    Raghunath.S

    Hi Raghunath,
    Go to the text <b>in plain page mode</b>, and then you do via the menu '<b>GoTo</b>' -> '<b>Header</b>' and you get the parameters you need ( object, name, id, ...).
    Repeat this operation for each text.
    <u>Tips :</u> If you want to handle those text, use FM : READ_TEXT, EDIT_TEXT, and SAVE_TEXT...
    Hope this helps,
    Erwan

  • Header Text And Item Text in Sales Order

    Dear ALL
    First one:
    I have two different problems with text in sales order, when i create sales order after giving all the information like customer and material.
    If i navigate through the Go To-- > Header ---> Text then there is a dump is any idea what all i need to check?
    Error  Message
    A RAISE statement in the program "SAPLOLEA " raised the exception 
    condition "CNTL_ERROR".                                           
    Since the exception was not intercepted by a superior program     
    in the hierarchy, processing was terminated.                                                                               
    Short description of exception condition:                                                                               
    For detailed documentation of the exception condition, use        
    Transaction SE37 (Function Library). You can take the called      
    function module from the display of active calls.                 
    The termination occurred in the ABAP/4 program "SAPLOLEA " in          
    "AC_SYSTEM_FLUSH".                                                     
    The main program was "SAPMV45A ".     
    The termination occurred in line 27                                    
    of the source code of program "LOLEAU02 " (when calling the editor 270).
    Second one:
    when i am creating the sales order without enter the quantity  , customer and material if i navigate through the Header Text or item  Text i can able to go but there in no dump, the moment i enter the quantity for the material then it over writes all the text in item and header.
    Any suggestions please?
    Thanks & Regards,
    Veer

    Dear Veer,
              Please take the help from the technical people to fix the issue because it may related activation some Z developments which are related to the text.
    Check the text determination procedure configuration settings also whether the text is calling from the Customer master and Material master.
    If the text is calling from the master data maintain the text in the master data then try.
    I hope it will help you
    Regards,
    Murali.

  • Find and item Search not working inside custom list in sharepoint 2013

    HI,
    In Sharepoint 2013 , i configured the Search. it is working in home page search Box and Find item search box  inside custom list as well But one particualr custom list  Find an item is not working. Any clue ?Thanks in Advance
    Thanks
    sanjay pradhan  

    Hi,
    According to your description, my understanding is “find an item” search box in a custom list not work in your environment.
    As search box and “find an item” search box in your home page are working, so the search service application is working.
    Do you have any customzation to the particular custom list ?
    If No, I suggest you can full crawl the data in Central Administration ->Manage Service Application->” Search Service Application”-> Manage Content Sources” to test if it works. 
    Also, please check if you have set "Allow items from this list to appear in search results" in list settings->Advanced Setting to true
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Header and Item Texts for Sales Order

    Hi,
    Can any one help me on Header Text and Item Text...........
    <b>STXH & STXL</b>
    TDOBJECT :__________
    TDID:_____________
    TDNAME :_______________
    Regards,
    Raghunath.S

    Hi
    Double click on the related text
    it will open Text editor
    from Menu GOTO-> header
    for SO HEADER Texts
    then you see the 4 paramters like OBJECT (VBBK),ID,OBJECTNAME (sales Order No) and LANG
    FOR SO ITEM texts
    OBJECT (VBBP table), ID, OBJECTNAME(SO no plus ITEM No) and LANG
    You have to pass these 4 parameters to READ_TEXT fun module to fetch the corresponding texts
    see the doc on 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).
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Z-Report for PR using ES language not getting the Header and Item text deta

    Hi,
    We have developed Z report for PR report and we ahve used ES and EN language, but when i select language ES and execute the report then we are not getting the Header and Item text data,
    Secondly when We select language EN and execute the report then we are getting the Header and Item text details.
    Please guide me.
    Thanks
    Shital

    Have you maintained Tetexxt in ES language or is it that you are expecting  on selecting ES the text from En will get coverted to ES and display in your report?

  • Transaction to Mass Update Header and Item text in Purchase Order

    Dear All
    Whether any Transaction in SAP to mass update the Header and Item text in Purchase Order.
    One Single Text For Ex :" This is a Dummy PO" .
    This text needs to be updated in large number of POs.
    Please let me know your views
    Reg
    Shyam

    Hi Shyam,
    You can make use of BAPI_PO_CHANGE for this. See the documentation of this BAPI in SE37 for more information.
    "You can transfer header and item texts in the PoTextHeader and PoTextItem tables. You import texts
    for services in the PoServicesText table. Texts can only be replaced complete."
    Regards,
    Purnima.

  • Invoice ref and item text not printing in check ( F110)

    Hi Experts,
    When i tried to print check using tcode F110 by following the procedure , i came to know in structure REGUP , invoice reference ( regup-rebzg) and item text ( regup-sgtxt) are not updating in REGUP . I checked this in debugger mode.
    Also reference number ( regup-xblnr ) is updated in structure ,but not displaying in output check format.
    Actually we are using ( ECC 6.0 ) zform and z print program zRFFOUS_C which are copied from std one and made some changes.
    Even I checked for standard FORM F110_PRENUM_CHCK and RFFOUS_C by changing
    in FBZP configuration level (assiging std form and std program ).
    In this also same issue as mentioned above in debugger mode.
    kindly give me any suggestions .
    My requirement is to print
    1. invoice reference ( rebzg)( instead of document number)
    2. reference number (xblnr )( same as your document )
    3 . item text ( sgtxt )
    4. amount ( wrbtr)
    Thanks & regards,
    Rahul

    Hi all,
    I too am facing the problem of missing document numbers and invoice text while using F-58 for printing cheques. I am using the standard program RFFOUS_C but have customized the scrip F110_PRENUM_CHCK. If anyone has a solution to this problem please suggest.
    Thanks,
    BP

  • Item text and item note are not transfering from SRM to ECC on to PR

    Hello Expers!!!
    Due to some requirement we added some logic in BBP_CREATE_BE_RQ_NEW to print the used ID of the shopping cart creator on PR under item text requisitioner tab. but after moving these changes to production the item text(Vendor text) and item note(internal note) which are maintained in the shopping cart are not printing on the Purchase requisition under item text and item note tabs. these two texts were printing correctly before moving our changes.
    please suggest me how this item note and item text will print on PR. Is it a standard functionlity in SRM 5.0?
    is this because of move over changes?
    suggest me to resolve the issue....
    thanks in advance...
    Regards,
    CD Reddy

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • What table stores delivery header and item texts?

    Hi Gurus,
    Which table stores header and item text of delivery? We use VBBP text object and provide test id, language to read the texts using function module 'READ_TEXT'.
    Can you please tell me which table store the texts?
    Best regards,
    Pavan

    >
    Pavan1 wrote:
    > Hi Gurus,
    >
    > Which table stores header and item text of delivery? We use VBBP text object and provide test id, language to read the texts using function module 'READ_TEXT'.
    >
    > Can you please tell me which table store the texts?
    >
    > Best regards,
    > Pavan
    This stores in text objects so you need to pass
    Here is simple thing to find what to pass to the read_text function module.
    Go to delivery - If you want to find header text - GOTO (on application menu) - Header -texts - Double click on the text where you enter text - GOTO (on application menu) - Header - This will give you a popup kind of screen where you can find the
    text name (if it is header - only delivery number and if it is item - deliverynumber + item number ) , lang, Text id, Text object
    This will give you the required parameters... .

  • How to create Header Text and Item view

    HI Experts,
    Please solve it out.
    I need to create a assignment block which display Employee details as per there Role. There are 3 fixed role like Role1 Role2 and Role3. under beneath of each role different user assign.
    My requirement is to display the like Header(Roles) and item(user) in Tree form.
    The user are in custom database table .
    Example
    Role1
           User_ID1           User_Name
           User_ID2           User_Name
    Role2
           User_ID3            User_Name
           User_ID4            User_Name
           User_ID5            User_Name
    Role3
           User_ID6            User_Name
           User_ID 7           User_Name
    Please suggest how can i achieve this tast.
    Thanks
    Imran

    Hi Faisal/ Christian,
    Thanks a lot lot for you suggestion, its very helpful.
    I understand very well, to create Tree view with Access Object and its dependent object.
    But my doubth is that in my requirement there is no Access object and dependent object involve, Please follow below points.
    In My Object, Predecessor are like Heading text, No data display in predecessor (Role1, Role 2, as shown above in example).
    There will be only 3 predecessor in all time.
    The Successor value for each Predecessor available in the custom Ztable. and there no BOL object created for this ztable.
    Please suggest ,what i need to do to accomplished this object.
    I really really appriciate for your advice.
    Many Thanks,
    Imran

  • Tables for Purchase Requistion Header and Item Texts

    Hi,
    In which Tables does Purchase Requistion Header and Item Texts will be stored.
    Thanks in advance

    Not sure , you can try with T166K , T166P

Maybe you are looking for