Defining a Customer-Specific Additional Check (SD-SLS)

Procedure

  1. Choose Start of the navigation path Tools Next navigation step ABAP Workbench End of the navigation path and then Start of the navigation path Development Next navigation step ABAP Editor End of the navigation path .

  2. Start report SDCLVOFM.

  3. Enter the class of the check in the report selection screen. The following table shows the assignments for class and archiving object.

    Class

    Archiving object

    REAK

    Sales document (SD_VBAK)

    RERK

    Billing document (SD_VBRK)

    REKA

    Sales activities (SD_VBKA)

    To create a customer enhancement for the order, you must enter class REAK. The Change mode checkbox must also be selected.

  4. Choose Execute .

You reach the maintenance screen. The first line contains the reference routine which you can copy and modify.

Example Example

End of the example.

FORM routine

Description

Active

1

SD_VBAK_SAP_1

  1. Place the cursor in the formroutine field, enter a new number, i.e. 999, and press the entry button.

The copied routine appears as follows:

************************************************************

*** Attention: Copied routine ! ***

*** Please note : ***

*** 001 replaced everywhere by 999 ! ***

************************************************************

form sd_vbak_999

using sv_archbar.

endform.

You can enter the customer-specific check in the this routine.

Example Example

If you do not want the documents created by processor JDOE to be archived, then you need to add the following coding.

End of the example.

if vbak-ernam = 'JDOE'

sv_archbar = no.

Endif.

The whole check appears as follows:

form sd_vbak_999

using sv_archbar.

if vbak-ernam = 'JDOE'

sv_archbar = no.

endif.

endform.

  1. Save the check.

After completing the programming, the check must be activated. Procedure:

  1. To do this, place the cursor on the line containing the name of your check routine.

  2. Choose Start of the navigation path Edit Next navigation step Activate. End of the navigation path

The√symbol appears in the Active column. You routine has now been activated.

See also:

Define Preconditions for Customer-Specific Additional Checks (SD-SLS)