Skip to content

Add enqueue object and lock structure for PDF documents#8

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/create-enqueue-object-structure
Draft

Add enqueue object and lock structure for PDF documents#8
Copilot wants to merge 2 commits intomainfrom
copilot/create-enqueue-object-structure

Conversation

Copy link

Copilot AI commented Jan 19, 2026

Adds ABAP locking infrastructure for PDF resource management.

Changes

  • src/zpdf_lock.tabl.xml: Lock structure defining key fields (MANDT, PDF_ID)
  • src/ezpdf.enqu.xml: Enqueue object EZPDF with exclusive lock mode on both fields

Usage

Standard ABAP enqueue/dequeue pattern for preventing concurrent modification:

" Lock PDF document
CALL FUNCTION 'ENQUEUE_EZPDF'
  EXPORTING
    mandt  = sy-mandt
    pdf_id = lv_document_id.

" ... modify PDF resource ...

" Unlock PDF document  
CALL FUNCTION 'DEQUEUE_EZPDF'
  EXPORTING
    mandt  = sy-mandt
    pdf_id = lv_document_id.
Original prompt

This section details on the original issue you should resolve

<issue_title>create a new enqueue object and corresponding structure</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: larshp <5888506+larshp@users.noreply.github.com>
Copilot AI changed the title [WIP] Create a new enqueue object and corresponding structure Add enqueue object and lock structure for PDF documents Jan 19, 2026
Copilot AI requested a review from larshp January 19, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create a new enqueue object and corresponding structure

2 participants