Page tree
Skip to end of metadata
Go to start of metadata

Information concerning Project Status Report can you find in the online documentation under:
https://help.sap.com/viewer/213a68a4ef6e448e8e49d8f67d1a1607/6.1.08/en-US/4b206a78ad4a0a97e10000000a421937.html

The standard form for the status report is DPR_STATUS_REPORT_AIF which is assigned to the project type in customizing: Spro > SAP Portfolio and Project Management > Project Management > Basic Settings > Activate forms per Project Type.

 

To set a breakpoint direct in the function module for the used status-report form you can do the following step:
Call Customizing under Spro > SAP Portfolio and Project Management > Project Management > Basic Settings > Forms for Printing and for Project Status Reports > Create PDF_Based Form.
Select form: DPR_STATUS_REPORT_AIF
Use button "Test"- then the corresponding function module is available where the breakpoint can be set.

 

Below you can find further code snippets which can be used to start the analyze:

Create a new Status Report and choose button "Preview":

CL_DPR_UI_LOG_STATUS_REPORTS
GET_FORM

CALL METHOD lr_form_services->print_preview
    EXPORTING
      ir_form_manager  mr_form_manager
      iv_form_name     lv_form_name
      iv_language      lv_language
      it_options       lt_options " always initial for psr
    IMPORTING
      ev_pdf_data      ev_content
      ev_pdf_data_size ev_file_size.

 

CL_DPR_API_FORMS_SERVICES
PRINT_PREVIEW

 

The parameter mv_function_name is filled with the function module which is used for the Form DPR_STATUS_REPORT_AIF (See aforementioned hint with button "Test"):

CL_DPR_FORM_MODEL_PROJECT
IF_DPR_FORM_MODEL~PROCESS_FORM

*/  Call PDF function module
    call function mv_function_name
      exporting
        /1bcdwb/docparams  ls_docparams
        control_parameters ls_control_parameters
        is_data            <fs>
        it_options         lt_options
      importing
        /1bcdwb/formoutput ls_formoutput
      exceptions
        usage_error        1
        system_error       2
        internal_error     3
        others             4.

 

 

When saving the status report you can set at breakpoint at:
Webdynpro: DPR_STATUS_REPORTS               
COMPONENTCONTROLLER
Method: DO_FILL_DOCDETAIL    

 

 

Back         

 

 

 

 

  • No labels