cancel
Showing results for 
Search instead for 
Did you mean: 

ARCHIV_GET_CONNECTIONS_INT failing

vikash_pathak
Participant
0 Kudos

Hi ,

I am using FM ARCHIV_GET_CONNECTIONS_INT to read data from content server ( ecc ) for migration files from ECC to S4 , but its faillig with eror sysbuc 1.

anyone have idea how to use this FM

below is my code

* read (selected) connections
call function 'ARCHIV_GET_CONNECTIONS_INT'
exporting
archiv_id = p_arc
NO_AUTH_CHECK = 'X'
tables
connections = l_connections
exceptions
nothing_found = 1
others = 2
.

if l_connections[] is initial.
write: / 'NO DOCUMENTS TO MIGRATE'.
else.
write: / 'DOCUMENTS TO MIGRATE'.
endif.

Accepted Solutions (0)

Answers (1)

Answers (1)

Sandra_Rossi
Active Contributor
0 Kudos

What "data" do you want to read with this function module?

"connections" means the files within one "document" (ARC_DOC_ID - one document can contain several connections) of the content repository (ARCHIV_ID), so you must pass the document ID.

Better use ARCHIV_GET_CONNECTIONS than the "INTernal" version, you'll have better chances to see the "external" version be kept in future versions.

Note that the SAP note 3239643 - Reports to migrate a content repository provides information how to migrate data from one content repository to another.

vikash_pathak
Participant
0 Kudos

Hi Sandar Rossi,

Thanks for the response,

here i am not passing doc id instead passing archiv_id which is nothing but our content server repository name which resides in other old ecc system.

and i checked FM ARCHIV_GET_CONNECTIONS too and this FM called same FM INT inside it.

please suggest.

Thanks

Sandra_Rossi
Active Contributor
0 Kudos

I have nothing better to suggest than the important SAP note above which explains how to migrate content repository. You don't need to develop anything.

vikash_pathak
Participant
0 Kudos

Hi Sandar Rossi,

if i use same FM as you suggested above , do i need to pass RFC destination as well ? as i am fetching data from diferent system.

Thanks

Vikash

Sandra_Rossi
Active Contributor
0 Kudos

As you saw, both function modules are currently the same, so your question is also valid for the INT function. I just know that Content Repositories are often accessed through HTTP, I don't see why RFC would be needed here.