Header text in me21n

Hi,
    i found one badi 'ME_PURCHDOC_POSTED'. my requirement is to make the header taxt, warranty text mandatory. For that can i write code here. what code i have to write over here. please help me.

go through this ....
DATA: wa_ltext     TYPE tline,
      current_line TYPE i,
      prev_line    TYPE i.
LOOP AT ta_ltext WHERE tdline NE space.
  CASE ta_ltext-tdformat.
    WHEN '='.
      prev_line = sy-tabix - 1.
      READ TABLE ta_ltext INTO wa_ltext INDEX prev_line.
      IF sy-subrc = 0.
        CONCATENATE wa_ltext-tdline ta_ltext-tdline
               INTO ta_ltext2-tdline.
        MODIFY ta_ltext2 INDEX current_line.
      ENDIF.
    WHEN OTHERS.
      ta_ltext2-tdline = ta_ltext-tdline.
      APPEND ta_ltext2.
      current_line = sy-tabix.
  ENDCASE.
ENDLOOP.
DATA:   BEGIN OF ttab OCCURS 0.
        INCLUDE STRUCTURE tline.
DATA:   END OF ttab.
DATA:   BEGIN OF tinlinetab OCCURS 0.
        INCLUDE STRUCTURE tline.
DATA:   END OF tinlinetab.
DATA: BEGIN OF thead.
        INCLUDE STRUCTURE thead.
DATA: END OF thead.
lv_objname = it_lips-posnr.
  CONCATENATE it_lips-vbeln lv_objname INTO lv_objname.
  PERFORM read_item_text1 USING lv_objname it_lips-vbeln.
*&      Form  read_item_text1
      text
     -->P_LV_OBJNAME  text
     -->P_IT_LIPS_VBELN  text
FORM read_item_text1  USING    P_OBJNAME
                               P_IT_LIPS_VBELN.
  CLEAR : v_regcarr , v_intcarr ,
            v_reqdate , v_commdate.
  CLEAR: thead,it_likp-traty.
  REFRESH : ttab, tinlinetab.
  thead-tdid     = '0001'.
  thead-tdspras  = sy-langu.
  thead-tdname   =  p_objname.
  thead-tdobject = 'VBBP'.
  CALL FUNCTION 'READ_TEXT_INLINE'
    EXPORTING
      id              = thead-tdid
      inline_count    = 1
      language        = thead-tdspras
      name            = thead-tdname
      object          = thead-tdobject
    IMPORTING
      header          = thead
    TABLES
      inlines         = tinlinetab
      lines           = ttab
    EXCEPTIONS
      id              = 1
      language        = 2
      name            = 3
      not_found       = 4
      object          = 5
      reference_check = 6
      OTHERS          = 7.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
Edited by: Ankur Sharma on Apr 30, 2008 12:31 PM

Similar Messages

  • Purchase order header text in ME21n upgrade from 4.6c to ecc6

    We had changed the nomenclature of the header text from SAP standard to the way we required as per our business needs
    in Purchase order.
    Now we have done technical upgrade form 4.6c to Ecc6.0.However, the nomenclature of the header text is reset to original SAP standard names.
    Hence suggest the way to restore as per our business requirement.
    Thanks in advance.

    in other words: you had modified SAP programs.
    If you upgrade or apply hotpackages then you have to perform the transaction SPAU, where you define whether you accept SAP changes or keep the modification as is.
    It can be that basis just resets all to SAP standard. hence you have to redo your changes.

  • Header text flow from ME51n to ME21N

    Hi Experts,
                       I will enter header text in ME51N (PR creation) and save that .In ME21N  that header text should flow while I refer the PR number .Please tell me what badi should be used and how to use d same.
    I am new to BADI.Help me please...
    Regards,
    Ashok...

    Hi ,
          I used this,
           BADI to be implemented: ME_PROCESS_REQ_CUST.
           Method to be used: PROCESS_ITEM.
    This is  not working ,i hard coded break point in all the mothods and it is not stopping anywhere ..anyother idea,...
    Regards,
    ashok...

  • ME21N check for header text in user exit

    Hello,
    Does anyone know if/how I can see header text contents for a PO prior to its saving in ME21N? I have made my other checks prior to saving in EXIT_SAPMM06E_012, but I also want to validate the contents of the header text. This is a 46C system.
    Thanks!
    Jeff

    Hi,
    Each text in the tab is stored in the form of longtext you will have to read the texts with function module READ_TEXT. Currently not in front of the system to give you exact paramters for function module. Would suggest putting a break-point at READ_TEXT function module and then start the transaction. You will see that it will stop for reading the texts. The initial select that the text exists or not is on STXH table.
    thanks

  • Default Header text comes in PO at the time of creation

    Hi Friends,
                   my problem is that a default Header text must come on the PO based on the user or purchasing group at the time Creation (In Transaction ME21N).
    Is there any user exits or badi for it. I have already searched for them but i have not got any thing. Please help me.
    Thanks for ur valuable answers

    yes i know that through copy control we can get default text but it is item level text instead of the header text.and other thing it does not depend on the user or purchasing group. I default header text that is populated imediately when user call ME21N. So is there any BADI or user exit for that.Please reply.
    Thanks for ur reply and valuable answers
    null

  • Additional tab at header level  in ME21N through BADI ME_GUI_PO_CUST

    Hi,
    I want to have additional tab at header level  in ME21n through BADI ME_GUI_PO_CUST.  But after all effort I am not getting display of  tab.  Let me explain what i did till now
    1. Appended  table EKKO with field
    2. Create one function Group -under that
    A. Created one Include u2013Paste the code given
    DATA: call_subscreen   TYPE sy-dynnr,
          call_prog        TYPE sy-repid,
          call_view        TYPE REF TO cl_screen_view_mm,
          call_view_stack  TYPE REF TO cl_screen_view_mm OCCURS 0,
          global_framework TYPE REF TO cl_framework_mm,
          global_help_view TYPE REF TO cl_screen_view_mm,
          global_help_prog TYPE sy-repid.
    FORM SET_SUBSCREEN_AND_PROG *
    --> DYNNR *
    --> PROG *
    --> VIEW *
    --> TO *
    --> CL_SCREEN_VIEW_MM *
    FORM set_subscreen_and_prog USING dynnr TYPE sy-dynnr
    prog TYPE sy-repid
    view TYPE REF TO cl_screen_view_mm.
    call_subscreen = dynnr.
    call_prog = prog.
    call_view = view.
    ENDFORM. "set_subscreen_and_prog
    B. Created one screen  (9000)
    3. Implemented BADI ME_GUI_PO_CUST and paste the code.
    data: ls_subscribe like line of re_subscribers.
    CHECK im_application = 'PO'.
    CHECK im_element = 'HEADER'.
    CLEAR re_subscribers[].
    ls_subscribe-name = ' ZMMSCR1'.
    ls_subscribe-dynpro = '9000'.
    ls_subscribe-program = ' ZMMSCR1'.
    ls_subscribe-struct_name = 'EKKO'.
    ls_subscribe-label = text-001..
    ls_subscribe-position = 15.
    ls_subscribe-height = 7.
    append ls_subscribe to re_subscribers.
    Please help me what s going wrong .and what else I will do to get success.
    Edited by: Vishal A Vijaywargia on Jul 29, 2009 2:24 AM

    Hi Prosengit,
    I am not aure about u r BADI,
    BUt last week i have custom tab in the PO header data using this enahncement 'MM06E005'.
    IN thi senhancement u have thrre screen exits.In this enhancement
    SAPMM06E        0111 CUSTSCR1 SAPLXM06        0111 Subscreen: PO item
    u can add subscreen and u can add u r own fields here .
    and u can write u r code in 'EXIT_SAPMM06E_006'.
    if u want to change the title of the program.
    Go to program SAPLXM06 then go to text element give text symbol no as '111' and u can change the title of u r tab.
    I hope this solves u r problem.

  • Default header texts in purchase order

    Hi,
    I would like to ask you for help in following case.
    I need to set default purchase header text when a new PO is created in me21n.
    I found transaction VOTX where can be this done for sales order, but not for PO. Is there anything similar also in MM?
    Maybe I could use user exits in MM06E005, but I didn't find the relevant structure which keeps header texts.
    Third idea is to add header text fields into personal setting in me21n, where each user can define his own default texts but I have no idea how to do that.
    I need to set default texts which are global for all purchase orders, so it has no sense to use Info record in this case.
    Has anybody experience with this? I would appreciate any help. Thanks.

    Hi,
    you can try to solve it using BADI ME_PROCESS_PO_CUST. The method open is suitable for you problem. Here is a quote from a BADI documentation.
    The OPEN method enables you to do the following when opening a new
    document:
    o   Import new data if the document was already posted to the database
    o   Initialize your own data when creating a new document
    You get a reference for object with type IF_PURCHASE_ORDER_MM in this method. This class implements interface IF_LONGTEXTS_MM with methods like IF_LONGTEXTS_MMGET_TEXT and IF_LONGTEXTS_MMSET_TEXT. So you should be able to set long text for your new PO in this method. Check BADI documentation for more info.
    Cheers

  • 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

  • PR header text copying to PO header text

    Hi all,
    We have implemented BADi  ME_PROCESS_PO_CUST to copy PR header text to PO header. The issue is it is not let us view the PR header text prior to saving the PO.
    Also the same BADi is implemented in other instances, and it is allowing us to view the PR header text as soon as PR is copied in PO. Also there is a green tick mark available in Tcode ME21N in this instance, while the same is not available in the instance where we r getting this issue.
    Plz help

    Hi,
    Probably this is the issue: (from IMG BadI documentation):
    <<<>>>
    Standard settings                                                                               
    In the standard system, the Business Add-In is not active.                                                                               
    The BAdI is not filter-dependent.                                                                               
    ->>>>>>>  The BAdI cannot be used multiple times.     <<<<<<<<-                                   
    <<<>>>
    Have you tried to use BadI: ME_REQ_HEADER_TEXT?
    hope it helps.
    regards,
    wojciech

  • TO ADD TAB AT HEADER LEVEL IN ME21N

    Hi guys
    I have to add a tab at header level of ME21N using BADI ME_GUI_PO_CUST and ME_PROCESS_PO_CUST
    can someone guide me how to do this?
    Thanks

    Hi,
    Try with SMOD enhancement MM06E005. I know this works well for adding a tab in PO header or item level . Read OSS 407975 for implementing this screen exit
    here i am pasting OSS Notes and if you need clearly then login into service.sap.com
    Symptom
    You are using SAP customer enhancement MM06E005. There is no sample source code for this enhancement.
    Other terms
    User exit, customer enhancement, MM06E005, example, sample
    Reason and Prerequisites
    You want to activate user exit MM06E005. Note that this is a consulting note and not a correction of the user exit.
    Solution
    You can use the sample source code attached here to recognize the basic functions of the exit. This example is, however, only one of many options that are offered by the customer enhancement.
    The sample source code includes the following functions:
    Supply of an additional field on header level
    Supply of an additional field on item level
    Derivation of a field on item level from the copied reference document
    Now, in order to be able to use the sample source code, you must create field ZZFLAG on the header level of the document and field ZZFIELD on the item level.
    Double-click on Include table CI_EKKODB
    Enter the following values:
    Name    Component type DType Length DecPlace Short text
    ZZFLAG  CHAR1          CHAR  1      0        1-digit indicator
    Save and activate the include table.
    Double-click on Include table CI_EKPODB
    Enter the following values:
    Name    Component type DType Length DecPlace Short Text
    ZZFIELD CHAR1          CHAR  1      0        1-digit indicator
    Save and activate the include table.
    In order to activate the sample source code, you additionally have to carry out the following changes on screens 0101 and 0111.
    1. Screen 0101: Create the following fields:
                  "Checkbox"            Name: EKKO_CI-ZZFLAG
    2. Screen 0111: Create the following fields:
                  "Input/output field"  Name: EKPO_CI-ZZFIELD
                  "Pushbutton"          Name: BUTTON
                                        FctCode: ZZDETERMINE
    The following assignments apply to the sample source code:
    EXIT_SAPMM06E_006  -->  LXM06F36
    EXIT_SAPMM06E_007  -->  LXM06F38
    EXIT_SAPMM06E_008  -->  LXM06F37
    EXIT_SAPMM06E_009  -->  LXM06F39
    EXIT_SAPMM06E_016  -->  LXM06F41
    EXIT_SAPMM06E_017  -->  LXM06F42
    EXIT_SAPMM06E_018  -->  LXM06F40
    Copy the source code from the attachment and insert it into the corresponding function modules. Save and activate the function modules.
    Create the following variables in the corresponding TOP include in order not to get any syntax errors:
      INCLUDE ZXM06TOP
    data: gl_aktyp type c,
          gl_no_screen type c,
          gl_rekko like ekko,
          gl_ekko_ci like ekko_ci,
          gl_ekpo_ci like ekpo_ci,
          gl_ekpo like ekpo,
          gl_ucomm like sy-ucomm.
    types: begin of ekpo_tab,
              ebeln like ekpo-ebeln,
              ebelp like ekpo-ebelp,
              ekpo like ekpo,
           end of ekpo_tab.
    data:  gt_ref_ekpo_tab type table of ekpo_tab.
    Save and activate the TOP include.
    On header level, you can now store a character, X or space, via field ZZFLAG on the database with the document and read it also again.
    On item level, you can fill field ZZFIELD with a one-digit value and save it with the document. If you copy this document, the system displays an additional function button on tab page "Customer data". If you press this button, the value of the reference document is copied to field ZZFIELD.
    If you want to store the source code as sample source code in your system, start Transaction SMOD. Enter MM06E005 as an enhancement. Select "Components". Press "Change". Position the cursor on the corresponding module and choose "Sample code". Create the corresponding include and copy the source code from the note. Save the include. Note that, of course, syntax errors may occur when you check components. This is because the includes of the sample code are not integrated into a program but rather are completely independent and, therefore, do not have any relationship to each other either. For this reason, only save the include and do not activate or check it. The sample code has to be copied into the corresponding function modules in order to become active.
    If you use the user exit in the new purchase order, it is not guaranteed that the customer screen is always processed. To make sure that possible required fields are checked, include a corresponding message into the EXIT_SAPMM06E_012. This screen is always processed.
    Header Data
    Release Status: Released for Customer
    Released on: 07.09.2006  13:07:34
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: MM-PUR-PO Purchase Orders
    Secondary Components: MM-PUR-GF-CE Customer Enhancements
    I have not done BADI for PO,so i am not sure that whether BADI will work for Screen exit or not
    Thanks
    Seshu

  • Default PO header text

    Hi Gurus
    My requirement is to default the terms and conditions into the PO header for a specific Purchase organization.
    To achieve this, I created a new text type in Define text types for header texts and defined the copyng rules for header text. I created a new text type in SO10 and assigned it to the purchase org in 'Texts for messages - define texts for purchase order and define text for purchase organization.
    But when I create the PO using ME21N, the terms and conditions are not defaulted in header text. Please tell me if I am missing anything in the config.
    Could you tell me the significance of Print sequence. Does this influence the text being defaulted into PO?
    Many Thanks
    Kumar

    The text is a fix text and can only be seen in the message preview and the output, but not in the header of the PO itself.

  • How 2 deactivate 'Director's Remark' field  under tabstrip 'TEXTS' in ME21N

    Hello Gurus,
             My requirment is that i have to deactivate 'Director's Remark' Field Under Header Text Under Tabstrip Texts in ME21N.
    I can not find same field when i use SHD0. I can only hide tabstrip 'TEXT', which i don't want,
    With Regards,
    Vikram Salvi

    Hello
    Please can you run the standard payslip GR01 (please make sure that
    you have the latest version in your system - you can use RPUFRM00 to
    cmpare and copy the form  GR01 from client 000).
    1) If you run GR01 for an employee is the NI category ouput correctly?
    2) If not, does the employee have a NI category in structure NIC?
    You may also refer to SAP notes 385943 & 399641- How to output NICAT in window on
    payslip for further information.
    Thanks and Kind Regards
    Ramana

  • 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.

Maybe you are looking for

  • Microsoft Word Templates in Foreign Language

    I just bought Microsoft Office 2008 for my Macbook (with Leopard) and I was looking at the Project Gallery templates and if I open up any of the templates for Microsoft Word, all of the words are in different languages and I cannot even look at the t

  • IPod 3G (i think) stuck on apple logo

    My iPod (i believe it's 3rd Generation with click wheel) earlier was acting up (freezing during songs) so I tried to reset it but couldn't remember how. I tried the select and play buttons together and that took me into disk mode and it said 'ok to d

  • Music files

    I downloaded 3 music files onto my faulty 6233 and now I have had a replacement 6233 the music files refuse to play. Any ideas how to sort this out?

  • Ipod not updating

    Everytime I try to update my iPod from 4.2.1 to 4.3.5, it will download the update just fine. It's when it gets to processing file, that it pops up with an error stating: There was a problem downloading the software for the iPod 'iPod touch.' The net

  • No puedo abrir illustrator cs6

    cuando abro "illustrator" me abre una ventana diciendo que tengo un error (Error:1) y no me deja entrar a illustrator Pero minutos antes forze el apagado de mi computadora y ahora me ocurre ese error ya lo reinstale de distintas fuentes pero el error