Show TOC Start of Content Area

Procedure documentation Assigning a Date Calculation Variable  Locate the document in its SAP Library structure

Prerequisites

To use a selection variable for date calculation, you must have defined a date field as a selection criterion or parameter in the relevant program.

Example

PARAMETERS DATE LIKE SY-DATUM.

Procedure

...

       1.      Open the initial screen for maintaining variants.

For more information, see Calling the Initial Screen.

       2.      In the Variant field, enter the name of the appropriate variant.

       3.      In the Subobjects group box, select the Attributes radio button.

       4.      Choose This graphic is explained in the accompanying text Change.

The Variant Attributes screen for the selected variant appears.

For more information, see Variant Attributes.

       5.      In the Selection variable column, press F4 and choose a type of selection variable.

A dialog box appears, listing the possible types for the selected field.

       6.      Select type D for dynamic date calculation and choose This graphic is explained in the accompanying text with the quick info text Continue.

       7.      In the Name of Variable column, choose the F4 help.

All possible date calculations are displayed in a new dialog box.

Caution

Use only the F4 help to enter data in the Name of Variable column.

       8.      Select an entry and choose This graphic is explained in the accompanying text with the quick info text Continue.

Note

If necessary, enter the required values. To subtract days, you must enter them in the format of a number with a minus sign in the last position (for example 10-).

You cannot change the proposals in the list, nor can you add new proposals.

Here you can also specify the selection options for the date calculation.

You return to the attributes screen.

       9.      On the Variant Attributes screen, choose This graphic is explained in the accompanying text with the quick info text Save.

Result

You have assigned a variable to a variant for date calculation and saved it.

To make further specifications for date calculations, you can choose Selection Options on the selection variable screen.

 

 

End of Content Area