Bapi_document_create2 problem
Hi,
i face with a problem while using the bapi bapi_document_create2.
it adds the file path like '
Dogan\Main\Standards\0010415--P.pdf'
but i cannot open the file in cv02n.
And also it adds the material master elements but the description is not seen and when looked at with cv02n for material master, it asks me to 'Do you want to delete the object links? ', why i get this error?
The file is not on desktop, it is in another server and its path like that:
Dogan\Main\Standards\0010415--P.pdf'
Here is my sample code(i am trying to make it run):
(itabb is the internal table that i upload the file, tab-delimeted txt file.)
data:
lt_drad like standard table of BAPI_DOC_DRAD with header line,
data like BAPI_DOC_DRAW2,
dd like standard table of BAPI_DOC_DRAT with header line,
dfiles like standard table of BAPI_DOC_FILES2 with header line,
return like BAPIRET2.
clear:lt_drad,lt_drad[],data,dd,dfiles,dfiles[].
LOOP AT itabb.
CLEAR lt_drad.
lt_drad-objecttype = 'MARA'.
lt_drad-objectkey = itabb-matnr.
APPEND lt_drad.
data-DOCUMENTTYPE = itabb-dokar.
data-DOCUMENTNUMBER = itabb-doknr.
data-DOCUMENTVERSION = itabb-dokvr.
data-DOCUMENTPART = itabb-doktl.
data-DESCRIPTION = itabb-dktxt.
data-WSAPPLICATION1 = itabb-dappl.
data-DOCFILE2 = itabb-filep.
data-DATACARRIER2 = itabb-dttrg.
data-username = itabb-dwnam.
data-LABORATORY = itabb-labor.
dfiles-storagecategory = 'SAP-SYSTEM'.
dfiles-docfile = itabb-filep.
dfiles-wsapplication = itabb-dappl.
APPEND dfiles.
ENDLOOP.
sort:dfiles.
delete adjacent duplicates from dfiles.
data: dtype like BAPI_DOC_AUX-DOCTYPE,
dnumber like BAPI_DOC_AUX-DOCNUMBER.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
DOCUMENTDATA = data
HOSTNAME =
DOCBOMCHANGENUMBER =
DOCBOMVALIDFROM =
DOCBOMREVISIONLEVEL =
CAD_MODE = ' '
PF_FTP_DEST = ' '
PF_HTTP_DEST = ' '
DEFAULTCLASS = 'X'
IMPORTING
DOCUMENTTYPE = dtype
DOCUMENTNUMBER = dnumber
DOCUMENTPART =
DOCUMENTVERSION =
RETURN = return
TABLES
CHARACTERISTICVALUES =
CLASSALLOCATIONS =
DOCUMENTDESCRIPTIONS = dd
OBJECTLINKS = lt_drad
DOCUMENTSTRUCTURE =
DOCUMENTFILES = dfiles
LONGTEXTS =
COMPONENTS =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
endform.
Hai....
As per the source code, i have checked there is no issue with that but check entry for
Dogan\Main\Standards\0010415--P.pdf' "
remove this line
data-DOCFILE2 = itabb-filep.
if required remove data-DATACARRIER2 = itabb-dttrg
add this line
dfiles-docfile = '
Dogan\Main\Standards\0010415--P.pdf'
if this not works, just revert me back.
Cheers
KHS
Similar Messages
-
BAPI_DOCUMENT_CREATE2 problem with copying document-version
Hi experts!
I want to copy Documents from one Sap-System to another via RFC.
So I read the documents in the source-system with 'BAPI_DOCUMENT_GETDETAIL2' via RFC. then I want to insert the documents received in the target-system with BAPI_DOCUMENT_CREATE2.
The result is that from a document all part-documents are been copied, but only one (the first) version of a document-part.
my coding:
... for reading the documents
CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'
DESTINATION p_rfcdst
EXPORTING
documenttype = gs_draw-dokar
documentnumber = gs_draw-doknr
documentpart = gs_draw-doktl
documentversion = gs_draw-dokvr
getobjectlinks = 'X'
getcomponents = 'X'
getstatuslog = 'X'
getlongtexts = 'X'
getactivefiles = 'X'
getdocdescriptions = 'X'
getdocfiles = 'X'
getclassification = 'X'
getstructure = 'X'
getwhereused = 'X'
HOSTNAME = ' '
IMPORTING
documentdata = gs_doc_data
return = gs_return_get
TABLES
objectlinks = gt_obj_links
documentdescriptions = gt_doc_desc
longtexts = gt_long_texts
statuslog = gt_status_log
documentfiles = gt_doc_files
components = gt_comp
characteristicvalues = gt_char_val
classallocations = gt_class_alloc
documentstructure = gt_doc_struc
whereusedlist = gt_where_used.
my coding:
... for creating the documents
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = gs_doc_data
IMPORTING
documenttype = gs_create-dokar
documentnumber = gs_create-doknr
documentpart = gs_create-doktl
documentversion = gs_create-dokvr
return = gs_return_create
TABLES
characteristicvalues = gt_char_val
classallocations = gt_class_alloc
documentdescriptions = gt_doc_desc
objectlinks = gt_obj_links
documentstructure = gt_doc_struc
documentfiles = gt_doc_files
longtexts = gt_long_texts
components = gt_comp.
Result:
eg. - Source Document
Document AUF/N4711/xxx/xx
Part Version Status Description
010 00 FR Cond.-010-00
011 00 FR Cond.-011-00
011 01 FR Vers-011-01
011 02 FR Vers-011-02
012 00 FR Cond.-012-00
Target Document
Document AUF/N4711/xxx/xx
Part Version Status Description
010 00 FR Cond.-010-00
011 00 FR Cond.-011-00
012 00 FR Cond.-012-00
Is there only the possibility to create one version of a document with BAPI_DOCUMENT_CREATE2 ?
Thanks in advance for helping me!
FranzHi Avinash,
a
Thanks for the reply.
I am able to create document number in IDES system. I am getting error development system while creating document number with the FM. Configuration settings and the test data are same for both IDES and Dev. system.
What could be the problem and how to rectify it.
Regards
SP Raj -
Problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2
Hi experts,
I'm getting problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2.
I have a scenario where is defined the document type ZC1, document part 200, authorization group 0002 and for all of these documents the storage category "Cofre DMS1". And the status which demands the storage category is 'FR'.
I've been fullfiling the BAPI_DOCUMENT_CREATE2 in this way:
"Tables
data: it_doc like bapi_doc_draw2,
it_return like bapiret2,
it_files like bapi_doc_files2 occurs 0 with header line,
it_objs like bapi_doc_drad occurs 0 with header line.
"Variables
data: wl_doctype like bapi_doc_draw2-documenttype,
wl_docnumber like bapi_doc_draw2-documentnumber,
wl_docpart like bapi_doc_draw2-documentpart,
wl_docversion like bapi_doc_draw2-documentversion.
it_doc-documenttype = 'ZC1'.
it_doc-documentpart = '200'.
it_doc-documentversion = '00'.
it_doc-description = 'Test of documents creation via BAPI'.
it_doc-username = sy-uname.
it_doc-statusextern = 'FR'.
it_doc-authoritygroup = '0002'.
refresh it_files[].
clear it_files.
it_files-originaltype = '1'.
it_files-storagecategory = 'Cofre DMS1'.
it_files-wsapplication = 'PDF'.
it_files-docfile = 'c:\110307.pdf'.
it_files-description = 'Test file'.
append it_files.
refresh it_objs[].
clear it_objs.
it_objs-objecttype = 'EKPO'.
it_objs-objectkey = '47000497600010'.
append it_objs.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = it_doc
IMPORTING
documenttype = wl_doctype
documentnumber = wl_docnumber
documentpart = wl_docpart
documentversion = wl_docversion
return = it_return
TABLES
objectlinks = it_objs
documentfiles = it_files.
After execute the BAPI process I got the following error:
E26 087 - Data carrier COFRE DMS1 not defined
Does anybody have a sugestion to help me, please?
Thks
David
Edited by: David Tsutsui on Mar 18, 2010 10:52 AMPlease refer to this thread, it tells why you need a data carrier you can also configure the same in DC20.
Data Carriers for Storage the Originals of DMS -
File upload problem - BAPI_DOCUMENT_CREATE2
Hi All,
I am trying to upload a new document using the below code, but no is generated, but file is missing
REPORT ZSBN_DMS_T1
DATA: LS_DOC LIKE BAPI_DOC_DRAW2,
LS_RETURN LIKE BAPIRET2.
DATA: LF_DOCTYPE LIKE BAPI_DOC_DRAW2-DOCUMENTTYPE,
LF_DOCNUMBER LIKE BAPI_DOC_DRAW2-DOCUMENTNUMBER,
LF_DOCPART LIKE BAPI_DOC_DRAW2-DOCUMENTTYPE,
LF_DOCVERSION LIKE BAPI_DOC_AUX-DOCVERSION.
DATA: LT_FILES LIKE BAPI_DOC_FILES2 OCCURS 0 WITH HEADER LINE,
LT_DRAT LIKE BAPI_DOC_DRAT OCCURS 0 WITH HEADER LINE,
LT_DRAD LIKE BAPI_DOC_DRAD OCCURS 0 WITH HEADER LINE.
LS_DOC-DOCUMENTTYPE = 'CPE'.
LS_DOC-DOCUMENTVERSION = '01'.
LS_DOC-DOCUMENTPART = '001'.
LS_DOC-STATUSEXTERN = 'CO'.
LS_DOC-LABORATORY = '001'.
REFRESH LT_FILES.
CLEAR LT_FILES.
LT_FILES-DOCFILE = 'E:\NewFolder\Book1.xls'.
LT_FILES-WSAPPLICATION = 'XLS'.
APPEND LT_FILES.
CLEAR LT_DRAT.
REFRESH LT_DRAT.
LT_DRAT-LANGUAGE = 'EN'.
LT_DRAT-DESCRIPTION = 'BHARANI DOC'.
APPEND LT_DRAT.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING: DOCUMENTDATA = LS_DOC
IMPORTING: DOCUMENTTYPE = LF_DOCTYPE
DOCUMENTNUMBER = LF_DOCNUMBER
DOCUMENTPART = LF_DOCPART
DOCUMENTVERSION = LF_DOCVERSION
RETURN = LS_RETURN
TABLES: DOCUMENTDESCRIPTIONS = LT_DRAT
OBJECTLINKS = LT_DRAD
DOCUMENTFILES = LT_FILES.
IF LS_RETURN-TYPE CA 'EA'.
ROLLBACK WORK.
MESSAGE ID '26' TYPE 'I' NUMBER '000'
WITH LS_RETURN-MESSAGE.
ELSE.
DATA : WAIT TYPE BAPITA-WAIT VALUE '5',
RET TYPE BAPIRET2.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = WAIT
IMPORTING
RETURN = RET
MESSAGE ID '26' TYPE 'I' NUMBER '000'
WITH LF_DOCNUMBER.
ENDIF.
pls help.
with rgds,
Bharani
Edited by: S BHARANIDARAN on Mar 23, 2010 12:14 PMHello Bharanidharan,
We have tried similar code, the problem could be that you are trying to read the file from your local PC. But the standard BAPI's available do not support this functionality. Please refer to the note: 504692, use CVAPI_DOC_CHECKIN and refer the following threads too:
Re: BAPI_DOCUMENT_CREATE2 does not check-in files via DotNet Connector
Re: Programmatically Attach a Document To a SAP Document
Hope this helps, these have resolved same problem, try this else we can look in to other possibilities that I have tried.
regards
C -
Bapi_Document_Create2: Check In Problem
Hi All,
we want to perform Transaction CV01n via FM.
I tried the BAPI_DOCUMENT_CREATE2 to to the Job but i cant find the correct Parameter to Check in Documents into the Archiv.
The Parameters lt_files-storagecategory = 'SAP-System' and lt_files-storagecategory = 'VAULT' are shown but the Archiv is missing.
I found the Destiation Link in Transactin OAC0 (Content repository), it has te Value XY and The Type is ARCHLINK.
Any Ideas on this toppic?
Best Regards
SRHi everyone,
Due to holidays, i gotta post under another account...
There was a logical mistake in my problem:
-> i thought i had to do the physical checkin of the files while or after the BAPI_DOCUMENT_CREATE2-call.
In my case, the content-server is reachable from the app-server as it's been defined in the AL11.
The content-server is directly defined in table TDWD with complete directorypath as a vault-server (NO DVA-VAULT).
The SAP-FBs do actually handle two cases for file-checkin that can suit my concern::
-> DVA-Vault?->FTP-Connect for filetransfer
-> No DVA-Vault? ->Local GUI-Upload for filetransfer
For background-processing fails always the GUI-Upload -> normal
I don't use any DVA-Vault -> i must do something else.
Solution: Ridiculously easy...
*-> FIRST :Physical Checkin over a stupid TRANSFER DATASET for the file.
*If OK:
*->SECOND: Call of BAPI_DOCUMENT_CREATE2 with reference to the transferred File
* ->Structure BAPI_DOC_DRAW2:
* -> Short Dataname in BAPI_DOC_DRAW2-docfile1
* -> Datacarrier in BAPI_DOC_DRAW2-datacarrier1 (actually the key for the VAULT-server)
* -> App.type in BAPI_DOC_DRAW2-wsapplication1.
* -> Description, Documentype, username, laboratory are must-fields with my customizing too.
* ->Internal Table BAPI_DOC_FILES2:
* -> Short Dataname in BAPI_DOC_FILES2-docfile
* -> Datacarrier in BAPI_DOC_FILES2-storagecategory (actually the key for the VAULT-server)
* -> App.type in BAPI_DOC_FILES2-wsapplication.
* -> no other fields required for this table
* ->(...)
*endif.
Now it runs fine every 5 minutes and i handle about 3000 documents a day...
I give points to Phillip van den Heever who reminded me the AL11-Setting and i mark this topic solved as soon as i can...
Thanks to everyone and greets,
Guillaume Delorme -
Problem with BAPI_DOCUMENT_CREATE2
HI,
I am creating document using FM BAPI_DOCUMENT_CREATE2. In IDES, i am able to create with new status. But i am getting an error message as 'The status set requires a previous status'.
What could be the problem? is it due to the additional pacthes? The patches version for development is 17 and for ides it is 10. If that is the issue, how to create document in Dev. server.
Thanks in advance
Regards,
SP RajHi Avinash,
a
Thanks for the reply.
I am able to create document number in IDES system. I am getting error development system while creating document number with the FM. Configuration settings and the test data are same for both IDES and Dev. system.
What could be the problem and how to rectify it.
Regards
SP Raj -
Problem creating documents using BAPI_DOCUMENT_CREATE2
Dear all,
I am using
BAPI_DOCUMENT_CREATE2
to create a quality document attachment ( PDF file) for one of our dynpro screen..
then I retrive the document information using 'BAPI_DOCUMENT_CHECKOUTVIEW2
and show the document using function module
CV120_START_APPLICATION
1) it works fine only for the person who is creating the document as the bapi is creating a reference to his directory path.
2) it doesnt work if the user is moving the file into another directory on his local computer as the directory reference path is gone..
3) if a different user is trying to acess file it doesnt even show up as he will never have the direcory path created by some body else.
how to over come this situation.
I have done lot of investigation and I found that 'BAPI_DOCUMENT_CHECKOUTVIEW2 has some paraneters
pf_http_dest = 'SAPHTTPA'
pf_ftp_dest = 'SAPFTPA'
but could not able to understand it properly. Please kindly help..
Thank you very much in Advance.
Regards
syam.
Edited by: syambabu g on Oct 22, 2008 1:39 PM
Edited by: syambabu g on Oct 22, 2008 1:47 PM
Edited by: syambabu g on Oct 22, 2008 1:50 PMPlease refer to this thread, it tells why you need a data carrier you can also configure the same in DC20.
Data Carriers for Storage the Originals of DMS -
Problem in executing BAPI_DOCUMENT_CREATE2 in background
Hello SAP Gurus,
My requirement is to upload documents from application server(AL11) / presentation server (PC) to DMS.
For the above requirement I'am using BAPI "BAPI_DOCUMENT_CREATE2".
When i execute the program in foreground i have no issues , but when executing in background getting error :
"Error in checkin & storing file "...
Regards,
Madan Shetty.Hi Madan,
Also Add the the BAPI_DOCUMENT_CREATE2 parameter PF_HTTP_DEST with value SAPHTTPA. Make sure that one is also on sm59. Plus check the server where files are has been created as SAP app server on AL11
Hope this helps.
Regards,
Deepak Kori -
DMS - Errror BAPI_DOCUMENT_LOAD and BAPI_DOCUMENT_CREATE2
Hi Experts!
During inserting a new document with BAPI_DOCUMENT_LOAD or BAPI_DOCUMENT_CREATE2 I get always the error 'ERROR WHILE CHECKING IN AND STORING: G:\mynewdoc.txt' .
G: is my external hard disk connected to my laptop on which I am working in SAP.
mynewdoc.txt is the new text-document that I want to insert.
Does anybody knows something about this error?
Do I need a special communication between the SAP-System and a external device like my hard disc?
Thanks in advance for your support!!
Regards
FranzHi Franz,
I use the same BAPI BAPI_DOCUMENT_CREATE2 for checking documents from a network drive, without any problems.
Could you post the coding for filling all the parameters of the BAPI?
Regards,
John. -
BAPI_DOCUMENT_CREATE2 - DMS upload
Hi,
I using BAPI_DOCUMENT_CREATE2 to upload a document in DMS server.
It is giving me error while uploading ' Error while checking in and storing: C:\file1.pdf '. I am upload files from front end.
I am using the DOCUMENTFILES parameter DOCPATH,DOCFILE and STORAGECATEGORY. I have also given the full file name in header documentdata DOCFILE1.
Regards,
Karthik.kHello,
I have the problem : I want to upload a file on my frontend in the server DMS.
The info record is ok and the file is attached but when i want to display the file PDF i have the error 26 254.
I'm using the BAPI "BAPI_DOCUMENT_CREATE2" with parameters :
documentdata-documenttype = 'ZBE'.
documentdata-documentnumber = 'TEST DMS14'.
documentdata-documentversion = '00'.
documentdata-documentpart = '000'.
documentdata-description = 'Document DMS Besace'.
documentdata-docfile1 = 'C:\test.pdf'.
documentdata-wsapplication1 = 'PDF'.
documentdata-datacarrier1 = 'SAP-SYSTEM'.
Thanks for your help. -
BAPI_DOCUMENT_CREATE2 253 Error while checking in and storing
Hello,
I am having a problem when I want to execute a BAPI_DOCUMENT_CREATE2 from SAP MII.
Then i get the following error:
<TYPE>E</TYPE>
<ID>26</ID>
<NUMBER>253</NUMBER>
<MESSAGE>Error while checking in and storing: C:\Temp\test.pdf</MESSAGE>
<LOG_NO />
<LOG_MSG_NO>000000</LOG_MSG_NO>
<MESSAGE_V1>C:\Temp\test.pdf</MESSAGE_V1>
The strange thing is when I execute the BAPI in SE37 (SAP) with the same settings it works great
Already looked at some SAP Notes and topics here on SDN, but can't find the solution.
Kind regards,
NickHi,
I am getting the same error.
Can you plz help.
Regards
Shruti -
Using BAPI_DOCUMENT_CREATE2 to create a document and checkin to VAULT
In a development we are using the function module BAPI_DOCUMENT_CREATE2
to create a document and check in the original file into the R/3 storage
system in one go (see subroutine below).
However, we got the requirement to use a Vault ("Tresor") as the storage
backend. Unfortunatly, just setting the documentfiles-storagecategory element to 'VAULT' results in 3 things:
- the document gets created OK
- the original file does NOT get checked in
- the error message "Original 1 wurde bereits eingecheckt und abgelegt" (...has already been checked in)
So please advise how to use the BAPI modules to achieve the checkin into
a Vault storage.
Could this have something to do with the undocumented documentfiles-originaltype element? What does this have to be set instead of the '1', thats working with SAP-SYSTEM storage?
*& Form l_create_doc_and_save
* text
* -->P_LG_IOTAB text
* <--P_YRAD_DOCFIELDSIOT text
*AP 001 ins
FORM l_create_doc_and_save
TABLES x_iotab STRUCTURE ccihs_am07iot
CHANGING x_yrad_docfields STRUCTURE yrad_docfieldsiot.
* create a new document in DMS with data from x_yrad_docfieldsiot
* and set the new document in x_iotab
DATA: l_files_tab LIKE bapi_doc_files2 OCCURS 0,
l_drat_tab LIKE bapi_doc_drat OCCURS 0.
DATA: l_docdata_wa LIKE bapi_doc_draw2,
l_files_wa LIKE bapi_doc_files2,
l_drat_wa LIKE bapi_doc_drat,
l_return_wa LIKE bapiret2.
DATA: l_doctype LIKE bapi_doc_draw2-documenttype,
l_docnumber LIKE bapi_doc_draw2-documentnumber,
l_docpart LIKE bapi_doc_draw2-documentpart,
l_docversion LIKE bapi_doc_draw2-documentversion.
*fill document data
CLEAR l_docdata_wa.
l_docdata_wa-documenttype = x_yrad_docfields-dokar.
l_docdata_wa-statusintern = x_yrad_docfields-statusintern.
* l_docdata_wa-documentnumber = x_yrad_docfields-doknr.
CLEAR l_files_wa.
* l_files_wa-storagecategory = lc_database. " 'SAP-SYSTEM'
l_files_wa-storagecategory = x_yrad_docfields-storagecategory.
l_files_wa-docfile = x_yrad_docfields-docpath.
l_files_wa-originaltype = '1'. " <--
l_files_wa-wsapplication = x_yrad_docfields-wsapplication.
APPEND l_files_wa TO l_files_tab.
CLEAR l_drat_wa.
l_drat_wa-language = lc_d. " 'DE'
l_drat_wa-description = x_yrad_docfields-description_de.
APPEND l_drat_wa TO l_drat_tab.
CLEAR l_drat_wa.
l_drat_wa-language = lc_e. " 'EN'
l_drat_wa-description = x_yrad_docfields-description_en.
APPEND l_drat_wa TO l_drat_tab.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = l_docdata_wa
* HOSTNAME =
* DOCBOMCHANGENUMBER =
* DOCBOMVALIDFROM =
* DOCBOMREVISIONLEVEL =
IMPORTING
documenttype = l_doctype
documentnumber = l_docnumber
documentpart = l_docpart
documentversion = l_docversion
return = l_return_wa
TABLES
* CHARACTERISTICVALUES =
* CLASSALLOCATIONS =
documentdescriptions = l_drat_tab
* OBJECTLINKS =
* DOCUMENTSTRUCTURE =
documentfiles = l_files_tab
* LONGTEXTS =
* COMPONENTS =
* error occured?
IF l_return_wa-type CA 'EA'.
ROLLBACK WORK.
MESSAGE ID '26' TYPE 'I' NUMBER '000'
WITH l_return_wa-message.
ELSE.
COMMIT WORK.
CLEAR x_iotab.
x_iotab-zzdokar = l_doctype.
x_iotab-zzdoknr = l_docnumber.
x_iotab-zzdokvr = l_docversion.
x_iotab-zzdoktl = l_docpart.
x_iotab-linemod = ic_linemode-insert.
IF sy-langu = lc_d.
x_iotab-zzdktxt = x_yrad_docfields-description_de.
ELSEIF sy-langu = lc_e.
x_iotab-zzdktxt = x_yrad_docfields-description_en.
ELSE.
x_iotab-zzdktxt = x_yrad_docfields-description_de.
ENDIF.
APPEND x_iotab.
CALL FUNCTION 'YRAD_LB34_SAVE_PEND_SET'
EXPORTING
i_flg_save_pend = true.
CLEAR x_yrad_docfields.
ENDIF.
ENDFORM. " l_create_doc_and_saveHi Frank,
Did you manage to figure out what the problem was?
Thank you.
Regards,
Bruno -
UPLOADING DATA USING BAPI_DOCUMENT_CREATE2
Hi Friends,
I am uploading data for CV01N using FM "BAPI_DOCUMENT_CREATE2",
it is updating the data successfully,
but for my requirement i need to change the value of
RC29P-POSTP Bom Item Category in the DOCUMENT STRUCTURE , it is default taking as "D", my requirement with "T" also.
I am not finding the correct field in the Function module to mapp this POSTP (Bom Item Category ).
Can any one suggest, as its urgent.
Otherwise can any one suggest FM to create DOCUMENT STRUCTURE ( CV11 ) with above requirement.
Regards,
Sivaram.
Message was edited by:
Sivaram Prasad Gadde
Message was edited by:
Sivaram Prasad GaddeHi Frank,
Did you manage to figure out what the problem was?
Thank you.
Regards,
Bruno -
DMS BAPI_DOCUMENT_CREATE2 Class type Technical Document Category, object ty
Hello Experts!
The problem is that DMS import functionality stoped working after supp. pack implementation.
The process is based on BAPI_DOCUMENT_CREATE2 functionality.
The first problem was an error "The status set requires a previous status" which was causes dy note 1157678
(http://wiki.sdn.sap.com/wiki/display/PLM/Error-Thestatussetrequiresapreviousstatus)
After setting break point/de-implementing that note additional error appeared:
"Class type Technical Document Category, object ty"
Does anyone have idea what caused the problem, or which sap note did that? before SP19 implementation that error was not displayed.
Current highest support package is SAPKH60403.
Thanks in advance for help,
Rgds,
LBHi,
That error refers to updating characteristics for classification (addnl data tab in DIR).
Does anyone know what could cause the problem after support pack implementation?
Is it possible that bapi_document_create2 > api_document_maintain2 disables an option to update classification? -
Issue with BAPI_DOCUMENT_CREATE2
Hi experts,
I have been facing an issue calling BAPI_DOCUMENT_CREATE2 from a third-party legacy based onto Java.
I am calling it to create a document based on DIR(Document Info Record) in DMS(Document Management System)
Before I do this I must have defined a document type like G08 within document class (TC:CL02).
This is an G08 document type example
[http://www.esnips.com/doc/27a59a9c-ce41-4873-ac94-079e5d1d1213/Configuracion047]
I created general characteristis when I defined this document class.
[http://www.esnips.com/doc/e7e0b379-0d8b-46ac-82d2-3a390ce662ce/Configuracion046]
I m not quite sure what is the structure I must to fill in the characteristics of my document type
e.g. For filling document type is the following:
DOCUMENTDATA.DOCUMENTTYPE
e.g. For BUSINESSPROCESS [http://www.esnips.com/doc/e7e0b379-0d8b-46ac-82d2-3a390ce662ce/Configuracion046]
I dont have a clue.
Thanks in advance of any info you can provide mehere was my problem:
it_clas-classtype = '017'.
it_clas-classname = 'DMS_FAB'.
append it_clas.
<b> it_ausp-classname = 'DMS_FAB'.
it_ausp-classtype = '017'.</b>
it_ausp-charname = 'DMS_TIPODOCFAB'.
it_ausp-charvalue = it_cdp_c-zztipodoc.
APPEND it_ausp.
Maybe you are looking for
-
Closed lid slow wi-fi/internet
Got a new Thunderbolt display for my MBP, but major issue ...when I close the lid to my MBP the wireless internet becomes EXTREMELY slow. I've read through the forums that the wifi antenna is located in the lid and by closing it the device does not
-
Error During Check In : Publish Course In Master Repository
Hi Gurus, Here we are trying to publish one SCROM course through AE Tool, And while uploading course from local repository to master repository getting error (A read/ write error occured when checking in object) As Master Repository we are using IIS
-
Tiger - All Sahring Options/Services disabled, greyed out
Hello from Portugal! I noticed that on System Preferences I had all my Sharing services disabled and cannot select any of them (greyed out). Also, the Firewall Tab was disabled to (greyed out), and I couldn't select it either. I noticed that as the f
-
Java Connectivity - No classes appearing in the Java Beans Classes dropdown
Hi, VERY NEW user to Crystal Reports. I am trying to create a report using a java class as a datasource. I have updated the setting in the CRConfig.xml file, and can get the Java Beans Connectivity screen to appear, but is shows none of my classes
-
the browser caches the information and so i have to do a refresh every once in a while to update the dynamically changing information.