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

Similar Messages

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

  • Require new tab at header level in ME21N using BADI

    Hi All,
    My requirement is add new tab with 8 new fields plus one button. On pressing this button header data need to copy at item detail level. I found two BADI's for that.
    ME_GUI_PO_CUST & ME_PROCESS_PO_CUST. Till now I am able to create new tab with require fields.
    Now help to put how to transfer data from header level to item detail level on pressing newly created push button.
    Also tell me how these data will save in EKKO table.

    Hi Vikas,
    hOPE U CAN USE
    PROCESS_HEADER
    PROCESS_ITEM methods of the badi used and the data will be stored in EKKO table if u populate them .
    let me know if any issues ....
    regards

  • New Tab on header level for me21n/me22n/me23n

    Hi Friends
    i have created a new tab on the me21n/me22n/me23n  header level using the exit
    MM06E005 , The tab is displayed but i am not unable to udate the records into the
    EKKO  Table whereas i have added my field in the include of  EKKO  CL_EKKODB
    Kindly somebody help me with elaborated steps  .
    Thanks & Regards
    Digvijay Rai

    Hi Digvijay,
    Once the data is entered on the screen ..code is written to update the table ie...
    flow of data from custom screen for header is OK..but for display and change we need to
    import the data in a similar manner to the customer subscreen or the tab added in header level
    As you can see the following 3...code must be done in EXIT_SAPMM06E_006/007 to fetch data to customer subscreen for display/change actions..use 006/007 for PBO/PAI actions..
    EXIT_SAPMM06E_006   Export data to customer subscreen for header(PBO)....INCLUDE ZXM06U36
    EXIT_SAPMM06E_007   Export data to customer subscreen for header(PAI)....INCLUDE ZXM06U38 .
    EXIT_SAPMM06E_008   Import data from customer subscreen for header
    Pls check and revert..in addition
    go to smod->MM06E005-> "documentation" -> Display to read more on documentation about data flows and exits used for it
    Hope it helps
    Regards
    Byju

  • Add checkbox on header level Tab Org.data

    Dear All,
    My requirement is I need to add checkbox on header level Tab Org.data in ME21n or ME21.
    And if checkbox is checked in the tab Org.data, it should display Terms and Conditions in the print preview.
    Please suggest how to write code? Is there any user exit for transactions ME21N or ME21.
    Thanks,
    Rana.

    hi praveen,
    search this forum on how to implement a badi if you haven't done one before. also, go to transation SE18 and read the documentation on badi_fdcb_subbas01 which clearly says that its used for FB60... see the example how they have used it by going to menubar Implementation->Overview then choose FI_FDCB_SUBBAS01_EX (Example for Screen Enhancement 1 on FDCB Basic Data Screen)...you should look at the method PUT_DATA_TO_SCREEN_OBJECT and tab Subscreens where the screen exits are available to use.
    In FB60, if you go to menubar System->Status and check the Program (Subscreen) and Screen Number, you'll see it'll match the program name and screen no. provided in the Subscreen tab of the BADI.
    Hope this helps.
    Cheers,
    Sougata.

  • Adding a new tab on item level in me21n tcode

    Hi all.
    i am adding a new tab on item level in me21n tcode.
    i want to make this tab to be shown on the screen when the order type is UB is stock purchase order.i dont know how to make this condition and where should i place it so that this tab can come in effect only when the stock purchase order appears.
    please help.thanks

    hi
    chk this
    Re: New tabs in the header tab-sheet of ME21N/ME22N/ME23N
    hope this helps
    regards
    Aakash Banga

  • Issue in adding new tab in PO Header Level on ME21N

    Hello,
    As there are many thread where it has mention how to implement badi to get the required output.
    Similarly, i had used the badi ME_GUI_PO_CUST and the method IF_EX_ME_GUI_PO_CUST~SUBSCRIBE.
    My Doubt :
    From the below sample code, from where i have to create the subscreen, Program name.
    For ME21N the program name in status is showing SAPLMEGUI.
    Sample Code from other thread  and my doubts are next to it..
    CHECK im_application = 'PO'.
    CHECK im_element = 'HEADER'.
    CLEAR re_subscribers[].
    ls_subscribe-name = 'SAPLZPONEWTAB'.   "This is the name of subscreen but it shows the standard one (shall i create a program and then add a subscreen and use here?)
    ls_subscribe-dynpro = '9000'.                      
    ls_subscribe-program = 'SAPLZPONEWTAB'.  "Shall i use the program name SAPLMEGUI here
    ls_subscribe-struct_name = 'ZPONEWTAB'.    "Why this is required, as in my case i want to show some fields from EKKO table
    ls_subscribe-label = text-001.
    ls_subscribe-position = 15.
    ls_subscribe-height = 7.
    append ls_subscribe to re_subscribers.
    Please advice...

    Hi,
    Thanks for the reply.
    I have done the things..but, i can't see the tab in the header level.
    Below is my code with my comment.
    Note :
    I created a Function Group by name SAPLZPOHEADER.
    In se80 by giving the name ZPOHEADER i created a subscreen. Also created a structure as ZPOHEADER using it displayed the fields in the screen.
    Code under IF_EX_ME_GUI_PO_CUST~SUBSCRIBE :
    DATA: ls_subscriber LIKE LINE OF re_subscribers.
          CLEAR: re_subscribers.
          REFRESH: re_subscribers.
    IF im_application = 'PO' AND im_element = 'HEADER'.
        CLEAR re_subscribers[].
       ls_subscriber-name = subscreen1.  "As per the sample code i double click and set the attributes of it as same as sample code.
       ls_subscriber-dynpro = '9000'.  "This is the screen no
       ls_subscriber-program = 'SAPLZPOHEADER'.   "Name of the FM Group/Program
       ls_subscriber-struct_name = 'ZPOHEADER'.     "Structure Name
       ls_subscriber-label = text-001.  "Created label as 'doc header'
       ls_subscriber-position = 11.    "Given the position as i want after 'status' in ME21N
      ls_subscriber-height = 7.        
      APPEND ls_subscriber TO re_subscribers.
    Is anything remaining as in debug mode it fills the re_subscribers and go the 'Create Object' but, can see it in display.
    Pls help...

  • Add AdHoc on Header Level SC within Status "In Revision" (BRF SRM 7.0)

    Hi all,
    we have implemented a n-step approval workflow within SRM 7.0 (BRF)
    If the SC is created, user can add AdHoc approvers on header level.
    Problem:
    If an approver rejects or changes the SC, SC is sent back to requisitioner and he has to accept the changes.
    But within this status (In Revision), the user is not able to add new AdHoc Approvers to the SC Workflow (Header Level)
    Button is active but when I select a process level, chosse Add Approver, select an Approver and hit ok, process levels are not updated.
    Task ID (SRM Standard) 40007994
    Question:
    Is this SRM Standard procedere?
    Is it not possible to add AdHoc Approvers when SC is in Status "In Revision"?
    Thanks and best regards
    Andreas

    Hi Andreas,
    I still have not received a response back.  I will strongly disagree with their response if that is the case.  When applying note 1508121, this disables that add approver button on the "In Revision" step.  It still leaves the add approver button enabled for the "Open" step under "In Revision", this should then allow for the approver to be added.
    If nothing else if this is how they are making it behave, they should then create a non mandatory note for those that want to be able to add approvers here as it makes no business sense to allow this functionality for 7 support stacks and then take it away.
    Regards,
    Scott

  • Add tab in header screen of MIRO

    Hi Experts,
      I would like to add a new tab in header screen of MIRO transaction. is it possible.. ? if so, can any one please guide.
    Thankx
    Sal

    Hi,
    this wiki:
    http://wiki.sdn.sap.com/wiki/display/Snippets/Displaycustomerfieldsinheaderoflogisticsinvoiceverification+transactions
    it´s about creating a subscreen under "Basic Data" tab but it´s not about creating a "New" tab in header of MIRO transaction.
    Best regards.
    Edited by: Pablo Casamayor on Dec 9, 2009 2:14 PM

  • WCTL Transaction - Add Custom Field Header level

    Hi All,
    Here at my client's place guys are doing PoC on WCM (PM being used for last couple of years) and the requirement is to have a custom field at Header level of WCTL (WC Application Change ) with F4 option.
    I have created a custom field with z table for master data to it (will be used as check table for this field) and appended it to the WCAAP - WCM: Application using append structure option.
    Now I need to add this field at the header level of the mentioned transaction. I searched throgh for any available exits, BADI's or enhancement spots with no success. Even Inforums i couldnt find any help and hence this message.
    Will appreciate any inputs in this regard,
    Thanks,
    Lakshmi Narayana.

    Hi Narasimhan,
    First of all thank you verymuch for the quick reply.
    I tried to search for the BADI definition (BADI_WCM_WAPI_001) and Enhancement Spot (ES_WCM_BADI) (se18) with no success. We are using ECC6.0 with SAP_ABA patch level 10, EA-APPL (SAP Enterprise Extension PLM, SCM, Financials) at level 7.
    Does this has any impact on why I couldnt find it or is there something that I am doing  wrong... Please guide me...
    Thank you once again for your time.
    Rgds,
    Lakshmi Narayana

  • How can we disable/Hide the buttons at items tab in header level Gen tab?

    Hi,
    How can i disable/Hide the buttons(Delete,insert...) in item details of general tab of Order Header?
    I am not able to do it with screen varients.
    Please let me know your views.
    Points will be given.
    Thanks,
    Adi.

    Hi,
    How can i disable/Hide the buttons(Delete,insert...) in item details of general tab of Order Header?
    I am not able to do it with screen varients.
    Please let me know your views.
    Points will be given.
    Thanks,
    Adi.

  • Adding Tab in VL02n in Header Level

    HI all,
    I have to add a tab in header level with two fields in VL02n..
    HOw to do this?

    Hi - Yes it should be available to VL01N and VL03N. Please provide the ef_position in the method ACTIVATE_TAB_PAGE
       CONSTANTS: lc_caption  TYPE char40 VALUE 'Gate Entry Detail',
                 lc_position TYPE int4 VALUE 13,
                 lc_program  TYPE syrepid VALUE 'SAPLZVL02N_CUST',
                 lc_dynpro   TYPE sydynnr VALUE '9100'.
    * Pass the values of the subscreen for Additional Header Tab.
      ef_caption  = lc_caption.
      ef_position = lc_position.
      ef_program  = lc_program.
      ef_dynpro   = lc_dynpro.

  • New tab implementation at item level in ME21N/ME22N/ME23N.

    Hi Friends,
    I have implemented two badis 1. ME_GUI_PO_CUST and 2. ME_PROCESS_PO_CUST to get a new tab at item level in ME21N/ME22N/ME23N, I could see this new tab only in ME23N but not in ME21N/ME22N, and I found that Badi ME_PROCESS_PO_CUST is not getting triggered for any of these tcodes : ME21N/ME22N/ME23N. Can anybody help me getting this issue resolved with coding example as well.
    Thanks in Advance.

    Hi Know ,
    I know that we have to use the following BADIs
    ME_PROCESS_PO_CUST
    ME_GUI_PO_CUST
    But I does not know what are the methods to be implemented
    and what is the code we have to write in that methods .
    Thanks in advance ,
    Siva.

  • Custom tab field is missing in me21n

    hi all,
    i am doing one enhancement work.
    requirement is custom tab with custom field creation in me21n Tcode.
    i have created all the things using user exit and its working fine also.but now  inside the tab field is not displaying.
    i dont know what happen, pls some one help me its very urgent.
    thanks & Regards,
    S.Kavitha

    Hi ,
    Please find the below screenshot.it is used to add custom tab in header level or item level also.once you added the field in layout,active the layout screen and also active the Enhancement .
    Regards ,
    Karthikeyan R

  • BADI ME_GUI_PO_CUST-- Data not getting saved after adding tab at Header

    Hi,
    My requirement is to add an additional tab at header level  and a field in that tab. I used the BADI  ME_GUI_PO_CUST and implemented it. I can see the tab and the field in it at header level.But when i try to save it , its popping up message 'Data is not changed' and when i check in ME22N, changes are not reflected. I went through the example and copied this example into BADI and accordingly made changes for header. When i keep break-point in TRANSPORT_FROM_MODEL and other methods except SUBSCRIBE and MAP_DYNPRO_FIELDS,its not stopping. Please guide where i am going wrong.
    Regards
    K Srinivas

    HI,
    Use the perform
    perform set_header_data(saplmepo) using ekko.
    Thanks,
    Shailaja Ainala.

Maybe you are looking for

  • How do you use home sharing on the latest version of itunes?

    How do you use home sharing on the latest version of itunes? =

  • Error when activating my iPhone Developer Program membership

    Ive just paid 99 dollars for my iphone developer program, and recieved an email containing the activation code. As you probably know, youre supposed to click on this activation-code and it links you to another site. But instead of activation I reciev

  • Bigger on firefox than on Chrome

    I am developing a website and I am doing my best to make look the same on all browsers. I started developing the website on Chrome. I then tried it on Firefox and noticed how the website (images, text, etc) look much bigger on firefox then on Chrome.

  • Cs6 bridge says it is cs5 bridge

    I updated to cs6 64 bit.  but when I run bridge cs6 64 bit, it says it is cs5 version.  discovered this when I was editing a image: IMAGE WAS in process 2012 AND IT SAID I HAD TO CONVERT TO PROCESS 2010. HOW CAN I GET PHOTOSHOP TO LOAD THE CORRECT VE

  • Need to have firmware 1.1 but I don't have OS9 installed

    Hi, I'm trying to install a Daystar processor upgrade however I don't have OS 9 installed is there a way to install 1.1 without OS9? If not can I install OS 9.0 without wiping out my OS 10.4.5 or will I have to reinstall it after I upgrade the firmwa