Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ME28 - Add new fields in output

Former Member
0 Kudos
5,226

Hello ,

How can i add fields on the output of ME28.

1. Any structures that i can append my fields ?

2. Any Enhancements available ?

1 ACCEPTED SOLUTION

Former Member
2,190

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

9 REPLIES 9

Former Member
2,191

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

Former Member
0 Kudos
2,190

Hi,

Please see the following links.

Regards,

Vimal.

Former Member
0 Kudos
2,190

>

> 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

0 Kudos
2,190

Actually we are on 4.6C .

0 Kudos
2,190

>

> 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

0 Kudos
2,190

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

0 Kudos
2,190

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

saurabh991
Discoverer
0 Kudos
1,956

Appen your fields in these structure MEREP_OUTTAB_PURCHDOC .

Thank you
Saurabh

0 Kudos
1,922

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)