SAP Function Modules

PVSDBENG_SHORTTEXT_READ SAP Function module







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

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


Pattern for FM PVSDBENG_SHORTTEXT_READ - PVSDBENG SHORTTEXT READ





CALL FUNCTION 'PVSDBENG_SHORTTEXT_READ' "
  EXPORTING
*   im_pnodid_tab =             " ppet_pnodid_li_tab
*   im_posvid_tab =             " ppet_posvid_li_tab
*   im_paltid_tab =             " ppet_paltid_li_tab
    im_langu_tab =              " ppet_langu_tab
*   im_pnguid_flg = PPET_TRUE   " c
*   im_pvguid_flg = PPET_TRUE   " c
*   im_paguid_flg = PPET_TRUE   " c
*   im_pnodid_skip_flg =        " c
*   im_posvid_skip_flg =        " c
*   im_paltid_skip_flg =        " c
  IMPORTING
    ex_pnodid_tab =             " ppet_pnodid_li_tab
    ex_posvid_tab =             " ppet_posvid_li_tab
    ex_paltid_tab =             " ppet_paltid_li_tab
    ex_pnodtx_tab =             " ppet_pnodtx_tab
    ex_posvtx_tab =             " ppet_posvtx_tab
    ex_palttx_tab =             " ppet_palttx_tab
  EXCEPTIONS
    NOTHING_TO_READ = 1         "
    NO_LANGUAGE = 2             "
    .  "  PVSDBENG_SHORTTEXT_READ

ABAP code example for Function Module PVSDBENG_SHORTTEXT_READ





The ABAP code below is a full code listing to execute function module PVSDBENG_SHORTTEXT_READ 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_pnodid_tab  TYPE PPET_PNODID_LI_TAB ,
ld_ex_posvid_tab  TYPE PPET_POSVID_LI_TAB ,
ld_ex_paltid_tab  TYPE PPET_PALTID_LI_TAB ,
ld_ex_pnodtx_tab  TYPE PPET_PNODTX_TAB ,
ld_ex_posvtx_tab  TYPE PPET_POSVTX_TAB ,
ld_ex_palttx_tab  TYPE PPET_PALTTX_TAB .

DATA(ld_im_pnodid_tab) = 'Check type of data required'.
DATA(ld_im_posvid_tab) = 'Check type of data required'.
DATA(ld_im_paltid_tab) = 'Check type of data required'.
DATA(ld_im_langu_tab) = 'Check type of data required'.
DATA(ld_im_pnguid_flg) = 'Check type of data required'.
DATA(ld_im_pvguid_flg) = 'Check type of data required'.
DATA(ld_im_paguid_flg) = 'Check type of data required'.
DATA(ld_im_pnodid_skip_flg) = 'Check type of data required'.
DATA(ld_im_posvid_skip_flg) = 'Check type of data required'.
DATA(ld_im_paltid_skip_flg) = 'Check type of data required'. . CALL FUNCTION 'PVSDBENG_SHORTTEXT_READ' EXPORTING * im_pnodid_tab = ld_im_pnodid_tab * im_posvid_tab = ld_im_posvid_tab * im_paltid_tab = ld_im_paltid_tab im_langu_tab = ld_im_langu_tab * im_pnguid_flg = ld_im_pnguid_flg * im_pvguid_flg = ld_im_pvguid_flg * im_paguid_flg = ld_im_paguid_flg * im_pnodid_skip_flg = ld_im_pnodid_skip_flg * im_posvid_skip_flg = ld_im_posvid_skip_flg * im_paltid_skip_flg = ld_im_paltid_skip_flg IMPORTING ex_pnodid_tab = ld_ex_pnodid_tab ex_posvid_tab = ld_ex_posvid_tab ex_paltid_tab = ld_ex_paltid_tab ex_pnodtx_tab = ld_ex_pnodtx_tab ex_posvtx_tab = ld_ex_posvtx_tab ex_palttx_tab = ld_ex_palttx_tab EXCEPTIONS NOTHING_TO_READ = 1 NO_LANGUAGE = 2 . " PVSDBENG_SHORTTEXT_READ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_ex_pnodid_tab  TYPE PPET_PNODID_LI_TAB ,
ld_im_pnodid_tab  TYPE PPET_PNODID_LI_TAB ,
ld_ex_posvid_tab  TYPE PPET_POSVID_LI_TAB ,
ld_im_posvid_tab  TYPE PPET_POSVID_LI_TAB ,
ld_ex_paltid_tab  TYPE PPET_PALTID_LI_TAB ,
ld_im_paltid_tab  TYPE PPET_PALTID_LI_TAB ,
ld_ex_pnodtx_tab  TYPE PPET_PNODTX_TAB ,
ld_im_langu_tab  TYPE PPET_LANGU_TAB ,
ld_ex_posvtx_tab  TYPE PPET_POSVTX_TAB ,
ld_im_pnguid_flg  TYPE C ,
ld_ex_palttx_tab  TYPE PPET_PALTTX_TAB ,
ld_im_pvguid_flg  TYPE C ,
ld_im_paguid_flg  TYPE C ,
ld_im_pnodid_skip_flg  TYPE C ,
ld_im_posvid_skip_flg  TYPE C ,
ld_im_paltid_skip_flg  TYPE C .

ld_im_pnodid_tab = 'Check type of data required'.
ld_im_posvid_tab = 'Check type of data required'.
ld_im_paltid_tab = 'Check type of data required'.
ld_im_langu_tab = 'Check type of data required'.
ld_im_pnguid_flg = 'Check type of data required'.
ld_im_pvguid_flg = 'Check type of data required'.
ld_im_paguid_flg = 'Check type of data required'.
ld_im_pnodid_skip_flg = 'Check type of data required'.
ld_im_posvid_skip_flg = 'Check type of data required'.
ld_im_paltid_skip_flg = '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 PVSDBENG_SHORTTEXT_READ or its description.