SAP Function Modules

ISM_SD_BAG_CREATE_01_N SAP Function module - Create Recall for a BP - POS Closure







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

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


Pattern for FM ISM_SD_BAG_CREATE_01_N - ISM SD BAG CREATE 01 N





CALL FUNCTION 'ISM_SD_BAG_CREATE_01_N' "Create Recall for a BP - POS Closure
  EXPORTING
    im_unsoldgp =               " junsoldgpnr
    im_collectdate =            " ismcolldate   Status of Return Collection
    im_auart =                  " jksdauart_returncoll  Return Collection Reason
*   im_issue_range =            " rjksd_issue_range_tab  IS-M: Range Table for ISMMATNR_ISSUE
*   im_vkorg_range =            " rjksd_vkorg_range_tab  IS-M: Range Table for VKORG
*   im_vtweg_range =            " rjksd_vtweg_range_tab  IS-M: Range Table for Distribution Channel
    im_testrun =                " xfeld         Checkbox Field
  IMPORTING
    ex_return_tab =             " bapiret2tab   IS-M: BAPIRET2 Table
    .  "  ISM_SD_BAG_CREATE_01_N

ABAP code example for Function Module ISM_SD_BAG_CREATE_01_N





The ABAP code below is a full code listing to execute function module ISM_SD_BAG_CREATE_01_N 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_ex_return_tab  TYPE BAPIRET2TAB .

DATA(ld_im_unsoldgp) = 'Check type of data required'.
DATA(ld_im_collectdate) = 'Check type of data required'.
DATA(ld_im_auart) = 'Check type of data required'.
DATA(ld_im_issue_range) = 'Check type of data required'.
DATA(ld_im_vkorg_range) = 'Check type of data required'.
DATA(ld_im_vtweg_range) = 'Check type of data required'.
DATA(ld_im_testrun) = 'Check type of data required'. . CALL FUNCTION 'ISM_SD_BAG_CREATE_01_N' EXPORTING im_unsoldgp = ld_im_unsoldgp im_collectdate = ld_im_collectdate im_auart = ld_im_auart * im_issue_range = ld_im_issue_range * im_vkorg_range = ld_im_vkorg_range * im_vtweg_range = ld_im_vtweg_range im_testrun = ld_im_testrun IMPORTING ex_return_tab = ld_ex_return_tab . " ISM_SD_BAG_CREATE_01_N
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_ex_return_tab  TYPE BAPIRET2TAB ,
ld_im_unsoldgp  TYPE JUNSOLDGPNR ,
ld_im_collectdate  TYPE ISMCOLLDATE ,
ld_im_auart  TYPE JKSDAUART_RETURNCOLL ,
ld_im_issue_range  TYPE RJKSD_ISSUE_RANGE_TAB ,
ld_im_vkorg_range  TYPE RJKSD_VKORG_RANGE_TAB ,
ld_im_vtweg_range  TYPE RJKSD_VTWEG_RANGE_TAB ,
ld_im_testrun  TYPE XFELD .

ld_im_unsoldgp = 'Check type of data required'.
ld_im_collectdate = 'Check type of data required'.
ld_im_auart = 'Check type of data required'.
ld_im_issue_range = 'Check type of data required'.
ld_im_vkorg_range = 'Check type of data required'.
ld_im_vtweg_range = 'Check type of data required'.
ld_im_testrun = '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 ISM_SD_BAG_CREATE_01_N or its description.