SAP Function Modules

FVW_STORNO_TPM16 SAP Function module







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

Associated Function Group: FVW_STORNO
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM FVW_STORNO_TPM16 - FVW STORNO TPM16





CALL FUNCTION 'FVW_STORNO_TPM16' "
  EXPORTING
*   ctu = 'X'                   " apqi-putactive
*   mode = 'N'                  " apqi-putactive
*   update = 'L'                " apqi-putactive
*   group =                     " apqi-groupid
*   user =                      " apqi-userid
*   keep =                      " apqi-qerase
*   holddate =                  " apqi-startdate
*   nodata = '/'                " apqi-putactive
    p_sec_001 = 'X'             " bdcdata-fval
    p_bukrs_002 =               " bdcdata-fval
    low_003 =                   " bdcdata-fval
*   low_004 =                   " bdcdata-fval
    p_keyd_005 =                " bdcdata-fval
    p_revr_006 = '01'           " bdcdata-fval
    p_test_007 = 'X'            " bdcdata-fval
  IMPORTING
    subrc =                     " syst-subrc
* TABLES
*   messtab =                   " bdcmsgcoll
    .  "  FVW_STORNO_TPM16

ABAP code example for Function Module FVW_STORNO_TPM16





The ABAP code below is a full code listing to execute function module FVW_STORNO_TPM16 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_subrc  TYPE SYST-SUBRC ,
it_messtab  TYPE STANDARD TABLE OF BDCMSGCOLL,"TABLES PARAM
wa_messtab  LIKE LINE OF it_messtab .


SELECT single PUTACTIVE
FROM APQI
INTO @DATA(ld_ctu).


SELECT single PUTACTIVE
FROM APQI
INTO @DATA(ld_mode).


SELECT single PUTACTIVE
FROM APQI
INTO @DATA(ld_update).


SELECT single GROUPID
FROM APQI
INTO @DATA(ld_group).


SELECT single USERID
FROM APQI
INTO @DATA(ld_user).


SELECT single QERASE
FROM APQI
INTO @DATA(ld_keep).


SELECT single STARTDATE
FROM APQI
INTO @DATA(ld_holddate).


SELECT single PUTACTIVE
FROM APQI
INTO @DATA(ld_nodata).


DATA(ld_p_sec_001) = some text here

DATA(ld_p_bukrs_002) = some text here

DATA(ld_low_003) = some text here

DATA(ld_low_004) = some text here

DATA(ld_p_keyd_005) = some text here

DATA(ld_p_revr_006) = some text here

DATA(ld_p_test_007) = some text here

"populate fields of struture and append to itab
append wa_messtab to it_messtab. . CALL FUNCTION 'FVW_STORNO_TPM16' EXPORTING * ctu = ld_ctu * mode = ld_mode * update = ld_update * group = ld_group * user = ld_user * keep = ld_keep * holddate = ld_holddate * nodata = ld_nodata p_sec_001 = ld_p_sec_001 p_bukrs_002 = ld_p_bukrs_002 low_003 = ld_low_003 * low_004 = ld_low_004 p_keyd_005 = ld_p_keyd_005 p_revr_006 = ld_p_revr_006 p_test_007 = ld_p_test_007 IMPORTING subrc = ld_subrc * TABLES * messtab = it_messtab . " FVW_STORNO_TPM16
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_subrc  TYPE SYST-SUBRC ,
ld_ctu  TYPE APQI-PUTACTIVE ,
it_messtab  TYPE STANDARD TABLE OF BDCMSGCOLL ,
wa_messtab  LIKE LINE OF it_messtab,
ld_mode  TYPE APQI-PUTACTIVE ,
ld_update  TYPE APQI-PUTACTIVE ,
ld_group  TYPE APQI-GROUPID ,
ld_user  TYPE APQI-USERID ,
ld_keep  TYPE APQI-QERASE ,
ld_holddate  TYPE APQI-STARTDATE ,
ld_nodata  TYPE APQI-PUTACTIVE ,
ld_p_sec_001  TYPE BDCDATA-FVAL ,
ld_p_bukrs_002  TYPE BDCDATA-FVAL ,
ld_low_003  TYPE BDCDATA-FVAL ,
ld_low_004  TYPE BDCDATA-FVAL ,
ld_p_keyd_005  TYPE BDCDATA-FVAL ,
ld_p_revr_006  TYPE BDCDATA-FVAL ,
ld_p_test_007  TYPE BDCDATA-FVAL .


SELECT single PUTACTIVE
FROM APQI
INTO ld_ctu.


"populate fields of struture and append to itab
append wa_messtab to it_messtab.

SELECT single PUTACTIVE
FROM APQI
INTO ld_mode.


SELECT single PUTACTIVE
FROM APQI
INTO ld_update.


SELECT single GROUPID
FROM APQI
INTO ld_group.


SELECT single USERID
FROM APQI
INTO ld_user.


SELECT single QERASE
FROM APQI
INTO ld_keep.


SELECT single STARTDATE
FROM APQI
INTO ld_holddate.


SELECT single PUTACTIVE
FROM APQI
INTO ld_nodata.


ld_p_sec_001 = some text here

ld_p_bukrs_002 = some text here

ld_low_003 = some text here

ld_low_004 = some text here

ld_p_keyd_005 = some text here

ld_p_revr_006 = some text here

ld_p_test_007 = some text here

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