ME23N - Header Text

Hi Gurus,
             In ME23N transaction, I want to default the Header text value(long Text).Can you please let me know how to do that.
Thanks in advance,
Ashok...

"EXIT_SAPMM06E_013" is called during PO save. This will have the PO number.
Use INIT_TEXT, SAVE_TEXT and COMMIT_TEXT function modules in this exit to default the header text.

Similar Messages

  • Default text in Purchase Order Header text

    Hi,
    When i create a PO, only for a specific plant I want a default text description to be captured automatically in the Header Text.
    How to get this done?
    Please post your inputs.
    In case you need any additional info please revert.
    Thanks,
    Suresh.

    Hi
    Use this BAdi
    The Business Add-In (BAdI) ME_PROCESS_PO_CUST enables you to extend the business logic of the Enjoy purchase order on an individual basis.
    You can thus influence the dialog transactions ME21N, ME22N, ME23N, and ME29N, and the BAPIs BAPI_PO_CREATE1 and BAPI_PO_CHANGE.
    Typical applications for this BAdI include:
    Processing of own objects
    Processing of additional data on standard objects
    Implementation of additional checks and derivations
    Change of data in standard fields
    Change in field selection
    The PROCESS_ITEM method enables you to change the item data and check it for correctness.
    Thanks & Regards
    Kishore

  • Down load PO Header text

    Hi,
    My client is switching from SAP to Oracle. (It was taken over by a company which is using Oracle ERP)
    We are keeping all the MM and FI tables in a Data Portal.
    We need to take the data of  PO Header Texts also.
    How to down load the PO header text in to Excel.
    Thanks
    Prasad

    you have to write a small ABAP that calls function module READ_TEXT to get the text in a readable way.
    Read_Text Function module is used to retrieve the text for a any long text in SAP.  
    To find the the parameters needed . 
    1. goto ME23N, enter PO Number 
    2. Goto-->PO header Text tab
    3. click on the TEXT (which you want to know the Text id) , then click the EDITOR Icon
    4. when you are in the editor, then choose from menu GOTO > HEADER . in the Next window you will find Text Name. Text ID, Language. etc...
    you can find many examples for such coding in the web using google search

  • How can i read header text?

    how can i read header text?
    ie, i want to read two values that are stored as header text in purchase order.
    how can i retrieve that values?

    Hi,
    The long texts of a document are stored in a encrypted format in the STXH and STXL tables, where STXH stores the header information of the
    long text like TDOBJECT, which indicates which text object the long text belongs to, TDID which indicates the Text ID and TDNAME which is
    the actual name of the long text.
    As these texts are stored in a encrypted format, the text cannot be read using a SELECT statement. You will have to use the function READ_TEXT. The easiest way of getting to know the parameter values is to go to a document, open the long text in a full screen mode. For example, when you wan to see the long text for a Purchase order, go to transaction ME23n. Assume, you want to see the parameters for the Header Text. In the first Tab Strip Control, click on the Texts tab and select the Header Text node on the left hand side, which will display the text on the right hand side. Now, double click on the text editor on the right hand side. This will open the text in the full screen mode. In the menu Go To --> Header, you should be able to see the values for all the three parameters we discussed above. We will have to do the same thing for whichever text parameters we want to see.
    TREC-TDSPRAS = SY-LANGU.
    TREC-TDID = 'ECCS'.
    TREC-TDOBJECT = 'ZECCS'.
    TREC-TDNAME = Z_ACCOUNT.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    ID = TREC-TDID
    LANGUAGE = TREC-TDSPRAS
    NAME = TREC-TDNAME
    OBJECT = TREC-TDOBJECT
    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.
    Details:
    Language DE
    Text ID F01 Header text
    Text Object EKKO Purchasing doc. header texts
    Regards,
    Shiva Kumar

  • PO Header Text --- Length more than 132.

    Dear Experts,
    I hv to read header text (me23n) of po where terms and conditions are defined. I hv used READ_TEXt FM which return the internal table L_LINES. Because I hv to display label also i.e.
    Header Note  (label)
    for example , the pr qty is 1000 , but we are doing sub contracting po for only 500 and for other 500 we want to do std po but system allows us to do only subcontracting po...for that we are doing manually prs for the remaing qty... Moving ahead, management wants us to Purchase     ( This is entered text).
    Payment Terms (label)
    1) 100% advance.
    2) 100% advance.
    3) 100% advance.
    so i hv used my own internal table of type TLINE.
    Problem is , the length of TLINE-TDLINE is 132, but the length of entered text is more than 132 (Header Note above).
    when i copy the tdline from L_LINES to w_line, it does copy only 132 characters.
    Can anyone guide me in this.
    And one more thing is , as above in terms and conditions, after first point enter is pressed. how to capture if enter is pressed.
    Regards,
    Jaspal Kumar

    Hi
    See the below logic
    DATA: lv_string(2000).
          LOOP AT it_tline1 INTO wa_tline1.
            CONCATENATE lv_string wa_tline1-tdline INTO lv_string SEPARATED BY space.
            CLEAR wa_tline.
          ENDLOOP.
    let me know if there are any issues.

  • Transfer PO Header text to backend

    Hi,
    I have a requirement where the header text for PO needs to be transfered to backend.
    I have written the code in BBP ECS OUT badi. i have picked up the text and text id from BBP PO GET DETAIL function module and passed it to the ct_bapi_poheader_text parameter in the BADi.
    When i check in ME23n i donot see the description.
    I am in SRM 5.0. Can you please guide me on this. I have checked the threads here but none of them were of real help.
    Regards,
    Zubair.
    Edited by: Zubair Ahmed on Aug 25, 2009 11:51 AM

    Hi Kariya,
    I think you can use this BAdi: ME_PROCESS_PO_CUST - Enhance Processing of Enjoy Purchase Order.
    Use the method FIELDSELECTION_ITEM to "GET_DATA" / "SET_DATA" in the following available parameters:
    - IM_HEADER - Document header
    - IM_ITEM - Document item
    Cheers.
    Pedro

  • Header text

    hi,
    how to create a header text in smartforms.
    please give me exact steps to proceed.

    Hi,
    1.The long texts of a document are stored in a encrypted format in the STXH and STXL tables, where STXH stores the header information of the
    long text like TDOBJECT, which indicates which text object the long text belongs to, TDID which indicates the Text ID and TDNAME which is
    the actual name of the long text.
    As these texts are stored in a encrypted format, the text cannot be read using a SELECT statement. You will have to use the function READ_TEXT. The easiest way of getting to know the parameter values is to go to a document, open the long text in a full screen mode. For example, when you wan to see the long text for a Purchase order, go to transaction ME23n. Assume, you want to see the parameters for the Header Text. In the first Tab Strip Control, click on the Texts tab and select the Header Text node on the left hand side, which will display the text on the right hand side. Now, double click on the text editor on the right hand side. This will open the text in the full screen mode. In the menu Go To --> Header, you should be able to see the values for all the three parameters we discussed above. We will have to do the same thing for whichever text parameters we want to see.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    ID =
    LANGUAGE =
    NAME =
    OBJECT =
    ARCHIVE_HANDLE = 0
    LOCAL_CAT = ' '
    IMPORTING
    HEADER =
    TABLES
    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 <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    2.How do I create a long text for a document?*Please refer to the important parameters that are discussed in the previous question of reading texts. We will need the same parameters for saving the text as well. The function modules that you can use for this will be SAVE_TEXT followed by COMMIT_TEXT. The parameters play a very important roles as you might not see the saved text in the standard transaction if you give wrong parameter values.
    CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    HEADER =
    INSERT = ' '
    SAVEMODE_DIRECT = ' '
    OWNER_SPECIFIED = ' '
    LOCAL_CAT = ' '
    IMPORTING
    FUNCTION =
    NEWHEADER =
    TABLES
    LINES =
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    OBJECT = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'COMMIT_TEXT'
    EXPORTING
    OBJECT = '*'
    NAME = '*'
    ID = '*'
    LANGUAGE = '*'
    SAVEMODE_DIRECT = ' '
    KEEP = ' '
    LOCAL_CAT = ' '
    IMPORTING
    COMMIT_COUNT =
    TABLES
    T_OBJECT =
    T_NAME =
    T_ID =
    T_LANGUAGE =
    Regards,
    Shiva Kumar

  • Printing header text

    hi,
    when i went through smart form code ,i found the following code for printing texts for items(me23n-->item--
    >texts)
    in TEXT  node in smartform   (for printing item text):
    TYPE: INCLUDE TEXT
    TEXT NAME : &G_TEXT_KEY&
    TEXT OBJECT: EKPO
    TEXT ID: F01
    LANGUAGE: &SY-LANGU&
    How to create text name,text object,text id?
    when i gave text name & text id in SO10 &then display it's giving message Text Id F01 for Text Object  TEXT does not exist.
    how to create text object EKPO instead of  TEXT.where can i see this TEXT OBJECT option.
    how can i print header texts in ME23N?
    please help?

    hi mustafa,
      1. If you want to create text name, text object, text id.. you have to create functionally in spro settings....
       spro
    > mm
    > purchasing
    > messages
    > texts for messages
    > define texts for purchase order
        here you can define header texts or item text functionally
    If you want to create in you po then go to header text tab and create with respective  text
    2.  if you want to print header texts simply pass only
         po number in text_name,
         text_object : ekko
         text_id : depends up on ur text check i header text tab
        language key u know as usual
    Don't forget to reward points
    praveen

  • Header text not getting populated in PO in R/3 from SRM!

    Hi,
    Our requirement is to automatically populate the email ID of the user in the header text once the PO is created in R/3 with reference to Shopping Cart in SRM.
    our scenario is classic.
    So far, we have used the following Badis in our development but seems to be not working.
    1.ME_Process_PO_Cust
    2.BBP_PO_INBOUND_BADI
    Need your inputs to solve this email querry.
    Regards,
    Archit Gandhi
    Edited by: Archit Gandhi on Feb 4, 2011 11:14 AM

    Check "Text Schema" & "Text Mapping" config part under Cross-Application Basic Settings..
    This should help you.. If you need help in configuration let me know..
    Thanks!!
    Bharath

  • Copy of header text

    Hi SAP Gurus,
    Is there any SAP std. possibility, If I entered the text in the Credit memo heder and which get copied into the output of the Invoice list(Credit memo list).
    If yes then please let me know how to configure.
    Thanks & Regards,
    Sachin

    Hi Sachin,
    To map your requirement you have to ask your Abaper to pick up the Text entered in the Header Text field by using Function module "READ_TEXT" (T-code - SE37).
    Firstly go to the Billing document> Header> Text and press the Display log icon available at the bottom where you have entered your Text. It will give you details like ID and Object name against the Text Type where you have entered your text.      
    Then Use T-code - SE37 then select "READ_TEXT" function module and Execute. System will ask you to enter your client code, ID, Language and the Billing document no. along with the Object Name and then execute. System will display the RESULT at the bottom. Ask your ABAPer to pick this data and use the same on Invoice.
    Hope the above meets your requirement.
    REWARD if it helps you!!
    Regards,
    Ajinkya

  • Billing Doc-Header-Texts copy Accounting Doc-Hader Texts?

    Dear gurus,
    I it possible to copy Billing Doc.-header- Text1 to
    Accounting Document>>>>>>"Doc. Header Text" field?

    Hello,
    the SAP note 301077 lists the available userexits in SD/FI interface.
    If, for example, you want to fill a BSEG field of customer line, userexit EXIT_SAPLV60B_002 is the good one.
    Instead if you want to fill a BSEG field of a G/L line, userexit EXIT_SAPLV60B_004 is the good one.
    Best regards,
    Ivano.

  • How to check if a user fills a header text in billing invoice

    Hi everybody and thanks in advance.
    My consultant wants to oblige all users to fill a header text when they create the billing invoice (vf01).
    I was looking for several user exits when I can manage this requisite.
    My problem is that when the user creates the invoice and push save button, I try to look for in the table STXH if the user created the header text. But I have not found anything, because the invoice has not created yet.
    Only when the billing invoice has saved, the header text is stored in the table STXH.
    I has been trying to find a structure wich contains the header data like xvbrk contains the data about type of invoice, etc.
    I have studied this user exits:
    userexit_number_range (module pool saplv60A, program rv60afzz)
    userexit_account_prep_komkcv (same module)
    userexit_account_prep_kompcv (same module)
    userexit_fill_vbrk_vbrp (same module)
    v60A0001 (Customer functions in the billing document).
    My question is: In which structure is the header text of billing invoice manage before push the save button?
    If I knew where it is, I could manage the data and check if the user filled the header text.
    Thank you very much, and sorry for my pour English.

    David,
    Place this code into USEREXIT_NUMBER_RANGE:
    DATA: CATALOG LIKE TCATALOG OCCURS 0 WITH HEADER LINE,
          MEMORY_ID(30).
    data: c_MEMORY_ID(30) VALUE 'SAPLSTXD'.
    DATA l_head type THEAD.
    DATA wa_head type THEAD.
    data: l_lines type table of TLine.
    data: l_line type TLine.
    DATA l_CATALOG type TCATALOG.
    IMPORT CATALOG FROM MEMORY ID 'SAPLSTXD'.
    loop at catalog into l_catalog.
       if  l_catalog-IS_REFTEXT is initial
       and l_catalog-keep is initial.
         concatenate c_memory_id l_catalog-id into memory_id.
         import thead to l_head
                tline to l_lines
           from memory id memory_id.
         loop at l_lines into l_line.
           message i000(zz) with l_line-TDLINE.
         endloop.
       endif.
    endloop.
    It will expose the text entered into the text ids in a message box (for now).  You will want to replace the MESSAGE statement with your own logic.
    You may also need to change the message numver/class from ZZ - as seen here "message i000(zz) with l_line-TDLINE."  with an appropriate message on your system.
    DON'T forget those points.

  • REPORT OR TABLE TO CAPTURE SALE ORDER AND DELIVERY ORDER HEADER TEXTS

    HI GURUS,
    where are the sale order header text is stored?
    How to retrieve the same in the form of report.
    the same for Delivery order header text..
    Regards
    Sri

    Hi Sri,
    just goto sales order header text and click on text u will get Text name, Text ID,and Text object
    pass these values to function module READ_TEXT .
    Regards,
    sksk.

  • Sale Order Header Text

    Hellow Friends
    I am creating a report , that contains sales order data - va02 , In ned to include Header text also . and warranty text also .
    Please Help me
    Ravi

    Hai   , chk this
            CALL FUNCTION 'READ_TEXT'
               EXPORTING
               CLIENT                        = SY-MANDT
                 id                            = '0014'
                 language                      = sy-langu
                 name                          = id
                 object                        = 'VBBK'
               ARCHIVE_HANDLE                = 0
               LOCAL_CAT                     = ' '
             IMPORTING
               HEADER                        =
               TABLES
                 lines                         = itab_w
              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 itab_w INTO g_text3.
          MOVE : g_text3 TO g_text4 .
        ENDIF .
        APPEND g_text3 .
    *clear g_text4 .
      ENDLOOP.

  • Update Sale Order Header Text through Enhancement

    Hi Experts,
             I Have a requirement to update the sale order Header Text , when the sale order is opened in VA02 and saved.
    Here in I tried using edit_text, it updates sale order header text  directly in DB during run time even before the save action is completed.
    But I need to just fill the header text and that has to be saved during the save action only.
    I tried coding the same in the user exit (userexit_save_document) but this user exit gets triggered only when there is some changes made to the document when opened in VA02 & Saved.
    Is there any  user exist to pass sale Order Header text and save when save button is clicked irrespective of the document been changed or not.
    Thanks in advance
    Sathish

    Hi Brad Bohn,
        My actual requirement is to trigger an Idoc when the user goes to VA02 transaction and clicks save.
    IDoc gets triggered only when there is some changes to that document, that is through NAST table entry based on the output configurations in NACE transaction.
    Now that the user wants to trigger an IDoc even if there is no change (ie. to reprocess the IDoc) when he just opens a sale order in VA02 and click save.
    It is not possible to trigger an IDoc through configurations when there is no actual change in VA02 and saved.
    So it has to be forcefully sent by making some additions to the Order through coding, so I choose that Text box to fill some additional data and save .
    Kindly Let me Know any thing could be done for this scenario.
    Thanks in advance
    Sathish

Maybe you are looking for