Académique Documents
Professionnel Documents
Culture Documents
Customers, who are not able to create variant for selective dates in EDOC_COCKPIT screen due to huge volume
of Invoices(system throw dump or take time), follow below steps.
ME->CORE_OBJECT->LV_ACTION = IV_ACTION.
ME->CORE_OBJECT->LV_variant = is_variant_key-variant.
ENDIF.
READ TABLE me->core_object->mt_range_variant ASSIGNING <fs_range>
WITH KEY tablename = 'VBRK'.
IF sy-subrc EQ 0.
READ TABLE <fs_range>-frange_t ASSIGNING <fs_fkdat> WITH KEY fie
ldname = 'FKDAT'.
IF sy-subrc EQ 0.
CLEAR <fs_fkdat>-selopt_t.
ls_selopt-sign = 'I'.
ls_selopt-option = 'BT'.
ls_selopt-low = ls_procdt-fromdate.
ls_selopt-high = ls_procdt-todate.
APPEND ls_selopt TO <fs_fkdat>-selopt_t.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
Enter Variant created in Step 3.a. Save as variant and execute the transaction in background by changing the
dates in Customizing table.