Skip to Content
author's profile photo Former Member
Former Member

SPO Dynamic Partition using by BAdi

Hi Experts ,

i want to create badi for my IC SPO which has 3 partitions.

when i run t-code RSLPO_MASS_ACT, it should fulfill the partitions as below:

at first run ; partition1 should have 2013, partition2 : 2014 and Partition3:2015 data.

at second run; partition1 should have 2016 ,

at third run ,Partition2 should have 2017 data.

i guess on the GET_T_PART_CRIT method correnponding code has to be written.

can anyone help me on that code ?

thanks in advance.


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 31, 2016 at 07:30 PM

    Hi Erdem,

    Yes, you are right. You have to implement BAdI RSLPO_BADI_PARTITIONING and in method GET_T_PART_CRIT you have to write appropriate coding to supply the criteria.

    Please also have a look at my blog series Pattern-based Partitioning using the SPO BAdI - Part 1: Introduction. The coding example might be useful for you.

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Sander van Willigen

      first i create a year variable in TVARVC.

      let say for 1. run year = 2013, for every run i Change the value of ZYEAR-low.

      2. run year = 2014, year = 2015.

      data : it_var type table of tvarvc,

      wa-var like line of it_var,

      lv_idpar type numc2,

      l_ind type i,

      l_no_parts type i,

      l_year_c type numc4.

      l_ind = 1.

      l_no_parts = 3.

      case i_spo .

      when 'ZDEMO'.

      select single * from tvarvc into wa_var where Name = 'ZYEAR'.

      while l_ind LE l_no_parts.

      clear l_s_part_crit.

      l_s_part_crit-objnm = '0CALYEAR'.

      l_s_part_crit-opt = 'EQ'.

      lv_idpart = ( ( wa_var-low + 2 - l_ind ) mod 3 ) +1.

      l_s_part_crit-idpart = lv_idpart.

      l_year_c = wa_var-low - l_ind +2.

      l_s_par_crit-low = l_year_c.

      append l_s_part_crit to r_t_part_crit.

      l_ind = l_ind +1.





Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.