cancel
Showing results for 
Search instead for 
Did you mean: 

Authorization check - customer exit EXIT_SAPLRRS0_001

Former Member
0 Kudos

Hi gurus,

a question on customer exit about EXIT_SAPLRRS0_001 related to i_step = 0 (Authorization check).

I have two InfoObjects: 0WS_CAT and 0WSCATQ. The last one has a compounding that is 0WS_CAT.

In the exit: I need to check the 0WS_OBSFLAG (a simple flag attribute) to determine if the entries in 0WSCATQ Master data are valid or no.

If I found that the entry is valid I add the value to the e_t_range export table in this way:


.....
 if ( i_step = 0 ).
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    l_s_range-low = '00000001'.

    append l_s_range to e_t_range.
endif.
....

The problem is the compound, how can specify the value key for the export table?

For example ... in the table I have three entries:

0001 00000001 #

0002 00000001 X

0003 00000001 #

The valid entries are:

0001 00000001 #

0003 00000001 #

How can specify '0001' or '0003'? Because if I assign only the value '00000001' to l_s_range-low then the entries valid in the authorization for 0WS_CATQ are three and not two.

It's important for me to find a solution.

Kindly regards, Roberto

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In addition to the above mentioned solutions try restricting the field which holds the value as "X" in the customer exit if possible.

Else it will be fine if some more clarity will be given in the concern

regards

Aijaz

Ralf
Active Participant
0 Kudos

Hi Roberto,

you have to build your logic into a variable for the other infoobject 0WS_CAT and find your values 0001 and 0003 the way you described.

You might have to restrict the selection for 0WSCATQ to a single value, in case you have a record like this in addition to the 3 you have listed.

0002 00000005 #

Best,

Ralf