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

Insert Statement

Former Member
0 Likes
601

Hi,

I have written one program which reads records from input file and those records are inserted in Z table with 'INSERT' statement.

Please let me know whether there is a need to call enqueue and dequeue function modules ?

Regards,

Netra

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
568

well you need to know that

its a Z-Table, so only you guys who created this Z-Table can know when it will be used.

but well if you enqueue the table before inserting you dont do anything wrong.

just make sure to dequeue it afterwards

4 REPLIES 4
Read only

Former Member
0 Likes
569

well you need to know that

its a Z-Table, so only you guys who created this Z-Table can know when it will be used.

but well if you enqueue the table before inserting you dont do anything wrong.

just make sure to dequeue it afterwards

Read only

Former Member
0 Likes
568

no need

Read only

Former Member
0 Likes
568

hi

no need to enqueue or dequeue.

coz you are not fetching records from the table ..records are in your file..and you are goin to insert those recods into the table which dont exist in table b4.

so you can not lock or unlock the records which are not in table..

thnks

Read only

0 Likes
568

Yes it is always a best practice to Enqueue and Dequeue any table befor you update ...Even a ZTABLE as you will not be the only one using that table.

Create a Lock Object and create the Enqueue and Dequeue Function module for this purpose..

Raghav