cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Variant Creation for KO8G

mahabaleshwar_patil
Participant
0 Kudos

For carrying out the business completion of maintenance work order we need to do the settlement by KO88 for individual orders.

There is also an option of settling the orders by KO8G in background processing which will run the batch at predetermined time daily,weekly etc.

But there is no option for dynamic variant creation for the Settlement period and Fiscal Year.

I have used this report RKO7KO8G same thing is hapening.

I found one more thing I can take it from TVARVC table and should maintan data in that table. if i maintin data in that table who is going to change the values e Settlement period and Fiscal Year. montgly ? is it manylly ?

Accepted Solutions (1)

Accepted Solutions (1)

former_member197737
Contributor
0 Kudos

Hi, ABAPER P

You can take a look at program RVSETDAT and the following variables from TVARVC

  • RV_ACTUAL_MONTH
  • RV_ACTUAL_YEAR

Create a monthly job for program RVSETDAT to update those variables every month. Use those variables in report RKO7KO8G variant.

Regards!

PS: you can use other variables like (SAP_SCMA_FISC_YEAR or SAP_SCMA_PERIOD) but then you should copy&modify program RVSETDAT to update them.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can update RKO7KO8G with TVARVC variables for Settlement period and Fiscal Year and these two variables needs to maintained by accounting user.

Or as mentioned by mgitur you could utilize copy of RVSETDAT.

Thanks,

Rau

nico_dewaele
Active Contributor
0 Kudos

hi,

we've created a job that runs at the last day of the month that updates a month and year parameter in TVARVC. Those parameters we use in the variant.

kr

nico

mahabaleshwar_patil
Participant
0 Kudos

Great but how the Settlement period is changed every month ?

Example first time I have maintained Settlement period as 6 and year as 2017 for next month how the period is changed to 7 ? and in year end how year changed to 2018?

nico_dewaele
Active Contributor
0 Kudos

sorry, we have a separate program running in a job each month that updates the month/year parameters in TVARVC.

These parameter we use in the KO8G-program which runs in a separate later job.

kr

Nico