cancel
Showing results for 
Search instead for 
Did you mean: 

Goods Receipt workflow

former_member205060
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

suresh_subramanian2
Active Contributor
0 Kudos

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

former_member205060
Active Participant
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Solved. I used method parameter is_mkpf.

Thanks,

Efren

Former Member
0 Kudos

I did the same thng and its working fine also i.e. workflow is trigerred, but not able to check the workflow log(from workflow overview) from migo. Please help...

former_member203117
Active Participant
0 Kudos

Hi Tej.

Use t-code SWI2_FREQ, to see your workflow. select the date range accordingly and select SUB-WORKFLOW and press F8. you will be able to see all the workflows in that date range, then select your workflow and the log icon for further analysis.

regards,

Tushar.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Rahul,

I am having similar kind of scenario, any guide on how to implement this workflow with approval?

Thanks,

Pratik.

Former Member
0 Kudos

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

former_member203117
Active Participant
0 Kudos

This information was tailored made for me. Thanks a lot dude.