关于调用C kernel functions

    技术2022-05-11  78

    1、检查用户是否有权限从abap里调用C kernel functions 权限对象  S_C_FUNCT. 相关参数说明: PROGRAM: Name of the ABAP/4 program that contains the call. If no program name is specified, the system assumes the current program. ACTIVITY: Access type. The possible values are: CALL: Call C kernel function

     

    FUNCTION: Name of the C kernel function

    示例:TYPE-POOLS SABC. CALL FUNCTION 'AUTHORITY_CHECK_C_FUNCTION'      EXPORTING  PROGRAM          = 'ZCALLTST'                 ACTIVITY         = SABC_ACT_CALL                 FUNCTION         = 'SYSTEM'.      EXCEPTIONS NO_AUTHORITY     = 1                 ACTIVITY_UNKNOWN = 2.

    2、ABAP变量类型和C变量类型对应表

    basetypeABAP-DatentypTyp in CCc with length specificationSAP_CHAR (*) [Length]C_GENERICc without length specificationSAP_CHAR*Xx with length specificationSAP_RAW (*) [Length]X_GENERICx without length specificationSAP_RAW*Nn with length specificationSAP_CHAR (*) [Length]N_GENERICn without length specificationSAP_CHAR*Pp with lengthening and decimal indicationSAP_BCD (*) [Length]P_GENERICp without lengthening and decimal indicationSAP_BCD*DdSAP_DATE*TtSAP_TIME*IiSAP_INT*FfSAP_DOUBLE*STRINGstringStrRef*XSTRINGxstringStrRef*INT2sSAP_SHORT*INT1bSAP_INT1*TABLEall Tabel referencesTABH_REF*OBJ_REFall object referencesObjRef*DATA_REFall data referencesFldRef*STRUCTall structure typesregistrierter Typ ctype*ANYANYvoid*DATADATAvoid*SIMPLESIMPLEvoid*CSEQUENCECSEQUENCEvoid*XSEQUENCEXSEQUENCEvoid*NUMERICNUMERICvoid*CLIKECLIKESAP_CHAR*C_POINTER%_C_POINTERvoid**


    最新回复(0)