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

funtion module and locks

prabhu_s2
Active Contributor
0 Likes
547

hi

i'm trying to create a invoice when a pgi for the delivery is done. output type is all set configured right but the issue is that related to locks. when the pgi is done the delivery number is locked by the internal session and the output control routine calls the form routine and triggers the created trfc for processing inovice creation by BDC method. neither bdc or bapi helps in this case as the delivery number cannot be used as being locked by the process triggered earlier. is there anyother way to overcome this suituation?

thkx

Prabhu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
527

You can use some BAdI which is trigerred after PGI OR

You can submit background job in your custom called routine.

This job can check when delivery is released and than proceed.

Regards,

Mohaiyuddin

hi

i'm trying to create a invoice when a pgi for the delivery is done. output type is all set configured right but the issue is that related to locks. when the pgi is done the delivery number is locked by the internal session and the output control routine calls the form routine and triggers the created trfc for processing inovice creation by BDC method. neither bdc or bapi helps in this case as the delivery number cannot be used as being locked by the process triggered earlier. is there anyother way to overcome this suituation?

thkx

Prabhu

3 REPLIES 3
Read only

Former Member
0 Likes
528

You can use some BAdI which is trigerred after PGI OR

You can submit background job in your custom called routine.

This job can check when delivery is released and than proceed.

Regards,

Mohaiyuddin

Read only

0 Likes
527

HI

thkx for ur input. yes i wanted too for the backgrd job but somehow i wanted to try capturing the status of the output type...incase when invoice is not created successfully. now i got two option like creting idoc and the last one is backgrd job. but still looking into other possibilites

Read only

0 Likes
527

Maybe you can use Form attached to capture status and background job to create Invoice..

Regards,

Mohaiyuddin