SAP Function Modules

SUSR_ZBV_LANDSCAPE_SAVE SAP Function module







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

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


Pattern for FM SUSR_ZBV_LANDSCAPE_SAVE - SUSR ZBV LANDSCAPE SAVE





CALL FUNCTION 'SUSR_ZBV_LANDSCAPE_SAVE' "
  EXPORTING
    bapilink =                  " usbapilink-bapilink
    alemodel =                  " usbapilink-alemodel
    sendsystem =                " uszbvlndsc-sendsystem
*   delivery_model = 'USER'     " urbapilink-purpose  Distribution model definition
  IMPORTING
    idoctype =                  " edidocs-idoctyp
  TABLES
    it_uszbvlndrc =             " uszbvlndrc
*   it_usrfldsel =              " usrfldsel
  EXCEPTIONS
    NO_AUTHORIZATION = 1        "
    .  "  SUSR_ZBV_LANDSCAPE_SAVE

ABAP code example for Function Module SUSR_ZBV_LANDSCAPE_SAVE





The ABAP code below is a full code listing to execute function module SUSR_ZBV_LANDSCAPE_SAVE 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_idoctype  TYPE EDIDOCS-IDOCTYP ,
it_it_uszbvlndrc  TYPE STANDARD TABLE OF USZBVLNDRC,"TABLES PARAM
wa_it_uszbvlndrc  LIKE LINE OF it_it_uszbvlndrc ,
it_it_usrfldsel  TYPE STANDARD TABLE OF USRFLDSEL,"TABLES PARAM
wa_it_usrfldsel  LIKE LINE OF it_it_usrfldsel .


SELECT single BAPILINK
FROM USBAPILINK
INTO @DATA(ld_bapilink).


SELECT single ALEMODEL
FROM USBAPILINK
INTO @DATA(ld_alemodel).


SELECT single SENDSYSTEM
FROM USZBVLNDSC
INTO @DATA(ld_sendsystem).


SELECT single PURPOSE
FROM URBAPILINK
INTO @DATA(ld_delivery_model).


"populate fields of struture and append to itab
append wa_it_uszbvlndrc to it_it_uszbvlndrc.

"populate fields of struture and append to itab
append wa_it_usrfldsel to it_it_usrfldsel. . CALL FUNCTION 'SUSR_ZBV_LANDSCAPE_SAVE' EXPORTING bapilink = ld_bapilink alemodel = ld_alemodel sendsystem = ld_sendsystem * delivery_model = ld_delivery_model IMPORTING idoctype = ld_idoctype TABLES it_uszbvlndrc = it_it_uszbvlndrc * it_usrfldsel = it_it_usrfldsel EXCEPTIONS NO_AUTHORIZATION = 1 . " SUSR_ZBV_LANDSCAPE_SAVE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_idoctype  TYPE EDIDOCS-IDOCTYP ,
ld_bapilink  TYPE USBAPILINK-BAPILINK ,
it_it_uszbvlndrc  TYPE STANDARD TABLE OF USZBVLNDRC ,
wa_it_uszbvlndrc  LIKE LINE OF it_it_uszbvlndrc,
ld_alemodel  TYPE USBAPILINK-ALEMODEL ,
it_it_usrfldsel  TYPE STANDARD TABLE OF USRFLDSEL ,
wa_it_usrfldsel  LIKE LINE OF it_it_usrfldsel,
ld_sendsystem  TYPE USZBVLNDSC-SENDSYSTEM ,
ld_delivery_model  TYPE URBAPILINK-PURPOSE .


SELECT single BAPILINK
FROM USBAPILINK
INTO ld_bapilink.


"populate fields of struture and append to itab
append wa_it_uszbvlndrc to it_it_uszbvlndrc.

SELECT single ALEMODEL
FROM USBAPILINK
INTO ld_alemodel.


"populate fields of struture and append to itab
append wa_it_usrfldsel to it_it_usrfldsel.

SELECT single SENDSYSTEM
FROM USZBVLNDSC
INTO ld_sendsystem.


SELECT single PURPOSE
FROM URBAPILINK
INTO ld_delivery_model.

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