SAP Function Modules

GRMG_UPLOAD_CUSTOMIZING SAP Function module - GRMG: Upload customizing







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

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


Pattern for FM GRMG_UPLOAD_CUSTOMIZING - GRMG UPLOAD CUSTOMIZING





CALL FUNCTION 'GRMG_UPLOAD_CUSTOMIZING' "GRMG: Upload customizing
* EXPORTING
*   operation_mode = GRMG_FILE  " int4          GRMG_FILE - Dialog upload, GRMG_DATA_TRANSFER --Agent upload
*   destination =               " rfcdest       logische Destination (Wird bei Funktionsaufruf angegeben)
*   filename =                  " text_512      Arbeitsbereich mit Groß-/Kleinschreibung
  IMPORTING
    fm_out_error =              " flag          General flag
  TABLES
    fm_chg_error_itab =         " grmg_error_itab  GRMG: Table type for error log
*   agent_upload_tab =          " ccmctltxt     Struktur 256 Byte
*   grmg_entry =                " grmg_scenarios
*   grmg_t_entry =              " grmg_scenario_t  GRMG: Tabelle für Szenariobeschreibungen
*   grmg_comp_entries =         " grmg_components  GRMG: Komponententabelle
*   grmg_comp_t_entries =       " grmg_component_t  GRMG: Komponententabelle
*   grmg_props_entries =        " grmg_properties
    .  "  GRMG_UPLOAD_CUSTOMIZING

ABAP code example for Function Module GRMG_UPLOAD_CUSTOMIZING





The ABAP code below is a full code listing to execute function module GRMG_UPLOAD_CUSTOMIZING 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_fm_out_error  TYPE FLAG ,
it_fm_chg_error_itab  TYPE STANDARD TABLE OF GRMG_ERROR_ITAB,"TABLES PARAM
wa_fm_chg_error_itab  LIKE LINE OF it_fm_chg_error_itab ,
it_agent_upload_tab  TYPE STANDARD TABLE OF CCMCTLTXT,"TABLES PARAM
wa_agent_upload_tab  LIKE LINE OF it_agent_upload_tab ,
it_grmg_entry  TYPE STANDARD TABLE OF GRMG_SCENARIOS,"TABLES PARAM
wa_grmg_entry  LIKE LINE OF it_grmg_entry ,
it_grmg_t_entry  TYPE STANDARD TABLE OF GRMG_SCENARIO_T,"TABLES PARAM
wa_grmg_t_entry  LIKE LINE OF it_grmg_t_entry ,
it_grmg_comp_entries  TYPE STANDARD TABLE OF GRMG_COMPONENTS,"TABLES PARAM
wa_grmg_comp_entries  LIKE LINE OF it_grmg_comp_entries ,
it_grmg_comp_t_entries  TYPE STANDARD TABLE OF GRMG_COMPONENT_T,"TABLES PARAM
wa_grmg_comp_t_entries  LIKE LINE OF it_grmg_comp_t_entries ,
it_grmg_props_entries  TYPE STANDARD TABLE OF GRMG_PROPERTIES,"TABLES PARAM
wa_grmg_props_entries  LIKE LINE OF it_grmg_props_entries .

DATA(ld_operation_mode) = 'Check type of data required'.
DATA(ld_destination) = 'Check type of data required'.
DATA(ld_filename) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fm_chg_error_itab to it_fm_chg_error_itab.

"populate fields of struture and append to itab
append wa_agent_upload_tab to it_agent_upload_tab.

"populate fields of struture and append to itab
append wa_grmg_entry to it_grmg_entry.

"populate fields of struture and append to itab
append wa_grmg_t_entry to it_grmg_t_entry.

"populate fields of struture and append to itab
append wa_grmg_comp_entries to it_grmg_comp_entries.

"populate fields of struture and append to itab
append wa_grmg_comp_t_entries to it_grmg_comp_t_entries.

"populate fields of struture and append to itab
append wa_grmg_props_entries to it_grmg_props_entries. . CALL FUNCTION 'GRMG_UPLOAD_CUSTOMIZING' * EXPORTING * operation_mode = ld_operation_mode * destination = ld_destination * filename = ld_filename IMPORTING fm_out_error = ld_fm_out_error TABLES fm_chg_error_itab = it_fm_chg_error_itab * agent_upload_tab = it_agent_upload_tab * grmg_entry = it_grmg_entry * grmg_t_entry = it_grmg_t_entry * grmg_comp_entries = it_grmg_comp_entries * grmg_comp_t_entries = it_grmg_comp_t_entries * grmg_props_entries = it_grmg_props_entries . " GRMG_UPLOAD_CUSTOMIZING
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_fm_out_error  TYPE FLAG ,
ld_operation_mode  TYPE INT4 ,
it_fm_chg_error_itab  TYPE STANDARD TABLE OF GRMG_ERROR_ITAB ,
wa_fm_chg_error_itab  LIKE LINE OF it_fm_chg_error_itab,
ld_destination  TYPE RFCDEST ,
it_agent_upload_tab  TYPE STANDARD TABLE OF CCMCTLTXT ,
wa_agent_upload_tab  LIKE LINE OF it_agent_upload_tab,
ld_filename  TYPE TEXT_512 ,
it_grmg_entry  TYPE STANDARD TABLE OF GRMG_SCENARIOS ,
wa_grmg_entry  LIKE LINE OF it_grmg_entry,
it_grmg_t_entry  TYPE STANDARD TABLE OF GRMG_SCENARIO_T ,
wa_grmg_t_entry  LIKE LINE OF it_grmg_t_entry,
it_grmg_comp_entries  TYPE STANDARD TABLE OF GRMG_COMPONENTS ,
wa_grmg_comp_entries  LIKE LINE OF it_grmg_comp_entries,
it_grmg_comp_t_entries  TYPE STANDARD TABLE OF GRMG_COMPONENT_T ,
wa_grmg_comp_t_entries  LIKE LINE OF it_grmg_comp_t_entries,
it_grmg_props_entries  TYPE STANDARD TABLE OF GRMG_PROPERTIES ,
wa_grmg_props_entries  LIKE LINE OF it_grmg_props_entries.

ld_operation_mode = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fm_chg_error_itab to it_fm_chg_error_itab.
ld_destination = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_agent_upload_tab to it_agent_upload_tab.
ld_filename = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_grmg_entry to it_grmg_entry.

"populate fields of struture and append to itab
append wa_grmg_t_entry to it_grmg_t_entry.

"populate fields of struture and append to itab
append wa_grmg_comp_entries to it_grmg_comp_entries.

"populate fields of struture and append to itab
append wa_grmg_comp_t_entries to it_grmg_comp_t_entries.

"populate fields of struture and append to itab
append wa_grmg_props_entries to it_grmg_props_entries.

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