Skip to Content

Dynamic Variant Creation for KO8G

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 ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Aug 04, 2017 at 03:09 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 03, 2017 at 07:48 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Aug 04, 2017 at 06:54 PM

    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

    Add comment
    10|10000 characters needed characters exceeded