SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software
Development resources, articles, tutorials, code samples, tools and downloads for SAP HANA and ABAP, HANA Database, SQLScript, SAP UI5, Screen Personas, Web Dynpro, Workflow


ABAP - DEVELOPER_KEY_CHECK SAP Function Module


ABAP developers may need to code ABAP in some ABAP reports where some special permissions are required. In such cases ABAP developers are controlled using DEVELOPER_KEY_CHECK SAP function module.

developer_key_check sap function module

ABAP programmers can see the above screen for requesting Access key from the ABAP developer.





When the Access key is entered by the ABAP developer, the DEVELOPER_KEY_CHECK function module is called and the validity of the access key is controlled.
Here is the ABAP source code for developer_key_check SAP function module.

FUNCTION DEVELOPER_KEY_CHECK.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(DEVELOPKEY) LIKE DD04T-SCRTEXT_M
*" EXCEPTIONS
*" WRONG_KEY
*" PARAMETERS_WRONG
*"----------------------------------------------------------------------

 CALL 'CHECK_DEVELOPER_KEY' ID 'KEY' FIELD DEVELOPKEY.
 CASE SY-SUBRC.
  WHEN 1.
   RAISE PARAMETERS_WRONG.
  WHEN 2.
   RAISE WRONG_KEY.
 ENDCASE.

ENDFUNCTION.
Code


SAP HANA and ABAP

Install SAP Free
CRM Companies List
Web Based CRM Software


Copyright © 2004 - 2021 Eralper YILMAZ. All rights reserved.