I am working on a new reporting structure and am having an issue with the ABAP Start Routine I wrote in a TRFN from a WO DSO to SDSO. Basically, I am trying to sort by composite key (same of both DSO) then delete adjacent duplicates whose key matches. Am I missing something in the routine or do I need to add additional primary or secondary global declarations?
*$*$ begin of routine - insert your code only below this line *-*
... "insert your code here
*-- fill table "MONITOR" with values of structure "MONITOR_REC"
*- to make monitor entries
... "to cancel the update process
SORT SOURCE_PACKAGE BY FC_OPBEL
FC_OPUPW FC_OPUPK FC_OPUPZ
/BIC/ZTABLE /BIC/ZID_LAUFI
DATE0 FC_AUGBL CLEAR_DATE.
DELETE ADJACENT DUPLICATES FROM SOURCE_PACKAGE
COMPARING FC_OPBEL FC_OPUPW
FC_OPUPK FC_OPUPZ /BIC/ZTABLE
/BIC/ZID_LAUFI DATE0 FC_AUGBL CLEAR_DATE.
Data Flow:
- IP(FULL) --> WO-DSO (FULL) --> SDSO (DELTA - remove duplicates by comparing composite key)