cancel
Showing results for 
Search instead for 
Did you mean: 

BDC in workflow task not working

Former Member
0 Kudos

Hi Experts,

I have created a BDC to update the posting date in transaction FV60. I have created a FM for the BDC.

I called this FM in my BO method. On testing the method through tcode SWUD, the BDC is working perfectly fine.

However, when I use this method in a workflow task as background task. The BDC is not working. I have verified the binding between Workflow-Task-Method.

Please advice.

Regards,

Ashu Arora

Accepted Solutions (1)

Accepted Solutions (1)

pokrakam
Active Contributor
0 Kudos

BDCs are old technology, try to look for a BAPI or BAdI instead.

If you must use BDCs, they will only work in background if the transaction has NO DIALOG (e.g. confirmation popups), and it also cannot use anything that needs a GUI (e.g. controls).

In other words, when you test it in SWUD, there must be no screen interaction and no input required from you.

Cheers,

Mike

Answers (2)

Answers (2)

Former Member
0 Kudos

I had to call a screen and thats why bdc was not working, I used a spro setting to update the posting date of the doc to current date if the posting period is closed.

Former Member
0 Kudos

Yeah,

recently only i also found out that there is a SPRO config for this. But, ofcourse our requirement was to differentiate between various doc.types before changing the posting date. We had to NOT Change post. Date to current date for certain doc. types,anyway. So, we stuck to our developed method.

venu

Former Member
0 Kudos

hi,

i had the same issue of the BDC not updating posting date while doing as background task. To my knowledge, there is no BAPI or BADi for updating the posting date on the Non PO based invoices. So, creating BDC was the only option.

Pl check the following:

1. First check if WF-BATCH has the required auth.

2. If you are creating invoices thru' IDOC's, then the t-code that is used should be FBV1 or FBV2, not FV60 or FB02 for changing the post.date in BDC. Make sure that you are passing the right t-code in the BDC thru' your FM.

We've achieved this as below.

1. Get t-code used for invoice creation thru a dbase attribute for ZFIPP object from VBKPF-TCODE.

2. Pass in this parameter to the custom pgm(report) that we created within which we are calling the BDC.

3. Use SUBMIT in your custom method to call thisz-pgm.

Hope this helps. Let me know if you need further details.

Regards,

venu