Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Call Transaction in UPDATE task

Former Member
0 Likes
2,040

Hi,

My requirement is to generate proforma invoice when user issue PGI.

- I did using Call Transaction BDC (VF01) in output message type configured through NACE.

It is giving error as "Delivery is already editing by user XXX".

I have used DEQUE to release the session lock . even it is not working

- I have tried to call the BDC in UPDATE function module

it went in dump as it will not allow CALL TRANSACTION in UPDATE Task.

Can any body help me out

regards

Venu

Hi,

My requirement is to generate proforma invoice when user issue PGI.

- I did using Call Transaction BDC (VF01) in output message type configured through NACE.

It is giving error as "Delivery is already editing by user XXX".

I have used DEQUE to release the session lock . even it is not working

- I have tried to call the BDC in UPDATE function module

it went in dump as it will not allow CALL TRANSACTION in UPDATE Task.

Can any body help me out

regards

Venu

5 REPLIES 5
Read only

Former Member
0 Likes
1,237

Venu,

Rather than doing a call transaction pass the BDC to a batch session and execute immediately via program RSBDCSUB.

Cheers,

Neil.

Read only

Former Member
0 Likes
1,237

This message was moderated.

Read only

Former Member
0 Likes
1,237

Hi,

Using CALL TRANSACTION or using SUBMIT in update task will not work.

Also since the delivery is currently locked you will get the error message as you are getting.

What you can possibly do is to check if there is any event available after PGI so that you can trigger a workflow.

One more method is to create a call a function module in background task starting as a new task in your routine for the output message type.

In this FM you can call your BDC or you can submit your session or call BAPI to create the invoice.

So when your output message is triggered in update task, this FM will start as a separate task and you will not get the problem of lock.

Regards,

Ankur Parab

Read only

Former Member
0 Likes
1,237

Hi Venu,

U hav to use function module ABAP4_CALL_TRANSACTION in update task or in background task.

Amitava.

Read only

0 Likes
1,237

Hi,

Why is ABAP4_CALL_TRANSACTION required ?

Can i call this FM directly in update task ?