Application Development and Automation 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: 
Read only

MB51 reason code text

Former Member
0 Likes
2,544

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-

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,768

You probably need to enhance the program. Or you could use MBGR a TCode similar to MB51 that outputs the reason.

8 REPLIES 8
Read only

Former Member
0 Likes
1,768

Hi,

Try by using FM: Read_text.

Regards,

Venkat.

Read only

0 Likes
1,768

FM : READ_TEXT? reading text is not a problem, I am basically looking for the procedure to add that text on the MB51 output.

Read only

Former Member
0 Likes
1,769

You probably need to enhance the program. Or you could use MBGR a TCode similar to MB51 that outputs the reason.

Read only

0 Likes
1,768

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?

Read only

0 Likes
1,768

>

> 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

Read only

0 Likes
1,768

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.

Read only

1,768

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.

Read only

0 Likes
1,768

rahul..would you mind sharing with me the codes...i got the same requirement as well..