SAP Function Modules

CK_F_OBJNR_GET SAP Function module







CK_F_OBJNR_GET is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CK_F_OBJNR_GET into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CK10
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CK_F_OBJNR_GET - CK F OBJNR GET





CALL FUNCTION 'CK_F_OBJNR_GET' "
  EXPORTING
    index =                     " sy-tabix
  IMPORTING
    kalsm_exp =                 " tck05-kalsm
    zschl_exp =                 " ckcoueb-zschl
    objnr_exp =                 " aufk-objnr
    ck_co_object_exp =          " ck_co_object
    .  "  CK_F_OBJNR_GET

ABAP code example for Function Module CK_F_OBJNR_GET





The ABAP code below is a full code listing to execute function module CK_F_OBJNR_GET including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_kalsm_exp  TYPE TCK05-KALSM ,
ld_zschl_exp  TYPE CKCOUEB-ZSCHL ,
ld_objnr_exp  TYPE AUFK-OBJNR ,
ld_ck_co_object_exp  TYPE CK_CO_OBJECT .

DATA(ld_index) = '123 '. . CALL FUNCTION 'CK_F_OBJNR_GET' EXPORTING index = ld_index IMPORTING kalsm_exp = ld_kalsm_exp zschl_exp = ld_zschl_exp objnr_exp = ld_objnr_exp ck_co_object_exp = ld_ck_co_object_exp . " CK_F_OBJNR_GET
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_kalsm_exp  TYPE TCK05-KALSM ,
ld_index  TYPE SY-TABIX ,
ld_zschl_exp  TYPE CKCOUEB-ZSCHL ,
ld_objnr_exp  TYPE AUFK-OBJNR ,
ld_ck_co_object_exp  TYPE CK_CO_OBJECT .

ld_index = '123 '.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CK_F_OBJNR_GET or its description.