Requisitioner in SAP MM PO workflow

30 pts.
Tags:
CEKKO
SAP MM
SAP purchase order
SAP Workflow
HI all, We are implementing Business Workflow for SAP MM where the PO release startegy require the use of field AFNAM, the requisitioner. The field is not available in table CEKKO, but have added it through the inclide CEKKOZZ. However, when this field is included in the release strategy, it is not working - when we remove the field from the strategy, the workflow works. I'd really appreciate any help in identifying what I am missing. Kind regards, Maina

Answer Wiki

Thanks. We'll let you know when a new response is added.

Maina,

You still need to populate the new field you’ve added to CEKKOZZ. This must be done in the user exit provided. Using transaction CMOD – go to menu Utilities > SAP Enhancements. Transaction SMOD takes you there as well.

The exit name you need is : M06E0004 Changes to communication structure for release purch. doc

This exit contains the function below – you will need to create the include file (ZXM06U22). In this include you can write whatever code you like to set/modify values in CEKKO and influence the release strategy.

In your case you just need to set – e_cekko-afnam = it_bekpo-afnam.

A couple of things to consider:
1. there could be more thant one requisition in your PO (and therefore potentially more than one requisitoner) making up this PO – how will you handle this?
2. There could be PO lines added manually (ie no requisitioner)
3. You have to Create/Modify a Project in CMOD to add this exit/enhancement to – then activate it. You may need to talk to your ABAP/Tech team about this.
4. Lastly – the CMOD method is old style – typically this should now be done in a BADI (but I don’t have the experience to advise how best to set this up) – check with you Techos.

FUNCTION EXIT_SAPLEBND_002.
*”———————————————————————-
*”*”Lokale Schnittstelle:
*” IMPORTING
*” VALUE(I_CEKKO) LIKE CEKKO STRUCTURE CEKKO
*” VALUE(IT_BEKPO) TYPE MMPUR_BEKPO OPTIONAL
*” VALUE(IT_BEKET) TYPE MMPUR_BEKET OPTIONAL
*” VALUE(IT_EKKNU) TYPE MMPUR_EKKNU OPTIONAL
*” EXPORTING
*” VALUE(E_CEKKO) LIKE CEKKO STRUCTURE CEKKO
*”———————————————————————-
INCLUDE ZXM06U22.
ENDFUNCTION.

Hope this helps,
geoff.

Hi Geoff,

I have a question for you. We have a release strategy for Purchase Orders in place and based on the value / Qty there may be multiple approvers.

However when the final release of the PO is done, the spool gets created in the ID of the final approver. Whereas we require the spool to be created in the ID of the PO creator.

Can you please suggest how this can be handeled. Is is possible to trigger a workflow one the PO status is released, to send a copy of the PO to the creator in the Inbox ?

Pyromail

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Maina
    Thanks Geoff, That was very helpful - it sheds a lot of light. I have put the code as you adviced. However I am getting the following message; ""IT_BEKPO" is a table without a header line and therefore has no component called "AFNAM".". Anything I am missing still? Regards, Patrick
    30 pointsBadges:
    report
  • Muhoro
    Hi Maina, Did you fix the error? If you did, please post the resolution I also try it. Regards, Ann.
    10 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following