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

MB_DOCUMENT_BADI - Method MB_DOCUMENT_BEFORE_UPDATE

wagener-mark
Contributor
0 Likes
523

Hi guys,

is there any option to read the Purchasing Document Type directly from a structure?

I want to manipulate a custom (z) table in this exit, when booking a goods issue related to an po! i only want to do this for special po document types...so is there any other way than reading the ekko for every goods issue related to an po? (i can read ekko via using ebeln from structure xmseg)

kind regards

2 REPLIES 2
Read only

Former Member
0 Likes
424

Hi,

You can put an query in that method like select BSART from ekko via XMSEG-ebeln. Put a check if it matches your doc type then allow update or reject the update

Thanks,

Manesh.R

Read only

0 Likes
424

I did it this way, cause i do not think that the Bsart could be read directly from a structure!