cancel
Showing results for 
Search instead for 
Did you mean: 

Order creation using workflow

Former Member
0 Kudos

Hello,

I'm trying to create sales order automatically using event triggered by user status changes. I need no user participation in this process. Can i use workflow for this purpose? As i see from documentation' examples user activity is needed...Do i understand correctly?

Please advise.

Thanks in advance!

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Arghadip, thanks, i will try to test as you wrote.

Karri, the problem is that this process is background at all. User status is replicated from CRM quotation to ERP quotation. So any way this should be done using events. I'm not sure how to use BAPI in this case...

Thanks!

Former Member
0 Kudos

Arghadip, yes i've tryed to use your solution earlier. I've created subtype for BUS2031 and set this method for my task. In tr SWEL i see that task started correctly but it doesn't stop in this method by breakpoint. So i don't know what to do with it. Could you please guide me?

Thanks!

Former Member
0 Kudos

This will not stop in method through breakpoint. Welcome to the world of Workflow

Just pass all the parameters in the binding and this will execute the method.

Thanks

Arghadip

Former Member
0 Kudos

I think you can create a task which executes method CreateFromDat2 of Business Object BUS2032

This method execute Function Module

BAPI_SALESORDER_CREATEFROMDAT2

Thanks

Arghadip

Former Member
0 Kudos

Hi Karri!

My process looks the following way: i have a quotation on ERP system, then BAPI changes user status in this quotation. After user status changed i need to create order with reference to this quotation. This should be done automatically(without user). I've decided to do this using SAP standards. I've created event based on user status change(tr. BSVZ). So i want use this event to trigger order creation. And i wonder if i can use workflow for this. Or maybe it is possible to create order using Standard task(tr. PFTC_INS). I'm trying but no result for now:(

Thanks!

Former Member
0 Kudos

I still want to point out that you don't necessarily need a workflow. Maybe you could call the BAPI for creating the sales order at the same point when you change user status in this quotation (I don't know really what you mean by this, and how you do this). Maybe the workflow solution is the correct one, but it isn't always the case. You are in workflow forum and people are enthusiastic about using it for everything (including myself ;). But let's say you wanted to have a control about the sales order creation already in the user status change - for example if the sales order couldn't be created, you would like to issue an error message for the user doing the status change - in this kind of case the WF solution would not probably be the best one, because the workflow will execute the BAPI in the background.

But I am sure you will find the best solution for your requirement.

Regards,

Karri

former_member185167
Active Contributor
0 Kudos

Hello,

Workflow does not always require human involvement, actually it works faster without having to wait for people.

It's a good way to keep track of complicated processes.

regards

Rick Bakker

Hanabi Technology

Former Member
0 Kudos

Hi,

The main question is, if you can create a sales order programatically. And as far Is know, it is possible. There is a BAPI for that. And probably you could take a look to the standard sales order IDOC handling tunctionality, and how it creates a sales order. Maybe it uses this same BAPI. And if you can create the sales order programatically, then you can use workflow for it. But you don't necessarily need workflow for it (especially when you say that you don't need user participation). It is hard to say, since you don't tell the details of your actual process.

Regards,

Karri