cancel
Showing results for 
Search instead for 
Did you mean: 

RSR_VARIABLE_F4_RESTRICT_BADI not working in Qua system after move

Former Member
0 Kudos

Hi Experts,

i have a requirement   to diplay the WBS elemnt based on the 0project on the screnn for this i have implemented the BADI RSR_VARIABLE_F4_RESTRICT_BADI  for the 0WBS_ELEMT  infoobject and its woring in Dev system.

But when transported it in QA sysetm it is not wforking.

if anybody any idea about the probelm please reply.   Code is same in dev and quality sytem.

Below is the code :

METHOD IF_RSR_VARIABLE_F4_RESTRICT~GET_RESTRICTION_FLAT.

  DATA: l_s_range LIKE LINE OF c_t_range.





  data: l_s_var_range like line of i_t_var_range.



  data: l_s_selection type RSRANGE.

  data: l_t_selection type table of RSRANGE.



  data: l_wbs   type /BI0/OIWBS_ELEMT,

        l_t_wbs type table of /BI0/OIWBS_ELEMT.



  constants: l_c_sourcetab(60) type c value '/BI0/PWBS_ELEMT'.



  clear l_s_selection.

  clear l_t_selection[].

  refresh l_t_selection[].



  loop at i_t_var_range into l_s_var_range

     where iobjnm = '0PROJECT'.

    l_s_selection-sign = l_s_var_range-sign.

    l_s_selection-option = l_s_var_range-opt.

    l_s_selection-low = l_s_var_range-low.

    l_s_selection-high = l_s_var_range-high.

    append l_s_selection to l_t_selection.

  endloop.



  select WBS_ELEMT from (l_c_sourcetab) into table l_t_wbs

     where PROJECT in l_t_selection

     and OBJVERS = 'A'.

  if sy-subrc = 0.

    sort l_t_wbs.

    delete ADJACENT DUPLICATES FROM l_t_wbs.

    loop at l_t_wbs into l_wbs.

      if not l_wbs is initial.

        l_s_range-iobjnm = i_iobjnm.

        l_s_range-sign = 'I'.

        l_s_range-option = 'EQ'.

        l_s_range-low = l_wbs.

        l_s_range-high = ''.

        APPEND l_s_range TO c_t_range.

      endif.

    endloop.

  endif.

Regard

vikas

Accepted Solutions (0)

Answers (2)

Answers (2)

anshu_lilhori
Active Contributor
0 Kudos

Have you read the documentation of this BADI.

You need to pass the query name as well with the infoobject name on which you are trying to restrict the F4 values.

Read the table i_t_compid and there passing the key as the technical name of the query.

Hope this gives an idea.

Regards,

AL

Former Member
0 Kudos

Hi Anshu,

Yes i have read it cafrefully but in this way which i am doing not required the query name.

it working in dev system already but having some issue with Quality system.

former_member182470
Active Contributor
0 Kudos

Have you debugged in Qua? Do you have valid data in Qua? Please analyze in this angle..

Former Member
0 Kudos

Hi Suman,

Data is valid and available in Quality system. Could you please how i can debugg the code .

Actully i dev i never need to debugg and have not done. But here not able to debugg.

Regard

vikas

former_member182470
Active Contributor
0 Kudos

You can debug your query in RSRT.

Former Member
0 Kudos

Hi ,

Can  you please let me know which option i have to check for debugging the badi code.

Regard

vikas

former_member182470
Active Contributor
0 Kudos

RSRT-->execute+Debug-->Variables-->Customer Exit

Former Member
0 Kudos

Hi Suman,

i have debugg the code in both system.   Code is going on debugging in Dev but not  Qua system.

i have check code is same and badi implementation is active in both system.

Any idea why it is happening,...

former_member182470
Active Contributor
0 Kudos

Check your SU53 screen and send to BASIS to provide required access.

Have you selected the break points in Qua in RSRT?

former_member182470
Active Contributor
0 Kudos

Try to retransport your Query as well as your BADI code to Qua and then check it..

Former Member
0 Kudos

Hi Suman,

There is no authorization issue i have check with su53.    and already selected the breakpoints in RSRT , But could not get success to debugg the code.

i have check query is also ok no error.

have you worked with this BADI ever .. please help.