SAP Reports / Programs | Quality Management | Quality Inspection(QM-IM) SAP QM

QPAPPLANREADWITHEFFECTIVITYF1 SAP ABAP INCLUDE - Form for plan reading in QPAP_PLAN_READ







QPAPPLANREADWITHEFFECTIVITYF1 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter QPAPPLANREADWITHEFFECTIVITYF1 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT QPAPPLANREADWITHEFFECTIVITYF1. "Basic submit
SUBMIT QPAPPLANREADWITHEFFECTIVITYF1 AND RETURN. "Return to original report after report execution complete
SUBMIT QPAPPLANREADWITHEFFECTIVITYF1 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Form for plan reading in QPAP_PLAN_READ


INCLUDES used within this REPORT QPAPPLANREADWITHEFFECTIVITYF1

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

QAST_PROCESS_ACTIVITY CALL FUNCTION 'QAST_PROCESS_ACTIVITY' EXPORTING i_dialog = ' ' i_objnr = i_objnr i_vorgang = 'QM73' "n412936 EXCEPTIONS not_allowed = 1 activity_not_allowed = 2 OTHERS = 3.

QAST_PROCESS_ACTIVITY CALL FUNCTION 'QAST_PROCESS_ACTIVITY' EXPORTING i_dialog = ' ' i_objnr = i_objnr i_vorgang = 'QM71' "n412936 EXCEPTIONS not_allowed = 1 activity_not_allowed = 2 OTHERS = 3.

QAST_PROCESS_ACTIVITY CALL FUNCTION 'QAST_PROCESS_ACTIVITY' EXPORTING i_dialog = ' ' i_objnr = i_objnr i_vorgang = 'QM74' "n412936 EXCEPTIONS not_allowed = 1 activity_not_allowed = 2 OTHERS = 3.

QAST_PROCESS_ACTIVITY CALL FUNCTION 'QAST_PROCESS_ACTIVITY' EXPORTING i_dialog = ' ' i_objnr = i_objnr i_vorgang = 'QM73' "n412936 EXCEPTIONS not_allowed = 1 activity_not_allowed = 2 OTHERS = 3.

QAST_PROCESS_ACTIVITY CALL FUNCTION 'QAST_PROCESS_ACTIVITY' EXPORTING i_dialog = ' ' i_objnr = i_objnr i_vorgang = 'QM71' "n412936 EXCEPTIONS not_allowed = 1 activity_not_allowed = 2 OTHERS = 3.

TCA11_READ CALL FUNCTION 'TCA11_READ' EXPORTING objst_imp = i_tca11_obj IMPORTING struct = l_tca11 EXCEPTIONS no_entry = 1.

TQSS1_READ CALL FUNCTION 'TQSS1_READ' EXPORTING i_werks = i_qals_werk IMPORTING e_tqss1 = l_tqss1.

QAFD_TQ79_READ CALL FUNCTION 'QAFD_TQ79_READ' EXPORTING i_slwbez = e_slwbez IMPORTING e_tq79 = l_tq79 EXCEPTIONS not_found = 1.

TQ30_READ CALL FUNCTION 'TQ30_READ' EXPORTING i_art = i_qals-art i_sprache = sy-langu IMPORTING e_tq30 = l_tq30 e_tq30t = l_tq30t EXCEPTIONS no_entry = 01.

QPAP_DATA_TO_QAPO CALL FUNCTION 'QPAP_DATA_TO_QAPO' EXPORTING i_aufpl = i_qals-aufpl i_mandant = sy-mandt i_plnfl = l_afflb-plnfl i_pplnkn = c_plnkn i_prueflos = i_qals-prueflos i_prplatzwrk = i_qals-werk i_qapo = l_qapo_wa * i_sprache = sy-langu "wg. Formular INSP_INSTRUCTION

QPSD_FEATURE_METH_VERSION_READ CALL FUNCTION 'QPSD_FEATURE_METH_VERSION_READ' EXPORTING merkmal = l_plmkb_wa-verwmerkm versionmk = l_plmkb_wa-mkversion zaehlmk = l_plmkb_wa-qpmk_zaehl methode = l_plmkb_wa-pmethode versionmt = l_plmkb_wa-pmtversion werkmt = l_plmkb_wa-qmtb_werks sprache = sy-langu IMPORTING qpmk_exp = l_qpmk qpmz_exp = l_qpmz qpmt_exp = l_qpmt qpmz_ktext_meth = l_plmkb_wa-qpmt_ktext qpmz_ktext_kat1 = l_plmkb_wa-awmngktx1 qpmz_ktext_kat2 = l_plmkb_wa-awmngktx2 qpmz_ktext_kat3 = l_plmkb_wa-awmngktx3 qpmz_ktext_kat4 = l_plmkb_wa-awmngktx4 qpmz_ktext_kat5 = l_plmkb_wa-awmngktx5 EXCEPTIONS no_feature = 1 no_method = 2 no_mkversion = 3 no_mtversion = 4.

CQ_BM_PLMKB_FROM_QPMK CALL FUNCTION 'CQ_BM_PLMKB_FROM_QPMK' EXPORTING fplmkb = l_plmkb_wa fqpmk = l_qpmk fqpmt = l_qpmt fqpmz = l_qpmz frqpas = l_rqpas i_no_copy_txt = l_no_text IMPORTING plmkb_exp = l_plmkb_wa.

CQ_BM_PLMK_UNIT_CONVERT CALL FUNCTION 'CQ_BM_PLMK_UNIT_CONVERT' EXPORTING plmkb_imp = l_plmkb_wa matnr = l_mapl_matnr mengeneinh = i_qals-mengeneinh IMPORTING plmkb_exp = l_plmkb_wa EXCEPTIONS conversion_error = 1.

QLMSM_DELETE_LOT_FROM_MEMORY CALL FUNCTION 'QLMSM_DELETE_LOT_FROM_MEMORY' EXPORTING i_prueflos = i_qals-prueflos.

QMCF_MODIFY_CHAR_OBJECT_DEP CALL FUNCTION 'QMCF_MODIFY_CHAR_OBJECT_DEP' EXPORTING i_qals = i_qals i_steuerkz = l_plmkb_wa-steuerkz i_atinn = l_plmkb_wa-atinn IMPORTING e_steuerkz = l_plmkb_wa-steuerkz EXCEPTIONS OTHERS = 0.

QSS0_QMKST_RQMST CALL FUNCTION 'QSS0_QMKST_RQMST' EXPORTING qmkst_imp = l_qmkst IMPORTING rqmst_exp = l_rqmst.

CP_EX_PLAN_READ CALL FUNCTION 'CP_EX_PLAN_READ' EXPORTING * CMODE_IMP = 'R' plnty_imp = i_plko_plnty plnnr_imp = i_plko_plnnr plnal_imp = i_plko_plnal sttag_imp = i_stichtag * CHECK_IMP = 'X' cuobj_imp = i_qals-cuobj parnt_imp = i_mapl_matnr "??? TODO * FCAPO_IMP = ' ' * tca11_imp = i_tca11 flg_val_rec_imp = i_qals-stat23 "approval * STLNR_IMP = * I_PLAS_KEY_TAB = * I_FLG_CHARACTERISTICS_PLANNING = ' ' * I_EDGNO = IMPORTING res_appr_chk_exp = l_res_appr_chk * ERROR_EXP = * E_MAPL = TABLES plas_exp = l_plas_tab plfh_exp = l_plfh_tab plfl_exp = l_plfl_tab plko_exp = l_plko_tab plpo_exp = l_plpo_tab aennr_exp = l_aennr_tab plmk_exp = l_plmkb_tab plmw_exp = l_plmw_tab EXCEPTIONS not_found = 1 plnal_initial = 2 .

TQ39A_READ CALL FUNCTION 'TQ39A_READ' EXPORTING dynlevel = l_plko_tab-qdynhead spras = sy-langu IMPORTING tq39a_exp = l_tq39a EXCEPTIONS no_entry = 1.

QPAP_DATA_TO_QAPO





CALL FUNCTION 'QPAP_DATA_TO_QAPO' EXPORTING i_arbid = l_plpod_tmp-arbid i_aufpl = i_qals-aufpl i_mandant = sy-mandt i_plnfl = l_plas_wa-plnfl i_pplnkn = l_qapo_pplnkn i_prplatz = l_qapo-prplatz i_prplatztxt = l_qapo-prplatztxt i_prplatzwrk = l_qapo-prplatzwrk i_prueflos = i_qals-prueflos i_qapo = l_qapo i_rueckmeld = i_rueckmeld i_sprache = l_plpod_tmp-txtsp i_vorglfnr = l_akt_plnkn i_vorktxt = l_plpod_tmp-ltxa1 i_vornr = l_sortkey-vornr i_vorsteus = l_plpod_tmp-steus * referenced operations are expanded already: i_vplal = l_plpod_tmp-vplal i_vplfl = l_plpod_tmp-vplfl i_vplnkn = l_plpo_wa-stdkn i_vplnr = l_plpod_tmp-vplnr i_vplty = l_plpod_tmp-vplty i_sumnr = l_sumnr IMPORTING e_qapo = l_qapo.

OBJECT_NUMBER_GET_OV CALL FUNCTION 'OBJECT_NUMBER_GET_OV' EXPORTING aplzl = l_qapo-vorglfnr aufpl = l_qapo-aufpl IMPORTING objnr = l_qapo-objnr.

STATUS_OBJECT_CREATE CALL FUNCTION 'STATUS_OBJECT_CREATE' EXPORTING objnr = l_qapo-objnr obtyp = 'OVG'.

STATUS_CHANGE_FOR_ACTIVITY CALL FUNCTION 'STATUS_CHANGE_FOR_ACTIVITY' EXPORTING objnr = l_qapo-objnr vrgng = 'RMAF'.

CP_EX_PLAN_READ CALL FUNCTION 'CP_EX_PLAN_READ' EXPORTING * CMODE_IMP = 'R' plnty_imp = l_qapo-plnty plnnr_imp = l_qapo-plnnr plnal_imp = l_qapo-plnal sttag_imp = i_stichtag * CHECK_IMP = 'X' cuobj_imp = i_qals-cuobj parnt_imp = i_mapl_matnr * FCAPO_IMP = ' ' * tca11_imp = i_tca11 flg_val_rec_imp = i_qals-stat23 "approval * STLNR_IMP = * I_PLAS_KEY_TAB = * I_FLG_CHARACTERISTICS_PLANNING = ' ' * I_EDGNO = IMPORTING res_appr_chk_exp = l_res_appr_chk * ERROR_EXP = * E_MAPL = TABLES plko_exp = l_plko_tab plpo_exp = l_plpo_tab aennr_exp = l_aennr_tab plmk_exp = l_plmk_tab plmw_exp = l_plmw_tab EXCEPTIONS not_found = 1 plnal_initial = 2 .



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name QPAPPLANREADWITHEFFECTIVITYF1 or its description.