SAP Function TB_LIMIT_CHGPTR_CREATE - Set Change Pointer for Data Export of Limits

Parameter Reference Type Length Default Optional Text
IT_LS_NEW TRLM_T_LS 0 X Limit Key - New
I_MODUS JBD_DTE_CDCHGIND C 1 Change Indicator
I_NEW_VTBLS VTBLS u 212 X Limits: Mapping Logical - Physical Keys
I_NEW_VTBLV VTBLV u 119 X Limits
I_NEW_VTBLVIL VTBLVIL u 138 X Interim Limits for Limits
I_OLD_VTBLS VTBLS u 212 X Limits: Mapping Logical - Physical Keys
I_OLD_VTBLV VTBLV u 119 X Limits
I_OLD_VTBLVIL VTBLVIL u 138 X Interim Limits for Limits
I_VTBLSKEY_UPDATE JBD_DTE_CDCHGIND C 1 X Flag for VTBLS Key Update

Exception Text
VTBLSKEY Generated Table Not Found

Functionality
This function module writes a change pointer in the table JBDCPHDR.Depending on how relevant the data fields are for export, the functionmodule writes it to the table.
The function module has two main sections:

  • Section 1: The fields for the limits key have changed. In this case a
  • change pointer is written for all limits that are attached to this key.
    • Section 2: The limit itself has changed. A change pointer is written
    • only for this limit.
      • Also in section 2: An interim limit has changed. In this case a change
      • pointer is written for the corresponding limit.
        Note that "change" here can also mean "insert" or "delete".
        The relevance for export (Customizing of fields relevant for export) isfirst of all imported with the function moduleJBD_EXPORT_RELEVANZ_GET_PARAM. The imported data fields are filled withdata and the function module JBD_CHGPTR_CHECK_AND_CREATE then writes achange pointer.

        Example
        * delete old sets
        * DELETE VTBLVIL FROM TABLE T_VTBLVIL.
        * Change pointer for VTBLVIL DELETE
        LOOP AT t_vtblvil INTO wa_vtblvil.
        DELETE vtblvil FROM wa_vtblvil.
        CALL FUNCTION 'TB_LIMIT_CHGPTR_CREATE'
        EXPORTING
        i_old_vtblvil = wa_vtblvil
        i_modus = 'D'.
        ENDLOOP.