SAP Reports / Programs | Project System | Revenues and Earnings(PS-REV) SAP PS

QUOTATION_FROM_PB_PRICING SAP ABAP Report - Create Quotation for Sales Price in Project Builder







QUOTATION_FROM_PB_PRICING is a standard Executable ABAP Report 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 QUOTATION_FROM_PB_PRICING 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 QUOTATION_FROM_PB_PRICING. "Basic submit
SUBMIT QUOTATION_FROM_PB_PRICING AND RETURN. "Return to original report after report execution complete
SUBMIT QUOTATION_FROM_PB_PRICING VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_PRJDEF = D Project Definition
Selection Text: P_VSNMR = D Version key
Title: Create Quotation for Sales Price in Project Builder
Text Symbol: 000 = Selection


INCLUDES used within this REPORT QUOTATION_FROM_PB_PRICING

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:

VPKPS_EXTERN_TO_INTERN_CONVPRD CALL FUNCTION 'VPKPS_EXTERN_TO_INTERN_CONVPRD' EXPORTING i_prdid = p_prjdef i_vsnmr = p_vsnmr IMPORTING e_proj = l_proj EXCEPTIONS not_exists = 1 OTHERS = 2.

VPKDB_GET_PDOC_FOR_PROJECT CALL FUNCTION 'VPKDB_GET_PDOC_FOR_PROJECT' EXPORTING i_pronr = l_proj-pspnr i_vsnmr = p_vsnmr i_vpkus = vpkti_usage_ppb IMPORTING e_nvpk = l_e_nvpk TABLES et_vpkh = lt_vpkhead EXCEPTIONS input_error = 1 no_pdoc_found = 2 OTHERS = 3.

KEIZ_PROJECT_SELECT CALL FUNCTION 'KEIZ_PROJECT_SELECT' EXPORTING i_pspid = l_proj-pspid i_posid = l_prps-posid i_vsnmr = p_vsnmr i_kokrs = l_proj-vkokr TABLES t_rsthie = lt_rsthie_m t_prps = lt_prps_cjdb_rep EXCEPTIONS not_found = 1 OTHERS = 2.

PM_PARTNER_CONVERT_VBPAKOM CALL FUNCTION 'PM_PARTNER_CONVERT_VBPAKOM' EXPORTING objnr = l_proj-objnr i_spart = l_proj-spart i_vkorg = l_proj-vkorg i_vtweg = l_proj-vtweg TABLES xvbpakom = lt_vbpakom.

VPKO_INIT_BY_PB CALL FUNCTION 'VPKO_INIT_BY_PB' EXPORTING i_vpkus = vpkti_usage_ppb i_mode = vpkti_mode_batch i_vsnmr = p_vsnmr i_proj = l_proj i_prsdt = lt_vpkhead-prsdt TABLES it_rsthie = lt_rsthie it_prps = lt_prps it_prhi = lt_prhi it_vbpakom = lt_vbpakom EXCEPTIONS error_occurred = 1 OTHERS = 2.

STATUS_BUFFER_REFRESH CALL FUNCTION 'STATUS_BUFFER_REFRESH'.

VPKO_CREATE_SALES_DOCUMENT CALL FUNCTION 'VPKO_CREATE_SALES_DOCUMENT' EXPORTING i_save_pdoc = space i_perform_commit = 'X' i_simulation = space i_create_quot = 'X' importing e_vbeln = l_vbeln EXCEPTIONS input_error = 1 saving_error = 2 OTHERS = 3.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING TCODE = c_tcode_chqu EXCEPTIONS OK = 0 NOT_OK = 1 OTHERS = 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 QUOTATION_FROM_PB_PRICING or its description.