Ansicht
Dokumentation

BAPI_DOC_MASS_CHECKOUTSET2 - BAPIs für Dokumentinfosätze

BAPI_DOC_MASS_CHECKOUTSET2 - BAPIs für Dokumentinfosätze

CL_GUI_FRONTEND_SERVICES - Frontend Services   ABAP Short Reference  
Diese Dokumentation steht unter dem Copyright der SAP AG.
SAP E-Book

Funktionalität

/* This needs to be translated to DE.

This BAPI is used to set the checked out status for document originals. This BAPI can set the checked out status for multiple originals belonging to different documents simultaneously.

Purpose:

This function module is developed in order to reduce the number of RFC calls made by CAD for downloading originals and hence gain on performance. The note that corresponds to KPRO is 1072169, SAPHTTP is 1071311 and that of CAD desktop is 1075363.

Beispiel

DATA: lt_documentdata type bapi_doc_draw2 occurs 0 with header line,

lt_documentfiles type bapi_doc_files2 occurs 0 with header line,

lt_checkedoutfiles type bapi_doc_files2 occurs 0 with header line,

lt_return type bapiret2 occurs 0 with header line.

*sample creation of structures

lt_documentdata-DOCUMENTTYPE = DRW.

lt_documentdata-DOCUMENTNUMBER = KSA01.

lt_documentdata-DOCUMENTVERSION = 00.

lt_documentdata-DOCUMENTPART = 000.

lt_documentdata-DESCRIPTION = UYTR.

lt_documentdata-USERNAME = KSA.

append lt_documentdata.

lt_documentfiles-DELETEVALUE = .

lt_documentfiles-DOCUMENTTYPE = DRW.

lt_documentfiles-DOCUMENTNUMBER = KSA01.

lt_documentfiles-DOCUMENTPART = 000.

lt_documentfiles-DOCUMENTVERSION = 00.

lt_documentfiles-ORIGINALTYPE = 1.

lt_documentfiles-SOURCEDATACARRIER = .

lt_documentfiles-STORAGECATEGORY = DMS_C1_ST.

lt_documentfiles-WSAPPLICATION = DOC.

lt_documentfiles-DOCPATH = C:\.

lt_documentfiles-DOCFILE = 456.DOC

append lt_documentfiles.

CALL FUNCTION BAPI_DOC_MASS_CHECKOUTSET2

TABLES: documentdata = lt_documentdata

documentfiles = lt_documentfiles

checkedoutfiles = lt_checkedoutfiles

return = lt_return.

Hinweise

The DIR keys are existing in the tables and need to be passed accordingly in the internal tables.

Define internal tables for documentdata and documentfiles. These two need to be passed.

The return from the BAPI is internal table checkedoutfiles which contains the entries of all the files checkedout

The internal table return needs to be defined which contains the table of error values for those files which were unable to be checkedout. Exception would not be raised for individual files rather the error messages are stored into the table to enable processing of documents which have no errors.

The details of the checked out originals will be present in the output table CHECKEDOUTFILES.

The status of a document can be changed by filling corresponding fields in the document data table. User has to fill the document keys if the check out status has to be filled automatically.

Weiterführende Informationen





Parameter

CHECKEDOUTFILES
DOCUMENTDATA
DOCUMENTFILES
HOSTNAME
RETURN

Ausnahmen

Funktionsgruppe

CVBAPI

General Material Data   General Material Data  
Diese Dokumentation steht unter dem Copyright der SAP AG.

Length: 4211 Date: 20240523 Time: 103512     sap01-206 ( 55 ms )