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

PO Release Procedure

Former Member
0 Likes
1,507

Hey Experts,

Does any one have the idea how to trigger release procedure in an user Exit.

The requirement is that based on a certain condition i have been asked to trigger the release procedure . the release procedures are maintained in SPRO settings.

Thanks in Advance.

Regrds,

Ravi.

1 ACCEPTED SOLUTION
Read only

christine_evans
Active Contributor
0 Likes
1,461

When you say 'trigger the release procedure' do you mean start the standard PO workflow to send the PO to an approver who will then approve (and therefore release) it or do you mean that you just want to release the PO without using workflow?

If the former, issuing the BUS2012 event RELEASESTEPCREATED should start the workflow - note that the release code is passed as a mandatory parameter to this event. If the latter, BAPI_PO_RELEASE can be used to release a PO.

9 REPLIES 9
Read only

christine_evans
Active Contributor
0 Likes
1,462

When you say 'trigger the release procedure' do you mean start the standard PO workflow to send the PO to an approver who will then approve (and therefore release) it or do you mean that you just want to release the PO without using workflow?

If the former, issuing the BUS2012 event RELEASESTEPCREATED should start the workflow - note that the release code is passed as a mandatory parameter to this event. If the latter, BAPI_PO_RELEASE can be used to release a PO.

Read only

0 Likes
1,461

Hey Christine,

Thanks for your reply.

I actually am not sure as to what should happen but one thing which is clear is that we are not triggering through work flow.

What i was told was when a particular condition is satisfied then i need to trigger a user defined release Procedure.

Does your BAPI help me in doing that ,

ne ways m checking it.

Regards,

Ravi

Read only

0 Likes
1,461

The BAPI will release the PO based on a release code passed to it. Whether this will do all you need, I don't know. Our release procedures are defined in config by our functional team and the only thing I've ever needed to know about them is what the release code is.

Read only

0 Likes
1,461

Hey Christine,

The problem is in the same release code he has 3 release strategies defined and when i pass the release code to the BAPI you mentioned then it will take the normal strategy but i want to change the strategy.

Please help me in this regard.

Thanks a lot for your help in advance !!!

Regards,

Ravi

Read only

0 Likes
1,461

From the documentation below on release strategies (taken from the IMG) it looks as if the system is not designed to deal with multiple release strategies assigned to the same release code; it will just take the first one it finds.

- Several release strategies are found.

The system assigns the first release strategy found to the

purchasing document.

I'd ask your MM consultant about it. Is it not possible for them to set up a separate release code for each release strategy in config?

Read only

0 Likes
1,461

Hey christine,

There is one release strategy S1 which is declared always since the condition given in it is that the net price should always be greater than zero and hence this is always triggered.

But now the other condition is that they are maintaining the commercial price value in material master and when the net price exceeds the maintained price , he wants me to trigger another release strategy.

I am just not understanding how to use M06E0004.

Even i had debugged the standard PO , there too for release strategy he is calling this exit itself .

You can see this in program MM06EF0L_LESEN_BELEG and search for PERFORM strategie_cekko.

Please do help me !!!

This is really getting on my nerves

Regards,

Ravi

Read only

Former Member
0 Likes
1,461

Dear Experts,

I also get stuck on setting up the PO Release Procedure. I already complete all steps in functional area to config Release Procedure without workflow:

1. Release Group

2. Release Code

3. Release Indicator

4. Release Strategy

5. Check Release Strategy with no errors

But I don't know how to make this procedure affect on my PO. Which detailed steps I continue to finish the release procedure?

Please show me step by step to do that?

Thanks and best regards,

Read only

Former Member
0 Likes
1,461

Hi All,

I am also facing the same problem. I want to release the PO through an user exit. I am not able to figure out how to use EXIT_SAPLEBND_002.

Thanks

Read only

Former Member
0 Likes
1,461

You need to use the CEKKO structure for passing some defaukt value at the user exit level and at the release procedure level a characteristic needs to be assigned for cekko structure with the same default value.