cancel
Showing results for 
Search instead for 
Did you mean: 

Reg. Problem in Calling BDC from Workflow

Former Member
0 Kudos

Hi,

In one of the Position Change Requests(PCR), we are required to create a Position, after the PCR Form has been approved by the Manager.

On Approval by the Manager,

We are calling a Function module, which uses a BDC program to Create the Position (PP01).

The Problem we are facing is :

1. The Function Module gets call'd on Approval of the Form through Workflow.

But the BDC Program for Creating a Object for the Position - fails.

2. But if we test the Function Module thro SE37 with the same Input parameters, the BDC Progam is executed correctly and the Position is created without any error.

3.We tried running scheduling the Function Module as a background job and here also the BDC Program failed to create any object for the Position.

The Profile for WF-BATCH user is set as - SAP_ALL.

and the Defaults are same for all users involved in the Workflow Chain.

Anybody who has encountered such a scenario while calling BDC Programs from Workflow could share their learnings .

Thanks.

Raj

Accepted Solutions (0)

Answers (2)

Answers (2)

morten_nielsen
Active Contributor
0 Kudos

Hi

Do you get any shortdumps ?

I have seen this when using BDC's that somehow tryes to display a screen.

Make sure that the Mode in your call transaction is "N". and that no screens are displayed.

Regards

Morten Nielsen

Former Member
0 Kudos

hi Raj,

Similar situation, i faced when i tried to call a BDC using a function module.And individually it worked

The issue is BDC's have internal submit which are not compatible with the function module(RFC), which u call using event linkage or from the task.

i hope this answers your query.

Regards,

Saujanya