SAP Function Modules

GROKO_DATA_SEND SAP Function module - Transfer date to SAPLM61K for detailed header







GROKO_DATA_SEND 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 GROKO_DATA_SEND into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM GROKO_DATA_SEND - GROKO DATA SEND





CALL FUNCTION 'GROKO_DATA_SEND' "Transfer date to SAPLM61K for detailed header
* EXPORTING
*   emdkp =                     " mdkp          MDKP
*   emt61d =                    " mt61d         MT61D
*   emdsta =                    " mdsta         MDSTA
*   everdyna =                  " verdyna       Consumption values
*   ecm61m =                    " cm61m         CM61M
*   enobes =                    "               Display no stock fields
*   ecm61b =                    " m61x_cm61b
*   emdst =                     " mdst
*   emdmix =                    " mdmix
  IMPORTING
    imdkp =                     " mdkp
    imt61d =                    " mt61d
    imdsta =                    " mdsta
    iverdyna =                  " verdyna
    icm61m =                    " cm61m
    .  "  GROKO_DATA_SEND

ABAP code example for Function Module GROKO_DATA_SEND





The ABAP code below is a full code listing to execute function module GROKO_DATA_SEND 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_imdkp  TYPE MDKP ,
ld_imt61d  TYPE MT61D ,
ld_imdsta  TYPE MDSTA ,
ld_iverdyna  TYPE VERDYNA ,
ld_icm61m  TYPE CM61M .

DATA(ld_emdkp) = 'Check type of data required'.
DATA(ld_emt61d) = 'Check type of data required'.
DATA(ld_emdsta) = 'Check type of data required'.
DATA(ld_everdyna) = 'Check type of data required'.
DATA(ld_ecm61m) = 'Check type of data required'.
DATA(ld_enobes) = 'some text here'.
DATA(ld_ecm61b) = 'Check type of data required'.
DATA(ld_emdst) = 'Check type of data required'.
DATA(ld_emdmix) = 'Check type of data required'. . CALL FUNCTION 'GROKO_DATA_SEND' * EXPORTING * emdkp = ld_emdkp * emt61d = ld_emt61d * emdsta = ld_emdsta * everdyna = ld_everdyna * ecm61m = ld_ecm61m * enobes = ld_enobes * ecm61b = ld_ecm61b * emdst = ld_emdst * emdmix = ld_emdmix IMPORTING imdkp = ld_imdkp imt61d = ld_imt61d imdsta = ld_imdsta iverdyna = ld_iverdyna icm61m = ld_icm61m . " GROKO_DATA_SEND
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_imdkp  TYPE MDKP ,
ld_emdkp  TYPE MDKP ,
ld_imt61d  TYPE MT61D ,
ld_emt61d  TYPE MT61D ,
ld_imdsta  TYPE MDSTA ,
ld_emdsta  TYPE MDSTA ,
ld_iverdyna  TYPE VERDYNA ,
ld_everdyna  TYPE VERDYNA ,
ld_icm61m  TYPE CM61M ,
ld_ecm61m  TYPE CM61M ,
ld_enobes  TYPE STRING ,
ld_ecm61b  TYPE M61X_CM61B ,
ld_emdst  TYPE MDST ,
ld_emdmix  TYPE MDMIX .

ld_emdkp = 'Check type of data required'.
ld_emt61d = 'Check type of data required'.
ld_emdsta = 'Check type of data required'.
ld_everdyna = 'Check type of data required'.
ld_ecm61m = 'Check type of data required'.
ld_enobes = 'some text here'.
ld_ecm61b = 'Check type of data required'.
ld_emdst = 'Check type of data required'.
ld_emdmix = 'Check type of data required'.

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 GROKO_DATA_SEND or its description.