Ansicht
Dokumentation

CRM_FM_JOB_FWK_REPRT - Integrate Reports for Job Framework Process

CRM_FM_JOB_FWK_REPRT - Integrate Reports for Job Framework Process

RFUMSV00 - Advance Return for Tax on Sales/Purchases   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

The batch processing framework can be used to create, schedule, monitor, and post-process jobs. You can use the steps below to integrate reports into the batch processing framework so that they can be scheduled as jobs using the job creation wizard. Once you complete these steps, your report is available for selection in the job creation wizard.

  1. Create a report by going to the ABAP Editor (transaction SE38) and including the desired business logic.
  2. Add the instance of the application log to the batch job handler using the method CL_CRM_FM_BFW_RT_MGR-> JOB_INIT.
This method is used to initiate the job log entry and to make it accessible to the batch processing framework.
The method contains the following parameters:
Parameter Description Technical Name Type
Application Log: Log Header Data IS_HEADER Importing
Application Log: Log Handle EV_HANDLE Exporting
Interface for BFW Job EV_JOB Exporting
Application Log: External ID EV_EXT Exporting
CRM Claims and Funds: Batch Log Exception CX_CRM_FM_BFW_LOG_EXCEPTION Exception

  1. To feed the job log handler with messages, use the method CL_CRM_FM_BFW_JOB'IF_CRM_FM_BFW_JOB~ADD_MESSAGE.
This method contains the following parameters:
Parameter Description Technical Name Type
Application Log: Log Handle IV_HANDLE Importing
Application Log: Message Data IS_MSG Importing
Application Log: Message Handle ES_MSG_HANDLE Exporting
Boolean Variable EV_MSG_WAS_LOGGED Exporting
CRM Claims and Funds: Batch Log Exception CX_CRM_FM_BFW_LOG_EXCEPTION Exception

  1. To save the log, use the method CL_CRM_FM_BFW_JOB-> IF_CRM_FM_BFW_JOB~JOB_CLOSE.
  2. Go to the UI Component Workbench (transaction BSP_WD_CMPWB) and create a UI component with one window and one view.
This component is used to hold all the input parameters for the job scheduling steps.
For more information, see any standard UI component maintained in the Customizing activity Define Batch Processing Framework Report Types.
  1. Ensure that the window contains an inbound plug, and that the necessary UI validation is done here.
  2. Overwrite the method DO_HANDLE_DATA of the view controller to set the current parameter selection to the batch framework container class CL_CRM_FM_BFW_CONT using interface method IF_CRM_FM_BFW_CONT~SET_PARAMETERS.
  3. Overwrite the method DO_PREPARE_OUTPUT to get the report parameter using the interface method IF_CRM_FM_BFW_CONT~ GET_PARAMETERS implemented by the container class CL_CRM_FM_BFW_CONT for subsequent loading of the view (for example, when navigating from the search results to the overview).
  4. Implement any other methods that are necessary, depending on your application logic.
  5. Implement the interface IF_CRM_FM_BFW_STATE_VALIDATOR~VALIDATE in a validation class.
  6. Set this validation class as the validator in the method DO_HANDLE_DATA, as follows: cl_crm_fm_bfw_util=>set_validator (lr_state_validator)
For more information, see any standard UI component maintained in the Customizing activity Define Batch Processing Framework Report Types.
  1. Enter the report name, report description, UI component, window name, inbound plug, and the default job name in the Customizing activity Define Batch Processing Framework Report Types.
CX_CRM_FM_BFW_LOG_EXCEPTION

To view an example, see any standard delivery report, such as the RCRM_FM_ACL_ACCRUAL_POSTING_FM report, and the UI component CRM_FM_BTCH_AP.






Vendor Master (General Section)   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 6249 Date: 20240523 Time: 182726     sap01-206 ( 68 ms )