04-25-2016 12:43 PM
Hello,
I am new in SAP ABAP,
I want to add custom Field in Transaction MB31 Screen
Please advice.
Thanks in advance
04-25-2016 1:04 PM
Hi , Nilesh.
First of all - How to add new field in screen no 310 of transa... | SCN.
I was dealing with standart screen extensions with RE-FX module, but assume approach is the same. The correct way to deal with screen extensions - configuration. SAP allows you to create new sections,views,screens,fields and controller via configuration ( SPRO ). You should find sth. similar to "Basic Settings for the Dialog Structure (Tab pages with Fields)" for your business object.
Hope helpfull.
04-25-2016 1:25 PM
Thank you Pavlo Denysyuk for Quick response,
can you explain details what configuration i have to check and its steps ,
04-25-2016 1:32 PM
04-25-2016 1:36 PM
The thing here is that SAP has hierarchy concept for screen. I might mix things a bit here, but in general :
1. We declare field
2. create view and link field
3. create section and link view
4. create screen + link section
5. link new screen ( or part ) to MB31 screen.
Changing/extending/replacing of standart SAP is not a task for beginner. If I were you I would ask for guidance more senior guys from your team !
04-25-2016 1:55 PM
Thank you Pavlo Denysyuki , i am coordinating with my senior . but we are not able to find correct solution
requirement is - when user will create batch against Production order using MB31 at that time client want to maintain price for material ( dynamic price) for reference purpose ,
04-25-2016 2:20 PM
What I would suggest is to make it easier. Without extending standard screen. Dunno whether it would be ok for you but I am thinking about :
1. Use badi MB_DOCUMENT_BADI correct method which is fired after creation in MB31. Here you could for example calculate your price dynamically and store it somewhere. In this case user would not be able to change price. I mean system would calculate it.
2. You could create your own transaction ( SE93 ) for report. Where in report we could select orders from MB31 and set price manually. This option is much easier then the one you are thinking about. Better to spend some time to think how to convince your client for that case instead changing standart SAP.
04-25-2016 2:27 PM
04-25-2016 2:29 PM
Yeah, believe it would be better. What could be done on top of that:
After new order has been created in MB31 system could run tranzaction automatically in new window. That would be more likely for you. As user could simply forgot to run needed tranz after creation in MB31.