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

Export Images through Function Modules

Murali_Shanmu
SAP Champion
SAP Champion
0 Likes
3,017

Hi

I am runing on ECC 6.0 and I am able to store images in R/3.Now i have to write an RFC to pass these images in export parameters. Is it possible.

Regards,

Murali.

1 ACCEPTED SOLUTION
Read only

Former Member
20 REPLIES 20
Read only

Former Member
0 Likes
2,756

Yes it is possible.

there is a RFC FM <b>BDS_BUSINESSDOCUMENT_CREATEF</b>

Call the FM BDS_BUSINESSDOCUMENT_CREATEF to upload the images from System.

LOGICAL_SYSTEM

CLASSNAME PICTURES

CLASSTYPE OT

CLIENT 321

OBJECT_KEY ZIMAGE

and the table parameter Files pass

DOC_COUNT 00000001

COMP_COUNT 00000001

COMP_ID

DIRECTORY C:\

FILENAME WINTER.JPG

MIMETYPE

Regards

Vijay

Read only

0 Likes
2,756

Hi

Can you please help me out my explaining me what I should give for

Class name = 'BUS2002'

Class type = 'BO'

Client = <client no>

object key = ??

I have no clue of the Tcode and what I should for these parameters.

Regards,

Murali.

Read only

0 Likes
2,756

BDS_BUSINESSDOCUMENT_CREATEF is for creating attacments to BDS in your case you want to read image which you stored using OAAD . if yes for your portal webdynpro you cannot use the URL generated (mentioned in your previous post).

Raja

Read only

0 Likes
2,756

Yes Raja, So I cannot use BDS_BUSINESSDOCUMENT_CREATEF or any url. How do i go about. I am just looking for a functionality that will expose the images in the RFC and available for my portal applications.

Kindly help..

Murali.

Read only

0 Likes
2,756

you cansimply use the following FM to generate a url for the object loaded thru OAAD and use it in your appliation.

WEB_BDS_BUILD_URL_FOR_AL

Regards

Raja

Read only

0 Likes
2,756

Thanks Raja. Unfortunately I was not able to understand how to use WEB_BDS_BUILD_URL_FOR_AL. Infact I came across another FM related to this. It is HRXSS_COD_GET_DETAILS. Here I just gave pernr number and get his photo stored using OAAD Tcode. It gives me a URI something like :

http://<servername>:8001/sap/bc/contentserver/236?get&pVersion=0046&contRep=A2&docId=457B9D11554A16E...

Now when I paste this on my browser, I get <b>SSF error: Decoding not possible</b>.

I went to SICF > BC > Content server and tried to test it. It does not give me anything. It says The page cannot be found. I rechecked the userId and Password. Could this be a problem for the above error.

Will giving me a URL allow me to access SAP Resource wiothout logon UserId & Pwd. ?

Kindly help me.

Regards,

Murali.

Read only

0 Likes
2,756

when you call the url generated by the system (http://<servername>:8001/sap/bc/...) you need to log in. but since you are going to call this from portal (and i assume you would have done SSO) you wont be prompted for authentication.

for SSO to work, you have to set up FQDN - fully qualified domain name the url should look like http://<servername>.<domain>.com:8001/sap/bc/.

for this you have to set up profile parameter (RZ10) icom/host_name_full

<i>SICF - The page cannot be found.</i>

this could be due to various reasons - like inactive service node in SICF, etc. to get the correct error message thrown by the server, in your browser go to internet options->advanced- and uncheck the check box show friendly HTTP error message and re run the application.

Regards

Raja

Read only

0 Likes
2,756

if you are not constrained with storing images thru OAAD. you can store the same in MIME repository (SE80) and easily access them thru url

Raja

Read only

0 Likes
2,755

Hi Raja,

Yes, I am using FQDN. You had already told me this in previous threads. So nowadays I am very careful with FQDN. When I changed the settings in IE, and test contentserver service, it says 'BAD REQUEST'. I am not able to see the Contentserver screen at all.

As of now I just want to test the images. So I just want a popup to come asking me for R/3 logon and after that it should show me the image. Later when i use this in Webdynpro's I will make it SSO enabled.

I am not only restricted with OAAD Tcode. I can free to upload the image anywhere. But please guide on how to upload the images and also how to use an FM to retreive the same. There are lot of postings on using FM , but since I am new to this area, I am not able to proceed.

Please help me Raja.

Regards,

Murali.

Read only

0 Likes
2,755

Should I create a "Service" user and add it in ContentServer service ? I even tried attaching a service user. It still gives me the same problem.

Message was edited by:

Muralidaran Shanmugham

Read only

0 Likes
2,755

Hi Muralidaran,

I'm having the same problem and can't get any help for this. We're getting a "bad request" message when testing the content server. How did you resolve this.

Thanks,

Redding

Read only

Former Member
Read only

athavanraja
Active Contributor
0 Likes
2,755

it depends where you store the image

is it

MIME repository of ICF?

or theu SE78 or

thru SMW0

regards

Raja

Read only

0 Likes
2,755

Thanks a lot everybody. I am uploading images in my R/3 using Tcode OAAD Tcode.

Murali.

Read only

0 Likes
2,755

Hi Raja,

I am back again. I just want to export an image from R/3 and show it using a webdynpro on my portal page. I am ready to upload the image in my R/3 using any Tcode.

Regards,

Murali.

Read only

0 Likes
2,755

Hi,

There is a FM called :

CALL METHOD logo->load_picture_from_url

EXPORTING

url = url

EXCEPTIONS

OTHERS = 1.

URL is SAPR3://457ADA36BC860BD5E10000000A34463D.

Can I use this URL somehow in my portal side to access the Image

Murali.

Read only

0 Likes
2,755

Hi Raja,

I am able to see you helping lot of people using BDS_BUSINESSDOCUMENT_CREATEF. Kindly let me know from where to get information about. this FM, whih does not have a documentation.

I got to see Tcode like CN22, OAOR. But I have no clue why we are using these Tcode. Why do I need to give Logical system name in my RFC.

Please help me.

Murali.

Read only

Former Member
0 Likes
2,755

If you have stored your images as MIME objects, then you can retreive them using FM SKWF_PHIO_LOAD_CONTENT.

This will return the file as binary.

If this sounds like what you want, let me know and I'll give you more details

Read only

0 Likes
2,755

Hi,

I want to know how to convert binary data from FM SKWF_PHIO_LOAD_CONTENT into file. Please, let me know if any one knows how to do this.

Thanks,

Alok Mehta