on 2022 Sep 06 2:03 PM
Hi, I am having an issue with the 0SD_O04 - Open Request Schedule Line DSO.
The transformation has a start routine that performs the routine bellow:
*$*$ begin of routine - insert your code only below this line *-*
Data:
*--
l_subrc type sy-tabix,
l_abort type sy-tabix,
Ls_monitor type rsmonitor,
ls_monitor_recno type rsmonitors.
data:
*--
l_monitor type standard table of rsmonitor,
l_monitor_recno type standard table of rsmonitors.
Refresh:
MONITOR,
MONITOR_RECNO.
* Runtime attributs
SOURCE_SYSTEM = p_r_request->get_logsys( ).
* Migrated update rule call
Perform routine_9998
TABLES
l_monitor
l_monitor_recno
SOURCE_PACKAGE
CHANGING
l_abort.
*-- Convert Messages in Transformation format
LOOP AT l_monitor_recno INTO ls_monitor_recno.
move-CORRESPONDING ls_monitor_recno to MONITOR_REC.
append monitor_rec to MONITOR.
ENDLOOP.
LOOP AT l_monitor INTO ls_monitor.
move-CORRESPONDING ls_monitor to MONITOR_REC.
append monitor_rec to MONITOR.
ENDLOOP.
IF l_abort <> 0.
RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
ENDIF.
*$*$ end of routine - insert your code only before this line *-*
The form it is calling:
FORM routine_9998
TABLES
P_MONITOR structure rsmonitor
P_MONITOR_RECNO structure rsmonitors
DATA_PACKAGE TYPE _ty_t_SC_1_full
CHANGING
ABORT LIKE sy-subrc
RAISING
cx_sy_arithmetic_error
cx_sy_conversion_error.
* init variables
* fill the internal table "MONITOR", to make monitor entries
LOOP AT DATA_PACKAGE.
IF DATA_PACKAGE-lw_gists EQ 'C' OR DATA_PACKAGE-sched_del EQ 'X'.
MOVE 'R' TO DATA_PACKAGE-recordmode.
MODIFY DATA_PACKAGE.
ENDIF.
ENDLOOP.
* if abort is not equal zero, the update process will be canceled
ABORT = 0.
p_monitor[] = MONITOR[].
p_monitor_recno[] = MONITOR_RECNO[].
CLEAR: MONITOR[],
MONITOR_RECNO[].
ENDFORM. "routine_9998
So if either the lowest GI status of the order item or the schedule line is marked for deletion record comes in, it should delete the schedule line in the DSO so you're left with only A or B statuses that are not marked for deletion in the DSO after activation. I have not changed anything from installing BI Content.
As you can see in the picture below, the records with lowest status C in the New Data table are not marked with R in the Recordmode column. Thus, after activation, no schedule lines are deleted.
Any ideas as to what is wrong? Thank you! 🙂
User | Count |
---|---|
70 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.