2009 Jul 13 3:38 PM
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
2009 Jul 14 1:36 AM
Venu,
Rather than doing a call transaction pass the BDC to a batch session and execute immediately via program RSBDCSUB.
Cheers,
Neil.
2009 Jul 14 6:21 AM
2009 Jul 14 8:55 AM
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
2009 Jul 14 9:01 AM
Hi Venu,
U hav to use function module ABAP4_CALL_TRANSACTION in update task or in background task.
Amitava.
2009 Aug 13 10:23 AM
Hi,
Why is ABAP4_CALL_TRANSACTION required ?
Can i call this FM directly in update task ?
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |