SAP Function Modules

BM_IMG_ASSIGNMENTS_MODIFY SAP Function module







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

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


Pattern for FM BM_IMG_ASSIGNMENTS_MODIFY - BM IMG ASSIGNMENTS MODIFY





CALL FUNCTION 'BM_IMG_ASSIGNMENTS_MODIFY' "
* EXPORTING
*   no_dialog = SPACE           " bmt_flag
*   cico_request_no = SPACE     " rpygsgf-cico_reqno
*   devclass =                  " rpygsco-devclass
*   context =                   " bmcntxtc
  IMPORTING
    processing_status =         " rpygsgf-proc_stat
  TABLES
    errors =                    " rpygser
*   img_assignments =           " df35s
*   img_excludes =              " df36s
    .  "  BM_IMG_ASSIGNMENTS_MODIFY

ABAP code example for Function Module BM_IMG_ASSIGNMENTS_MODIFY





The ABAP code below is a full code listing to execute function module BM_IMG_ASSIGNMENTS_MODIFY 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_processing_status  TYPE RPYGSGF-PROC_STAT ,
it_errors  TYPE STANDARD TABLE OF RPYGSER,"TABLES PARAM
wa_errors  LIKE LINE OF it_errors ,
it_img_assignments  TYPE STANDARD TABLE OF DF35S,"TABLES PARAM
wa_img_assignments  LIKE LINE OF it_img_assignments ,
it_img_excludes  TYPE STANDARD TABLE OF DF36S,"TABLES PARAM
wa_img_excludes  LIKE LINE OF it_img_excludes .

DATA(ld_no_dialog) = 'Check type of data required'.

DATA(ld_cico_request_no) = some text here

DATA(ld_devclass) = some text here
DATA(ld_context) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_errors to it_errors.

"populate fields of struture and append to itab
append wa_img_assignments to it_img_assignments.

"populate fields of struture and append to itab
append wa_img_excludes to it_img_excludes. . CALL FUNCTION 'BM_IMG_ASSIGNMENTS_MODIFY' * EXPORTING * no_dialog = ld_no_dialog * cico_request_no = ld_cico_request_no * devclass = ld_devclass * context = ld_context IMPORTING processing_status = ld_processing_status TABLES errors = it_errors * img_assignments = it_img_assignments * img_excludes = it_img_excludes . " BM_IMG_ASSIGNMENTS_MODIFY
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_processing_status  TYPE RPYGSGF-PROC_STAT ,
ld_no_dialog  TYPE BMT_FLAG ,
it_errors  TYPE STANDARD TABLE OF RPYGSER ,
wa_errors  LIKE LINE OF it_errors,
ld_cico_request_no  TYPE RPYGSGF-CICO_REQNO ,
it_img_assignments  TYPE STANDARD TABLE OF DF35S ,
wa_img_assignments  LIKE LINE OF it_img_assignments,
ld_devclass  TYPE RPYGSCO-DEVCLASS ,
it_img_excludes  TYPE STANDARD TABLE OF DF36S ,
wa_img_excludes  LIKE LINE OF it_img_excludes,
ld_context  TYPE BMCNTXTC .

ld_no_dialog = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_errors to it_errors.

ld_cico_request_no = some text here

"populate fields of struture and append to itab
append wa_img_assignments to it_img_assignments.

ld_devclass = some text here

"populate fields of struture and append to itab
append wa_img_excludes to it_img_excludes.
ld_context = '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 BM_IMG_ASSIGNMENTS_MODIFY or its description.