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

Extract attachments from 'Service for Objects'

pintoo_d
Participant
0 Likes
4,647

Experts,

I am trying to extract attachments from link 'Service for objects' from SAP 4.6c.

Please help me how to extract or download attachments to presentation server.

I was able to find some solution over other forums and it works fine with higher version of SAP (ECC 6).

I used table SRGBTBREL, FM 'so_document_read_api1' and 'so_object_download' to download attachments from link 'Service for objects'.

However table SRGBTBREL does not exists in SAP 4.6c.

Please help me.

Thanks,

PD

1 ACCEPTED SOLUTION
Read only

gouravkumar64
Active Contributor
0 Likes
2,755

Hi,

Try like this.

Example:-In that tocde,go to system>user profile>own data .

then in parameter tab,add one line more as SD_SWU_ACTIVE & parameter value as 'X'.

then save.

Then In 4.6 c Hope it will works.

Thanks & Hope it helps.

Gourav.

Hi,

Try like this.

Example:-In that tocde,go to system>user profile>own data .

then in parameter tab,add one line more as SD_SWU_ACTIVE & parameter value as 'X'.

then save.

Then In 4.6 c Hope it will works.

Thanks & Hope it helps.

Gourav.

10 REPLIES 10
Read only

gouravkumar64
Active Contributor
0 Likes
2,756

Hi,

Try like this.

Example:-In that tocde,go to system>user profile>own data .

then in parameter tab,add one line more as SD_SWU_ACTIVE & parameter value as 'X'.

then save.

Then In 4.6 c Hope it will works.

Thanks & Hope it helps.

Gourav.

Read only

0 Likes
2,755

Hi,

That Parameter is NOT active in this system 4.6c.

I am not sure if my query was clear.

How can I download attachments from link 'Service for objects' for Work Orders in 4.6c version.

IN ECC, we had table SRGBTBREL from where I can find bnary link and download. THis table is not existing in 4.6c version.

Thanks,

Read only

0 Likes
2,755

Dear Gourav,

How does this help ? Your response is nowhere related to the question. It creates an impression of copy/pasting. Well , I found out some of your text here .

Please do not do this next time, it is highly discouraged.

Read only

0 Likes
2,755
Read only

0 Likes
2,755

Hi .

I did not know about this link .

I did not copy paste also!!!!

I asked one senior ABAPer..

After that I logon to my system,I go to my own data parameter tab & paste the image also.

My system is ECC 6.0.

He Told me to do that way.

I have no IDEA about this http://scn.sap.com/docs/DOC-26628

This link also in my 2 year career.(GOS ) & I never worked on GOS ALSO.

Hope u understand!!!

I hate also lies.

Please never take it anyway,Trust in Ur side

Thanks

Gourav.

Read only

0 Likes
2,755

FIne, not a problem, henceforth please try to answer from your point 🙂

Cheers

Kesav

Read only

0 Likes
2,755

Hi,

I always tried to give solution from My side & from my own system also.

Actual that senior have knowledge on 4.6C,that's why I asked him

last thing is many question which post in SCN,answer already given in past.

So text/answer sometimes same or may be not same. .

If u treat all,then This problem will happen!!  with many person.(copy paste ).

But for new problem i always tried with my 1st line in this reply.

Anyways,bye.

Cheers

Gourav.

Read only

0 Likes
2,755

Hi Kesava,

I did go through note 927407. I am little unclear about point b under 1. "In role B, the internal table LINKS also contains the searched MESSAGE objects."

Not able to understand wht Role B means or is been referenced to.Also not sure how to identify MESSAGE objects.

Also FM 'SREL_GET_NEXT_RELATIONS' does not work in ECC ? ET_LINks data that Class / Method 'CL_BINARY_RELATION=>READ_LINKS_OF_BINRELS' gives is different than in this FM.

Am i doing something wrong or is there something that I am missing.

Please guide me.

Read only

0 Likes
2,755

Hi,


Regarding the function SREL_GET_NEXT_RELATIONS  there are few notes which explains the correction.

Note 381068 - SREL_GET_NEXT_RELATIONS does not read all links

Note 358548 - Recurrence level is not reset

I have not used this fm and I cannot comment more on it, the MESSAGE is nothing but a business object instance created while attaching files.

In your case, you can pass the value to parameter OBJECT and RELATIONTYPE = 'ATTA'

as others are optional. For reference The SAP Fan Club Forums • View topic - Download Attachments from Equipments

I will update you if I find anything.

Read only

0 Likes
2,755

Hi,

Thanks

Above FM worked.

We need to pass Object Type, Object Key and it will give you link which is input for reading data from FM 'SO_DOCUMENT_READ_API1' and give you content of attachment.

OBJECT_CONTENT table will contain the data which cane be downloaded using GUI_DOWNLOAD or SO_OBJECT_DOWNLOAD.

Thanks again everyone.