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.
Similar Messages
-
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 -
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?
ThanksHi,
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 -
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 RaiHi 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 -
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.thankshi
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... -
Enhancement in VA01 (Custom field addition in Additional Tab at header)
Hi Experts,
I have to develop some custom fields in tcode VA01 at header level in addtional data B tab. I know that i can use access key and develop the screen 8309 of program SAPMV45A and for that i have to provide access key. But i dont want to use access key.
Is there any screen exit or badi through which i can develop the screen in additional data B tab in VA01. Please provide me suggestion.
Thanks in advance.
Regards,
SURYA BASUHi
I don't know other solution. Provide a key in my opinion is not a problem. You must do it when create your own VOFM subroutines in your customer range number. if your boss or your client has doubts, ask him/her to see the SAP Note 381348 - Using user exit, customer exit, VOFM in SD, when it says:
At the beginning of the R/3 development the SAP Basis did not offer
technologies for exits yet, nevertheless many customers wanted to implement
their own functions, checks, and so on. Thus, in the SD area, includes were
delivered like, for example, MV45AFZZ. This include contains some empty
FORM routines (user exits) to which you can go from the respective
processing programs.
and
Changes to user exits in SD are MODIFICATIONS,
since the original of an object belongs to SAP (thus when you change a user
exit an SSCR registration is also required).
Why this exits belongs to SAP, see Note 16466 - Customer name range for SAP objects.
I hope this helps you
Regards
Eduardo -
Add additional tab on item level in contract for customer fields
Hi Guys,
Does anyone know if the following is possible in SRM 7.0, and if so can you please give a very short description how to accomplish this -
In addition to the standard tabs available in the contract (general data, notes, conditions etc.), is it possible to add a new customer specific tab on item level, in a central contract and add some customer fields to this tab?
I know it is possible to add customer fields in SRM, but I am curious if I can create a new tab for these fields, so that I can group all customer fields together in one place.
Thx.
Kind Regards,
SkanderYes. it is possible but you have to take care of in the back end too and how these fields comes and sit in ECC. so that you may need to map in the IDOC or XI data . so that these information must be pssed to ECC and available and accordingly you need to change in purchase order too since all these data will be copied into purchase order too.
for example :- if you add one field in header level /item level of contract
and it must be coppied into Backend contract as well as your next consecutive docuemnt like Purchase order must be taken care. hope you understand now.
Muthu -
Additional Data in Header Level for ME51N / ME52N / ME53N
Dear Gurus,
I have one requirement related to apply enhancement for additional fields in purchase requisition header level.
After searching a lot , I dint found any solution for this.
Does anybody have any solution for this.
Regards,
Shibashis.I need to add on Tabstrip "Account assignment" for fields
CO Area and Cost Center text field description ( right side ) for each one.
How can I do this? Thanks in advance. -
Adding Custom fields to PO Additional TAB in Header
Hello Experts.
We have a requirement to add 2 additional fields in the PO header - ADDITIONAL TAB. I have included the fields in CL_EKKO include and activated it. Can you please let me know the exit or BADI or sample to have this in Additonal TAB.
I understand that we can create a custom TAB in header and bring in those fields. But i would like to bring these custom fields in ADDITIONAL TAB of PO header only....not creating any new customer tab.
Please share your thoughts.
Edited by: Ganeshkumaran Gopalakrishnan on Oct 6, 2011 3:57 PMHi Max,
Using SAPLXM06 0101 is adding new Custom TAB in PO Header. As i mentioned i dont want new custom tab in Header. All I want is to add the new custom fields in the existing Additional DATA TAB of the PO header.
There is already existing TAB called Additional DATA, i need my custom fields to be available in that TAB, rather than creating a new tab for those fields.
Please let me know how to add it to existing Additional data tab in PO header. thx -
ME51n additional tab in item level after customer tab
hi all,
I have already added Customer data tab in me51n item level, using screen exit SAPLMEGUI in enhancement MEREQ001. Can i add one more tab after customer data .
Regards
NitinHi Nitin,
You can implement BADI ME_PROCESS_REQ_CUST to add additional tab. Read example implementation by going into menue Goto>Sample Code>Display .
Thanks & Regards,
Faheem. -
Unable to add custom tab in ME21N using BADI ME_GUI_PO_CUST
Dear All,
I need one extra tab in Item Details of ME21N.
This extra tab should have two fields of my own.
I have put the coding in the SUBSCRIBE method of the implementation of the BADI ME_GUI_PO_POST as follows:
data: ls_subscriber like line of re_subscribers.
we want to add a customer subscreen on the item detail tab
check im_application = 'PO'.
check im_element = 'ITEM'.
each line in re_subscribers generates a subscreen. We add one subscreen in this example
clear re_subscribers[].
the name is a unique identifier for the subscreen and defined in this class definition
ls_subscriber-name = 'Event Details'.
the dynpro number to use
ls_subscriber-dynpro = '0001'.
the program where the dynpro can be found
ls_subscriber-program = 'SAPLMEPOBADIEX'.
each subscreen needs his own DDIC-Structure
ls_subscriber-struct_name = 'ZSM_PO_STRUC'.
a label can be defined
ls_subscriber-label = 'Event ID'.
the position within the tabstrib can be defined
ls_subscriber-position = 5.
the height of the screen can be defined here. Currently we suport two screen sizes:
value <= 7 a sevel line subscreen
value > 7 a 16 line subscreen
ls_subscriber-height = 7.
append ls_subscriber to re_subscribers.
I put breakpoints in the implementation of the method, and it is going into it, yet the extra tab is not getting displayed on the screen.
Please give your suggestions on this.
Regards,
Prosenjit.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. -
Want to grey out (Non-editable) field in Additional Tab in Header of ME21N
Hi all,
i've got a requirement to grey out the field(Non Editable) of header tab in ME21N.
Can anybody tel me the solutions.
Rgds,
SpandanQuestion asked again, and again, and again, and again. Search for "grey out" (and please read forum rules as it seems you didn't)
-
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. -
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 SrinivasHI,
Use the perform
perform set_header_data(saplmepo) using ekko.
Thanks,
Shailaja Ainala.
Maybe you are looking for
-
to download an App the 3 security questions are required. But at the end, apple is not able to complete the task and gives an error message. No more downloads are possible. What can I do?
-
Sale order bom can be used in to process order or not
To change the BOM for particular order items the sale order BOM can be created , to copy the sale order BOM into production order CO08 can be used , whether the process order can be created with ref to sale order any option is available is SAP
-
After Effects Frame Numbering Problem
I have a problem with After Effects being unable to process image files in the correct order when making time-lapse videos. AE seems unable to identify the correct chronological order from the camera generated file names and the files need to be re-n
-
Error: Can't Save Message also Sent Mail Lost - IMAP
I'm having a problem with one of my IMAP accounts(several mailboxes from the same server) where when I am composing a message...about 2 minutes into writing the message an error pops up saying the message cannot be saved. I hit ok, send message then
-
hello all, Am newbie to using Oracle forms 6i i have 3 list items namely CITY_NAME, STATE_NAME ,COUNTRY_NAME and i want to display city_name depending on state_name and display state_name depending on country_name... help me