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: 

Add custom fields to Purchase requistion ME51N/52N/53N transactions

Hi,

I need to add 2 custom fields to the purchase requisition transactions ME51N/52N/53N. I've added the fields to the EBAN table via the structure CI_EBANDB but I don't see them reflected in the Items ALV on the purchase requisition. Is there any additional setting required to bring those fields into the ALV?

Thanks,
Esha

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

I suppose you used SMOD enhancement MEREQ001 to input/display your fields.

As the fields are defined in CI_EBANDB they are also defined in structure MEREQ3211GRID, did you execute a report BALVBUFDEL run, and then, did you adapt the ALV display variant?

Regards,

Raymond

5 REPLIES 5

Former Member
0 Kudos

Hi Esha,

You have added the fields in the structure level.Now make use of customer exit/BAPI to populate the same fields to the transaction.

I don't want to suggest any as a simple SCN search will give you all the exits available.

Regards,

Kannan

Former Member
0 Kudos

Hy Esha,

You must implement the exit User Exit - MEREQ001. Add at screen 0111 the desired fields.

After implemented, go to SE80 tcode give the function group as XM02 ....in that u will find ur added screen 0111 ....

and includeZXM02TOP where u can declare ur sscreen fields here .and in the flowlogic of the screen u will find PBO AND PAI.here you can add the required modules for your logic.....if you want to make the fields non editable in ME23N..crearet a module under PBO which will ask u for new Z include create it and write code under loop at screen.end loop.loop at screen .if sy-tcode = 'ME23N'.if screen-name = ' '.screen-input = 0.endif.endif.endloop.try to check out the values in debugg mode.

It will not add a field in alv, but will create a new tab at item level.

Regards,

Bruno

raymond_giuseppi
Active Contributor

I suppose you used SMOD enhancement MEREQ001 to input/display your fields.

As the fields are defined in CI_EBANDB they are also defined in structure MEREQ3211GRID, did you execute a report BALVBUFDEL run, and then, did you adapt the ALV display variant?

Regards,

Raymond

0 Kudos

I was also facing same problem, and resolved by this program run.

Thanks Raymond

0 Kudos

Great answer! Thanks for your help. I spent a lot of time because I didn't see my new fiend in "Change layout" and executing this program solved the problem.