cancel
Showing results for 
Search instead for 
Did you mean: 

Problem - BDC in Workflow

Former Member
0 Kudos

Hi all,

I have designed a workflow step that runs BDC in background .BDC method is running fine in my business object and update in corresponding transaction.But in workflow the step to run BDC in background is running fine but not updating.

I checked binding between both workflow to task and task to method are fine.

what is the issue and why not updating.

Please help .

Thanks - Krish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You may also need a COMMIT WORK at the end of the Method.

The reason it works when you test the Method (using SWO1 I presume) is due to the implicit COMMIT that occurs during Dialog sessions.

Answers (5)

Answers (5)

Former Member
0 Kudos

Problem Solved. Thanks all

Former Member
0 Kudos

If your BDC is calling an SAP Transaction (not a Z-Transaction), then you need to consider if the updates occur using the Update Processor (Function Modules being called IN UPDATE TASK).

Try making the call with UPDATE set to L for Local Task.

Former Member
0 Kudos

Hi,

It can be a Buffer Issue.

Thanks,

Jyoti

Former Member
0 Kudos

Hi All,

Thanks for quick reply. I will try each solution and update as soon.

Lim : Yes. I'm using call transaction in my method. Why call transaction not working in background? Any particular reason?

Jyoti : Can I use tcode SWU_OBUF to solve buffer issue?

Thank you Imthiaz Ahmed and surjith kumar.

Thanks - Krish

surjith_kumar
Active Contributor
0 Kudos

Hi,

This could be a binding problem, for testing, make that Task as dialog Task and test it.

If it working fine, close all the t.code related to the BDC. Then test it in Background

Mode.

Once this situation happened in my project, the T.code Related to that BDC is opened by another user id, So the BDC in the workflow was not working at that time.

Regards,

Surjith

former_member185167
Active Contributor
0 Kudos

Hello,

Is there a commit work or OK code missing somewhere?

How do you know it's working fine if it's not updating? Maybe it's not doing anything.

regards

Rick Bakker

Hanabi Technology

Former Member
0 Kudos

Yes . it's not doing anything but the status of the task is 'Completed' and going next step.

former_member185167
Active Contributor
0 Kudos

Hello,

Maybe you should try doing a very simple BDC and get that to work (and do updates) from a workflow first.

regards

Rick Bakker

Hanabi Technology

Former Member
0 Kudos

Rick,

My BDC working fine in business object and updating in corresponding transaction.

My problem is that the BDC is not working in workflow. Why?

former_member185167
Active Contributor
0 Kudos

Hello,

The problem isn't getting a BDC to work, it's getting a BDC to work from workflow. That's why I say: try getting a simple BDC to work from a simple workflow first. If that works, change it stepwise until you get to the workflow you want and the BDC you want and find out at what point it goes wrong.

What sort of update does it do and how do you check if it's been done? If you're checking within the workflow then it could be that it's reading from the buffer and not seeing the update.

regards

Rick Bakker

Hanabi Technology

imthiaz_ahmed
Active Contributor
0 Kudos

I think the problem is with the authorization, since in background WF-BATCH is the user which executes the BDC, but when you run in BO, your id comes into picture.

Regards, IA

Former Member
0 Kudos

Hi Raj,

I think currently you are using CALL TRANSACTION in your method right?

Change that into BDC session using FMs:

1.BDC_OPEN_GROUP

2.BDC_INSERT

3.BDC_CLOSE

And run this program RSBDCSUB to execute the BDC.

You can also make program RSBDCSUB to run in background using FMs:

1. JOB_OPEN

2. JOB_SUBMIT

3. JOB_CLOSE

Regards,

Lim...