‎2012 Jan 17 9:22 PM
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.
‎2012 Jan 23 10:06 PM
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?
‎2012 Jan 23 10:06 PM
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?
‎2012 Jan 23 10:28 PM
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.
‎2012 Jan 24 8:45 PM
Working for one user and not for others? Authorization issues perhaps, either on ERP or the DESTINATION system?
‎2012 Jan 25 6:44 AM
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
‎2012 Jan 25 4:38 PM
Andres,
I'm not sure if this can be because of authorization issue since both the users have the necessary authorization.
‎2012 Jan 27 2:00 AM
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.
‎2012 Jan 31 3:50 PM
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.
‎2012 Feb 01 10:45 PM
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.
‎2013 Oct 29 11:08 AM
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
‎2012 Jan 24 7:19 AM
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
‎2015 May 14 10:27 AM