‎2010 Jul 14 4:00 PM
Hello All,
I have gone through several forums regarding adding fields to the MB51, but unfortunately none of them lead me anywhere.
I have movement type "MSEG-BWART" and reason code "MSEG-GRUND" in the output for MB51. now my requirement is to display the reason code text from "T157E-GRTXT". how do I add this field to the structure. or display it in the output.
Please suggest.
Thanks-
‎2010 Jul 14 4:14 PM
You probably need to enhance the program. Or you could use MBGR a TCode similar to MB51 that outputs the reason.
‎2010 Jul 14 4:13 PM
‎2010 Jul 14 4:15 PM
FM : READ_TEXT? reading text is not a problem, I am basically looking for the procedure to add that text on the MB51 output.
‎2010 Jul 14 4:14 PM
You probably need to enhance the program. Or you could use MBGR a TCode similar to MB51 that outputs the reason.
‎2010 Jul 14 4:20 PM
Thank you Fred, let me suggest this to business. but I am positive, they will still insist for MB51. anything we can do with MB51?
‎2010 Jul 15 11:39 AM
>
> Thank you Fred, let me suggest this to business. but I am positive, they will still insist for MB51. anything we can do with MB51?
Of course - your business could try using the transaction correctly ... the reason can be displayed in SAP standard, if you switch from the ABAP-list layout to the ALV-list layout (the button is labelled 'Detail List'), the go to Settings --> Layout --> Current --> and add 'Reason for Movement' to the list of 'Displayed Colums'.
Save the layout and use it as a default next time around
‎2010 Jul 15 5:24 PM
Mylène:
I just wanted to make sure. The 'Reason for Movement' you refer to, I believe, is the reason code (MSEG-GRUND) and not the reason code text which is a different field/table (T157E-GRTXT)
Rahul:
I think you have to enhance the program for MB51 using the explicit/implicit enhancement options.
‎2010 Jul 15 6:01 PM
Yesterday I have gone through some more online forums and someone mentioned that enhancement spots can be used. so I have changed itab structure by adding t157e-grtxt, and also changed code to populate the information in the internal table LIST and also had to change the fieldcat both FC_FLAT and FC_HIER. Got the desired output. Thank you all for your help.
‎2012 Aug 01 2:02 PM
rahul..would you mind sharing with me the codes...i got the same requirement as well..