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

View documents from portal

Former Member
0 Likes
642

Hello All,

The application i'm developing requires viewing documents linked to a SAP object from portal. I am able to create/checkin documents from portal ( using 'BAPI_DOCUMENT_CREATE2' ) to an object, but I have problem display/ viewing the document.

EX: When a PO is displayed in portal, I should be able to view the documents attached to it if I click on the document number (created thru 'BAPI_DOCUMENT_CREATE2).

Any kind of help is highly appreciated.

Thanks,

Hello All,

The application i'm developing requires viewing documents linked to a SAP object from portal. I am able to create/checkin documents from portal ( using 'BAPI_DOCUMENT_CREATE2' ) to an object, but I have problem display/ viewing the document.

EX: When a PO is displayed in portal, I should be able to view the documents attached to it if I click on the document number (created thru 'BAPI_DOCUMENT_CREATE2).

Any kind of help is highly appreciated.

Thanks,

3 REPLIES 3
Read only

athavanraja
Active Contributor
0 Likes
587

call the follwoing FM to get the content 'CV120_KPRO_CHECKOUT_TO_TABLE' and then use the returned content to display the document (its the document content in xstring format which you can set it as repoonse for the page)

Raja

Read only

0 Likes
587

Thanks a ton Raja,

I'm able to get the file data in vinary using file ID, but what is the 'SDOK_CLASS' in structure 'SDOKOBJECT'?

Read only

0 Likes
587

SDOK_CLASS stands for Document Class & the possible values can be found by doing a look up for the Table SDOKIOCL in SE16N.

~Suresh