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

BAPI_REQUISITION_RELEASE_GEN

Former Member
0 Likes
918

Hello,

I have posted this question in the business workflow, but i believe you can also help me.

I have defined in spro, in the release strategy for purchase requisition, two strategies. If the overall value of a purchase requisition is under 20 then the order is to be approved by one person(release code L1). If the value is over 20, the purchase will be approved by person 1 and after by person 2(release code L2).

I made an abap program with the following code. In this case purchase requisition with number 0010000444 has a value under 20.

CALL FUNCTION 'BAPI_REQUISITION_RELEASE_GEN'

EXPORTING

number = '0010000444'

rel_code = 'L1'.

After i run this code and look in the SWEL transaction i see the only event that started is Released.

But if i run the code for a purchase requisition with the value over 20, in SWEL i see two events:RELEASED and RELEASESTEPCREATED.

First of all, why is that?Why is RELEASESTEPCREATED triggered?

Second, i need this to start a workflow. The fact that BAPI_REQUISITION_RELEASE_GEN also triggers the event RELEASESTEPCREATED is giving me headaches.

Do you other functions to approve a purchase requisition? I need just the event RELEASED to be triggered.

Thank you very much,

Efren

1 REPLY 1
Read only

Former Member
0 Likes
652

Moderator message - This thread is locked because it is a cross post; however, if you care to reply, reply to

Rob