This website is not affiliated with, sponsored by, or approved by SAP AG.
15 posts • Page 1 of 1
I have a scnario in which i have to send a mail to requistioner as soon as purchase order is getting created.
I dont have any clue how to do that. I have a badi in whihc hi can write code for this but i donr know which function module to be used for this.
In workflow what can be the triggering event?
Can anybody come up with some idea.
actually its very simple to do it directly from the workflow itself. just add a send mail step after the activity 'PO creation' and choose 'E-Mail Address' in 'Recipient Type' and put the mail-id of the receiver in 'E-Mail Address'.
as far as function module is concerned, u need to call 'SO_OBJECT_SEND'.
hope this helps.
add the send mail object in workflow and specify the mail address. u need not use the function module.
from workflow it goes to SCOT , then from there schedule batch job will send to external or outlook.
u r job in workflow only. basis will take care of scot.
give me a shout ,
Actually if i am using business object type for purchase order then triggering event wont work. Becuase some configuration is required in mm (spro) for that.
I am working on purchase requistion release workflow and any configuration is not required for purchase order release procedure and so standard task wont work.
Don't have idea how will the workflow trigger when purchase order will get creatd.
Requsition workflow is worknig fine. the last step is to send mail to the requistioner as soon as purchase order is gettign created. business object for Po is bus2012. Can you please help me. Thanks
hi shweta !
actually the event for PO created does not exist. the event which will trigger your workflow is 'ReleaseStepCreated'. Also go to IMG settings in 'SPRO' and goto SAP Web Application Server -> SAP Business Workflow -> Perform Task-specific Customizing and activate event type linkage for Purchasing (under MM Module).
Moreover incase you wish to create events, then extend the Business Object and add events and Delegate.
Hope this helps.
Hey thanks for your suggestion.there is a workflow for release of purchase order. it gets triggered only when certain configuration is maintained in customizing same like the workflow for release of requistion.
So even if i will put send mail step it wont work coz the workflow wont trigger without those customization. the customization cannot be done because there is no release strategy for PO.
I am working alone on this and i dont have a functional consultant with me, Can you through come light on nace procedure. I have tried doing tht also. there are things like partner function and all which i am not understanding, i just know that output type is neu and medium for this is 9 (that is Events (SAP Business Workflow)).
What to assign in partner functionm i dont know.
Can i go and create a new event for business object bus2012 (its subtype) which will trigger the workflow the moment purchase order will get created?
Hey sapab thanks
The event releasestepcreated wont trigger without some customizatiom. Till now i havent created any event. So not understanding how to do it.
I actually created subtype and tried creatin an event but dint succeed . moreover i dont know what ot write in the code. have never seen any sample code also. i tried searching for the code of releasetepcreated but dint find
Can u plz help me.
in case u wish to know about all the functional settings do let me know may be i can send some more information.
Basically u have to do a lot of IMG settings in SPRO, including setting up a release strategy, etc.
Even in the standard workflow u can add send-mail step. but to make that function properly u need to have the release strategy in place.
Hey thanks . since i am using user exit approach for role resolutino i dont need those functional settings. i am fetching the users with the help of my code and it is working absolutely fine without org structure
Raising an old thread and requesting spoon feeding...
Two good reasons to close this.
Please read the basic rules.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
15 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests