Documents massive upload Solution manager
Hi,
I am trying to make a massive upload of documentation to Sap Solution Manager, i can upload the documentation into the KW but when i try to save the documentation in SOLAR02 estructure with the function solar_appl_save_items does not work.
Here is my code:
Data l_context TYPE REF TO cl_sctm_context.
DATA objekey type SWO_TYPEID.
DATA RC1 TYPE I.
data: L_FILETABLE TYPE FILETABLE,
L_FILETABLE_S type FILE_TABLE.
DATA ls_bo TYPE sadocbo.
DATA: lo_new_document type ref to IF_SA_DOC,
ls_document2 type ref to IF_SA_DOC.
DATA project_filter type HIER_GUID.
DATA lv_loio TYPE sdokobject.
DATA handle_id like ISTATIFACE-ID.
data ti type SPRO_NOTES_TAB.
DATA items type SAITEMS.
DATA ls_l1 type HIER_IFACE.
*tablas internas
DATA: l1 type STANDARD TABLE OF HIER_IFACE,
l2 type standard table of HIER_REF,
l3 type STANDARD TABLE OF HIER_TEXTS.
START-OF-SELECTION.
CALL FUNCTION 'SPROJECT_GET_REAL_OF_PROJ'
EXPORTING
PROJECT_ID = 'ZXXX'
IMPORTING
REALIZATION_FILTER = project_filter.
* obtener jerarquia de proyecto
CALL FUNCTION 'SASAP_HIERARCHY_READ'
EXPORTING
FILTER_ID = project_filter
READ_TEXTS = 'X'
READ_REFERENCES = 'X'
LANGUAGE = SY-LANGU
INCLUDE_SUBSTRUCTURES = 'X'
TEXT_OF_REFERENCES = 'X'
START_LEVEL = '01'
DISPLAY_MODE = 'D'
READ_TREE_ASSIGNMENTS = ' '
LEVELS = 0
TABLES
LIST_OF_NODES = l1
LIST_OF_REFERENCES = l2
LIST_OF_TEXTS = l3.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
CHANGING
FILE_TABLE = L_FILETABLE
RC = rc1
EXCEPTIONS
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
NOT_SUPPORTED_BY_GUI = 4
others = 5.
IF SY-SUBRC <> 0.
ENDIF.
REad TABLE L_FILETABLE INTO l_filetable_s index 1.
CALL METHOD CL_SA_DOC_FACTORY=>UPLOAD_DOC
EXPORTING
I_DOC_TITLE = 'prueba viernes jon'
I_DOC_TECH_NAME = 'ZXXX'
I_DOC_TYPE = 'BPP'
I_DOC_STATUS = 'Open'
I_FOLDER_TITLE = 'Folder Name'
I_FOLDER_TECH_NAME = 'ZXXX'
I_FOLDER_RESPONSIBLE = SY-UNAME
I_FOLDER_GROUP = 'ZXXX'
IP_FILEPATH = l_filetable_s
RECEIVING
E_IOBJECT = lo_new_document
EXCEPTIONS
CANCELLED = 1
FOLDER_ERROR = 2
ERROR = 3
others = 4.
CALL METHOD LO_NEW_DOCUMENT->SAVE
RECEIVING
E_LOIO = lv_loio
EXCEPTIONS
CANCELLED = 1
ERROR = 2
others = 3.
IF SY-SUBRC <> 0.
ENDIF.
CONCATENATE lv_loio-class lv_loio-objid into objekey RESPECTING BLANKS.
CALL FUNCTION 'NOTE_OBJECT_SAVE'
EXPORTING
ID = 'E100340107203DF19AFD000C29BB263E'
APPLICATION = 'S0'
FILTERTREE = project_filter
NOTE_ID = lv_loio-OBJID
NOTE_TYPE = 'ACC'
SAVE_LOCATION = ' '
OBJECTKEY = objekey
SEQUENCE = '0000000001'.
READ TABLE l1 into ls_l1 with key node_id = 'E1003401072037F19AFD000C29BB263E'.
CALL FUNCTION 'SOLAR_APPL_SAVE_ITEMS'
EXPORTING
ACTUAL_NODE = ls_l1
TAB_TYPE = 'CUSTDOCU'
LANGUAGE = SY-LANGU
PROJECT_ID = 'ZGD_IBER'
* SYSTEM_ROLE = ' '
* SCOPE_FILTER = ' '
NO_TRANSPORT_CHECK = 'X'
* IS_LIBRARY = ' '
USER_CONTEXT = l_context
* CREATION_CONTEXT =
* DOCU_HANDLING = ' '
* STATUS_HANDLING = ' '
* KEYWORD_HANDLING = ' '
* REFOBJATTR_HANDLING = '1'
* SAVE_OPTIONS =
* HISTORY_HANDLING = 'X'
PF_ASSIGN_2_TOPNODE = 'E1003401072037F19AFD000C29BB263E'
* _DELETE_REFTREES = ' '
* APPL_INFO =
CHANGING
ITEMS = items
* DEVCLASS =
* TRANSPORT_ORDER =
* OLD_ITEMS =
* MESSAGES =
EXCEPTIONS
ERROR_OCCURRED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
Kind Regards
Jon
Edited by: Jon Azkorra on Nov 24, 2011 4:34 PM
Edited by: Jon Azkorra on Nov 28, 2011 10:08 AM
hi,
SAP itself has a program/ transaction is SA_Migration is used to mass upload f valueSAP doc to solar01,
you just check the logic used behind this and customize it.
Thanks,
Jansi
Similar Messages
-
Lotus Notes documents migration into Solution Manager
We have been using Lotus notes application for maintaining only documentation in our landscape. But now, the plan is to move all the documentation from Lotus notes to SAP Solution Manager and use it as a document management system from now....
Could anyone please answer the following queries:
1) Does LSX environment help/enhance the migration ?. If not, are there any tools/accelerators/functions/automatic methods for mas uploading?
2) This documentation is not project specific documentation. Where do you think this must go in Solution Manager?
In the custom area of BPR?. If yes, please do let me know the procedure for the same.
3) Would it be possible to link the documents to functional domains/ business scenarios/ business processes in the BPR?
4) Lotus notes provides access to all the versions (Draft/Approved/Reviewed) of a document. Would it be possible to have the same features even in Solution Manager?
5) What all document types does Solution Manager recognize?.
I think the Lotus notes documents can be converted to 'Word' format and then put in Solution Manager. Besides this, is there any other common format which is recognized by both the tools?
6) Standard SAP Solution manager does not provide indexed search. So, in order to retrieve a document later what indexing nomenclature/guidelines do you recommend?
Has anyone done/faced with this kind of requirement. The idea now is to use Solution manager as a document management system. The efforts/process/timelines information if already known would be of great help to start with for us....
Could you also provide the trade offs b/n Solution Manager and SAP knowledge warehouse (KW)?
Hoping for some replies ...we also had the same requirement to migration from LN to SolMan Documentation base but there is no such tool (yet?)
What you can do you can migrate from any ARIS like platform to SolMan:
http://en.sap.info/ids-scheer-announces-migration-program-to-aris-platform/4058
You do have versioning in SolMan and you can upload any kind of document via SOLAR01
regarding the indexing you can either use SAP SES or connect TREX, this is documented in the customizing (SPRO)
TREX will also be the prerequisite to make use of KM in SolMan
nesimi -
Office 2007 Document Attaching in Solution Manager
Dear Gurus,
When document attaching in Solution Manager 7.01, the system does not support Microsoft Office 2007 formats. (docx, xlsx) Are there any customizing for this topic?
Thank you,Hi,
Thanks, in lieu with your detailed system message, please try with this
The warning is because the file extension docx is not known for the
system. All the known extension is defined in table SDOKMIME by standard
. And customer can extend it in table SDOKMIME_C.
Actually that is only a warning message, which will not block the
following up processing. The docx file will be attached if you click on
the green tick. And the file can be previewed and checked later on.
If you would like to get rid of this warning anyway, you may extend the
customer table using the following step:
-spro->SAP Customizing Implementation Guide
->SAP NetWeaver->Knowledge Management
->Settings in the Knowledge Warehouse System
->Document Management Service
->Define MIME Type for File Name Extension
-add an entry like
File name extension = docx
MIME type of a Web object = application/vnd.openxmlformats
After everything has been done as above, please retry to attach, it should help.
Cheers,
sh -
Urgently required Good Installation Document for SAP Solution Manager 4.0
Hello Experts,
Iam implementing /installing SAP Solution Manager 4.0 in our scenario in a day/two. My query is tat do we need to install it APAP + JAVA based only or can we install it ABAP based only?
Secondly i needed good self prepared document for SAP Solution Manager 4.0 installation which gives me step wise step procedure in detail.Plz dont give service marketplace link as i hv already seen and checked installion guide over it ,act. i wanted self prepared doc which is of more use. The useful answers shall be surely awarded points. Requested to revert at earliest as i need this guide in a day itself.
My Email Id is [email protected] .
Regards,
SaumyaHey Somya,
Can u plz send me the configuration guide of change request management that Rakesh had sent to you..
My Email-id is [email protected]
Plz its urgent, let me know if u want me to open a new thread so that i can reward you with points..
Tnx in advance. -
Adding existing RWD uPerform documents using SAP Solution Manager Adapter?
Note# 1468552
Cannot add existing RWD uPerform documents using the SAP Solution Manager Adapter.
Currently, a user can only create a new document with the Solution Manager Adapter; there is no
ability to add existing uPerform documents that have already been created.
RWD has submitted an enhancement to SAP requesting this functionality.
Hi All,
Has there has been any update on the functionality to add existing RWD uPerform documents to Solution Manager? I have found a note from 2010 stating that this functionality has been submitted as a enhancement. My question is, has this feature been implemented yet? If not, does anyone have any suggested work-arounds for this issue?
Thanks in advance!
StephanieHi Stephanie,
I can't find much information on this topic.
You could create a message in component SV-SMG-SPA.
Regards,
Matthew -
Where are the actual documents stored in solution manager (KW)?
Hello,
I have a question regarding Solution Manager and storing documentation.
When we in our process structure in a project uploads a word document
(as documentation), where are the file then physically stored?
I have checked the table SA01PHIO (a KW table), here I see a new entry every time I
upload a new word document (or other type of documentation). But this
table does not grow accordingly to the size of the word documents I
upload, so the physical document must be stored somewhere else in the
database.
The description of field 'PHIO_ID' in table SA01PHIO is "Physical document", but since the field is of type char (size 32), then it can only be a link to the actual file?
We need to know where the documents are stored, so that we can plan our
storage strategy and database space management accordingly.
Anyone knows where the files are stored in the database?
Thanks in advance.
RegardsSamuli,
Thank you for your help.
After further searches, I have found exactly what I was looking for.
Samuli, as you said, documents are stored in table SACONT01, but I did not understand how they were stored, as all the data you have in this table is something like:
FF06010102028000343130320000000074040000121F9D02A37D7259692086C2F0D7761017222...
So the information can be benefit to other people searching, I will share it here.
The string of alpha-numeric characters you see above is a "part" of the document.
Document data is cut into clusters, and stored in table SACONT01 (in field CLUSTD, coupled with CLUSTR).
In order to retrieve all the clusters for a given document, you need to get its logical ID (LOIO - LOgical Information on Object):
- Select the document (SOLAR01/02 for projects, SOLMAN_DIRECTORY for solutions)
- Enter DOC_INFO in the transaction code field
- Copy the Object ID
In table SA01PHIO, retrieve the physical id(s) from the logical id (PHIO - PHysical Information on Object).
Search SACONT01 with the physical id(s).
Just as an example:
- 340 entries for a Word document (about 50 pages)
- 57000 entries for a video (200 MB)
Hope it will help.
Regards,
Rémi. -
Link one solution manager word document into another solution manager HTML
Hi,
I have requirement in solution manager that there are two documents uploaded into solution manager.
1. One word document in one of the project folder
2. HTML page in another folder of same project
I have to set up a hyper link of word document in the HTML web page.
If anyone has gone through this type of requirement, please let me know the details of how did you set up the link between word and HTML document.
Appreciate the early response.
Thanks,
SivaGo to the properties of the file you want to link your word document to. (attributes icon)
There you will find a button "Generate Document URL (F9)". Clicking this button will buffer the URL into clipboard.
Then you open your Word document in edit mode and paste the URL there.
source: Inserting a document into another in Solution Manager -
How to export all documents of a Solution Manager Project?
Hello,
I am currently trying to export all documents that exist inside a Solution Manager project (which documents these are, I can see via SI80 -> select project). That means, I need to export between 300 and 7000 documents from SAP to a MS Windows directory.
Is there any way to do this automatically?
My approaches so far:
1) Use the "Knowledge Workbench" tool to connect to the Knowledge Warehouse of the Solution Manager and "check out" all documents to the specific project.
Problem: The resulting local folder structure is horrifying and all documents are not named by their titles as seen in SAP, but named after the template that was used to create them. So flattening the folder structure would result in many, many name collisions.
2) Using SOLAR02 to get an overview over all documents via "Environment->Project Analysis->Assignments->Documentation", and selecting everything.
Problem: I found no download option here, only some kind of overview over all documents.
The forum threads:
[Re: download all document in SOLAR01]
[Mass download of documents from SM to PC;
didn't help either.
I would appreciate any help.
Thanks!
Edited by: Andreas Seemann on Mar 2, 2011 2:15 PMHello Andreas,
You might take a peak at this link
Export of SOLMAN-project
SOLAR_PROJECT_ADMIN can also copy documentation, plus there is more information on SAP Knowledge Workbench.
Using it for the first time is a bit cryptic so they recommend reading the SAP Notes 336968 , 196078 and 817529.
erhaps worth a view?
Regards,
Paul -
SSO Issues while opening a ppt file document only from Solution Manager
Hi Experts,
Version - Solman 3.1
Issue
=====
While trying to open a Powerpoint(ppt) file document, from the service provided by Solution Manager thru a weblink:
1.A SSO authentication request of the server pops up requesting to authenticate Windows userid/password
2.After entering the windows password the first time..authentication is requested again..At times on the second chance of authentication, the request is successfull and the powerpoint document opens.. But we have faced issues wherein the issues had persisted for 5-6 chances and only then the ppt document opens.
3.Point to be noted is that even if the SSO authentication of the windows password is cancelled even the first chance the document opens..
4.Issue is only with powerpoint document and not with word document..
Going by point 3.. there is no relevance of the windows authentication to popup since authenticating or not authenticating doesn't matter.
Issue unknown is why is that whenever only a ppt document from Solman is being opened does the SSO Windows authentication window of Solman server opens.. Is there any settings to be considered..
Regards,
NagendranSince I am new to the field requesting the kind quick help by java experts here to help me change the code so that I would be able to search a web apge saved on disk and search and highlight a word in that page ....
Thanks in advance........
Looking forward for your kind suggestions......1) Did you write that code? If yes, proceed to 2). If no, I charge 150 euros/hr. Let me know when you want me to start.
2) Post the code for a program that opens a text file with the following in it:
hello world
and prints the contents out using System.out.println().
3) Modify the program in 2) to determine if the file contains the word "yes". Post the code.
4) An html file is no different than the text file in 2). -
Document transfer from Solution Manager into ARIS
We have sucessfully transfer projects content from Solman into ARIS. Unfortunatelly links to documents cannot be found. To my knowledge links from General documentation answell as from Project documentation should be able to find in ARIS after the transfer. Has anybody any ideas about this.
Kind regadsHi,
Yes, either link to both "Gen. Documentation" and "Project Documentation" should be accessible. Or else, atleast either one of them should be accessible.
Some configuration is missing in ARIS side, which allows you to access this link from ARIS diagram.
best regds,
Alagammai. -
Uploading project documents onto Solution manager
Hi guys
Please can anyone out there take me through step by step on how I can upload project documents onto the Solution Manager server from a local file.
Thanks in advance.
Regards
GwangwazHi
First choose the folder on the left side and right click project doc tab
second click + button and choose upload in the upcoming pop then provide the location for the file
third press enter or open and file will be uploaded
Hope it solve urpb completely
Regards
Prakhar -
Uploading project onto Solution manager
Hi guys
Please can anyone out there take me through step by step on how I can upload project documents onto the Solution Manager server.
Thanks in advance.
Regards
GwangwazHi Gwangwaz,
Goto transaction SOLAR01.
Select the respective node from the hierarchy.
From the window on the right-hand side, select project documentation tab.
Select "Insert document" button.
Select relevant title, doc type (for a word doc it is Additional doc), status (copy editing).
If you will create a new doc select "Create new doc".
If you upload an already existing doc select "Upload file".
Press OK.
Save.
Regards,
Dilek -
How to create Document Structure for existing project in Solution Manager
Hi gurus
We have all the project document saved using Solution manager . we have ended with Phase1.
We are starting Phase2 and they are asking me to creat different folder as Phase to in existing project and store all the Documents
Can any one please tell me how to create New folder and store the documents in Existing project
Point will given for helpfull Answer
Thanks
BhaskarHi Bhaskar,
Assuming you have full authorisations, the procedure is simple.
Please go SOLAR_PROJECT_ADMIN transaction.
From the menu please select Project -> Copy
In the ensuing screen, key in your desired project name, scroll through the other checkboxes to see if you are happy with the default choices; if not, take corrective actions.
In the last set of radi buttons "Desired behaviour at later version comparison", the default choice (2nd entry there - Adjust target project to the original of the source project) is fine.
From your scenario, since you do not have a Template -> Implementation Project functionality and instead are copying from one Implementation to the other, this radio button is of little consequence.
Execute the process.
In the window that comes up, please choose Local Object, assuming that you do not want to capture the whole contents into a 'Transport'. This is more required if you are aiming to copy the project from one SolMan instance to another.
It would give an information message "Generating in batch job (Name ......)
In a few minutes, you'd receive an intimation of the Project being copied.
That's pretty much about it. Have a check on the newly created project in SOLAR01.
Please let me know if you have any doubts.
Best regards,
Srini -
Is anyone aware of a tool that can be used to extract project documents out of solution manager into a folder? I am looking for something similar to the Business Blueprint extract, but I want the individual documents, not the single blueprint document. I would also like to be able to select the documents to be extracted based on entered selection criteria, such as owner, last changed, etc.
In the documentation from Dr. Christoph Roller and Dr. Anja Modler-Spreizer
IBU Consumer Products and Life Sciences it mentions the following:
SAP Solution Manager automatically generates all electronic
records for creating, modifying, or deleting data. These records
are date stamped and time stamped and include the user ID of
the individual who is logged on to the system and who performed
the action. Electronic records also maintain the old and
new values of the change and the transaction used to generate
the record.
My question is, I deleted a row in the structure in the blueprint transaction SOLAR01. I had attached to this row several documents. After I deleted this row, I was wondering where I could find the document history of the deleted attached documents to that row in the structure. I have been unable to retrieve those deleted documents so far.
If it is true what Dr. Christoph Roller and Dr. Anja Modler-Spreizer are saying I should be able to get those documents back. Question is how, as there is no row left (as I deleted it) to look within attributes to get it back.
Does anyone know the answer on this? -
Accessing Document URL in SAP Solution Manager from SAP R/3 using BAPI
I want to access the hyperlink corresponding to a document present in Solution Manager from another system (i.e SAP R/3). The hyperlink can be generated manually by clicking on the button "Generate" present in Solution Manager. Can anyone please help me advising any BAPI to generate this hyperlink, or any standard function module for generated such a hyperlink used in Solution Manager so that I can define a custom BAPI.
Thanks in advance!Hi Alvaro Hernán Rojas R ,
The product line is the hierarchy of the finished goods.
It is pertinent that the finished goods has emerged due to some process(es) carried on the raw material.
Thus logically you should map in solution manager based on the process only.
The macro process while depicts the processes at the highest level.The Business scenarios, Business Process gives a good idea about how you should go about configuring.The Steps/activities helps you to map in to SAP thro' T/Codes.
From the point of view of all of the below three,namely,
Easy configuration activities
Easy design of Unit and integration test
Easy activities of Process enhancement and optimization,
the option Map the process as ISO Standards
- Several projects : For each product line,will be most ideal.
It is the processes that drives the activities.The control activities like internal control etc are all process based.Given these,divorcing the business process from the configuration -as in -is certainly not a good practice.
Hope this helps.
Regards,
Ramesh
Maybe you are looking for
-
How to get all images in indesign CS5 with javascript?
Hi,everybody, How to get all images in indesign CS5 with javascript?I want to delete them. Anyone can give me some example codes? Thanks, Bridge
-
No Signal on Mac Pro with Radeon X1900 and ViewSonic VA1912wb monitor
I have a Mac Pro (purchased in Summer 2007) with an ATI Radeon X1900 (512mb) graphics card. I am connecting the card to a ViewSonic VA1912wb (LCD) monitor. When I first bought the system, it worked perfectly fine with the monitor. While it did not de
-
recently updated to the latest version of Itunes (11.1) and when i try to play music or tv shows, the sound lasts only for a second before going completely mute, anyone know how to fix this?
-
Integrated Planning - No ability for restrictions on Aggreg. Level ?
Hi there, I have noticed in the new Integrated planning that it is only possible to restrict data at the filter level. In comparison to the old BPS, where you could restrict data at both the Planning Level and Planning package is this not a slight re
-
Java.rmi.RemoteException: Unexpected fault was returned by the server
Hi, when we try to have some concurrent request, we've got the following error : java.rmi.RemoteException: Unexpected fault was returned by the server (faultcode: Server.userException, faultstring: java.net.SocketTimeoutException: Read timed out). at