Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

CV01N : DMS Upload Document through BAPI.

Hi Expert.

Please help me. Here I attached Code for CV01N Upload Document through BAPI ( BAPI_DOCUMENT_CREATE2).

Problem : 1 ) Program Run Successfully on ECC6.0 But On EHP7 Give Error Like "Class type 017 : class ZDMS_DT not found"

My Code IS :

   GV_CLASE   = 'YMS'.

   GV_VERSION = '00'.

   GV_PART    = '000'.

   GV_DESCRIPCION = 'test'.

   GS_DOCUMENTDATA-DOCUMENTTYPE    = GV_CLASE.

   GS_DOCUMENTDATA-DOCUMENTNUMBER  = GV_DOCUMENTO.

   GS_DOCUMENTDATA-DOCUMENTVERSION = GV_VERSION.

   GS_DOCUMENTDATA-DOCUMENTPART    = GV_PART.

   GS_DOCUMENTDATA-DESCRIPTION     = GV_DESCRIPCION.


   GT_CHARACTERISTICVALUES-CLASSTYPE = '017'.

   GT_CHARACTERISTICVALUES-CLASSNAME = 'ZDMS_DT'.

   GT_CHARACTERISTICVALUES-CHARNAME  = 'ZFEFIPRE'.

   GT_CHARACTERISTICVALUES-CHARVALUE = '15092007'.

   APPEND GT_CHARACTERISTICVALUES.

   GT_CLASSALLOCATIONS-CLASSTYPE     = '017'.

   GT_CLASSALLOCATIONS-CLASSNAME     = 'ZDMS_DT'.

   APPEND GT_CLASSALLOCATIONS.

    GT_DOCUMENTFILES-WSAPPLICATION   = OEXTENSION."'PDF'.

     GT_DOCUMENTFILES-DOCFILE         = C:\TESTDMS.PDF'.

*  GT_DOCUMENTFILES-DOCFILE         = '\'."'/tmp/pruebafondo'.

*  GT_DOCUMENTFILES-DOCPATH         = 'E:'."'zficherointerfaseps'.

     GT_DOCUMENTFILES-STORAGECATEGORY = 'DMS_C1_ST'.

     GT_DOCUMENTFILES-CHECKEDIN       = 'X'.

     APPEND GT_DOCUMENTFILES.


CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'

     EXPORTING

       DOCUMENTDATA         = GS_DOCUMENTDATA

     IMPORTING

       DOCUMENTTYPE         = I_DOCTYPE

       DOCUMENTNUMBER       = I_DOCNUMBER

       DOCUMENTPART         = I_DOCPART

       DOCUMENTVERSION      = I_DOCVERSION

       RETURN               = GV_RETURN

     TABLES

       CHARACTERISTICVALUES = GT_CHARACTERISTICVALUES

       CLASSALLOCATIONS     = GT_CLASSALLOCATIONS

       DOCUMENTFILES        = GT_DOCUMENTFILES.

Thanks.

Pradip Patel.

Former Member
Not what you were looking for? View more on this topic or Ask a question