Attribute invisible in DMS
Hello all,
I am facing one problem in DMS. I have created one new document type. For that class is created and added all required characteristics in cl02. Now when I am trying to create DIR through cv01n on testing purpose, some characteristics are not visible in the Additional tab.
Kindly give suggestion for this. Points will be awarded.
Punam
Hi Punam,
Hope you have done the following steps for classification :
I have followed the same and it is working fine.
1) In Transaction code CL02, enter class type 017 (for document mgmt) and in characteristic tab make entry as per your requirement, save it.
2) Create DIR Click Classification Tab Call for created class and enter, then select the values in charecteristic to be viewed.
If still atibutes are invissble in characteristic go to Transaction code CT04 and find entries are as per your requirement or not?
Hope it will help you. If still you are not getting the result, tell me the step which you are following so that I can cross check and tell you.
Regards,
Seema S.P.
Similar Messages
-
SRM 7 - CT_PROC_TY attribute invisible
Hi experts,
We are using SRM7.01 and when we were defining user attributes in ppoma_bbp we notice that attribute CT_PROC_TY is not available.
In table T77OMATTR we have this attribute set as invisible.
Is this normal or are we missing some configuration?
We want to use central contract management so I'm assuming that this attribute is required...
Thanks in advance!
Best Regards,
AndreiaHi,
Go to SM30 and open the table T77OMATTR. In Attributes/scenarios section make the attribute 'Visible' ( untick the check box )
thanks,
sankar. -
Hi,
I would like to know how the attribute exchange takes place between CAD and SAP system in Document Management.
Thanks and Regards,
MadhuHi Madhu,
the CAD Direct Integration for the CAD Systems provides that functionality out-of-the box. Technically the integration collect the information from the CAD System via the internal APIs of the different CAD Systems and post it to the SAP Objects via the CAD Desktop APIs. It works similar also in the other direction.
Of course the mapping of the attributes needs to be set up.
Best regards,
Martin -
Set htmlb_button to invisible
Can I make a htmlb:button invisible?
The attribute "invisible" in depreciated. Are there any other ways? Thanks...Well in this case Dany you just need to do what Max recommends OR
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
<htmlb:page title = " ">
<htmlb:form id="frm">
<htmlb:textView text = "Hello World!"
design = "EMPHASIZED" />
<a href="javascript:frm.submit()">Click me</a>
</htmlb:form>
</htmlb:page>
</htmlb:content>
Where you place your JavaScript that actually just submit's the form. Now if you are not submitting a form and just clicking the button then Max has the way to go. -
Dymanic Columns in Table Control
Hallo Experts,
I need to create dymanic columns in a Table Control. The column has to by dymanically created based upon a flag entry in one master table.
We have a master table with some rows with a flag entry as shown below,
TEXT FLAG
AAAA X
BBB X
CCC
DDD X
I have to show the above entries which are set (AAAA, BBB and DDD) as a columns in the table control.
My Table Control, already have many columns and on the top of that i have to populate this rows as a columns dymamically..
The sample table control structure should looks like the below,
PERNR NAME LAND1 AAAA BBB DDD
How to acheive this?Hi
U need to change the attribute of the colunms of the table control, your table control is defined like the type TABLEVIEW:
CONTROLS <table contrl> TYPE TABLEVIEW USING SCREEN <screen number>.
The type TABLEVIEW is based on the type CXTAB_CONTROL, here there's the field COLS (like the type CXTAB_COLUMN) where the attribute of the columns are stored: u need to change the attribute of COLS.
COLS is an internal table, so u need to define a workarea based on CXTAB_COLUMN and set the attribute INVISIBLE in order to hide a certain colunm.
TYPE-POOLS: CXTAB_COLUMN.
DATA: WA_COL TYPE CXTAB_COLUMN.
LOOP AT <table control>-COLS INTO WA_COL.
IF WA_COL-SCREEN-NAME = ...........
WA_COL-INVISIBLE = 'X'.
MODIFY <table control>-COLS FROM WA_COL.
ENDIF.
ENDLOOP.
Now u need to insert the right condition in order to show or hide a certain column
Max -
How to drop the text in to the af:richTextEditor
Hi All
I am using Jdeveloper 11.1.1.4.0.
I ahve a requrment like there is one af:table & af:richTextEditor. I want to drag & drop the table cell informationin af:richTextEditor.
<af:table var="row" value="#{beanDnD.ValueSet}"
id="t1" summary="collection drag source"
rowSelection="single" contentDelivery="immediate"
autoHeightRows="5">
<af:column headerText="Product" id="c3">
<af:outputText value="#{row.product}" id="ot1">
<af:attributeDragSource attribute="value"/>
</af:outputText>
</af:column>
<af:column headerText="Cost" id="c4">
<af:outputText value="#{row.cost}" id="ot2"/>
</af:column>
</af:table>
<af:richTextEditor label="Label 1" id="rte1" valueChangeListener="#{beanDnD.valuechange}"
autoSubmit="true"
binding="#{beanDnD.textBinding}"
value="IceCream">
<af:attributeDropTarget attribute="value"/>
<af:attributeDropTarget attribute="invisible"/>
</af:richTextEditor>
Bean value chnage code
public void valuechange(ValueChangeEvent valueChangeEvent) {
// Add event code here...
System.out.println(valueChangeEvent.getOldValue());
String s1 = valueChangeEvent.getOldValue().toString();
System.out.println(valueChangeEvent.getNewValue());
String s2 = valueChangeEvent.getNewValue().toString();
textBinding.setValue(s1+s2);
AdfFacesContext.getCurrentInstance().addPartialTarget(textBinding);
but its not working :(
I did same with af:inputText & its working properly.Pz suggest me waht should i do?any help would be appriciated.
Thanks
CharuHi Charu,
I know this was a long time ago but do you remember if you ever found a solution for this?
Dave -
Hi
I am defining characteristics for additional data for sap DMS, now my problem is I want to suppress some of attributes (characters) in additional data tab. For ex: I have 3 characteristics called 1.Vertical 2. Unit_Metal 3.Unit_Hyd in additional data. In Vertical I have two values called Metal and Hydrocarbon. Now my requirement is if I select Metal from Vertical then character (additional attribute) Unit_Hyd should suppress and if I select Hydrocarbon from Vertical, then Unit_ Metal should suppress.
Thanks in AdvanceHi Sham,
regarding your question I would kindly recommend you to maintain specific relations between the different criteria.
In transaction CT04 you can maintain the classification characteristics and also
create dependencies on tab "Basic Data".
The object dependency is used to define dependencies between different objects in configuration.
By defining object dependencies, you can determine, for example:
which combinations of characteristic values are allowed in a configuration
which characteristics are to appear in the configuration
which BOM items are selected
which operations, sequences of operations, sub-operations, and PRTs are selected for a routing
I hope this information is usefull for you.
Best regards,
Christoph -
Attribute IS_SA_ORG is not invisible in scenario SALE
Hi All,
in SM30: Table T77OMATTR, in Sale -> Attributes/Scenarios we set the flag fog for "Simulated' and "Inactive" for IS_SA_GRP, IS_SA_OFF and IS_SA_ORG. and the R3 Org Structure is replicated to CRM. But my Question is in CRM Org Structure under the functions Tab i can see the assigned the R3 Sales Org , Sales Office and Sales group numbers to CRM Sales Org, Sales Off and Sales Group.
where as if we create Org structure we have to select the check box and then has to select the R3 Org ,Off, Grp. in the same way when i select check box for Sales Org,Sales Office, Sales Group i get the Same Error. Why this error is appearing again after my Org structure is replicated.
Thanks and Regards,
ArunHi Apoorva,
Try this
Go to transaction sm30
Open T77OMATTR in display mode.
Select SALE and go to Attributes/Scenarios.
Now go to the detail of attributes IS_SA_GRP, IS_SA_OFF and
IS_SA_ORG.
There you will see that Flag is not checked for 'Simulated'. For
Enhanced model it should be checked. Check the checkbox for all the
three attributes and then run the report
HRBCI_ATTRIBUTES_BUFFER_UPDATE.
if not try
Goto Trancode : OOATTRCUST
Check the following for Sales Scenario
1. For Sales Scenario activate buffering
2. Select Attributes/Scenarios node and check for Attribute IS_SA_ORG is having inherit. Type as '0' and deactivate invisible
hope it helps u
Reward points if helpful
cheers
Ranga -
An error occured while creating the original attribute for message no26 296
Hi All,
I am new to DMS , we are trying to store PM documents on content server , created a storage category and while assigning files to storage category then on saving the document i get the below error :
An error occured while creating the original attribute for
Message no. 26 296
Diagnosis
An error occured while creating an original in the Knowledge Provider.
System Response
The original could not be created.
Procedure
Contact the systems administrator and check the log file (transaction Evaluate application log, object SDOK).
Please let me know what configs i am missing ...
Thanks in advance
regrds
pushpaHi Pushpa,
Which enhancement package are you on currently? This is observed in cases where originals in DIR's are invisible and sometimes error message 26296 occurs in transaction CV01n. Hence,please check your entries in the table SDOKPROP to avoid such a problem in your system.
Further,suggest you explore if the below resolutions can be adopted in your case.
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=10321987
http://wiki.sdn.sap.com/wiki/display/PLM/OriginalsinvisibleafterEHP3or+EHP4
Regards,
Pradeepkumar haragoldavar -
Interactive Report Attributes: Missing a column?
This is for Application Express 3.2.1.00.12
I'm working on a report with the columns pulled in a SQL statement in the Region Definition section of the Interactive Report Attributes screen. We want to alter the column names so they are more user friendly, so on the Report Attributes tab, I'm looking for the column name we wish to alter, but it is not showing up. Now, in the final report, the column is visible with the header from the name of the column from the database, so the system is aware of the column and can display it, but for some reason we can't see it in the Report Attributes tab.
Why would a column be invisible or inaccessible in the Report Attributes tab? There are 100 columns displayed in the Report Attributes: Column Attributes section. Is that the reason I'm missing some columns; 100 is a hard column limit on that page?
Thanks in advance for all help you can provide.
Matthew Nagler
Edited by: user13579247 on Jul 20, 2011 10:45 AM
Edited by: user13579247 on Jul 20, 2011 12:20 PMHi,
You are almost right place. You need click icon before 100th column name, order to go screen where you can edit column attributes.
In that screen right top is buttons (Cancle, Apply, < and >)
Regards,
Jari
Edited by: jarola on Jul 21, 2011 5:43 PM
It might documentation guides you to right screen
http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#sthref978
>
To access Column Attributes:
1. On the Workspace home page, click the Application Builder icon.
2. Select the application.
3. Select a page. The Page Definition appears.
4. Under Regions, click Interactive Report next to the name of the report region you want to edit.
The Interactive Report Attributes page appears with the Column Attributes section at the top of the page.
5. To access the Column Attributes page, click the Edit icon next to the appropriate column Alias.
>
Edited by: jarola on Jul 21, 2011 5:44 PM -
How to invisible perticular row of a table column?
Hi All,
I want to set invisible or blank in perticular row of table column.
I have a table, contains 2 row in that , one of the column contains button. If i clik on this button(ex: 1st row button ) it add new row with different data, it contains button also in that column, but i want to invisible that button . I tried like this
I create one attribute of type WDUI_VISIBILITY. and bind visible property of that column. and code in button action is..
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->Element_context.
DATA lv_visible TYPE wd_this->Element_context-visible.
get element via lead selection
lo_el_context = wd_context->get_element( ).
get single attribute
lo_el_context->set_attribute(
EXPORTING
name = `VISIBLE`
value = wdyn_ui_visibility_none ).
But, All buttons are invisible here. i.e., in first 2 rows buttons also invisible. But i want to invisible 3 row button only. How to do this? It is possible?
Thanks,
Kris.Hi Sarbjeet,
button1 - name1-marks.
button2-sname1-marks.
on click of button1 - output is ---name2-marks, if i click again on button getting name3-marks.
if i click on button2 --- sname4-marks, but required output is --- sname2-marks.
if i click on button1 again o/p is -- name5-marks, but req is name4-marks.
code :
DATA lv_count LIKE ls_context-count.
data count type char2.
get element via lead selection
lo_el_context = wd_context->get_element( ).
get single attribute
lo_el_context->get_attribute(
EXPORTING
name = `COUNT`
IMPORTING
value = count ).
count = count + 1.
lo_el_context->set_attribute(
EXPORTING
name = `COUNT`
value = count ).
data: lr_node type ref to if_wd_context_node,
ls_data type if_main_view=>element_node,
lt_data type if_main_view=>elements_node.
data indx type i.
DATA lo_el TYPE REF TO if_wd_context_element.
lr_node = wd_context->get_child_node( 'NODE' ).
lo_el = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
indx = lo_el->get_index( ).
if indx = 1.
data seg type string value 'Nomenclature'.
data count type char2.
CONCATENATE seg count into seg.
CONDENSE seg.
ls_data-name = seg.
ls_data-variant = 'NOBUTTON'.
APPEND LS_DATA TO LT_dATA.
LR_NODE->BIND_TABLE(
NEW_ITEMS = LT_DATA
SET_INITIAL_ELEMENTS = ABAP_false ).
clear count.
clear seg.
endif.
If indx = 2.
clear count.
data seg1 type string value 'Sub Nomenclature'.
CONCATENATE seg1 count1 into seg1.
CONDENSE seg1.
ls_data-name = seg1.
ls_data-variant = 'NOBUTTON'.
APPEND LS_DATA TO LT_dATA.
LR_NODE->BIND_TABLE(
NEW_ITEMS = LT_DATA
SET_INITIAL_ELEMENTS = ABAP_false ).
clear count1.
endif.
Thanks,
kris.
Edited by: kissnas on Feb 1, 2011 7:05 AM -
Disk Utility sees problem invisible to Disk Warrior?
Hi all,
In brief: Disk Utility seems to think I've got a big problem, Disk Warrior seems to be unable to fix it.
More detail: I ran verify disk from Disk Utility and was told I needed to repair my startup volume. So I ran Disk Utility's repair disk function from the install CD and it was unable to repair the disk. It was also unable to repair permissions.
So I reached for trusty Disk Warrior and ran that. It rebuilt the directory, reporting various changes, eventually ending with zero errors. That should have fixed it, right?
But then I re-ran Disk Utilty and was told, again, that the disk needed to be repaired.
Here's what happened when I ran DU's repair function from the install CD:
- I selected only the volume containing Mac OS X for repair and Disk Utility reported there's an "invalid leaf record count (it should be 3 instead of 525) and also that '1 HFS volume repaired' but '1 HFS volume could not be repaired'. (I'd selected only my startup volume).
- The verify disk function reports the same
- The repair disk permissions function cannot complete its task. Its error message reads: "Disk Utility internal error: disk utility has lost its connection with the disk management tool and cannot continue. Please quit and relaunch disk utility."
So, I ran Disk Warrior AGAIN (2nd time) and sure enough, it reports that it successfully rebuilt the directory but that the rebuilt version has no changes from the original version (meaning it's ok, right?).
Needless to say, if my startup disk DOES need repair, I want to do something about it. But does it need repair? And if Disk Warrior can't fix it, what can? Could it be that Disk Utility is seeing a problem that's invisible to Disk Warrior?
By the way, I ran DW's manual diagnostic and it said the drive itself was operating normally.
Very grateful if any of you can give me some insight into this.
Jason
Dual G5 2.5Ghz 2GB RAM, Powerbook G4 1.33Ghz, iPod 60GB Mac OS X (10.4.8) 500GB internal HDDHi Allan,
Sure thing. Here's the business.
Disk Warrior (v3.0.3)
DW reports that it's successfully rebuilt a new directory each time I run it. I've run it three times now. The first time, there were differences between the original directory and the rebuilt version and it displayed a message coloured red describing this. On the subsequent two occasions, it has displayed a message coloured green and said there are "no changes to the number or contents of the files and folders" in the rebuilt directory.
DW's manual diagnostic reports that the drive itself is "operating normally."
DU
Running DU internally (from the volume that also contains 10.4.9), it can only 'verify', of course. The volume's name is 'G5 hard drive'. The full message is:
Verifying volume “G5 hard drive”
Checking HFS Plus volume.
Checking Extents Overflow file.
Checking Catalog file.
Checking multi-linked files.
Checking Catalog hierarchy.
Checking Extended Attributes file.
Incorrect number of Extended Attributes
Checking volume bitmap.
Checking volume information.
d.",1)
G5 hard drive
Error: The underlying task reported failure on exit
1 HFS volume checked
Volume needs repair
Running DU (repair disk) from the install CD (for Powermac G5, OS X 10.3.5) produces the following report:
Repairing disk for "G5 hard drive"
Checking HFS plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierachy
Checking extent attributes file
Invalid leaf record count
(It should be 3 instead of 422)
Repairing volume
The volume G5 hard drive was repaired successfully
Repair attempted on 2 volumes
1 HFS volume repaired
1 HFS volume could not be repaired
So let's say that DW is doing it all right, and the copy of DU on the install CD (10.3.5) is producing an inaccurate result because it doesn't match up with Tiger, I can understand that. But why would the same problem come up with DU run internally from (in the course of the last 24 hours) both 10.4.8 and 10.4.9 (because the problem survived my upgrade)?
On the other hand, Allan, possibly DW isn't the right tool for the job. In that case, do you know what is?
Thanks,
Jason
Dual G5 2.5Ghz 2GB RAM, Powerbook G4 1.33Ghz, iPod 60GB Mac OS X (10.4.9) 500GB internal HDD -
IN CV02n While releasing the document I am atting an error An error ocured while creating the original attribute for
Hi,
error 26296 is caused by inconsistencies in the table DMS_DOC2LOIO. Please run the report DMS_KPRO_READ for the relevant document info record to get the corresponding LOIO-ID.
Please use report DMS_KPRO_CHECK1 described in SAP note 368035 to
check for inconsistencies between DMS, KPRO and content server. Please
also read note 906266. This is relevant in your case, as you are using
one content server for two systems. Details about the DIR in question
can be accessed by using report DMS_KPRO_READ.
Unfortunately, we cannot reconstruct the reason for this inconsistency
but the above described procedure should solve the problem with the
originals.
Best regards,
Christoph -
Dear Team,
i am trying to upload a document in DMS through webdynpro...
document number is created but document is does not attached ... could any one resolve this problem.
thanks in advance.
Code & error screen shot is attached here .
method ONACTIONSUBMIT .
***file upload
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->Element_context.
DATA lv_file TYPE wd_this->Element_context-file.
data lv_file1 TYPE xstring .
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* get single attribute
lo_el_context->get_attribute( EXPORTING name = `FILE` IMPORTING value = lv_file1 ).
**data declaratioins
DATA: ls_draw TYPE draw,
ls_api_ctrl TYPE cvapi_api_control,
ls_message TYPE messages,
lv_documentnumber TYPE doknr,
lv_storage_cat TYPE cv_storage_cat,
lv_size TYPE i,
* ls_bindata TYPE zst_ts_Raw_line,
* lt_bindata TYPE ztt_Hr_raw_line,
ls_drao TYPE drao,
lt_Drao TYPE TABLE OF drao,
lt_files TYPE cvapi_tbl_doc_files,
ls_files TYPE cvapi_doc_file ,
LS_DRAT TYPE DMS_DB_DRAT ,
LT_DRAT TYPE TABLE OF DMS_DB_DRAT .
ls_draw-DOKAR = 'TST'.
ls_draw-dokvr = '00'.
ls_draw-doktl = '000'.
ls_draw-dwnam = sy-uname.
ls_draw-dokst = 'T1'.
LS_DRAT-dktxt = 'TEST' .
insert drat FROM ls_drat .
APPEND LS_DRAT TO LT_DRAT .
lv_storage_cat = 'DMS_C1_ST'.
ls_api_ctrl-tcode = 'CV01N'.
CALL FUNCTION 'CVAPI_DOC_CREATE'
EXPORTING
PS_DRAW = ls_Draw
* PF_STATUSLOG = ' '
* PF_REVLEVEL =
PS_API_CONTROL = ls_Api_ctrl
* PF_FTP_DEST = ' '
* PF_HTTP_DEST = ' '
* PF_HOSTNAME = ' '
* PF_CONTENT_PROVIDE = ' '
IMPORTING
PSX_MESSAGE = ls_message
* PFX_DOKAR =
PFX_DOKNR = lv_documentnumber
* PFX_DOKVR =
* PFX_DOKTL =
TABLES
* PT_DRAD_X =
PT_DRAT_X = LT_DRAT
* PT_FILES_X =
* PT_COMP_X =
* PT_CONTENT =
* DOCUMENTDESCRIPTIONS =
*data lv_file_b TYPE binary.
if ls_message-msg_type ca 'EA' .
ELSE.
LS_DRAW-doknr = lv_documentnumber.
insert draw FROM ls_draw.
ENDIF.
Data : thead type thead ,
lt_lines TYPE TABLE OF tline,
it_lines TYPE soli_tab ,
text1 TYPE string ,
lines2 TYPE xstring .
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'ST'
language = sy-langu
NAME = 'ZGOI'
OBJECT = 'TEXT'
IMPORTING
HEADER = thead
TABLES
lines = lt_lines.
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
EXPORTING
line_width_dst = 255
TABLES
content_in = lt_lines
content_out = it_lines
EXCEPTIONS
err_line_width_src_too_long = 1
err_line_width_dst_too_long = 2
err_conv_failed = 3
OTHERS = 4.
REPLACE ALL OCCURRENCES OF '*' IN TABLE it_lines WITH ' '.
CALL FUNCTION 'CONVERT_TABLE_TO_STRING'
EXPORTING
i_tabline_length = 132
IMPORTING
e_string = text1
TABLES
it_table = it_lines.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = text1
IMPORTING
buffer = lines2
EXCEPTIONS
FAILED = 1
OTHERS = 2.
data : lt_bindata type table of x255 ,
ls_bindata type x255 .
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = lines2
* APPEND_TO_TABLE = ' '
IMPORTING
OUTPUT_LENGTH = lv_size
TABLES
BINARY_TAB = lt_bindata
loop at lt_bindata INTO ls_Bindata.
ls_drao-orblk = ls_bindata.
ls_drao-orln = lv_size.
ls_drao-dokar = ls_Draw-dokar.
ls_drao-doknr = lv_documentnumber.
ls_drao-dokvr = ls_draw-dokvr.
ls_drao-doktl = ls_drao-doktl.
ls_drao-appnr = '1'.
* INSERT drao FROM ls_drao .
APPEND ls_drao to lt_drao.
* CLEAR ls_drao .
ENDLOOP .
CALL FUNCTION 'CV120_DOC_GET_APPL'
EXPORTING
PF_FILE = 'test.doc'
IMPORTING
PFX_DAPPL = ls_files-dappl .
* TABLES
* PTX_TDWP =
ls_files-appnr = '1' .
ls_files-filename = 'test' .
ls_files-updateflag = 'I' .
LS_files-langu = sy-langu.
ls_Files-storage_cat = 'DMS_C1_ST' .
ls_files-description = 'test'.
APPEND ls_files to lt_files.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
CALL FUNCTION 'CVAPI_DOC_CHECKIN'
EXPORTING
PF_DOKAR = ls_Draw-dokar
PF_DOKNR = lv_documentnumber
PF_DOKVR = ls_draw-dokvr
PF_DOKTL = ls_draw-doktl
* PS_DOC_STATUS =
* PF_FTP_DEST = 'D:\a'
PF_HTTP_DEST = 'SAPHTTPA'
* PF_HOSTNAME = ' '
PS_API_CONTROL = ls_api_ctrL
* PF_REPLACE = ' '
PF_CONTENT_PROVIDE = 'TBL'
IMPORTING
PSX_MESSAGE = ls_message
TABLES
PT_FILES_X = lt_files
* PT_COMP_X =
PT_CONTENT = lt_drao .
Commit WORK.
endmethod.Have you checked to see that the SAP user has rights to the folder that you are trying to write to?
Neal -
Unable to upload File to DMS (Document Managemt Sys) Via web Dynpro App
Hi .
I want add file to DMS i,e, SAP Document Management System .
I first tried calling BAPI : BAPI_CREATE_DOCUMENT2 in Report and I was successfull.
I am trying out same thing via Web Dynpro Application but I am getting error in Return of BAPI .Error is Error while checking in and storing: C:\Documents and Settings\Desktop\Hi.doc.
I am pasting code I have written on click of Upload .
method ONACTIONON_UPLOAD .
implicitly available data objects
wd_Context type ref to if_wd_context_node.
wd_This type ref to if_FileUpload.
DATA: gv_documento TYPE draw-doknr ,
gv_clase TYPE draw-dokar VALUE 'Z99' ,
gv_version TYPE draw-dokvr VALUE '00',
gv_part TYPE draw-doktl VALUE '000',
gv_descripcion TYPE drat-dktxt VALUE 'Description111',
gv_return TYPE bapiret2,
filename(60) type c ,
lt_documentdata TYPE STANDARD TABLE OF bapi_doc_draw2,
ls_documentdata LIKE LINE OF lt_documentdata,
lt_characteristicvalues TYPE STANDARD TABLE OF bapi_characteristic_values ,
lt_classallocations TYPE STANDARD TABLE OF bapi_class_allocation ,
lt_documentfiles TYPE STANDARD TABLE OF bapi_doc_files2 ,
ls_documentfiles LIKE LINE OF lt_documentfiles ,
lv_content type xstring ,
size type i.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_filename LIKE ls_context-filename.
get element via lead selection
lo_el_context = wd_context->get_element( ).
get single attribute
lo_el_context->get_attribute(
EXPORTING
name = `FILENAME`
IMPORTING
value = lv_filename ).
ls_documentdata-documenttype = 'Z99'.
ls_documentdata-documentversion = '000'.
ls_documentdata-documentpart = '00'.
ls_documentdata-description = 'Test Document Created Parag'.
ls_documentdata-STATUSEXTERN = 'WR'.
ls_documentdata-USERNAME = 'I046361'.
ls_documentdata-WSAPPLICATION1 = 'DOC'.
ls_documentdata-DOCFILE1 = lv_filename.
ls_documentdata-DATACARRIER1 = 'DEFAULT'.
ls_documentfiles-wsapplication = 'DOC'.
ls_documentfiles-docfile = lv_filename.
ls_documentfiles-storagecategory = 'DMS_C1_ST'.
ls_documentfiles-checkedin = 'X'.
APPEND ls_documentfiles to lt_documentfiles.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = ls_documentdata
pf_http_dest = 'SAPHTTP'
IMPORTING
return = gv_return
TABLES
documentfiles = lt_documentfiles.
IF gv_return-type CA 'AE'.
WRITE gv_return-message.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDIF .
endmethod.
Now Can anyone tell
In case of Web Dynpro what Is this code right ?
Do I need to change value of Parameters I have Set ?
Do i need to some change as I am trying to Upload file Via WebApplication ?
Do I have to change data Carrier ?
Please let me know urgently .Points will be surely Given ...
Regards ,
ParagHi ,
Finally I was successfull in Uploading Docs.It seems I was not getting right Parameters ..anyways correct code is as follows ...
method ONACTIONON_UPLOAD .
implicitly available data objects
wd_Context type ref to if_wd_context_node.
wd_This type ref to if_FileUpload.
DATA: gv_documento TYPE draw-doknr ,
gv_clase TYPE draw-dokar VALUE 'Z99' ,
gv_version TYPE draw-dokvr VALUE '00',
gv_part TYPE draw-doktl VALUE '000',
gv_descripcion TYPE drat-dktxt VALUE 'Description111',
gv_return TYPE BAPIRETURN ,
gv_return TYPE BAPIRET2 ,
gv_ruta TYPE bapi_doc_files2-docfile VALUE 'C:\BAPI_DMS.doc' ,
filename(60) type c ,
lt_documentdata TYPE STANDARD TABLE OF bapi_doc_draw2,
ls_documentdata LIKE LINE OF lt_documentdata,
lt_characteristicvalues TYPE STANDARD TABLE OF bapi_characteristic_values ,
lt_classallocations TYPE STANDARD TABLE OF bapi_class_allocation ,
lt_documentfiles TYPE STANDARD TABLE OF bapi_doc_files2 ,
ls_documentfiles LIKE LINE OF lt_documentfiles ,
lv_content type xstring ,
size type i ,
lt_binary TYPE TABLE OF sdokcntbin ,
ls_binary LIKE LINE OF lt_binary ,
lv_size TYPE I ,
ls_doc_status TYPE CVAPI_DOC_STATUS ,
ls_API_ctrl TYPE CVAPI_API_CONTROL ,
l_MSG TYPE MESSAGES ,
lt_files type STANDARD TABLE OF CVAPI_DOC_FILE ,
lt_drao TYPE STANDARD TABLE OF DRAO ,
ls_drao LIKE LINE OF lt_drao ,
lv_documenttype TYPE DRAW-DOKAR ,
lv_documentnumber TYPE DRAW-DOKNR ,
lv_documentversion TYPE DRAW-DOKVR ,
lv_documentpart TYPE DRAW-DOKTL ,
lv_text TYPE string .
FIELD-SYMBOLS <fs> TYPE ANY.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_filename LIKE ls_context-filename .
get element via lead selection
lo_el_context = wd_context->get_element( ).
get single attribute
lo_el_context->get_attribute( EXPORTING name = `FILENAME` IMPORTING value = lv_filename ).
lo_el_context->get_attribute( EXPORTING name = `FILECONTENT` IMPORTING value = lv_content ).
CONCATENATE lv_text 'by' sy-uname 'cretaed at ' sy-uzeit INTO lv_text .
ls_documentdata-documenttype = 'Z99'.
ls_documentdata-documentversion = '00'.
ls_documentdata-documentpart = '000'.
ls_documentdata-description = 'Test Document Created in Web Dynpro ABAP '.
ls_documentdata-STATUSEXTERN = 'WR'.
ls_documentdata-USERNAME = 'I046361'.
ls_documentdata-WSAPPLICATION1 = 'DOC'.
ls_documentdata-DOCFILE1 = lv_filename.
ls_documentdata-DATACARRIER1 = 'DEFAULT'.
ls_documentfiles-DOCUMENTTYPE = 'Z99'.
ls_documentfiles-WSAPPLICATION = 'DOC'.
ls_documentfiles-DOCUMENTVERSION = '00'.
ls_documentfiles-DOCUMENTPART = '000'.
ls_documentfiles-DOCFILE = lv_filename.
ls_documentfiles-description = 'Test Document Created in Web Dynpro ABAP '.
ls_documentfiles-CREATED_BY = sy-uname.
ls_documentfiles-CHECKEDIN = 'X'.
ls_documentfiles-DOCFILE = lv_filename.
APPEND ls_documentfiles to lt_documentfiles .
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = ls_documentdata
pf_http_dest = 'SAPHTTPA'
IMPORTING
DOCUMENTNUMBER = lv_DOCUMENTNUMBER
return = gv_return
TABLES
documentfiles = lt_documentfiles.
IF gv_return-type CA 'AE'.
WRITE gv_return-message.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING wait = 'X'.
get message manager
data lo_api_controller type ref to if_wd_controller.
data lo_message_manager type ref to if_wd_message_manager.
lo_api_controller ?= wd_This->Wd_Get_Api( ).
CALL METHOD lo_api_controller->GET_MESSAGE_MANAGER
RECEIVING
MESSAGE_MANAGER = lo_message_manager
CLEAR lv_text .
CONCATENATE 'Dcoument ' lv_filename 'Successfully stored with Document No. ' lv_DOCUMENTNUMBER INTO lv_text .
report message
CALL METHOD lo_message_manager->REPORT_SUCCESS
EXPORTING
MESSAGE_TEXT = lv_text
PARAMS =
MSG_USER_DATA =
IS_PERMANENT = ABAP_FALSE
SCOPE_PERMANENT_MSG = CO_MSG_SCOPE_CONTROLLER
VIEW =
SHOW_AS_POPUP =
CONTROLLER_PERMANENT_MSG =
MSG_INDEX =
CANCEL_NAVIGATION =
ENDIF .
endmethod.
Maybe you are looking for
-
How do I download a photo from email to my mac? It will not do it!
I download a photo from my email and it goes shows up as a doc file? Stupid! How do I get it into Iphoto as a JGEG?
-
Wireless mesh backhaul drop every 2 -3 minutes
I have 4 1242 A/G (A is the backhaul and G is for clients, NO WLC) in a mesh with 1 as tha RAP and 3 and the MAP. All aps have the same antenna 2.4 has patch 7.5dbi and the 5.0 has a 6dbi omni. The syslog shows that the backhaul is dropping every 1
-
Hi guyzzzzzz, i want the document for the following........ · Dynamic Documents Display · Structure of Program that Use Dynamic Documents · Classes for Dynamic Documents · Important Methods of DD Classes Demo/Exercise Its very urgent, plz help me
-
Bad script nsExtensionManager.js:623 locks up Firefox add-ons and plug-ins
I've started getting the message below any time I try to use add-ons or plug-ins such as Google toolbar and Yoono. A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the sc
-
Where can I find HP Memories Disc for download? Uninstalling it caused problems.
I uninstalled HP Memories Disc and now my computer prompts me to reinstall it when I open various unrelated programs. It's supremely frustrating and the only solution seems to be to reinstall it. However I have no idea where my discs are for this