ā2014 Feb 21 11:54 AM
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 .
ā2014 Feb 21 12:03 PM
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
ā2014 Feb 21 12:54 PM
ā2014 Feb 21 1:33 PM
Hello Preeti,
Change the code section to 2 - (START - OF- SELECTION), it will work.
Regards,
Thanga
ā2014 Feb 21 1:35 PM
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