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: 

Delete or HIDE item text in transaction ME51N

0 Kudos

Hello,

I have a requirement to delete certain text for the items on transaction ME51N (also on ME52N and ME53N) for some document types. To clarify, I don't need to delete the content of the text, but to hide it or don't show at all in the list of texts on the Text label for items.

The MM consultants told me there is no way to dot this by customizing, so i need to do this with ABAP code.

I've already checked Badis, User Exits, and enhacement, but none of them will do the job.

Hope you can help me on this.

Regards,

Ez

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Did you try with BAdI ME_PROCESS_REQ_CUST. In PROCESS methods the parameters IM_HEADER or IM_ITEM references carry the interface IF_LONGTEXTS_MM. There you may be able to hide some text lines (e.g. save in another itab and delete from standard itab at method OPEN, so won't be displayed) and prevent their update in database (e.g. reload from saved itab at method POST)

Regards,

Raymond

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

Did you try with BAdI ME_PROCESS_REQ_CUST. In PROCESS methods the parameters IM_HEADER or IM_ITEM references carry the interface IF_LONGTEXTS_MM. There you may be able to hide some text lines (e.g. save in another itab and delete from standard itab at method OPEN, so won't be displayed) and prevent their update in database (e.g. reload from saved itab at method POST)

Regards,

Raymond

0 Kudos

Thank you Raymond,

I had already tried that and it wasn't working, because once the texts are loaded, you can't seem to be able to change later on depending on document type.

I fixed it with an implicit enhacement point on at the beginning of a method that gets the texts.

Thank you for your help anyway.

Regards,

E.z.