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

Problem with document type in ME51N

Former Member
0 Likes
911

Hi all,

ME51N transaction will pickup NB document type by default. We can change the default document type by using personal settings in ME51N. But, can we restrict document type using ABAP development irrespective of default settings. Suppose NB is default doc type. If we open ME51N, some other doc type should come other than NB. Is it possible by ABAP development. Its very urgent. Please help me in this.

Thanks in Advance,

Siva Sankar.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
789

Siva Sankar

You may use Field Exit to do this enhancement. You can create fieldexit from report RSMODPRF.

In order to use field exit check/activate Profile Parameter abap/fieldexit using t code RZ11.

Thanks & regards

Amol Lohade

Hi all,

ME51N transaction will pickup NB document type by default. We can change the default document type by using personal settings in ME51N. But, can we restrict document type using ABAP development irrespective of default settings. Suppose NB is default doc type. If we open ME51N, some other doc type should come other than NB. Is it possible by ABAP development. Its very urgent. Please help me in this.

Thanks in Advance,

Siva Sankar.

2 REPLIES 2
Read only

Former Member
0 Likes
790

Siva Sankar

You may use Field Exit to do this enhancement. You can create fieldexit from report RSMODPRF.

In order to use field exit check/activate Profile Parameter abap/fieldexit using t code RZ11.

Thanks & regards

Amol Lohade

Read only

0 Likes
789

Hi Amol,

Thanks for your quick reply. Yes, I created field exit for that. After opening the tcode user has to change the doc type or he should press the enter, then only field exit will execute. The requirement is default should be other than NB. In our case, default will be NB if we press enter, the doc type is changing.

Is there any other way to do this?

Thanks,

Siva Sankar.