Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
Read only

Authorization check

Former Member
0 Likes
800

Hi ,

I have created a SAP query in Sq02 and have entered Purchasing group In selection in Extra . And have below coding for authorization check  but its not working . I am not sure what is worng in this .

4 REPLIES 4
Read only

Former Member
0 Likes
763

Hi Preeti,

Try to call on data processing code section and check or else place a hardcode breakpoint in this code and execute to check the actual issue.

Regards,

Deepti

Read only

0 Likes
763

Hi ,

I have done but not very helpful .

Read only

ThangaPrakash
Active Contributor
0 Likes
763

Hello Preeti,

Change the code section to 2 - (START - OF- SELECTION), it will work.

Regards,

Thanga

Read only

RaymondGiuseppi
Active Contributor
0 Likes
763

If you want to check at selection-screen, use a code in "AT SELECTION-SCREEN" for the select-option like

DATA: ls_t134 TYPE t1342.
  SELECT * FROM t134 INTO ls_t134 WHERE mtart IN mtart.
    AUTHORITY-CHECK OBJECT 'K_ML_MTART'
            ID 'ACTVT' FIELD '3'
            ID 'MTART' FIELD ls_t134-mtart.
   IF sy-subrc NE 0.
     MESSAGE e055(c+) WITH ls_t134-mtart.
   ENDIF.
  ENDSELECT.

If you want to filter records, better code in "Record processing" for the node which contains the field.


Regards,

Raymond