SAP PVSDBACT_PAMOD_READ_BY_CRIT Function Module for NOTRANSL: Modus nach Kriterien lesen
PVSDBACT_PAMOD_READ_BY_CRIT is a standard pvsdbact pamod read by crit SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Modus nach Kriterien lesen processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for pvsdbact pamod read by crit FM, simply by entering the name PVSDBACT_PAMOD_READ_BY_CRIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: PVSDBACT
Program Name: SAPLPVSDBACT
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PVSDBACT_PAMOD_READ_BY_CRIT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'PVSDBACT_PAMOD_READ_BY_CRIT'"NOTRANSL: Modus nach Kriterien lesen.
EXPORTING
* IV_MSG_OPT = 'A' "Message Handling in iPPE
* IT_AENNR_SEL = "Selection Table for Change Numbers
* IT_PRIM_RES_SEL = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IT_SEC_RES_SEL = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IT_MOD_LOCATION_SEL = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IT_CREADAT_SEL = "Selection Table for Creation Date
* IT_CREABY_SEL = "Selection Table: Created by
* IT_CHNGDAT_SEL = "Selection Table for Change Date
* IT_CHNGBY_SEL = "Selection Table: Changed by
* IV_COUNT_FLG = PPET_FALSE "Generic Type
* IV_PALTID_FLG = PPET_FALSE "Generic Type
* IV_AENNR_FLG = PPET_FALSE "Generic Type
* IV_PAMODD_FLG = PPET_FALSE "Generic Type
* IV_PAMODC_FLG = PPET_FALSE "Generic Type
* IV_PRIMRES_FLG = PPET_FALSE "Generic Type
* IV_SECRES_FLG = PPET_FALSE "Generic Type
* IT_MOD_SEL = "DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING
ET_PALTID = "DE-EN-LANG-SWITCH-NO-TRANSLATION
ET_AENNR = "Engineering Change Statuses
ET_PAMODD = "DE-EN-LANG-SWITCH-NO-TRANSLATION
ET_PAMODC = "DE-EN-LANG-SWITCH-NO-TRANSLATION
ET_PRIMRES = "Primary Resources
ET_SECRES = "Secondary Resources
EV_COUNT = "Predefined Type
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for PVSDBACT_PAMOD_READ_BY_CRIT
IV_MSG_OPT - Message Handling in iPPE
Data type: PPET_MSG_OPTDefault: 'A'
Optional: Yes
Call by Reference: Yes
IT_AENNR_SEL - Selection Table for Change Numbers
Data type: PPENV_AENNR_SEL_TABOptional: Yes
Call by Reference: Yes
IT_PRIM_RES_SEL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: PPET2_PRIMRES_SEL_TABOptional: Yes
Call by Reference: Yes
IT_SEC_RES_SEL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: PPET2_SECRES_SEL_TABOptional: Yes
Call by Reference: Yes
IT_MOD_LOCATION_SEL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: PPENV_LOCID_SEL_TABOptional: Yes
Call by Reference: Yes
IT_CREADAT_SEL - Selection Table for Creation Date
Data type: PPET_CREADAT_SEL_TABOptional: Yes
Call by Reference: Yes
IT_CREABY_SEL - Selection Table: Created by
Data type: PPET_CREABY_SEL_TABOptional: Yes
Call by Reference: Yes
IT_CHNGDAT_SEL - Selection Table for Change Date
Data type: PPET_CHNGDAT_SEL_TABOptional: Yes
Call by Reference: Yes
IT_CHNGBY_SEL - Selection Table: Changed by
Data type: PPET_CHNGBY_SEL_TABOptional: Yes
Call by Reference: Yes
IV_COUNT_FLG - Generic Type
Data type: CDefault: PPET_FALSE
Optional: Yes
Call by Reference: Yes
IV_PALTID_FLG - Generic Type
Data type: CDefault: PPET_FALSE
Optional: Yes
Call by Reference: Yes
IV_AENNR_FLG - Generic Type
Data type: CDefault: PPET_FALSE
Optional: Yes
Call by Reference: Yes
IV_PAMODD_FLG - Generic Type
Data type: CDefault: PPET_FALSE
Optional: Yes
Call by Reference: Yes
IV_PAMODC_FLG - Generic Type
Data type: CDefault: PPET_FALSE
Optional: Yes
Call by Reference: Yes
IV_PRIMRES_FLG - Generic Type
Data type: CDefault: PPET_FALSE
Optional: Yes
Call by Reference: Yes
IV_SECRES_FLG - Generic Type
Data type: CDefault: PPET_FALSE
Optional: Yes
Call by Reference: Yes
IT_MOD_SEL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: PPET_ALTNUM_SEL_TABOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for PVSDBACT_PAMOD_READ_BY_CRIT
ET_PALTID - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: PPET_PALTID_LI_TABOptional: No
Call by Reference: Yes
ET_AENNR - Engineering Change Statuses
Data type: PPET_AENNR_TABOptional: No
Call by Reference: Yes
ET_PAMODD - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: PPET2_PAMODD_LI_TABOptional: No
Call by Reference: Yes
ET_PAMODC - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: PPET2_PAMODC_LI_TABOptional: No
Call by Reference: Yes
ET_PRIMRES - Primary Resources
Data type: PPET_PNODID_LI_TABOptional: No
Call by Reference: Yes
ET_SECRES - Secondary Resources
Data type: PPET_PNODID_LI_TABOptional: No
Call by Reference: Yes
EV_COUNT - Predefined Type
Data type: IOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR - General Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PVSDBACT_PAMOD_READ_BY_CRIT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_error | TYPE STRING, " | |||
| lv_et_paltid | TYPE PPET_PALTID_LI_TAB, " | |||
| lv_iv_msg_opt | TYPE PPET_MSG_OPT, " 'A' | |||
| lv_it_aennr_sel | TYPE PPENV_AENNR_SEL_TAB, " | |||
| lv_it_prim_res_sel | TYPE PPET2_PRIMRES_SEL_TAB, " | |||
| lv_it_sec_res_sel | TYPE PPET2_SECRES_SEL_TAB, " | |||
| lv_it_mod_location_sel | TYPE PPENV_LOCID_SEL_TAB, " | |||
| lv_it_creadat_sel | TYPE PPET_CREADAT_SEL_TAB, " | |||
| lv_it_creaby_sel | TYPE PPET_CREABY_SEL_TAB, " | |||
| lv_it_chngdat_sel | TYPE PPET_CHNGDAT_SEL_TAB, " | |||
| lv_it_chngby_sel | TYPE PPET_CHNGBY_SEL_TAB, " | |||
| lv_et_aennr | TYPE PPET_AENNR_TAB, " | |||
| lv_iv_count_flg | TYPE C, " PPET_FALSE | |||
| lv_et_pamodd | TYPE PPET2_PAMODD_LI_TAB, " | |||
| lv_iv_paltid_flg | TYPE C, " PPET_FALSE | |||
| lv_et_pamodc | TYPE PPET2_PAMODC_LI_TAB, " | |||
| lv_iv_aennr_flg | TYPE C, " PPET_FALSE | |||
| lv_et_primres | TYPE PPET_PNODID_LI_TAB, " | |||
| lv_iv_pamodd_flg | TYPE C, " PPET_FALSE | |||
| lv_et_secres | TYPE PPET_PNODID_LI_TAB, " | |||
| lv_iv_pamodc_flg | TYPE C, " PPET_FALSE | |||
| lv_ev_count | TYPE I, " | |||
| lv_iv_primres_flg | TYPE C, " PPET_FALSE | |||
| lv_iv_secres_flg | TYPE C, " PPET_FALSE | |||
| lv_it_mod_sel | TYPE PPET_ALTNUM_SEL_TAB. " |
|   CALL FUNCTION 'PVSDBACT_PAMOD_READ_BY_CRIT' "NOTRANSL: Modus nach Kriterien lesen |
| EXPORTING | ||
| IV_MSG_OPT | = lv_iv_msg_opt | |
| IT_AENNR_SEL | = lv_it_aennr_sel | |
| IT_PRIM_RES_SEL | = lv_it_prim_res_sel | |
| IT_SEC_RES_SEL | = lv_it_sec_res_sel | |
| IT_MOD_LOCATION_SEL | = lv_it_mod_location_sel | |
| IT_CREADAT_SEL | = lv_it_creadat_sel | |
| IT_CREABY_SEL | = lv_it_creaby_sel | |
| IT_CHNGDAT_SEL | = lv_it_chngdat_sel | |
| IT_CHNGBY_SEL | = lv_it_chngby_sel | |
| IV_COUNT_FLG | = lv_iv_count_flg | |
| IV_PALTID_FLG | = lv_iv_paltid_flg | |
| IV_AENNR_FLG | = lv_iv_aennr_flg | |
| IV_PAMODD_FLG | = lv_iv_pamodd_flg | |
| IV_PAMODC_FLG | = lv_iv_pamodc_flg | |
| IV_PRIMRES_FLG | = lv_iv_primres_flg | |
| IV_SECRES_FLG | = lv_iv_secres_flg | |
| IT_MOD_SEL | = lv_it_mod_sel | |
| IMPORTING | ||
| ET_PALTID | = lv_et_paltid | |
| ET_AENNR | = lv_et_aennr | |
| ET_PAMODD | = lv_et_pamodd | |
| ET_PAMODC | = lv_et_pamodc | |
| ET_PRIMRES | = lv_et_primres | |
| ET_SECRES | = lv_et_secres | |
| EV_COUNT | = lv_ev_count | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " PVSDBACT_PAMOD_READ_BY_CRIT | ||
ABAP code using 7.40 inline data declarations to call FM PVSDBACT_PAMOD_READ_BY_CRIT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_iv_msg_opt) | = 'A'. | |||
| DATA(ld_iv_count_flg) | = PPET_FALSE. | |||
| DATA(ld_iv_paltid_flg) | = PPET_FALSE. | |||
| DATA(ld_iv_aennr_flg) | = PPET_FALSE. | |||
| DATA(ld_iv_pamodd_flg) | = PPET_FALSE. | |||
| DATA(ld_iv_pamodc_flg) | = PPET_FALSE. | |||
| DATA(ld_iv_primres_flg) | = PPET_FALSE. | |||
| DATA(ld_iv_secres_flg) | = PPET_FALSE. | |||
Search for further information about these or an SAP related objects