SAP Function Modules

RS_CUA_VERSION_EXPORT SAP Function module







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

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


Pattern for FM RS_CUA_VERSION_EXPORT - RS CUA VERSION EXPORT





CALL FUNCTION 'RS_CUA_VERSION_EXPORT' "
  EXPORTING
    objectname =                " trdir-name
*   state = 'A'                 " progdir-state
  IMPORTING
    vdatum =                    " sy-datum
    vzeit =                     " sy-uzeit
    vautor =                    " sy-uname
* TABLES
*   vact =                      " rseu1_act
*   vbut =                      " rseu1_but
*   vfun =                      " rseu1_fun
*   vinc =                      " rseu1_inc
*   vlst =                      " rseu1_lst
*   vmen =                      " rseu1_men
*   vmtx =                      " rseu1_txm
*   vpfk =                      " rseu1_pfk
*   vset =                      " rseu1_set
*   vsta =                      " rseu1_gen
*   vstx =                      " rseu1_ctx
*   vtit =                      " title
*   vdoc =                      " rseu1_etm
*   vatt =                      " rseu1_hat
*   vfdn =                      " rseu1_fdyn
*   vmdn =                      " rseu1_mdyn
*   vsym =                      " rseu1_symb
*   vfin =                      " rseu1_icon
*   vsta_40 =                   " rsmpe_sta
*   vact_40 =                   " rsmpe_act
*   vmen_40 =                   " rsmpe_men
*   vmtx_40 =                   " rsmpe_mnl
*   vfun_40 =                   " rsmpe_fun
*   vpfk_40 =                   " rsmpe_pfk
*   vbut_40 =                   " rsmpe_but
*   vdoc_40 =                   " rsmpe_atr
*   vset_40 =                   " rsmpe_staf
*   vtit_40 =                   " rsmpe_tit
*   vtexts_40 =                 " rsmptexts
*   vadm_40 =                   " rsmpe_adm
*   vctx_40 =                   " rsmpe_ctx     Menu Painter: Status code
*   vbiv_40 =                   " rsmpe_buts    Menu Painter: Fixed Functions on Application Toolbars
*   vsmodilog =                 " smodilog
*   vsmodisrc =                 " smodisrc
  EXCEPTIONS
    OBJECT_NOT_FOUND = 1        "
    .  "  RS_CUA_VERSION_EXPORT

ABAP code example for Function Module RS_CUA_VERSION_EXPORT





The ABAP code below is a full code listing to execute function module RS_CUA_VERSION_EXPORT 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_vdatum  TYPE SY-DATUM ,
ld_vzeit  TYPE SY-UZEIT ,
ld_vautor  TYPE SY-UNAME ,
it_vact  TYPE STANDARD TABLE OF RSEU1_ACT,"TABLES PARAM
wa_vact  LIKE LINE OF it_vact ,
it_vbut  TYPE STANDARD TABLE OF RSEU1_BUT,"TABLES PARAM
wa_vbut  LIKE LINE OF it_vbut ,
it_vfun  TYPE STANDARD TABLE OF RSEU1_FUN,"TABLES PARAM
wa_vfun  LIKE LINE OF it_vfun ,
it_vinc  TYPE STANDARD TABLE OF RSEU1_INC,"TABLES PARAM
wa_vinc  LIKE LINE OF it_vinc ,
it_vlst  TYPE STANDARD TABLE OF RSEU1_LST,"TABLES PARAM
wa_vlst  LIKE LINE OF it_vlst ,
it_vmen  TYPE STANDARD TABLE OF RSEU1_MEN,"TABLES PARAM
wa_vmen  LIKE LINE OF it_vmen ,
it_vmtx  TYPE STANDARD TABLE OF RSEU1_TXM,"TABLES PARAM
wa_vmtx  LIKE LINE OF it_vmtx ,
it_vpfk  TYPE STANDARD TABLE OF RSEU1_PFK,"TABLES PARAM
wa_vpfk  LIKE LINE OF it_vpfk ,
it_vset  TYPE STANDARD TABLE OF RSEU1_SET,"TABLES PARAM
wa_vset  LIKE LINE OF it_vset ,
it_vsta  TYPE STANDARD TABLE OF RSEU1_GEN,"TABLES PARAM
wa_vsta  LIKE LINE OF it_vsta ,
it_vstx  TYPE STANDARD TABLE OF RSEU1_CTX,"TABLES PARAM
wa_vstx  LIKE LINE OF it_vstx ,
it_vtit  TYPE STANDARD TABLE OF TITLE,"TABLES PARAM
wa_vtit  LIKE LINE OF it_vtit ,
it_vdoc  TYPE STANDARD TABLE OF RSEU1_ETM,"TABLES PARAM
wa_vdoc  LIKE LINE OF it_vdoc ,
it_vatt  TYPE STANDARD TABLE OF RSEU1_HAT,"TABLES PARAM
wa_vatt  LIKE LINE OF it_vatt ,
it_vfdn  TYPE STANDARD TABLE OF RSEU1_FDYN,"TABLES PARAM
wa_vfdn  LIKE LINE OF it_vfdn ,
it_vmdn  TYPE STANDARD TABLE OF RSEU1_MDYN,"TABLES PARAM
wa_vmdn  LIKE LINE OF it_vmdn ,
it_vsym  TYPE STANDARD TABLE OF RSEU1_SYMB,"TABLES PARAM
wa_vsym  LIKE LINE OF it_vsym ,
it_vfin  TYPE STANDARD TABLE OF RSEU1_ICON,"TABLES PARAM
wa_vfin  LIKE LINE OF it_vfin ,
it_vsta_40  TYPE STANDARD TABLE OF RSMPE_STA,"TABLES PARAM
wa_vsta_40  LIKE LINE OF it_vsta_40 ,
it_vact_40  TYPE STANDARD TABLE OF RSMPE_ACT,"TABLES PARAM
wa_vact_40  LIKE LINE OF it_vact_40 ,
it_vmen_40  TYPE STANDARD TABLE OF RSMPE_MEN,"TABLES PARAM
wa_vmen_40  LIKE LINE OF it_vmen_40 ,
it_vmtx_40  TYPE STANDARD TABLE OF RSMPE_MNL,"TABLES PARAM
wa_vmtx_40  LIKE LINE OF it_vmtx_40 ,
it_vfun_40  TYPE STANDARD TABLE OF RSMPE_FUN,"TABLES PARAM
wa_vfun_40  LIKE LINE OF it_vfun_40 ,
it_vpfk_40  TYPE STANDARD TABLE OF RSMPE_PFK,"TABLES PARAM
wa_vpfk_40  LIKE LINE OF it_vpfk_40 ,
it_vbut_40  TYPE STANDARD TABLE OF RSMPE_BUT,"TABLES PARAM
wa_vbut_40  LIKE LINE OF it_vbut_40 ,
it_vdoc_40  TYPE STANDARD TABLE OF RSMPE_ATR,"TABLES PARAM
wa_vdoc_40  LIKE LINE OF it_vdoc_40 ,
it_vset_40  TYPE STANDARD TABLE OF RSMPE_STAF,"TABLES PARAM
wa_vset_40  LIKE LINE OF it_vset_40 ,
it_vtit_40  TYPE STANDARD TABLE OF RSMPE_TIT,"TABLES PARAM
wa_vtit_40  LIKE LINE OF it_vtit_40 ,
it_vtexts_40  TYPE STANDARD TABLE OF RSMPTEXTS,"TABLES PARAM
wa_vtexts_40  LIKE LINE OF it_vtexts_40 ,
it_vadm_40  TYPE STANDARD TABLE OF RSMPE_ADM,"TABLES PARAM
wa_vadm_40  LIKE LINE OF it_vadm_40 ,
it_vctx_40  TYPE STANDARD TABLE OF RSMPE_CTX,"TABLES PARAM
wa_vctx_40  LIKE LINE OF it_vctx_40 ,
it_vbiv_40  TYPE STANDARD TABLE OF RSMPE_BUTS,"TABLES PARAM
wa_vbiv_40  LIKE LINE OF it_vbiv_40 ,
it_vsmodilog  TYPE STANDARD TABLE OF SMODILOG,"TABLES PARAM
wa_vsmodilog  LIKE LINE OF it_vsmodilog ,
it_vsmodisrc  TYPE STANDARD TABLE OF SMODISRC,"TABLES PARAM
wa_vsmodisrc  LIKE LINE OF it_vsmodisrc .


SELECT single NAME
FROM TRDIR
INTO @DATA(ld_objectname).


SELECT single STATE
FROM PROGDIR
INTO @DATA(ld_state).


"populate fields of struture and append to itab
append wa_vact to it_vact.

"populate fields of struture and append to itab
append wa_vbut to it_vbut.

"populate fields of struture and append to itab
append wa_vfun to it_vfun.

"populate fields of struture and append to itab
append wa_vinc to it_vinc.

"populate fields of struture and append to itab
append wa_vlst to it_vlst.

"populate fields of struture and append to itab
append wa_vmen to it_vmen.

"populate fields of struture and append to itab
append wa_vmtx to it_vmtx.

"populate fields of struture and append to itab
append wa_vpfk to it_vpfk.

"populate fields of struture and append to itab
append wa_vset to it_vset.

"populate fields of struture and append to itab
append wa_vsta to it_vsta.

"populate fields of struture and append to itab
append wa_vstx to it_vstx.

"populate fields of struture and append to itab
append wa_vtit to it_vtit.

"populate fields of struture and append to itab
append wa_vdoc to it_vdoc.

"populate fields of struture and append to itab
append wa_vatt to it_vatt.

"populate fields of struture and append to itab
append wa_vfdn to it_vfdn.

"populate fields of struture and append to itab
append wa_vmdn to it_vmdn.

"populate fields of struture and append to itab
append wa_vsym to it_vsym.

"populate fields of struture and append to itab
append wa_vfin to it_vfin.

"populate fields of struture and append to itab
append wa_vsta_40 to it_vsta_40.

"populate fields of struture and append to itab
append wa_vact_40 to it_vact_40.

"populate fields of struture and append to itab
append wa_vmen_40 to it_vmen_40.

"populate fields of struture and append to itab
append wa_vmtx_40 to it_vmtx_40.

"populate fields of struture and append to itab
append wa_vfun_40 to it_vfun_40.

"populate fields of struture and append to itab
append wa_vpfk_40 to it_vpfk_40.

"populate fields of struture and append to itab
append wa_vbut_40 to it_vbut_40.

"populate fields of struture and append to itab
append wa_vdoc_40 to it_vdoc_40.

"populate fields of struture and append to itab
append wa_vset_40 to it_vset_40.

"populate fields of struture and append to itab
append wa_vtit_40 to it_vtit_40.

"populate fields of struture and append to itab
append wa_vtexts_40 to it_vtexts_40.

"populate fields of struture and append to itab
append wa_vadm_40 to it_vadm_40.

"populate fields of struture and append to itab
append wa_vctx_40 to it_vctx_40.

"populate fields of struture and append to itab
append wa_vbiv_40 to it_vbiv_40.

"populate fields of struture and append to itab
append wa_vsmodilog to it_vsmodilog.

"populate fields of struture and append to itab
append wa_vsmodisrc to it_vsmodisrc. . CALL FUNCTION 'RS_CUA_VERSION_EXPORT' EXPORTING objectname = ld_objectname * state = ld_state IMPORTING vdatum = ld_vdatum vzeit = ld_vzeit vautor = ld_vautor * TABLES * vact = it_vact * vbut = it_vbut * vfun = it_vfun * vinc = it_vinc * vlst = it_vlst * vmen = it_vmen * vmtx = it_vmtx * vpfk = it_vpfk * vset = it_vset * vsta = it_vsta * vstx = it_vstx * vtit = it_vtit * vdoc = it_vdoc * vatt = it_vatt * vfdn = it_vfdn * vmdn = it_vmdn * vsym = it_vsym * vfin = it_vfin * vsta_40 = it_vsta_40 * vact_40 = it_vact_40 * vmen_40 = it_vmen_40 * vmtx_40 = it_vmtx_40 * vfun_40 = it_vfun_40 * vpfk_40 = it_vpfk_40 * vbut_40 = it_vbut_40 * vdoc_40 = it_vdoc_40 * vset_40 = it_vset_40 * vtit_40 = it_vtit_40 * vtexts_40 = it_vtexts_40 * vadm_40 = it_vadm_40 * vctx_40 = it_vctx_40 * vbiv_40 = it_vbiv_40 * vsmodilog = it_vsmodilog * vsmodisrc = it_vsmodisrc EXCEPTIONS OBJECT_NOT_FOUND = 1 . " RS_CUA_VERSION_EXPORT
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_vdatum  TYPE SY-DATUM ,
ld_objectname  TYPE TRDIR-NAME ,
it_vact  TYPE STANDARD TABLE OF RSEU1_ACT ,
wa_vact  LIKE LINE OF it_vact,
ld_vzeit  TYPE SY-UZEIT ,
ld_state  TYPE PROGDIR-STATE ,
it_vbut  TYPE STANDARD TABLE OF RSEU1_BUT ,
wa_vbut  LIKE LINE OF it_vbut,
ld_vautor  TYPE SY-UNAME ,
it_vfun  TYPE STANDARD TABLE OF RSEU1_FUN ,
wa_vfun  LIKE LINE OF it_vfun,
it_vinc  TYPE STANDARD TABLE OF RSEU1_INC ,
wa_vinc  LIKE LINE OF it_vinc,
it_vlst  TYPE STANDARD TABLE OF RSEU1_LST ,
wa_vlst  LIKE LINE OF it_vlst,
it_vmen  TYPE STANDARD TABLE OF RSEU1_MEN ,
wa_vmen  LIKE LINE OF it_vmen,
it_vmtx  TYPE STANDARD TABLE OF RSEU1_TXM ,
wa_vmtx  LIKE LINE OF it_vmtx,
it_vpfk  TYPE STANDARD TABLE OF RSEU1_PFK ,
wa_vpfk  LIKE LINE OF it_vpfk,
it_vset  TYPE STANDARD TABLE OF RSEU1_SET ,
wa_vset  LIKE LINE OF it_vset,
it_vsta  TYPE STANDARD TABLE OF RSEU1_GEN ,
wa_vsta  LIKE LINE OF it_vsta,
it_vstx  TYPE STANDARD TABLE OF RSEU1_CTX ,
wa_vstx  LIKE LINE OF it_vstx,
it_vtit  TYPE STANDARD TABLE OF TITLE ,
wa_vtit  LIKE LINE OF it_vtit,
it_vdoc  TYPE STANDARD TABLE OF RSEU1_ETM ,
wa_vdoc  LIKE LINE OF it_vdoc,
it_vatt  TYPE STANDARD TABLE OF RSEU1_HAT ,
wa_vatt  LIKE LINE OF it_vatt,
it_vfdn  TYPE STANDARD TABLE OF RSEU1_FDYN ,
wa_vfdn  LIKE LINE OF it_vfdn,
it_vmdn  TYPE STANDARD TABLE OF RSEU1_MDYN ,
wa_vmdn  LIKE LINE OF it_vmdn,
it_vsym  TYPE STANDARD TABLE OF RSEU1_SYMB ,
wa_vsym  LIKE LINE OF it_vsym,
it_vfin  TYPE STANDARD TABLE OF RSEU1_ICON ,
wa_vfin  LIKE LINE OF it_vfin,
it_vsta_40  TYPE STANDARD TABLE OF RSMPE_STA ,
wa_vsta_40  LIKE LINE OF it_vsta_40,
it_vact_40  TYPE STANDARD TABLE OF RSMPE_ACT ,
wa_vact_40  LIKE LINE OF it_vact_40,
it_vmen_40  TYPE STANDARD TABLE OF RSMPE_MEN ,
wa_vmen_40  LIKE LINE OF it_vmen_40,
it_vmtx_40  TYPE STANDARD TABLE OF RSMPE_MNL ,
wa_vmtx_40  LIKE LINE OF it_vmtx_40,
it_vfun_40  TYPE STANDARD TABLE OF RSMPE_FUN ,
wa_vfun_40  LIKE LINE OF it_vfun_40,
it_vpfk_40  TYPE STANDARD TABLE OF RSMPE_PFK ,
wa_vpfk_40  LIKE LINE OF it_vpfk_40,
it_vbut_40  TYPE STANDARD TABLE OF RSMPE_BUT ,
wa_vbut_40  LIKE LINE OF it_vbut_40,
it_vdoc_40  TYPE STANDARD TABLE OF RSMPE_ATR ,
wa_vdoc_40  LIKE LINE OF it_vdoc_40,
it_vset_40  TYPE STANDARD TABLE OF RSMPE_STAF ,
wa_vset_40  LIKE LINE OF it_vset_40,
it_vtit_40  TYPE STANDARD TABLE OF RSMPE_TIT ,
wa_vtit_40  LIKE LINE OF it_vtit_40,
it_vtexts_40  TYPE STANDARD TABLE OF RSMPTEXTS ,
wa_vtexts_40  LIKE LINE OF it_vtexts_40,
it_vadm_40  TYPE STANDARD TABLE OF RSMPE_ADM ,
wa_vadm_40  LIKE LINE OF it_vadm_40,
it_vctx_40  TYPE STANDARD TABLE OF RSMPE_CTX ,
wa_vctx_40  LIKE LINE OF it_vctx_40,
it_vbiv_40  TYPE STANDARD TABLE OF RSMPE_BUTS ,
wa_vbiv_40  LIKE LINE OF it_vbiv_40,
it_vsmodilog  TYPE STANDARD TABLE OF SMODILOG ,
wa_vsmodilog  LIKE LINE OF it_vsmodilog,
it_vsmodisrc  TYPE STANDARD TABLE OF SMODISRC ,
wa_vsmodisrc  LIKE LINE OF it_vsmodisrc.


SELECT single NAME
FROM TRDIR
INTO ld_objectname.


"populate fields of struture and append to itab
append wa_vact to it_vact.

SELECT single STATE
FROM PROGDIR
INTO ld_state.


"populate fields of struture and append to itab
append wa_vbut to it_vbut.

"populate fields of struture and append to itab
append wa_vfun to it_vfun.

"populate fields of struture and append to itab
append wa_vinc to it_vinc.

"populate fields of struture and append to itab
append wa_vlst to it_vlst.

"populate fields of struture and append to itab
append wa_vmen to it_vmen.

"populate fields of struture and append to itab
append wa_vmtx to it_vmtx.

"populate fields of struture and append to itab
append wa_vpfk to it_vpfk.

"populate fields of struture and append to itab
append wa_vset to it_vset.

"populate fields of struture and append to itab
append wa_vsta to it_vsta.

"populate fields of struture and append to itab
append wa_vstx to it_vstx.

"populate fields of struture and append to itab
append wa_vtit to it_vtit.

"populate fields of struture and append to itab
append wa_vdoc to it_vdoc.

"populate fields of struture and append to itab
append wa_vatt to it_vatt.

"populate fields of struture and append to itab
append wa_vfdn to it_vfdn.

"populate fields of struture and append to itab
append wa_vmdn to it_vmdn.

"populate fields of struture and append to itab
append wa_vsym to it_vsym.

"populate fields of struture and append to itab
append wa_vfin to it_vfin.

"populate fields of struture and append to itab
append wa_vsta_40 to it_vsta_40.

"populate fields of struture and append to itab
append wa_vact_40 to it_vact_40.

"populate fields of struture and append to itab
append wa_vmen_40 to it_vmen_40.

"populate fields of struture and append to itab
append wa_vmtx_40 to it_vmtx_40.

"populate fields of struture and append to itab
append wa_vfun_40 to it_vfun_40.

"populate fields of struture and append to itab
append wa_vpfk_40 to it_vpfk_40.

"populate fields of struture and append to itab
append wa_vbut_40 to it_vbut_40.

"populate fields of struture and append to itab
append wa_vdoc_40 to it_vdoc_40.

"populate fields of struture and append to itab
append wa_vset_40 to it_vset_40.

"populate fields of struture and append to itab
append wa_vtit_40 to it_vtit_40.

"populate fields of struture and append to itab
append wa_vtexts_40 to it_vtexts_40.

"populate fields of struture and append to itab
append wa_vadm_40 to it_vadm_40.

"populate fields of struture and append to itab
append wa_vctx_40 to it_vctx_40.

"populate fields of struture and append to itab
append wa_vbiv_40 to it_vbiv_40.

"populate fields of struture and append to itab
append wa_vsmodilog to it_vsmodilog.

"populate fields of struture and append to itab
append wa_vsmodisrc to it_vsmodisrc.

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