Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 27, 2014 at 04:49 AM

    Hi Pradip,

    check the class number 017 is avaiable on EHP7.

    Regards,

    Kabil

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 27, 2014 at 05:24 AM

    Hi,

    As you are getting the error for Class type '017', check in transaction 'CL02' whether the class Type '017' Name 'ZDMS_DT', present or not with release status, as this is a custom class ZXX' which you have created.

    Regards,

    Zafar

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 07, 2015 at 12:18 PM

    Hi Pradeep,

    Please can you also check if the link between class in tables KLAH, INOB, KSSK, etc and characteristics in AUSP, CAWN, CABN, etc is existing. Everywhere you should get similar links form any table you check.

    Thanks,

    Arijit


    Add comment
    10|10000 characters needed characters exceeded