SAP VB_CP_WRITE_VERSION_DOC Function Module for NOTRANSL: Chargenprotokoll: Teildokument Versionsdaten generieren









VB_CP_WRITE_VERSION_DOC is a standard vb cp write version doc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Chargenprotokoll: Teildokument Versionsdaten generieren processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for vb cp write version doc FM, simply by entering the name VB_CP_WRITE_VERSION_DOC into the relevant SAP transaction such as SE37 or SE38.

Function Group: VBP_DOC
Program Name: SAPLVBP_DOC
Main Program: SAPLVBP_DOC
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function VB_CP_WRITE_VERSION_DOC pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'VB_CP_WRITE_VERSION_DOC'"NOTRANSL: Chargenprotokoll: Teildokument Versionsdaten generieren
EXPORTING
I_VERS = "Batch Record: Buffer Table for Versions
* I_ACTIVITY = 'PRIOUT' "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
E_FILENAME = "Local file for upload/download
E_BINFILESIZE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
ES_SFPJOBOUTPUT = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
* E_TLINE = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
ERROR_OPEN_FORM = 1 ERROR_WRITE_FORM = 2 ERROR_CLOSE_FORM = 3 DOCTYPE_NOT_FOUND = 4 CANCELLED = 5 ERROR_NO_LIST = 6 PARAM_ERROR = 7
.



IMPORTING Parameters details for VB_CP_WRITE_VERSION_DOC

I_VERS - Batch Record: Buffer Table for Versions

Data type: VBCP8
Optional: No
Call by Reference: No ( called with pass by value option)

I_ACTIVITY - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: VBCP_SEL-ACTIVITY
Default: 'PRIOUT'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for VB_CP_WRITE_VERSION_DOC

E_FILENAME - Local file for upload/download

Data type: RLGRAP-FILENAME
Optional: No
Call by Reference: Yes

E_BINFILESIZE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

ES_SFPJOBOUTPUT - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: SFPJOBOUTPUT
Optional: No
Call by Reference: Yes

TABLES Parameters details for VB_CP_WRITE_VERSION_DOC

E_TLINE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: TBL1024
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

ERROR_OPEN_FORM - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

ERROR_WRITE_FORM - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

ERROR_CLOSE_FORM - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

DOCTYPE_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

CANCELLED - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

ERROR_NO_LIST - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

PARAM_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for VB_CP_WRITE_VERSION_DOC Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_i_vers  TYPE VBCP8, "   
lt_e_tline  TYPE STANDARD TABLE OF TBL1024, "   
lv_e_filename  TYPE RLGRAP-FILENAME, "   
lv_error_open_form  TYPE RLGRAP, "   
lv_i_activity  TYPE VBCP_SEL-ACTIVITY, "   'PRIOUT'
lv_e_binfilesize  TYPE I, "   
lv_error_write_form  TYPE I, "   
lv_es_sfpjoboutput  TYPE SFPJOBOUTPUT, "   
lv_error_close_form  TYPE SFPJOBOUTPUT, "   
lv_doctype_not_found  TYPE SFPJOBOUTPUT, "   
lv_cancelled  TYPE SFPJOBOUTPUT, "   
lv_error_no_list  TYPE SFPJOBOUTPUT, "   
lv_param_error  TYPE SFPJOBOUTPUT. "   

  CALL FUNCTION 'VB_CP_WRITE_VERSION_DOC'  "NOTRANSL: Chargenprotokoll: Teildokument Versionsdaten generieren
    EXPORTING
         I_VERS = lv_i_vers
         I_ACTIVITY = lv_i_activity
    IMPORTING
         E_FILENAME = lv_e_filename
         E_BINFILESIZE = lv_e_binfilesize
         ES_SFPJOBOUTPUT = lv_es_sfpjoboutput
    TABLES
         E_TLINE = lt_e_tline
    EXCEPTIONS
        ERROR_OPEN_FORM = 1
        ERROR_WRITE_FORM = 2
        ERROR_CLOSE_FORM = 3
        DOCTYPE_NOT_FOUND = 4
        CANCELLED = 5
        ERROR_NO_LIST = 6
        PARAM_ERROR = 7
. " VB_CP_WRITE_VERSION_DOC




ABAP code using 7.40 inline data declarations to call FM VB_CP_WRITE_VERSION_DOC

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
"SELECT single FILENAME FROM RLGRAP INTO @DATA(ld_e_filename).
 
 
"SELECT single ACTIVITY FROM VBCP_SEL INTO @DATA(ld_i_activity).
DATA(ld_i_activity) = 'PRIOUT'.
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!