Show TOC

Procedure documentationMaintaining Variants Automatically Locate this document in the navigation structure

 

You can use the job definition SAP_StoreVariant to change one or more values of a variant directly, without the need to manually edit the variant. You duplicate this job definition and edit the parameter set, the parameter names must match and the values you set must be legal values for the variant. This is especially useful when you want to have dynamic variants, for instance, a parameter that would contain the current date. With SAP CPS, this is easily implemented, as you could schedule a job daily which changes the parameter value of the variant and fills it with the current date. You can also create a job chain, which calls the job definition and sets the values of the variant with parameter mappings. See the Job Chain Job Parameter Mappings section for more information on parameter mappings in job chains.

Note Note

XBP 3.0 requires a logical system for the client, see for more information on creating logical systems for clients.

End of the note.

Prerequisites

  • An RFC connection has been established between the Central Scheduler and a BI or BW system, as outlined in Connecting to SAP Systems.

Additionally, the SAP System must have one of the following:

  • XBP 3.0 support

  • The Redwood transport files must have been installed

Procedure

Duplicate and modify the SAP_StoreVariant job definition

  1. Navigate to   Definitions → Job Definitions  

  2. Choose Duplicate from the context menu of SAP_StoreVariant

  3. Choose Refresh from the context menu and choose Edit from the context menu of SAP_StoreVariant_1 If there are more than one SAP_StoreVariant_#, edit the one with the highest number.

  4. Change the name of the job definition to reflect its purpose.

  5. Give ABAP_PROGRAM_NAME and ABAP_VARIANT_NAME default values.

  6. Add additional parameters for the variant parameters that you wish to change. Remember that you can use Redwood Expression Language to specify expressions.

  7. Choose Save & Close.

Result

You have create a custom job definition that will change a variant on demand, remember that you can change the parameters at submit time again, if necessary.