Skip to content

Commit

Permalink
fix early BDS_LOCL creation
Browse files Browse the repository at this point in the history
  • Loading branch information
bizhuka committed Oct 29, 2022
1 parent b7a8b5e commit 049d673
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/zaqo_editor3_075_attachments.prog.abap
Expand Up @@ -266,21 +266,24 @@ CLASS lcl_attachment IMPLEMENTATION.
es_oaor_last,
et_oaor_file.

DATA lv_ok TYPE bds_locl-classname.
SELECT SINGLE classname INTO lv_ok
FROM bds_locl
WHERE classname EQ ms_db_key-package_id
AND classtype EQ mc-oaor_other.
CHECK lv_ok IS NOT INITIAL.

" Subfolder in OAOR (and classname = package_id)
lv_key = ms_db_key-option_id.

" Finding the right documents
cl_bds_document_set=>get_info(
EXPORTING
classname = ms_db_key-package_id
classtype = mc-oaor_other
object_key = lv_key
IMPORTING
extended_components = lt_sbdst_components2
CHANGING
signature = lt_sbdst_signature
EXCEPTIONS
OTHERS = 7 ).
EXPORTING classname = ms_db_key-package_id
classtype = mc-oaor_other
object_key = lv_key
IMPORTING extended_components = lt_sbdst_components2
CHANGING signature = lt_sbdst_signature
EXCEPTIONS OTHERS = 7 ).
CHECK sy-subrc = 0.

" lt_sbdst_signature structure is complex
Expand Down

0 comments on commit 049d673

Please sign in to comment.