Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

A couple of questions...

Hello experts,

I need some enlightenment on the following. Currently I am modifying a report and there are codes which I only have an idea about.Anyway, Below are the codes:

1. What does the FM 'AUTHORITY_CHECK' do?

2. GET PARAMETER ID 'KUN' FIELD gc_kunnr.

SELECT SINGLE kunnr comp_flag INTO (gc_kunnr,v_compflag)

FROM zsoemailid

WHERE bname = sy-uname.

**In question 2, how does the get parameter id code relate to the select statement?

3. IF v_compflag IS INITIAL AND v_uname IS INITIAL.

LOOP AT SCREEN.

IF screen-name = 'PR_UPLD' OR

screen-name = 'P_FLNME' OR

screen-name = '%_PR_UPLD_%_APP_%-TEXT' OR

screen-name = '%FA11003_1000'.

screen-output = '0'.

screen-input = '0'.

screen-active = '0'.

screen-required = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

v_kunnr = gc_kunnr.

ELSEIF v_compflag NE space OR v_uname NE space.

LOOP AT SCREEN.

IF screen-name = 'PR_EDIT' OR

screen-name = 'P_CODE' OR

screen-name = '%_PR_EDIT_%_APP_%-TEXT' OR

screen-name = '%FA12010_1000' OR

screen-name = 'PR_ADD' OR

screen-name = '%_PR_ADD_%_APP_%-TEXT'.

screen-output = '0'.

screen-input = '0'.

screen-active = '0'.

screen-required = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ELSE.

MESSAGE i000 WITH

'You are not authorised to use this transaction'.

LEAVE PROGRAM.

ENDIF.

**how can I debug this code?

4. I used ALV for the report's display. Now, I used the BLOCK_ALV, my boss said that I should use the GRID_ALV instead. Do I need to re-write all the ALV FMs? Thanks a lot guys and have a nice day!

Tags:
Former Member
Former Member replied

Hi,

'%_PR_EDIT_%_APP_%-TEXT' & '%_PR_UPLD_%_APP_%-TEXT' are the screen field names for the text that appears on the screen for the parameters PR_EDIT & PR_UPLD.

Regards,

Suresh Datti

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question