cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow for Vendor Creation through a portal.

Former Member
0 Kudos

Hi All Workflow Experts,

I have a scenario here.In my project vendor is created through a portal.On submit button from portal the workflow is to be triggered.I have to design the workflow process.So can you please guide me through what all should i consider while i design this workflow?

This is my first workflow assignment so if you explain in detail it will be a great help.

I will just pen down what all scenarios i can think of:

1.Start workflow after vendor creation or modification.

2.Check whether approver are maintained in Org structure through standard FMu2019s.

3.Check If approvers are maintained ?

4.If yes,approve or reject the vendor.

5.If no,get the agents from the custom table who can take an action on this.

This is what i can think of.

Please guide me.

Thanks in Advance,

Saket.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks for all help

Former Member
0 Kudos

Hi,

You also need to think about that what happens if the vendor is rejected. The vendor is already created, so probably you need to delete it after the rejection?

To really make a sensible workflow process, you shouldn't create the vendor at the first place. The user should enter the information that is needed for vendor creation in some custom made application/transaction. The data should be then stored in some temporary format (Z-table or ISR or whatever). When the approver has approved the vendor, then the vendor should be created with some BAPI or BDC based on the data that the user has entered. Of course this is much bigger work to implement...

Probably you already thought about this, but I just wanted to make sure that you have taken into account this idea.

Regards,

Karri

bpawanchand
Active Contributor
0 Kudos

The corresponding BO related with the vendor creation or changing is LFA1 but this Business object doeanot have any events that are related to Create and Change , so try to create a ZLFA1 and add you own events or make use of delegation concept where you will create a delegation for LFA1.

For your first isssue

Start workflow after vendor creation or modification

EXIT_SAPMF02K_001 Vendors: User Exit for Checks prior to Saving is the user exit where in you can call the workflow when ever you change or create , because this user exit will trigger when ever you try to save the vendor. so i think you can make use of this user exit

For your second Issue

Check whether approver are maintained in Org structure through standard FMu2019s.

Make use of SWI_GET_USERS_OF_ORG_UNIT this fucntion mdoule to get the user of the ORG unit

or you can create a Rule(for determining the agents dynamically) to find the approvers.

Former Member
0 Kudos

Hi Pavan,

But in BO LFA1 there is an event which relates to Vendor Creation.Do i still need to delegate it?

If yes can you give me a brief idea how to go about it?

Thanks in Advance,

saket.

bpawanchand
Active Contributor
0 Kudos

Saket Tiwari , according to wwhat you stated i just gave you a suggestion if your standard BO is enough to handle the secenario then no need for going delegation

But clear us one thing the event is no where related to creation of vendor , i think it delas with blocking the vendor

so my suggestion to trigger the workflow is to use the FM SAP_WAPI_WORKFLOW_START to initiate the wrokflow when ever you save the vedor from the Txn

clear us one more thing that are you creating the vendor by using the TXn XK01 or by using any BAPI