SAP Function VB_CP_DEVIATION_CHECK - Batch Record: Deviation List Subdocument

Parameter Reference Type Length Default Optional Text
I_ACTIVITY VBCP_SEL-ACTIVITY C 20 Activity (Archive, Print, Display)
I_VERS VBCP8 u 407 Batch Record Version Data

Parameter Reference Type Length Text
ES_SFPJOBOUTPUT SFPJOBOUTPUT v 32
E_BINFILESIZE I I 4 File Sizes in Bytes of the PDF File
E_FILENAME RLGRAP-FILENAME C 128 File Name for Download
E_FLG_DEVIATION BOOLE-BOOLE C 1 Manual Deviation Analysis Started

Parameter Reference Length Optional Text
E_TLINE TBL1024 1024 X PDF Data in Text Format

Exception Text
APPLICATION_CANCELLED_BY_USER Application in which Deviation Analysis was Called Terminated
CANCELLED_BY_USER Canceled by User
CONTENT_DOC_ERROR Error in Table of Contents
ERROR_CLOSE_FORM Error in Module CLOSE_FORM
ERROR_OPEN_FORM Error in Module OPEN_FORM
ERROR_WRITE_FORM Error in Module WRITE_FORM
NO_AOS Deriving Terminated
PARAM_ERROR Error in Archiving Parameters
STAT_VBAB_NOT_ALLOWED Status VBDE not Allowed

Functionality
This function module is used to start the deviation analysis in thebatch record. The main steps are:

  • Read overall profile of batch record in Customizing

  • Read deviation profile in Customizing (Transaction COCU2)

  • Update data in browser-based PI sheet

  • Start program for analyzing deviations

  • Set status "Batch record: Deviations occurred"

  • Enter ArchiveLink link data in the shadow table of the batch record

  • Update list of contents

  • Open form maintenance for the deviation document

  • Start print program for displaying deviations in the document

  • Call module for displaying deviation document

  • Save data

  • The module differentiates between deviations output
    during archiving, during approval, or manually in the batch recordrunction, in this case, with definition of the deviation profile in theoverall profile of the batch record.