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

PR to PO default document type

Former Member
0 Likes
561

Hi All,

I am trying to default document type when PR is converted to PO using MD04. I noticed that it is taking the document type from table T161A. I've to force the program to pick BSART from T161W using some logic. I tried to modify BSART in various user exits.

ZXM06U22

ZXM06U36

ZXM06U37

ZXM06U38

ZXM06U40

ZXM06U41

ZXM06U43

ZXM06U39

ZXM06U42

ZXM06U45

However the EKKO structure is passed by value in all these user exits and hence it is not getting affected.

Is there any other way to modify the system deafulted BSART value and use my logic? Should I make any configuration changes in SPRO? So far the settings look okay.

Thanks in advance.

Hi All,

I am trying to default document type when PR is converted to PO using MD04. I noticed that it is taking the document type from table T161A. I've to force the program to pick BSART from T161W using some logic. I tried to modify BSART in various user exits.

ZXM06U22

ZXM06U36

ZXM06U37

ZXM06U38

ZXM06U40

ZXM06U41

ZXM06U43

ZXM06U39

ZXM06U42

ZXM06U45

However the EKKO structure is passed by value in all these user exits and hence it is not getting affected.

Is there any other way to modify the system deafulted BSART value and use my logic? Should I make any configuration changes in SPRO? So far the settings look okay.

Thanks in advance.

1 REPLY 1
Read only

Former Member
0 Likes
467

Did you try ME_PROCESS_PO_CUST BADI? There is a process_header method that should work. Look at the documentation. It is very good.