cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI used to fetch / display Documents from Repository

Former Member
0 Kudos

Hi

Please let me know the BAPI used to fetch / dispaly Data from DMS Repository.

Also, do let me know the inputs required.

I have tried - BAPI_DOCUMENT_CHECKOUTVIEW (but while executing is always displays - 300

The Knowledge Provider is using document type LGL as a storage system)

Inputs given -

Documenttype - LGL

Documentnumber - 10000000003

DocumentPart - 000

DocumentVersion - 00

Originaltype - 0 (im not sure if zero is correct)

Getstructure - 1

Original Path - blank

HostName - blank

Get Header - X

Thanks

Prashant

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Thanks Arun.

Able to download file using these BAPI's from SE37.

One query - It is downloading files in name of user (original files name not getting downloaded)

Eg:, My file name was demo.docx but is downloaded as myusername.doc

Further, i hope these bapi can be called via RFC (using Java Code).

Thanks Again.

Regards

HI Arun

Further to my earlier Mail, I'm not able to upload the same using Java Code, getting the error -

Type ::::::::E

Message ::::::::File d:\dms\z_IPI_PRASHANT01.doc cannot be created

While Checking the Trace in SM59, got the following error -

        • Trace file opened at 20111010 142232 India Standard Time, SAP-REL 701,0,134

======> cannot open SAPGUI

ABAP Programm: SAPLSYSE (Transaction: )

User: IPI_PRASHANT (Client: 220)

Destination: SAPFTP (handle: 3, , )

SERVER> RFC Server Session (handle: 1, 43220900, {5D1DF3E0-ACBD-F11F-8EA0-00A0D1

SERVER> Caller host:

SERVER> Caller transaction code: (Caller Program: java)

SERVER> Called function module: RFC_START_PROGRAM

Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1742

FUNCTION: 'exec_sapgui'

cannot open SAPGUI

PROG =sapftp erpdev sapgw00 43232164 IDX=4

Please helpe in getting this sorted out.

I have been tring the same now for more than a month.

Regards

Edited by: Prashantroy on Oct 10, 2011 2:37 PM