Skip to Content
author's profile photo Former Member
Former Member

Insert Statement

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 16, 2008 at 10:04 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2008 at 12:23 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2008 at 12:19 PM

    no need

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.