BAPI_DOCUMENT_CHECKIN2
Hi all,
I am using the document BAPIs for creating a document (BAPI_DOCUMENT_CREATE) and checking in it (BAPI_DOCUMENT_CHECKIN2), and although I do not get any error message, the document seems not to be checked in... does someone know if this works, if I have to enter any special parameter or something or if I should use any other BAPI and how?
Thank you very much!
Araitz.
My R/3 is 4.6C
Hi Araitz!
Here are my Entries of calling this FM:
AENNR
DOCUMENTNUMBER <b>- 0000000000000010000011111</b>
DOCUMENTPART <b>- 000</b>
DOCUMENTTYPE <b>- TXT</b>
DOCUMENTVERSION <b>- 00</b>
HOSTNAME <b>- DEFAULT </b>
PF_FTP_DEST
PF_HTTP_DEST
REVLEVEL
STATUSEXTERN
STATUSINTERN <b>- AC </b>
STATUSLOG
When you want to checkin some additional files you must ad an entry to the table DOCUMENTFILES
My entries:
DELETEVALUE
DOCUMENTTYPE <b>- TXT</b>
DOCUMENTNUMBER <b>- 0000000000000010000011111</b>
DOCUMENTPART <b>- 000 </b>
DOCUMENTVERSION <b>- 00</b>
ORIGINALTYPE
SOURCEDATACARRIER
STORAGECATEGORY <b>- Z_Demo_STOR</b> //storagecategory
WSAPPLICATION <b>- WSA </b> //Workstationapplication. must be defined
DOCPATH
DOCFILE <b>- C:\test.txt</b>
STATUSINTERN
STATUSEXTERN
STATUSLOG
APPLICATION_ID <b>- 6D665AEF5F18F642859EC2578866A14D</b>
FILE_ID <b>- E1F7C69C8D650B4FB146CF71CE23A6E2</b>
DESCRIPTION
LANGUAGE <b>- EN</b>
CHECKEDIN
ACTIVE_VERSION
CREATED_AT <b>- 00000000000000</b>
CHANGED_AT <b>- 00000000000000</b>
CREATED_BY
CHANGED_BY
CONTENT_DESCRIPTION
I hope this will be helpfull for you!
Regards
Waldemar
Similar Messages
-
Upload Originals using "BAPI_DOCUMENT_CHECKIN2"
Hi Friends
Here is scenario.
This DIR is created for the reports that are created in SAP EHS which uses SAP DMS framework to store the reports for Specifications in SAP DMS
The Document Type is "SBR" and originals are stored in SAP_SYSTEM" as shown below.
Presently there is requirement of uploading files to this DIR. In screenshot you are seeing file uploaded. But we are creating DIR without original.
SO we are trying to use "BAPI_DOCUMENT_CHECKIN2" for this purpose.
We are facing issues as we are not able to upload the original. I am maintaining the following parameters in BAPI.
Am I missing here something. Also do we have to use the "BAPI_DOCUMENT_SETCOMMITMODE" to uplaod the original.
I tried but this is not helping. Can anyone help us.
With Warm Regards
Mangesh PandeHi Mangesh,
Seems, you missed Data Carrier. Please check with Data Carrier value.
And You may have to maintain the Data Carrier as "S1 (SAP SYSTEM)" and Workstation application config in DMS.
Please maintain your settings like below screen shot:
Workstation application config:
There is an SAP note for the same. Will send you the note once get it.
Hope it will resolve your issue.
Thanks,
Ravi -
DMS - BAPI - BAPI_DOCUMENT_CHECKIN2 - No upload to server
Hi,
I am having a problem with BAPI_DOCUMENT_CHECKIN2. I use it to checkin a document into an existing Document info record.
Example of how I am using the BAPI:
REPORT ztestdms .
DATA: it_files LIKE TABLE OF bapi_doc_files2 WITH HEADER LINE.
DATA: ln_return LIKE bapiret2.
it_files-docfile = 'C:tempDMS_Test.txt'.
it_files-wsapplication = 'TXT'.
APPEND it_files.
CALL FUNCTION 'BAPI_DOCUMENT_SETCOMMITMODE'
EXPORTING
auto_commit = 'X'.
CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
EXPORTING
documenttype = 'TEK'
documentnumber = '0000000000000010000000046'
documentpart = '000'
documentversion = '00'
* HOSTNAME = ' '
* STATUSINTERN = ' '
* STATUSEXTERN = ' '
statuslog = 'test mb'
* REVLEVEL = ' '
* AENNR = ' '
* PF_FTP_DEST = ' '
* PF_HTTP_DEST = ' '
IMPORTING
return = ln_return
TABLES
documentfiles = it_files
* COMPONENTS =
* DOCUMENTSTRUCTURE =
WRITE ln_return.
The BAPI links the file to the DIR but does not upload it, the lock symbol in transaction CV02N is still open and the file is still available at the client. A manual checkin completes the process but this is not wanted.
What I would like to happen is the file to be uploaded (actually checked in) and removed from the client.
Any help is welcome and thanks in advance.Sunil,
I am having the same problem and have already created an OSS note for SAP in which they reply:
<i>However, as you use Visual Basic, your query represents
a consulting issue rather than a problem based on a
software error in R/3 (as you said, the BAPI works in TA
se37). Therefore, I would ask you to contact our Remote
Consulting and to open a new call under component XX-RC.
Our consultants will assist you.
Nevertheless, you could also try to use CVAPI_DOC_CHECKIN
instead of BAPI_DOCUMENT_CHECKIN2, API-s are much more
flexible than BAPI-s.
Thank you for your understanding.!
</i>
I have just finished testing this other function but it has the same result. Below you will find an example program with this other function.
Function SAPCheckinExample()
Dim R3 As Object
Dim conn As Connection
Dim rfcFunc As SAPFunctionsOCX.Function
Dim PF_DOKAR As Object, PF_DOKNR As Object, PF_DOKTL As Object
Dim PF_DOKVR As Object, PSX_MESSAGE As Object, PT_FILES_X As Object
Dim PS_DOC_STATUS As Object
Dim blnResult As Boolean
Dim strMsg As String, strTtl As String, intStl As Integer, strTyp As String
'**** Change these constants as desired *************************************
Const strApplicationServer = "ur_server"
Const strSystemNumber = "XX"
Const strClient = "XXX"
Const strLanguage = "EN"
Const strDocTyp As String = "TEK"
Const strDocNum As String = "0000000000000010000000045"
Const strDocPrt As String = "000"
Const strDocVer As String = "06"
Const strFile As String = "C:CADDEV_RFC.TXT"
Const strApplication As String = "TXT"
Const strStorage As String = "DMS_C1_ST"
'**** Program extract *******************************************************
' Create a new connection object
Set R3 = CreateObject("SAP.Functions")
Set conn = R3.Connection
' Set the logon parameters
'R3.LogFileName = "C:WINDOWSDESKTOPSAPLOG.TXT"
conn.ApplicationServer = strApplicationServer
conn.SystemNumber = strSystemNumber
conn.Client = strClient
conn.Language = strLanguage
conn.AutoLogon = True
' Logon
If conn.Logon(0, False) <> True Then
strMsg = "Logon failure!"
strTtl = "Logon"
intStl = vbOKOnly & vbExclamation
MsgBox strMsg, intStl, strTtl
Exit Function
End If
' Create the checkin rfc in the connection object
Set rfcFunc = R3.Add("CVAPI_DOC_CHECKIN")
' Link the parameters from the rfc to the objects called in this function
With rfcFunc
Set PF_DOKAR = .Exports("PF_DOKAR")
Set PF_DOKNR = .Exports("PF_DOKNR")
Set PF_DOKTL = .Exports("PF_DOKTL")
Set PF_DOKVR = .Exports("PF_DOKVR")
Set PS_DOC_STATUS = .Exports("PS_DOC_STATUS")
Set PSX_MESSAGE = .Imports("PSX_MESSAGE")
Set PT_FILES_X = .Tables("PT_FILES_X")
End With
' Set the parameters for the rfc
PF_DOKAR.Value = strDocTyp ' Document Type
PF_DOKNR.Value = strDocNum ' Document number
PF_DOKTL.Value = strDocPrt ' Document Part
PF_DOKVR.Value = strDocVer ' Document Version
With PT_FILES_X
.Rows.Add
.Value(1, "PATHNAME") = strFile
.Value(1, "DAPPL") = strApplication
.Value(1, "STORAGE_CAT") = strStorage
End With
' Call the rfc
blnResult = rfcFunc.Call
Debug.Print blnResult ' True if the function is called succesfully
'Check if the rfc is executed correctly
Set PSX_MESSAGE = rfcFunc.Imports("PSX_MESSAGE")
Debug.Print PSX_MESSAGE("MSG_TYPE"); PSX_MESSAGE("MSG_ID"); PSX_MESSAGE("MSG_NO"); PSX_MESSAGE("MSG_TXT")
strTyp = PSX_MESSAGE("MSG_TYPE")
strMsg = PSX_MESSAGE("MSG_TXT")
Select Case strTyp
Case "S"
intStl = vbOKOnly + vbInformation
strTtl = "Info"
Case "I"
intStl = vbOKOnly + vbInformation
strTtl = "Info"
Case "E"
intStl = vbOKOnly + vbExclamation
strTtl = "Error!"
Case "W"
intStl = vbOKOnly + vbExclamation
strTtl = "Error!"
Case "A"
intStl = vbOKOnly + vbCritical
strTtl = "Critical error!"
End Select
conn.Logoff
If strMsg = "" Then
strMsg = "File checked in!"
strTtl = "Info"
intStl = vbOKOnly + vbInformation
MsgBox strMsg, intStl, strTtl
Else
MsgBox strMsg, intStl, strTtl
End If
End Function
Message was edited by: Maurice Brouwers -
BAPI_DOCUMENT_CHECKIN2 and saphttp/sapftp programs
We are building a Java interface to SAP DMS and using RFC BAPI calls as a transport layer.
One of the BAPIs we use is BAPI_DOCUMENT_CHECKIN2. In order for this BAPI to work properly
saphttp.exe and sapftp.exe has to be present on the calling machine. In this case it is Windows OS.
Are there similar files for other operating systems like Linux and UNIX? Are this file redistributable?
Thanks in advance,
IgorI'm also having the same issue with BAPI_DOCUMENT_CHECKOUTVIEW2 in identical circumstances except we're using a C interface. Does anyone know the answer to this?
Thanks,
Jeff -
Invoking BAPI_DOCUMENT_CHECKIN2 from WebDynpro doesn't work
Hello everyone,
I've coded this:
METHOD check_in_attachments.
CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
EXPORTING: documenttype = dokar
documentnumber = doknr
documentpart = doktl
documentversion = dokvr
PF_HTTP_DEST = 'SAPHTTP'
PF_FTP_DEST = 'SAPFTP'
IMPORTING: return = return
TABLES: documentfiles = documentfiles.
IF return-type CA 'EA'.
ROLLBACK WORK.
ELSE.
COMMIT WORK.
ENDIF.
ENDMETHOD.
and I'm calling this method from my webdynpro for ABAP program but I'm getting the error:
Error while checking in and storing: c:\myfile.txt
When I invoke the same method from a report it works all right.
The destinations SAPHTTP and SAPFTP are working okay (report RSHTTP05 ).
Could any one help me on this?
Thank you.Yes,
but it all works if the code above is invoked within a report.
There must be something strange when invoked from WebDynpro. So I guess it's a WebDypnro related problem.
The destinations SAPHTTP and SAPFTP are created correctly (and test is successful). -
'BAPI_DOCUMENT_CHECKIN2' Parameters input
Hi All,
Can any one help me out in filling up with the parameters to be filled for executing the RFM of ERP on XI system
CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
EXPORTING
DOCUMENTTYPE = (Given)
DOCUMENTNUMBER = (Given)
DOCUMENTPART = (Given)
DOCUMENTVERSION = (Given)
HOSTNAME = ' ' (Doubt wat should be given which host ..erp ?/)
STATUSINTERN = ' '
STATUSEXTERN = ' '
STATUSLOG = ' '
REVLEVEL = ' '
AENNR = ' '
PF_HTTP_DEST = ' ' (Doubt wat to be given ??)
PF_FTP_DEST = ' ' (Doubt wat to be given ??)
IMPORTING
RETURN =
TABLES
DOCUMENTFILES =
COMPONENTS =
DOCUMENTSTRUCTURE =
Kindly asnwer particulary to those paramerts doubt wat to be given ..
thx in advance
regards
SrinivasProblem solved.Need to pass doc path along with other parameters
-
BAPI_DOCUMENT_CHECKIN2-Status does not allow you to change certain data
Hi Gurus,
I am uploading the DIR attached files for the Documents in PLM. We have a custom program written to upload the attached files. When I tried to upload the file I am getting the BAPI Return error as "Status does not allow you to change certain data". The status of all the documents is "RL"
File format is
Doc type Document No Rev File Name
JPS 0021581PS, X, /in/PLM/JAPAN/Files/0021581PS.xls
Please help me I need to upload the data.
Thanks,
DeepthiCheck the status network for your doc type in config. You may find that the current status may not allow you to make changes. You may need to change the current status to another status before you can make the changes you would like.
The config settings will tell you the status you may set in order to make your changes, if they are allowed. -
BAPI_DOCUMENT_CHECKIN2 - Can U tell me how to use it ???
Hy everybody.
I´m trying to checkin a PDF-File to a existing DIS and I´m trying to do so by using BAPI_DOCUMENT_CHANGE2.
But it doesn´t work. I debugged the ABAP but I couldn´t find the problem.
So here is my coding, maybe someone can help me:
REPORT test_ml .
DATA: lt_files LIKE bapi_doc_files2 OCCURS 0 WITH HEADER LINE.
DATA: i_docdata LIKE bapi_doc_draw2 OCCURS 0 WITH HEADER LINE.
DATA: i_docdatax LIKE bapi_doc_drawx2 OCCURS 0 WITH HEADER LINE.
DATA: ls_return LIKE bapiret2.
DATA: i_originidmax TYPE c.
i_originidmax = '0'.
CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'
EXPORTING
documenttype = 'SED'
documentnumber = '0000000000000000001011484'
documentpart = '000'
documentversion = '79'
GETOBJECTLINKS = 'X'
GETCOMPONENTS = ' '
GETSTATUSLOG = 'X'
GETLONGTEXTS = ' '
getactivefiles = 'X'
getdocdescriptions = 'X'
getdocfiles = 'X'
GETCLASSIFICATION = ' '
GETSTRUCTURE = 'X'
GETWHEREUSED = ' '
HOSTNAME = ' '
IMPORTING
documentdata = i_docdata
RETURN =
TABLES
OBJECTLINKS =
DOCUMENTDESCRIPTIONS =
LONGTEXTS =
STATUSLOG =
documentfiles = lt_files
COMPONENTS =
CHARACTERISTICVALUES =
CLASSALLOCATIONS =
DOCUMENTSTRUCTURE =
WHEREUSEDLIST =
there are already some files connected and checked in to the DIS.
LOOP AT lt_files.
IF lt_files-originaltype > i_originidmax.
i_originidmax = lt_files-originaltype.
ENDIF.
ENDLOOP.
i_originidmax = i_originidmax + 1.
lt_files-documenttype = 'SED'.
lt_files-documentnumber = '0000000000000000001011484'.
lt_files-documentpart = '000'.
lt_files-documentversion = '79'.
lt_files-storagecategory = 'ZPLM'.
lt_files-wsapplication = 'PDF'.
lt_files-docfile = 'S:TEST.PDF'.
lt_files-language = 'D'.
lt_files-active_version = 'X'.
lt_files-originaltype = i_originidmax.
CONCATENATE sy-datum sy-uzeit INTO lt_files-created_at.
CONCATENATE sy-datum sy-uzeit INTO lt_files-changed_at.
lt_files-created_by = sy-uname.
lt_files-changed_by = sy-uname.
lt_files-application_id = ' '.
lt_files-file_id = ' '.
APPEND lt_files.
CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'
EXPORTING
documenttype = 'SED'
documentnumber = '0000000000000000001011484'
documentpart = '000'
documentversion = '79'
documentdata = i_docdata
documentdatax = i_docdatax
HOSTNAME = 'DV-429'
DOCBOMCHANGENUMBER =
DOCBOMVALIDFROM =
DOCBOMREVISIONLEVEL =
SENDCOMPLETEBOM = ' '
PF_FTP_DEST = ' '
pf_http_dest = 'SAPHTTP_EF438'
CAD_MODE = ' '
IMPORTING
return = ls_return
TABLES
CHARACTERISTICVALUES =
CLASSALLOCATIONS =
DOCUMENTDESCRIPTIONS =
OBJECTLINKS =
DOCUMENTSTRUCTURE =
documentfiles = lt_files
LONGTEXTS =
COMPONENTS =
IF ls_return-type CA 'EA'.
ROLLBACK WORK.
MESSAGE ID '26' TYPE 'I' NUMBER '000'
WITH ls_return-message.
ENDIF.
commit work.
That´s it. I dont´t know exactly what to write into the parameters : documentdatax
and lt_files
Thanx for your comments and have a nice day
Markussuggest reading Sun toturail in detail..
It is very good..
peterx
Pivotonic Inc. http://www.pivotonic.com
1. java IDE tool : JawaBeginer
2. java jar tool : JavaJar -
Problems checking in files to DMS
Hi DMS gurus,
I have some questions regarding the checking in files to SAP DMS. Any help would be very much appreciated.
1. Ideally, I need to check in a binary table with the file content directly to DMS. Is it possible? I am trying to use CVAPI_DOC_CHECKIN with PF_CONTENT_PROVIDE = 'TBL', but it doesn't work because there is no path for the file name in PT_FILES_X since I do not have a file, just a binary table.
2. How to automatically delete the file from the source after it's been checked in? The checkbox "Delete file after check-in" is marked in configuration for WS application, but the source file is not getting deleted.
3. How to check in the file from Application server using BAPI_DOCUMENT_CHECKIN2? The HOSTNAME requires the network address, but how to configure it. In SPRO I found network addresses for Data carriers. Not sure if it's the place.
Thank youHi DMS gurus,
I have some questions regarding the checking in files to SAP DMS. Any help would be very much appreciated.
1. Ideally, I need to check in a binary table with the file content directly to DMS. Is it possible? I am trying to use CVAPI_DOC_CHECKIN with PF_CONTENT_PROVIDE = 'TBL', but it doesn't work because there is no path for the file name in PT_FILES_X since I do not have a file, just a binary table.
2. How to automatically delete the file from the source after it's been checked in? The checkbox "Delete file after check-in" is marked in configuration for WS application, but the source file is not getting deleted.
3. How to check in the file from Application server using BAPI_DOCUMENT_CHECKIN2? The HOSTNAME requires the network address, but how to configure it. In SPRO I found network addresses for Data carriers. Not sure if it's the place.
Thank you -
Hi friends,
I try to upload a pdf file to the DMS using BAPI_DOCUMENT_CHECKIN2 but it always gave an error " Error while checking in and storing" ,
It is working fine the XML and XLS file.
Can anyone help meHi Please look above for the error mesage. I already mention it.
ls_doc_files-originaltype = k_1.
ls_doc_files-storagecategory = k_z_g340.
ls_doc_files-wsapplication = k_pdf.
ls_doc_files-docfile = ps_file_table.
ls_doc_files-language = k_e.
ls_doc_files-description = text-210.
ls_doc_files-active_version = k_x.
ls_doc_files-checkedin = k_x.
APPEND ls_doc_files TO li_doc_files.
following values i m send ing. -
Document Chekc in through BAPI Error
Dear all,
I am using bapi BAPI_DOCUMENT_CHECKIN2 to Check in Dcument into content server but i am getting error as
Error while checking in and storing: C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\DD.doc
message no is 253
Please guide me.
thanx
harish.hi,
i think u did not configure the defualt as Front end computer.
check, data carrier type....should be front end computer..
and then run Bapi
Benakaraj -
Create a Document with an original file stored on application server
Hello,
I start with document managment system : i am able to create new document (CV01N) manually, add a local file and check-in this file.
Now we need to store file which are stored on the SAP Application Server.
Firstly, in the GUI of transaction CV01N, i don't know how to browse file on application server. All files i can't attach as original, are files i can access from my computer.
Is it possible to access also on application server files ?
Moreover, i have to define function module which have to
- Create a document (DMS)
- Attach an orginial file which is stored on application server
- Check-in the file
This function module will be called from a web application
I define this kind of function and run it correctly with a local file (stored on my computer) : i call BAPI "BAPI_DOCUMENT_CREATE2" and "BAPI_DOCUMENT_CHECKIN2"
But i don't how to do with a file stored on application server. I see also note 504692 and try a program like ZZUZTEST_TEST_CHECKIN which use FM CVAPI_DOC_CHECKIN but it return an error Error uploading E:\usr\sap\TD1\DVEBMGS00\data\FACTURE.txt" (this path and file exist on application server and is really the file i want to checkin)
Please could you confirm what i search, is possible or not.
If possible, could help me with some explanations and guidelines and perhaps a sample ?
Thank you very much.
Regards,
Eric
The function used
FUNCTION Z_TEST_CHECKIN.
Checkin the first original of a document info record *
from the application server and/or in the background *
data : w_host like BAPI_DOC_AUX-HOSTNAME.
data: lf_line(255).
data: ls_draw like DRAW,
ls_message_cvapi like messages,
lt_files_cvapi type standard table of CVAPI_DOC_FILE,
lt_files_cvapi_header like CVAPI_DOC_FILE.
data: lt_originals LIKE cvapi_doc_file OCCURS 0 WITH HEADER LINE,
vo_originals LIKE cvapi_doc_file OCCURS 0 WITH HEADER LINE.
ls_draw-dokar = 'ZFT'.
ls_Draw-doknr = '0000000000000004500000032'.
ls_Draw-dokvr = '00'.
ls_Draw-doktl = '000'.
Read Originals contained in the document info record
CALL FUNCTION 'CVAPI_DOC_GETDETAIL'
EXPORTING
pf_batchmode = 'X'
pf_hostname = ' '
pf_dokar = ls_draw-dokar
pf_doknr = ls_draw-doknr
pf_dokvr = ls_draw-dokvr
pf_doktl = ls_draw-doktl
pf_active_files = 'X'
IMPORTING
psx_draw = ls_draw
TABLES
pt_files = vo_originals
EXCEPTIONS
not_found = 1
no_auth = 2
error = 3
OTHERS = 4.
IF sy-subrc <> 0.
WRITE 'Error returned by CVAPI_DOC_GETDETAIL'. "#EC NOTEXT
EXIT.
ENDIF.
Check if we can really access the file from the application server
read table vo_originals index 1.
open dataset vo_originals-filename for input in text mode ENCODING DEFAULT.
if not sy-subrc is initial.
message e500(26) with vo_originals-filename 'not found'.
endif.
read dataset vo_originals-filename into lf_line.
if not sy-subrc is initial.
message e500(26) with vo_originals-filename 'read error'.
endif.
lt_originals = vo_originals.
lt_originals-STORAGE_CAT = 'SAP-SYSTEM'.
append lt_originals.
w_host = sy-host.
CALL FUNCTION 'CVAPI_DOC_CHECKIN'
EXPORTING
PF_DOKAR = ls_draw-dokar
PF_DOKNR = ls_draw-doknr
PF_DOKVR = ls_draw-dokvr
PF_DOKTL = ls_draw-doktl
PS_DOC_STATUS =
PF_FTP_DEST = 'SAPFTPA'
PF_HTTP_DEST = 'SAPHTTPA'
*PF_HOSTNAME = w_host
PS_API_CONTROL =
PF_REPLACE = ' '
PF_CONTENT_PROVIDE = 'SRV'
IMPORTING
PSX_MESSAGE = ls_message_cvapi
TABLES
PT_FILES_X = lt_originals
PT_COMP_X =
PT_CONTENT =
IF ls_message_cvapi-msg_type CA 'EA'.
ROLLBACK WORK.
MESSAGE ID '26' TYPE 'I' NUMBER '000'
WITH ls_message_cvapi-msg_txt.
ELSE.
COMMIT WORK and wait.
ENDIF.
ENDFUNCTION.This is a bit tricky. I spent lots of hours about this .
You have to set PF_HOSTNAME with your name of your AS and gives the path to the file on the server.
You wrote
*PF_HOSTNAME = w_host
But beware: if you have more thän one AS you have to fix one AS for upload or you have to find the servers name of the file. A better way can be to share one folder by each AS.
You also have to decide between HTTP or FTP.
You wrote:
PF_FTP_DEST = 'SAPFTPA'
PF_HTTP_DEST = 'SAPHTTPA'
You must define only one ! Then you have to check your settings in SM59 about working right.
Pls rate, if this was helpful.
Regards,
Markus -
Hi,
I want to check in a document from the sap applicationserver (unix).
I use the BAPI's:
- BAPI_DOCUMENT_CREATE2
- BAPI_DOCUMENT_CHECKIN2
But the BAPI's chooses everytime the windows frontend.
Any ideas?
Kind regards
BerndHi Bernd,
taking <i>any</i> idea into account:
Create a common path location, where both - application server and local PC - have access.
I know, that's only the last way out of this problem.
Regards,
Christian -
E26 253 Error while check in only while running FM
Dear Experts,
I am trying to run Function module BAPI_DOCUMENT_CHECKIN2, which is returning with the error message E 26 253 Error while check in and storing: D:\ XXX (Path) \XXX (file name). I have entered the following required input.
DOCUMENT DATA:
DOCUMENTTYPE :
DOCUMENTNUMBER :
DOCUMENTPART :
DOCUMENTVERSION :
PF_HTTP_DEST : SAPHTTP
PF_FTP_DEST : SAPFTP
DOCUMENT FILES:
DOCUMENTTYPE
DOCUMENTNUMBER
DOCUMENTPART
DOCUMENTVERSION
STORAGECATEGORY : DMS_C1_ST
WSAPPLICATION : PDF
DOCPATH D:\Path name
DOCFILE : File Name
Surprisingly I can check in the document in the transaction(CV01/02), it is not giving any error message.
I have tried using the other Function module, BAPI_DOCUMENT_CREATE2. I can create the document, but when I try to Check-In it gives me a error message.
I have checked the RFC connection and it is working fine. There is no authorisation issue involved as well.
I hope I have explained myself clearly.
Thanks and Regards
Vinayhi,
Please check your entry once again,
Allocate document data
lf_doctype = 'DRW'.
lf_docnumber = '4711'.
lf_docversion = '000'.
lf_docpart = '00'.
lf_status = 'RE'. note: u are not enterd, status i guess, while u chek in the status should be changed from old to new.. try out by entring status,
Error occurred ??
IF ls_return-type CA 'EA'.
ROLLBACK WORK.
MESSAGE ID '26' TYPE 'I' NUMBER '000'
WITH ls_return-message.
Benkaraja ES, -
Function Module to check in a document
Hi everybody,
I'm currently working on some document management. My purpose is to implement the modification of documents.
I found out some BAPI such as BAPI_DOCUMENT_CHANGE2 but I'm having some troubles when I want to modify the status.
Using cv02n, it seems like checking in the original makes my BAPI works fine. I found some functions for that such as BAPI_DOCUMENT_CHECKIN2 but it raises the message error E 26 253 : Error while checking in and storing:
xxx\xxx\xxx.xxx
I checked in OACT transaction and my storage category is assigned.
Does anybody have ever faced this problem? Maybe there is an easier way to modify documents using fonctions?
Best regards,
Sebastienhi,
Please check your entry once again,
Allocate document data
lf_doctype = 'DRW'.
lf_docnumber = '4711'.
lf_docversion = '000'.
lf_docpart = '00'.
lf_status = 'RE'. note: u are not enterd, status i guess, while u chek in the status should be changed from old to new.. try out by entring status,
Error occurred ??
IF ls_return-type CA 'EA'.
ROLLBACK WORK.
MESSAGE ID '26' TYPE 'I' NUMBER '000'
WITH ls_return-message.
Also,
Note: in DC10, at define status, u select field, No entry, and run Bapi.
Benakaraj
??P
Maybe you are looking for
-
Posting with trans.type 200 not possible
Dear Gurus, when I try to scrap the asset, I am getting an error as below Posting with trans.type 200 not possible (No acquisition posted) Message no. AA324 Diagnosis Transaction type 200 belongs to a transaction type group, which can only be used t
-
itunes update will not download after installing lion... says disc may have been damaged
-
Alright, first and foremost is the fact that the AC adapter plug no longer works. I plug it into the wall, into my computer, nothing. I've tried several other outlets and several other buildings and nothing. I can't charge my battery. I'm also a stud
-
How can I authenticate and authorize with Web Service on ESB ?
Hello, I want to authenticate and authorize client with Web Service published by HTTP/SOAP BC. Simply if it is an Web Service as J2EE application, I will use Basic Authentication with JAX-RPC and Realm. But I think that Web Service published by HTTP/
-
Hi there – I need help with this problem. I'm not a Flash person but | have collated various bits of tutorials from different forums and have 90% what I need – but it's just not there. I don't want anything fancy – just 780x250 banner that rotates ge