cancel
Showing results for 
Search instead for 
Did you mean: 

ARCHIV_DISPLAY_META & ARCHIV_DELETE_META for BSP?!

Former Member
0 Kudos

Hi Experts,

Currently I am developing a BSP attachment page which allow user to upload, delete and display attachment. I am using ARCHIV_DISPLAY_META & ARCHIV_DELETE_META to display and delete an ArchiveLink record. I found that these functions are not working for BSP but working fine in an ABAP program. Am I using the correct function? Is there any other function you can suggest?

P/s: Points will be rewarded for useful answer

Accepted Solutions (1)

Accepted Solutions (1)

raja_thangamani
Active Contributor
0 Kudos

Look at the below thread for displaying Archive links..I will be helpful.

<i>*Reward each useful answer</i>

Raja T

Former Member
0 Kudos

Hi Raja,

Thanks for the reply. In fact, I have seen these thread before. I just wonder if there any FM which does it all. Now, I am able to get the url but how to show it using javascript?

My url looks something like this, SAPR3://SAPR3CMS/get/300/Z1/DC76FCD23A6230F195750017A4ABB4B7/

raja_thangamani
Active Contributor
0 Kudos

You can show as follows:

< script t-ype="text/javascript" >  " Remove the - in type
<!--
window.open("<%= your_url %>","win1","menubar=no,resizable=yes").focus();
//-->
</script>

<i>*Reward each useful answer</i>

Raja T

Former Member
0 Kudos

Hi Raja,

Thanks for the script. I tried to change the url to SAPR3://SAPR3CMS/get/300/Z1/DC76FCD23A6230F195750017A4ABB4B7/ but the ArchiveLink object is not showing. If I change the url to something like "myPage.htm" then it is working.

What I need is to open a ArchiveLink object with appropriate software. Example, If my url is a JPG object then the script will open a picture viewer and If it is a DOC object then it will open the object with MSWord.

raja_thangamani
Active Contributor
0 Kudos

How did you get this url? Is it valid one?

Raja T

Former Member
0 Kudos

I am using below method:

CALL FUNCTION 'SCMS_AO_URL_READ'

EXPORTING

mandt = sy-mandt

arc_id = w_toav0-archiv_id

doc_id = w_toav0-arc_doc_id

loc_info = space

IMPORTING

url = l_url

EXCEPTIONS

error = 1

OTHERS = 2.

raja_thangamani
Active Contributor
0 Kudos

Try to use FM 'WEB_BDS_BUILD_URL_FOR_AL' OR ARCHIVELINK_URL_GENERATE.

<i>*Reward each useful answer</i>

Raja T

raja_thangamani
Active Contributor
0 Kudos

Look at below thread..it will help you definitely...

Raja T

Former Member
0 Kudos

Hi Raja,

Again, thanks for the prompt reply. Let me just go through the thread provided and get back to you shortly!

Former Member
0 Kudos

Hi Raja,

I followed thread and I managed to get another type of URL which I think should be the correct URL. But I am now have another problem. When I execute the URL below in IE I got this message return to me. By right I should get my document shown? Any idea?

<a href="http://SAPRCDEV01.rgmi.idc/sap/bc/contentserver/300?get&pVersion=0046&contRep=Z1&docId=DC76FCD23A6230F195750017A4ABB4B7">http://SAPRCDEV01.rgmi.idc/sap/bc/contentserver/300?get&pVersion=0046&contRep=Z1&docId=DC76FCD23A6230F195750017A4ABB4B7</a>

<i>Signature Required: ContRep. Z1, DocId DC76FCD23A6230F195750017A4ABB4B7, DocProt rcud, AccessMode r</i>

Answers (1)

Answers (1)

Former Member
0 Kudos

Anyone can help?

I am getting below message everytime when I want to show my archive object url.

<i>Signature Required: ContRep. Z1, DocId DC7ECC38CFC1C9F195750017A4ABB4B7, DocProt rcud, AccessMode r</i>

Former Member
0 Kudos

Try to use this function 'ARCHIV_DELETE_META' and set the flag into 2.

CALL FUNCTION 'ARCHIV_DELETE_META'

EXPORTING

AR_OBJECT = DOC_TYP

DELETE_FLAG = DEL_FLAG

OBJECT_ID = OBJC_ID

SAP_OBJECT = OBJECT

IMPORTING

ALL_CONNECTIONS_DELETED = OK_STATUS

EXCEPTIONS

ERROR_CONNECTIONTABLE = 01

ERROR_PARAMETER = 02.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE 'W' NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

EXIT.

ENDIF.