Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue while retrieving PDF documents

Former Member
0 Likes
2,226

Hi,

We are using FM 'ALINK_DOCUMENTS_GET_CLIENT' to download the PDF to user directory. The FM fails when a call is made to SCMS_CLTFC_FILE_GET which is a RFC to system SAPCMS.

The error message is 'GetStream failed (1)'.

I searched the forum and found that there were posts mentioning ADS and Java Startup Failure (J2EE Engine) but I could not make the relevance.

Any pointers will be useful.

Thank you.

1 ACCEPTED SOLUTION
Read only

andrs_sarcevic
Contributor
0 Likes
1,927

I think that FM is trying connect to your Content Management Server, which I assume you don't have.

Question is... where do you have the PDF you want to download?

11 REPLIES 11
Read only

andrs_sarcevic
Contributor
0 Likes
1,928

I think that FM is trying connect to your Content Management Server, which I assume you don't have.

Question is... where do you have the PDF you want to download?

Read only

0 Likes
1,927

Hi Andres,

The PDF we are trying to download is archived in SAP. This FM 'ALINK_DOCUMENTS_GET_CLIENT' is used in a report program and has been working fine until now.

The system connection to SAPCMS is working fine since the connection is tested before calling this specific FM which returns an error.

This is standard SAP code. The FM does not return any exceptions which means there is no system or communication failure. It only returns a message - 'GetStream failed (1)'.

It is still working for one user but not for others and we are not sure what is the reason behind it. Are we missing something?

The user for whom this is working does not get this message.

Thank you.

Read only

0 Likes
1,927

Working for one user and not for others? Authorization issues perhaps, either on ERP or the DESTINATION system?

Read only

0 Likes
1,927

Hi Niranchan,

Try for other user ids in the system of the user for whom it is working.

If it works there, then this might be a system issue as PDF download depends on system also.

Regards,

Raja.D

Read only

0 Likes
1,927

Andres,

I'm not sure if this can be because of authorization issue since both the users have the necessary authorization.

Read only

0 Likes
1,927

You could try Raja.D's suggestion.

What happen if you test the FM alone through SE37 using different users along with the one that does not have trouble? Do you get the same error?

Is this happening in a Production environment? What about QA and Development?

if it's working for a user as you are saying, the development was working fine before and SE37 testing throws the same issue, I would take this to SAP and open an OSS Message.

Cheers,

Andres.

Read only

0 Likes
1,927

Raja,

I have tried different combinations and it works in the particular users' system which has windows viewer.

Andres,

I cannot test the FM standalone since the FM is RFC to SAPCMS which does not physically exist to logon.

The error is same in D/Q/P.

We are now checking if windows viewer has any issues. Will let you know after that.

Thanks for your time and help.

-Niranchan.

Read only

0 Likes
1,927

Hi,

There has been a issue with the registry files of Windows viewers for other users and this is now resolved. It seems that windows viewer is needed for retrieving pdf documents using the ALINK* FM.

Thank you all for your time.

Read only

snipersap
Product and Topic Expert
Product and Topic Expert
0 Likes
1,927

Dear Niranchan,

I am facing exactly the same issue where the user is not able to open the PDF attachment from one PO but is able to do so for other POs.

Surprisingly SCMS_CLTFC_FILE_GET does not return any exception when it is not able to get the file loaded into cache.

It will be really great if you could share what the problem was with the registry files of Windows viewers and how you fixed it.

Thanks for the kind help.

--

Regards,

Soumyo Jyoti Pal

Read only

Former Member
0 Likes
1,927

Hi,

Please find the bellow link which will help in your solution

<link to blocked site removed by moderator>

Regards,

Goutam Kolluru.

Edited by: Thomas Zloch on Jan 24, 2012

Read only

0 Likes
1,927

This message was moderated.