Show TOC

 Creating a Function to Dynamically Determine the Date

Use

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

Note 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

End of the note.

Procedure

A. Creating the Characteristic

  1. Create the characteristic <CHARACTERISTIC>.

B. Creating the Function

  1. On the Variant Configuration screen choose Start of the navigation path Tools Next navigation step Function Next navigation step Create. End of the navigation path

  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 Start of the navigation path Dependency Next navigation step Single dependency Next navigation step Create. End of the navigation path

  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. 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 Start of the navigation path Characteristic Next navigation step Change, End of the navigation path and enter the characteristic <CHARACTERISTIC>.

  2. Choose Basic data, and then on the Basic data screen, choose Start of the navigation path Extras Next navigation step Object Dependencies Next navigation step Allocations. End of the navigation path

  3. Enter a dependency that you have created, and choose Save .