2009 Aug 03 9:52 AM
Hello ,
How can i add fields on the output of ME28.
1. Any structures that i can append my fields ?
2. Any Enhancements available ?
2009 Aug 03 9:57 AM
Hi,
Following r the BADIS that can be used for this purpose
ME_GUI_PO_CUST
ME_DEFINE_CALCTYPE
MEGUI_LAYOUT
also
User Exits MM06E005
also if need to find any field exits or user exits or BADIS in any package or tcode simply run the std report SNIF in SE38
and select the enhancements required and provide the package name in this case as ME and execute the report..
Enjoy !!!!
try out !!
Hope u found the information helpful !!
Best of Luck !!!
Thanks
Ravi
2009 Aug 03 9:57 AM
Hi,
Following r the BADIS that can be used for this purpose
ME_GUI_PO_CUST
ME_DEFINE_CALCTYPE
MEGUI_LAYOUT
also
User Exits MM06E005
also if need to find any field exits or user exits or BADIS in any package or tcode simply run the std report SNIF in SE38
and select the enhancements required and provide the package name in this case as ME and execute the report..
Enjoy !!!!
try out !!
Hope u found the information helpful !!
Best of Luck !!!
Thanks
Ravi
2009 Aug 03 10:00 AM
2009 Aug 03 10:23 AM
>
> Hello ,
>
> How can i add fields on the output of ME28.
> 1. Any structures that i can append my fields ?
> 2. Any Enhancements available ?
Hi ,
If you are working on ECC6.0 then you also have the option of enhancement section .
Regards ,
Rajesh Kumar
2009 Aug 03 10:24 AM
2009 Aug 03 10:50 AM
>
> Actually we are on 4.6C .
Hi Raghu ,
I don't think if there is any BADI's or User exits available for adding fileds in ME28 transaction.
The only way i feel is too copy the program into a Z- program and then add the fields for displaying and processing as per your requiremnt in
PERFORM start_via_table_manager(sapfm06l).
.Or may be you can use access keys to modify the program itself.
Regards,
Rajesh Kumar
2015 Oct 08 6:59 PM
Ok guys this is what worked for me:
I extended structure MEREP_OUTTAB_PURCHDOC in se11
Then I went to program LMEREPI02 (transaction SE38) in method build_base_list at the end I created an Implicit enhancement (yes no need to register the object) here is how:
go to the end of the method click on the or Program-Enhance (Shift F4) after also you can go to
Edit-> Enhancement Operations -> show inplicit enhacement options
ENHANCEMENT 2 Z_MAFM_LMEREPI02_01. "active version
*
data: mabst type mabst,
eislo type eislo,
labst type labst.
* re_outtab_purchdoc type MEREP_OUTTAB_PURCHDOC.
*mabst = '10'.
*loop at re_outtab_purchdoc.
call function 'Z_MAFM_ME28'
exporting
EMATN = re_outtab_purchdoc-EMATN
werks = re_outtab_purchdoc-werks
lgort = re_outtab_purchdoc-lgort
importing
mabst = mabst
eislo = eislo
labst = labst.
re_outtab_purchdoc-mabst = mabst.
re_outtab_purchdoc-eislo = eislo.
re_outtab_purchdoc-labst = labst.
*modify re_outtab_purchdoc.
*endloop.
ENDENHANCEMENT.
it is better to call a function, as the methods have limitations,
the function I have says something like this:
"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(EMATN) TYPE MATNR
*" REFERENCE(WERKS) TYPE EWERK
*" REFERENCE(LGORT) TYPE LGORT_D
*" EXPORTING
*" REFERENCE(MABST) TYPE MABST
*" REFERENCE(EISLO) TYPE EISLO
*" REFERENCE(LABST) TYPE LABST
*"----------------------------------------------------------------------
tables: MARC, MARD.
data: ltabix like sy-tabix.
*Loop at re_outtab_purchdoc.
ltabix = sy-tabix.
select single * from marc where
matnr = EMATN and
werks = werks.
if sy-subrc = 0.
mabst = marc-mabst.
eislo = marc-eislo.
* modify re_outtab_purchdoc index ltabix.
endif.
select single * from mard where
matnr = EMATN and
werks = werks and
lgort = lgort.
if sy-subrc = 0.
labst = mard-labst.
* modify re_outtab_purchdoc index ltabix.
endif.
*endloop.
Hope this helps someone out there....
2019 Oct 21 11:34 AM
Hi, I made it, it works for a while, but now I don't know why when I pick AVL view it shows an empty table...
2024 Apr 15 6:48 AM
Appen your fields in these structure MEREP_OUTTAB_PURCHDOC .
Thank you
Saurabh
2024 Apr 15 9:30 AM
This answer was already given in 2015
NB: Nowadays the code part to enrich data can/should be executed with ME_CHANGE_OUTTAB_CUS BAdI (Business Function LOG_MMFI_P2P)