SAP Function Modules

PVSDBCMP_ASSY_READ_FOR_CHECK SAP Function module







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

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


Pattern for FM PVSDBCMP_ASSY_READ_FOR_CHECK - PVSDBCMP ASSY READ FOR CHECK





CALL FUNCTION 'PVSDBCMP_ASSY_READ_FOR_CHECK' "
* EXPORTING
*   im_pnguid =                 " pnodid-pnguid
*   im_pvguid =                 " posvid-pvguid
*   im_paguid =                 " paltid-paguid
*   im_position_flg =           " c
  IMPORTING
    ex_posvid_tab =             " ppet_posvid_tab
    ex_pvcmpd_tab =             " ppet1_pvcmpd_tab
    ex_pvcmpp_tab =             " ppet1_pvcmpp_tab
    ex_pvcmph_tab =             " ppet1_pvcmph_tab
    ex_pvcmp_tab =              " ppet1_pvcmp_tab
    ex_paltid_tab =             " ppet_paltid_tab
    ex_prpvr_tab =              " ppet1_prpvr_tab
  EXCEPTIONS
    NO_VBK_ENTRY_NODE = 1       "
    NO_VBK_ENTRY_VARIANT = 2    "
    NO_VBK_ENTRY_ALTERNATIVE = 3  "
    .  "  PVSDBCMP_ASSY_READ_FOR_CHECK

ABAP code example for Function Module PVSDBCMP_ASSY_READ_FOR_CHECK





The ABAP code below is a full code listing to execute function module PVSDBCMP_ASSY_READ_FOR_CHECK 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_posvid_tab  TYPE PPET_POSVID_TAB ,
ld_ex_pvcmpd_tab  TYPE PPET1_PVCMPD_TAB ,
ld_ex_pvcmpp_tab  TYPE PPET1_PVCMPP_TAB ,
ld_ex_pvcmph_tab  TYPE PPET1_PVCMPH_TAB ,
ld_ex_pvcmp_tab  TYPE PPET1_PVCMP_TAB ,
ld_ex_paltid_tab  TYPE PPET_PALTID_TAB ,
ld_ex_prpvr_tab  TYPE PPET1_PRPVR_TAB .


SELECT single PNGUID
FROM PNODID
INTO @DATA(ld_im_pnguid).


SELECT single PVGUID
FROM POSVID
INTO @DATA(ld_im_pvguid).


SELECT single PAGUID
FROM PALTID
INTO @DATA(ld_im_paguid).

DATA(ld_im_position_flg) = 'Check type of data required'. . CALL FUNCTION 'PVSDBCMP_ASSY_READ_FOR_CHECK' * EXPORTING * im_pnguid = ld_im_pnguid * im_pvguid = ld_im_pvguid * im_paguid = ld_im_paguid * im_position_flg = ld_im_position_flg IMPORTING ex_posvid_tab = ld_ex_posvid_tab ex_pvcmpd_tab = ld_ex_pvcmpd_tab ex_pvcmpp_tab = ld_ex_pvcmpp_tab ex_pvcmph_tab = ld_ex_pvcmph_tab ex_pvcmp_tab = ld_ex_pvcmp_tab ex_paltid_tab = ld_ex_paltid_tab ex_prpvr_tab = ld_ex_prpvr_tab EXCEPTIONS NO_VBK_ENTRY_NODE = 1 NO_VBK_ENTRY_VARIANT = 2 NO_VBK_ENTRY_ALTERNATIVE = 3 . " PVSDBCMP_ASSY_READ_FOR_CHECK
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 ELSEIF SY-SUBRC EQ 3. "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_posvid_tab  TYPE PPET_POSVID_TAB ,
ld_im_pnguid  TYPE PNODID-PNGUID ,
ld_ex_pvcmpd_tab  TYPE PPET1_PVCMPD_TAB ,
ld_im_pvguid  TYPE POSVID-PVGUID ,
ld_ex_pvcmpp_tab  TYPE PPET1_PVCMPP_TAB ,
ld_im_paguid  TYPE PALTID-PAGUID ,
ld_ex_pvcmph_tab  TYPE PPET1_PVCMPH_TAB ,
ld_im_position_flg  TYPE C ,
ld_ex_pvcmp_tab  TYPE PPET1_PVCMP_TAB ,
ld_ex_paltid_tab  TYPE PPET_PALTID_TAB ,
ld_ex_prpvr_tab  TYPE PPET1_PRPVR_TAB .


SELECT single PNGUID
FROM PNODID
INTO ld_im_pnguid.


SELECT single PVGUID
FROM POSVID
INTO ld_im_pvguid.


SELECT single PAGUID
FROM PALTID
INTO ld_im_paguid.

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