cancel
Showing results for 
Search instead for 
Did you mean: 

File could not be accessed from CV02n

Former Member
0 Kudos

Hi,

We did a system copy from production server to quality server (ECC 6.0 EHP6).

We have CS640 installed in our landscape. We have Dev content server and production content server.

Dev CS has repository for dev ECC system and quality ECC system.

I have copied production content repository data to quality repository according to Note 688241 - Relocating large SAP Content Server Repositories.

Steps:

1: RSCMSLST to create document list

2: RSCMSEXL to export data from production CR

3: created content repository and content category with same name as production in quality ECC server.

4: RSCMSIM to import data in quality CR

When I am trying to access the documents from CV02n from quality system, it is giving information 'File  could not be accessed'.

All setting in production and quality ECC system is same.

Please let me know if I am missing any setting in quality ECC system to access the stored document from DMS.

Regards,

Deepak

Accepted Solutions (1)

Accepted Solutions (1)

christoph_hopf
Advisor
Advisor
0 Kudos

Hi Deepak,

maybe the report and information at http://wiki.scn.sap.com/wiki/x/YgUIDw could be useful for you to get access to the files again.

Best regards,

Christoph

Former Member
0 Kudos

Hi Christoph,

Thanks for your reply. I tried running the report and it has corrected the unlock symbol to lock.

But when I am trying to access the file from CV03n. I am getting error:

File C:\temp\_BASIS12.doc cannot be created

I am able to open the files from production system.

Regards,

Deepak

MaruthiKona217
Explorer
0 Kudos

Hi Deepak,

Did you resolve the below mentioned issue ? if yes, can you please let me know how you have resolved it as I am getting the same error.

C: \temp\_IN.doc cannot be created.

Regards,

Maruthi

Former Member
0 Kudos

Hi Maruthi,


What I remember, I had connected both quality and production content repository (CR) to one ECC server (development ECC) and created and executed the below program (provided by SAP) in ECC server to copy the data from production CR to Quality CR. And after that I was able to access the files in quality system using quality CR.

*&---------------------------------------------------------------------*

*& Report  Z_I065101_MIGRATE

*&

*&---------------------------------------------------------------------*

*&

*&

*&---------------------------------------------------------------------*

REPORT  z_i065101_migrate.

PARAMETERS:

p_repdst TYPE  sdokstca-stor_rep OBLIGATORY,

p_repsrc TYPE  sdokstca-stor_rep OBLIGATORY.

TYPES: BEGIN OF t_doclist,

         line(32) TYPE c,

       END OF t_doclist.

DATA: doclist   TYPE STANDARD TABLE OF t_doclist,

      doclist2   TYPE STANDARD TABLE OF t_doclist,

      doclist3   TYPE STANDARD TABLE OF t_doclist,

      wa_doclist   TYPE t_doclist.

CONSTANTS: timeout TYPE i VALUE 86400. "One day in seconds

*Get the list of the documents from source

CALL FUNCTION 'SCMS_DOC_IDLIST'

  EXPORTING

    stor_cat         = ' '

    crep_id          = p_repsrc

    timeout          = timeout     "(Time out value)

  TABLES

    doclist          = doclist

  EXCEPTIONS

    error_config     = 1

    bad_storage_type = 2

    OTHERS           = 3.

* Delete The unwanted entries if any

SORT doclist STABLE.

DELETE ADJACENT DUPLICATES FROM doclist.

*Get the list of the documents from destination

CALL FUNCTION 'SCMS_DOC_IDLIST'

  EXPORTING

    stor_cat         = ' '

    crep_id          = p_repdst

    timeout          = timeout     "(Time out value)

  TABLES

    doclist          = doclist2

  EXCEPTIONS

    error_config     = 1

    bad_storage_type = 2

    OTHERS           = 3.

IF sy-subrc = 0 .

  LOOP AT doclist INTO wa_doclist .

    READ TABLE doclist2 WITH KEY line = wa_doclist-line TRANSPORTING NO FIELDS.

    IF sy-subrc NE 0 .

      APPEND wa_doclist TO doclist3.

    ENDIF.

  ENDLOOP.

ELSE.

  doclist3[] = doclist[].

ENDIF.

CLEAR wa_doclist.

*Loop at the document and move them.

LOOP AT doclist3 INTO wa_doclist.

  CALL FUNCTION 'SCMS_DOC_COPY'

    EXPORTING

*   SRC_MANDT                   = SY-MANDT

     src_stor_cat               =  ' '

     src_crep_id                =   p_repsrc

     src_doc_id                 =  wa_doclist-line

*   SRC_PHIO_ID                 =

*   SRC_SIGNATURE               = 'X'

*   DST_MANDT                   = SY-MANDT

*   DST_STOR_CAT                = ' '

     dst_crep_id                  = p_repdst

     dst_doc_id                   = wa_doclist-line

*   DST_PHIO_ID                 =

*   DST_DOC_PROT                = 'rud'

*   SECURITY                    = ' '

*   OVERWRITE                   = ' '

* IMPORTING

*   DOC_ID_OUT                  =

* TABLES

*   MOD_COMPINFO                =

   EXCEPTIONS

     bad_storage_type            = 1

     bad_request                 = 2

     unauthorized                = 3

     not_found                   = 4

     forbidden                   = 5

     conflict                    = 6

     internal_server_error       = 7

     error_http                  = 8

     error_signature             = 9

     error_config                = 10

     error_format                = 11

     error_parameter             = 12

     error                       = 13

     blocked_by_policy           = 14

     OTHERS                      = 15.

  IF sy-subrc = 0.

    TRANSLATE wa_doclist-line  TO UPPER CASE.

    WRITE 😕 'Document Migrated Successfully', wa_doclist-line .

  ELSE.

    TRANSLATE wa_doclist-line  TO UPPER CASE.

    WRITE 😕 'Document Migration Unsuccessful' , wa_doclist-line .

  ENDIF.

  COMMIT WORK.

ENDLOOP.

* If the control reaches here all the documents would have got copied and thus We can delete the entries

Regards,

Deepak

MaruthiKona217
Explorer
0 Kudos

Hi Deepak,

Thanks for your prompt response on this, I would give it a try and will get back to you if I face any issues.

Thanks again.

Regards,

Maruthi

Answers (0)