cancel
Showing results for 
Search instead for 
Did you mean: 

Update Database via Workflow

Former Member
0 Kudos

Hi Experts;

I am new to workflow.I need help about the following:

I have made a workflow about creating absence.I want to update db using methods.I have created an object(ref:ABSENCE).I have added methods using bapis.I have created a step referred to this object in the workflow and under the methods tab i have added the methods i need(enqueue-create-dequeue).

I dont know if i have put these methods to correct place?Do i need to use bapi_transaction_commit in these methods?What do i need to do?Please send me the steps of updating database using methods.

Please help

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Unfortunately it is not the problem.

Here are the steps I did:

1-) I used "include create object reference" workflow wizard and put it where i need in the workflow diagram.

2-)I created a workflow container for my object.

3-)I wrote the methods i want to use under the method tab.

I wrote the "commit work" or "bapi_transaction_commit" commands to commit.

But it didnt work.Why it is not inserting an absence record?

former_member186746
Active Contributor
0 Kudos

If a step is executed from a workflow a commit will take place.

Kind regards, Rob Dielemans

PS, if in doubt, why don't you just test it in the system??

Message was edited by:

Rob Dielemans

Former Member
0 Kudos

Hi Rob;

I have tested my object and its methods.They all work.But when i put them in a new step in workflow, they dont work.I made the bindings.but i dont know where is the problem.

former_member186746
Active Contributor
0 Kudos

Then you have to check the workflow log to see what the problem is.

Antoher thing to do is, placeing an endless loop in the methods, with sm50 you can debug the active process. This way you know what kind of data is present form the viewpoint of the method.

Endless loop:

do something like

data x.
while x ne 1.
endwhle.

Kind regards, Rob Dielemans