Entering content frame

Procedure documentation Creating a Function to Dynamically Determine the Date Locate the document in its SAP Library structure

Use

You use this procedure if you want to determine a date in batch determination using a user-defined characteristic with date character.

Note

The text contains placeholders Replace the placeholder with the respective name:
Replace <CHARACTERISTIC> with the name of the characteristic
Replace <FUNCTION> with the name of the function
Replace <DEPENDENCY> with the name of the dependency

Procedure

A. Creating the Characteristic

  1. Create the characteristic <CHARACTERISTIC>.

B. Creating the Function

  1. On the Variant Configuration screen choose Tools ® Function ® Create.
  2. On the Basic data screen enter function name <FUNCTION> and select Basic data. Enter a description for this function.
  3. Choose Characteristics, and enter the characteristic <CHARACTERISTIC> as well as other characteristics required for determination. Now choose ENTER .
  4. Select all characteristics required for determination as input parameters and choose ENTER .
  5. Choose Basic data. Set the status to ‘1’, and save the function.

C. Creating the Object Dependency

  1. On the Variant Configuration screen choose Dependency ® Single dependency ® Create.
  2. Enter <DEPENDENCY> as the name of the dependency and choose Basic data. Enter a description. Choose dependency type Action.
  3. Choose Dependency editor, and enter the following data.
  4. Note

    In the following, <CHARACTERISTIC>, LOBM_LFDAT and LOBM_VFDAT are used as placeholders for the characteristics that you require when you carry out determination. <FUNCTION> is used as placeholder for the function that you defined.

    FUNCTION

    <FUNCTION>

     

    (LOBM_LFDAT = LOBM_LFDAT,

     

    <CHARACTERISTIC> = $SELF.<CHARACTERISTIC>,

     

    LOBM_VFDAT = $SELF.LOBM_VFDAT)

    IF LOBM_

    LFDAT SPECIFIED

  5. Choose Save and then Back.
  6. Change the status to Released and save the dependency.

D. D. Linking the Object Dependencies with Characteristic <CHARACTERISTIC>

  1. On the Classification System screen, select Characteristic ® Change, and enter the characteristic <CHARACTERISTIC>.
  2. Choose Basic data, and then on the Basic data screen, choose Extras ® Object Dependencies ® Allocations.
  3. Enter a dependency that you have created, and choose Save.

 

 

 

Leaving content frame