Application Development 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: 

Lock - Unlock : Download PO to TEXT File

Former Member
0 Kudos

Dear All,

I'm writing code to download PO Details from SAP to TEXT File.

The TEXT file will be maintained in a central repository system.

It can be accessed by all employees in different locations as well.

When one person executes the program and download the data into TEXT File, second person should not be able to do the same.

Can anyone please suggest me how to handle this situation?

Thanks & Regards,

Karthikeyan G

2 REPLIES 2

Former Member
0 Kudos

Hi

One way to ensure that the same PO is not downloaded again, is to maintain all PO numbers that are downloaded successfully, in a<b> Z table</b>, check this table before attempting to download a PO details.

Regards

Raj

Former Member
0 Kudos

Hi,

Try to use ENQUEUE and DEQUEUE mechanism to maintain a lock on the program and table.

Regards,

Shruthi