cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a new field in Standard Tcode MB51

Former Member
0 Kudos

Hi Experts,

I want to add a new field in Standard Report MB51 i.e PRIO_URG from table RESB and EKPO. It will depend on the movement type that whether the value will be from table EKPO or RESB.  My client does not want to create a Z Report. He wants it in the standard report i.e. MB51. Please tell me how can I do that.

Following are the user exits for MB51.

MBCF0002 : Customer function exit: Segment text in material doc. item

MBCF0005 Material document item for goods receipt/issue slip

MBCF0006 Customer function for WBS element

MBCF0007 Customer function exit: Updating a reservation

MBCF0009 Filling the storage location field

MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1

MBCF0011 Read from RESB and RKPF for print list in MB26

MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.

Please tell me if any one of them can solve my purpose. As looking at their description can MBCF0011 solve my problem ??? And if yes then how???

Regards

Sameer

Accepted Solutions (0)

Answers (5)

Answers (5)

eduardo_hinojosa
Active Contributor

Hi

See SAP Note 357187 - MB51: Fields in field catalog / selection screen

I hope this helps you

Regards

Eduardo

raymond_giuseppi
Active Contributor

I'm not surer (Z-report was created due to tight deadlines) but to extend MB51 following extensions were considered :

To add standard fields from MKPF or MSGE -> Customizing SM30 on view V_MMIM_REP_CUST (Update itab structure target of the SELECT MKPF JOIN MSEG)

To add other fields : Enhancement Spot ES_RM07DOCS

  • Implicit :
    • Add fields in displayed structure (data:     begin of list occurs 0., near ENHANCEMENT 1  MGV_LAMA_RM07DOCS.)
  • Explicit :
    • RM07DOCS_07 Add fields in   (e.g.  add perform bu_fc using 'LIST' 'EKKN_ZEKKN' 'EKKN' 'ZEKKN' c_no_out.)
    • RM07DOCS_02 include TOP (e.g. define an internal text table )
    • RM07DOCS_04 Initialization (e.g. fill the previous itab from database once)
    • RM07DOCS_06 Fill added fields value during loop at itab -> line (e.g. get the text in the previous itab)

Regards,

Raymond

Former Member
0 Kudos

hi Can you please give the detail for using MBCF011

0 Kudos

If you want to add this field to the list you should to enhance the structure of the ALV list with the new field then you can use MBCF0011 to complete the data

Former Member
0 Kudos

Hi,

Can you please give me a abap example for add fields not in MSEG and MKPF using Enhancement Spot ES_RM07DOCS

Regards