cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Add Attachment method of class CLASS=CL_DOCUMENT_BCS error in test system only

siongchao_ng
Contributor
0 Likes
2,652

Hi all,

The program is running well in my DEV system but not in QAS system. I keep getting error from the method add_attachment of class CL_DOCUMENT_BCS. Anyone have any idea why this only happened at QAS side?

Note: QAS system is refreshed recently/ changed new server.

I tried changing the attachment type 'PDF' to 'RAW'. it allows me to avoid abap dump but the attachment i got will be messed up. unable to read the attachment.

Further debugging shows some store content parts not allowed?

Accepted Solutions (1)

Accepted Solutions (1)

siongchao_ng
Contributor
0 Likes

Issue finally resolved.

Found it is due to target repository Z2/A0 did not recognize the QAS security certificate.

Got the basis and the vendor to upload and activate the certificate in the archive server.

before: error messages will be in the response header

after:

Answers (1)

Answers (1)

joltdx
Active Contributor
0 Likes

Hi!

I'm going to make some guesses here, as we don't have all the required information. You say that this is not working in the QAS system, and that it was recently refreshed/changed server. It seems the code is trying to store content in "KRPO".

The exception is a "kpro_error". There is probably more information for you to find there. Either by debugging or looking at the mo_trace there and possibly a more detailed message in the exception.

My guess is that the content server where the documents are supposed to be stored are not properly configured after the refresh. Maybe there is wrong config for them, or you got a new IP and there is a networking/firewall issue.

As for the second part where you changed the document to 'RAW'. Again this is probably due to content repository settings, where RAW is not allowed.

I suggest you talk to your Basis team/individual/resource about this. 🙂

siongchao_ng
Contributor
0 Likes

Hi,

I had tracked down further.

From abap side, can only pin down to the details below. Something to do with not authorized SCMS_HTTP_CREATE_TABLE thingy for Z2 content depositories.

Not sure how this translate to the config/ something not authorized for SCMS HTTP?

I had talked to the basis and told them something I found in the google as well about OACT tcode (content repository) Unfortunately, basis says the Z2 content repository is connection is working. They have no idea about permission setting to access/store content to Z2 content repository.

Anyone have any idea where to set the config in OACT? or anywhere?

joltdx
Active Contributor
0 Likes

From OACT, you can access the CS Admin as well where there is a "Certificates" tab. Could it be that the certificates were not renewed during the refresh/new server? Is everything looking good in CS Admin. (there's also a transaction code CSADMIN to access that directly)

In OACT there is a connection test. It's been a while but I recall that one of the "connection tests" is basically just a "ping" to se if it's possible to reach the server, and not trying to log in. Can't remember now where the other "connection test" is...

Please make sure to test if it's possible to read any file stored in the Z2 repository. Is that working since after the refresh/new system?

siongchao_ng
Contributor
0 Likes

Whether I click on Certificates/settings/statistics tab, I will get the http error message shown below

All I get from basis people and the vendor in charge of the content repository is they did connection test to the Z2/A0 content repository and it is successful.

The problem here is test server QAS is not authorized to put content into the Z2 repository.