on 02-21-2011 6:15 PM
Dear All,
What are the steps to create the workflow for Goods Receipt notification without approval. How we can assign the standard WS10400010 -- Goods Receipt Workflow Without Approval.
Regards,
Rahul Singh
Hello Rahul !
I assume your scenario is to send a notification from workflow as soon as good receipt is created.
To trigger the workflow, you have to use the business object MKPF. Also, you will have to implement a BAdI named 'MB_DOCUMENT_BADI at method MB_DOCUMENT_BEFORE_UPDATE .In this method call the function module 'SAP_WAPI_CREATE_EVENT' to trigger the workflow.
Alternative to BAdI, you can use the enhancement spot MB_MIGO_BADI or user exit EXIT_SAPLMBMB_001 to trigger the workflow.
Inside the workflow, create a send mail step for sending notification.
Regards,
S.Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Suresh,
Your contribution to SDN is appreciated. Thank you very much. I have been looking on SDN but i did not get the exact details to trigger my work flow .
My process in details so that others can take help from this.
I created my own custom workflow with header BOR MKPF.
and for triggering the workflow i used this code in enhancement point as below.
DATA: KEY type SWEINSTCOU-OBJKEY.
BREAK RSINGH_MI.
KEY = IS_MKPF-mblnr.
CLEAR KEY.
CONCATENATE IS_MKPF-mblnr IS_MKPF-mJAHR INTO KEY.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'MKPF' "'BUS2203'
objkey = KEY
event = 'CREATED' "'SAVED'
CREATOR = ' '
TAKE_WORKITEM_REQUESTER = ' '
START_WITH_DELAY = ' '
START_RECFB_SYNCHRON = ' '
NO_COMMIT_FOR_QUEUE = ' '
DEBUG_FLAG = ' '
NO_LOGGING = ' '
IDENT =
IMPORTING
EVENT_ID =
TABLES
EVENT_CONTAINER =
EXCEPTIONS
OBJTYPE_NOT_FOUND = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
Endif..
Regards,
Rahul Singh
Hello,
I didn't know until now about this. Where did you find that enhancement point?
I tried to enter se38, look in program SAPLMIGO and then click on show implicit enhancement options(in the menu edit - enhancement operations). I read that this is the way to search an enhancement point, but i have not found where to enter your code.
Thanks,
Efren
Hello,
I found the enhancement point in se18. But now where do i insert the code?
I created an enhancement spot for badi MB_MIGO_BADI in se19. Now i see the methods. So i can insert the code there. But how do i send the right number to the workflow(in objkey)? I mean i should pass an attribute(the number), but i do not have any attributes in the class of my enhancement implementation.
Efren
Edited by: Efren23 on Jun 7, 2011 4:38 PM
Hi Rahul,
I am having similar kind of scenario, any guide on how to implement this workflow with approval?
Thanks,
Pratik.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rahul,
I am having the same requirement!
Can you please emphasis more on enhancement part. Where did you exactly embed your code to trigger the workflow?
Thanks,
MR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This information was tailored made for me. Thanks a lot dude.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.