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

Header condition - Routine for automation

Former Member
0 Likes
445

Dear all,

We have business transaction where PO is getting created automatically. In real time, user is entering header condition manually, because header conditions are not allowed to have access sequence. It is difficult for users on tracking header condition manual entry details.

Can anyone throw some lights for using routine to have automatic entry of header condition while PO is created automatically ? Which routine to be explored to achieve automation of header condition value in PO ?

Rgds,

Dear all,

We have business transaction where PO is getting created automatically. In real time, user is entering header condition manually, because header conditions are not allowed to have access sequence. It is difficult for users on tracking header condition manual entry details.

Can anyone throw some lights for using routine to have automatic entry of header condition while PO is created automatically ? Which routine to be explored to achieve automation of header condition value in PO ?

Rgds,

1 REPLY 1
Read only

vinod_vemuru2
Active Contributor
0 Likes
381

Hi,

I have an idea but let us know if get to meet this requirement in someother better way.

You can trigger a UPDATE function module from one of the user exit/BADI and update the header conditions by using some BAPI like BAPI_PO_CHANGE. PO locking has to be taken care in the UPDATE FM. Check for the lock status of the PO before calling BAPI. Because if you have many outputs to be triggered in the PO, then lock may not get released by the time your update FM is triggered. So you have to wait till the lock is released. This logic is similar to standard SAP functionality of creating automatic delivery on saving the order.

Thanks,

Vinod.