SAP CPRO_API_DOC_UPLOAD_PRE Function Module for Event vor einem Upload









CPRO_API_DOC_UPLOAD_PRE is a standard cpro api doc upload pre SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Event vor einem Upload 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 cpro api doc upload pre FM, simply by entering the name CPRO_API_DOC_UPLOAD_PRE into the relevant SAP transaction such as SE37 or SE38.

Function Group: CPRO_API
Program Name: SAPLCPRO_API
Main Program: SAPLCPRO_API
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CPRO_API_DOC_UPLOAD_PRE 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 'CPRO_API_DOC_UPLOAD_PRE'"Event vor einem Upload
EXPORTING
* I_LANGUAGE = "Sprache nach ISO 639
IS_FOLDER_ID = "Objekt Identifikator
IS_OBJECT_ID = "Objekt Identifikator
IS_DOC = "Datenübergabe vor einem Upload

IMPORTING
ES_RESPONSE = "Event nach Upload
ES_DOC_ID = "Objekt Identifikator
ES_FAULT = "Allgemeine Rückgabestruktur mit Fehlerbeschreibung
.



IMPORTING Parameters details for CPRO_API_DOC_UPLOAD_PRE

I_LANGUAGE - Sprache nach ISO 639

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

IS_FOLDER_ID - Objekt Identifikator

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

IS_OBJECT_ID - Objekt Identifikator

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

IS_DOC - Datenübergabe vor einem Upload

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

EXPORTING Parameters details for CPRO_API_DOC_UPLOAD_PRE

ES_RESPONSE - Event nach Upload

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

ES_DOC_ID - Objekt Identifikator

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

ES_FAULT - Allgemeine Rückgabestruktur mit Fehlerbeschreibung

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

Copy and paste ABAP code example for CPRO_API_DOC_UPLOAD_PRE 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_language  TYPE LAISO, "   
lv_es_response  TYPE CPRO_API_TS_UPLOAD_PRE_RET, "   
lv_es_doc_id  TYPE CPRO_API_TS_OBJECTID, "   
lv_is_folder_id  TYPE CPRO_API_TS_OBJECTID, "   
lv_es_fault  TYPE CPRO_API_TS_RETURN_CODE, "   
lv_is_object_id  TYPE CPRO_API_TS_OBJECTID, "   
lv_is_doc  TYPE CPRO_API_TS_UPLOAD_PRE. "   

  CALL FUNCTION 'CPRO_API_DOC_UPLOAD_PRE'  "Event vor einem Upload
    EXPORTING
         I_LANGUAGE = lv_i_language
         IS_FOLDER_ID = lv_is_folder_id
         IS_OBJECT_ID = lv_is_object_id
         IS_DOC = lv_is_doc
    IMPORTING
         ES_RESPONSE = lv_es_response
         ES_DOC_ID = lv_es_doc_id
         ES_FAULT = lv_es_fault
. " CPRO_API_DOC_UPLOAD_PRE




ABAP code using 7.40 inline data declarations to call FM CPRO_API_DOC_UPLOAD_PRE

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.

 
 
 
 
 
 
 


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!