Repository archive warnings
Recently when I archived a repository, it stated that it contained warnings. I ran a verify on the repository and it reported no errors or non-fatal errors, only warnings. Upon checking the log, the warnings all consist of: Warning(1385) The table 'xyz' has not been analyzed recently.
Do I need to run a repair on this repository to resolve the warnings, or is there another method? Sorry if this is basic, I'm new to MDM.
Thanks in advance!
Kevin
You can try one of the following in Console
Verify Repository -> Repair
Compact Repository.
Hope this helps
Similar Messages
-
Content Server / Content Repository / Archive Link and co.
Hi,
i have installed a content server on an external Windows 2003 Server Plattform using MAXDB. The Server is now running and working properly. The test of the content repositories were positive too. Now im a bit confused about all the actions which are required to make a content rep known to SAP System via Archive Link. Is it correct to start the content server service in the SCIF transaction? Do i need to perform the Archive Link Workflow and Costumizing wizard. Which tables have to be altered?
I would be very greatful if anyone could tell me the steps which need to be done in order to succeed.
Thanks in advance ChristianHi,
Is it correct to start the content server service in the SCIF transaction?
Not required
the actions which are required to make a content rep known to SAP System via Archive Link.
Create a content repository in OAC0 using document area Archivelink and storage type HTTP Content Server.
To use full functionality of Archlink, other set of Archivelink configurations required one of them e.g.OAC3 to use this repository to be used by business objects.
Anirudh, -
Is there any repository who keeps older versions of software?
For example, if I were looking for the latest KDE 3.3 package, can it be found in any official repository?
In any unofficial?
Or, at least, its buildscript?yeah - you can find the build scripts in abs on the web actually. it's easy.
go to the packages page on the main website (linked at the top), type the package name in the search, you'll get results, click the name of the pkg you want. it will bring up a new page of details about the pkg, click "view cvs entries". click the PKGBUILD, you'll get a new page and you need to click "view all branches" button at the bottom and now you can review previous versions and use the download link to get the PKGBUILD - how's that?
you can also look in /var/cache/pacman/pkg - the old pkg my still be in there -
How to create a repository(not just custom) using your hard drive
I don't know if many people know about this, so I am giving this a shot. There are three major articles on wiki.archlinux.org: Custom local repository,
Using a CD-ROM as a repository, and Offline Installation of Packages. These are available online through the WIKIs at archlinux.org.
I was first confused because when I was reading "Offline installation of packages", I didn't know what these ".db.tar.gz" files where. I came mainly from a Debian / Ubuntu
background (I actually tried many distros before this), so getting used to the way the repository works and no graphical install manager for it. However, I enjoyed a challenge and
I found out that these are database packages that contain descriptions and locations on where these files are located. The ones on the ftp server are already compiled. I don't know if,
however they are compiled with the most recent versions.
With all that said, I thought you had to have it all in one directory in order for this to work, but as it turns out, location is not really an issue. I decided to have a directory reside on the root.
I chose root because it's only for the install of my own packages. I could have done it as a seperate user account, such as "repos" in PCLinuxOS (another distro I tried). I didn't want to have a seperate account for this. Therefore, I created "/root/repository". Within this directory I created directories for all repository archives. I basically did a "cd /mnt/dvd" and migrated to the particular repository directories. I would copy all the "pkg.tar.gz" files into their respective directories with "cp * ~/repository/<name-of-dir>". For intance, I started with the "core" directory, because there was some things I didn't install in the core directory during installation and if the packages needed it, it was there. This follows for the rest of the directories, such as "community", "testing", and "unstable", etc.You can go to the ftp mirrors to find out what directories are available. The main point is that your files should be in the format ".pkg.tar.gz". These are package files that get converted into a sort of database format that as I mentioned, informs the system the description and where the files are located, and so on.
The command to perform this, is "tar -xvf /root/repository/core/core.db.tar.gz *.pkg.tar.gz". You can replace core with whatever repository you are adding. So, for example, "extra.db.tar.gz" would be in the "extra" directory. This information is located in the "Offline installation of packages". The command to create this database is called, "repo-add".
The format for this command is "repo-add /path/to/dir.db.tar.gz *.pkg.tar.gz". So, if it's the core packages you would "cd ~/repository/core" and "repo-add core.db.tar.gz *.pkg.tar.gz".
Then, you need to edit the "/etc/pacman.conf" configuration file for pacman. I basically would comment all out except for the repositories I need. So, for example "[core]" and "/etc/pacman.d/core" would tell where normally the servers are located for these files. This information is located int the "Custom local repository" article.using the "repo-add" command.
Furthermore, I edited each server file located in "/etc/pacman.d/<repository>" where repository is core, extra, etc. I would perform, "nano /etc/pacman.d/core" for example and comment out all servers. I then add a "local repository" by typing in "file:///root/repository/core", saved it, and then did a "pacman -Sy" to update the repository database. Now, I can do "pacman -S <package-name>" where package-name is whatever I wanted to install. Voila! Please let me know of any suggestions, questions, insights, or comments. I hope I'm not missing anything in this article. I do remember using "rm -rf * in the "/var/lib/pacman/<repository>"directories and using "tar xvf <repository>.db.tar.gz". I don't if that something to do with it, though. Be careful with the "rm -rf *" command, because you can erase your hard drive if you are not careful, for those who aren't informed.
P.S. Please note all these are done with the root user.pressh wrote:
gradgrind wrote:
smitty wrote:pressh, I understand and appreciate your point of view... well taken! Are you implying that I should have written in steps, such as 1, 2, and 3? Also, should I have got ridden of the redundant information if it is contained in the Wiki article and / or taken out the commands on how to apply them and left only with the explanation? Is this what you imply? Sorry if I seem redundant with these questions, but I'm curious so I can improve for the future. I am new to this and open to any suggestion and comments.
Maybe you could either edit the existing wiki pages where they were not clear to you, or else add a new wiki page, or both. Certainly give the whole a clearer (visual) structure, and (if they don't already exist) add links between the connected wiki pages.
Yes that is partly what I mean. Further you could get rid of the information that is not really needed to follow the guide (for example what the command 'repo-add' does. People could if they are interested look it up in the script itself, or you could add it here and link to it).
And yes a bit of structure would be nice. You don't have to nessesarily call it 1,2,3, as long as it has some kind of structure in it (the visual point is very important here). You could take a look at existing wiki pages on the web and see how most of them (not all of them are good of course) are structured.
That's a good point, too. How do I found out what articles are more effective? I am doing research on this particular matter at the moment and came across articles that have tips on technical writing. Could this help in the long run? Or, is it better to get feedback from other users and improve that way? In other words, do first, and ask later, as one user point out? -
MDM 7.1 on HP-UX Archiving on a daily basis
Hi all,
We are migrating a MDM landscape from Windows to HP-UX.
We used to run CLIX .bat files scheduled on the Windows Server to perform daily archive of our repositories.
As CLIX is only available for Windows Plataform (you can check the MDMCX7100*.ZIP from http://service.sap.com/swdc), we need to find a way to perform Repository Archiving natively on our HP-UX environment.
Is there a HP-UX tool, or MDM commands we can schedule on our HP-UX Server?
(We were recommended to run CLIX commando from our workstations, but is not really an option we can consider)
Thanks in advance
Yours faithfully,
Cristian MarinIf anyone my find this helpfull,
CLIX is installed as a native tool of the MDM Server, so all we had to do was to rebuild our CLIX commands under (sh) shell.
Below you may find the code we have modifiy it to replace the final a2a file.
#!/bin/sh
#El archivo resultante queda en la ruta
#/usr/sap/MDP/MDSXX/mdm/archives
FECHA=`date +%F_%T`
clix cpyArchive "<mdm-host>:<mdm-password>" "<REP_NAME>:<SID>:Oracle:system:<oracle-system-password>" -A <REP_NAME>_$FECHA.a2a
Good luck!
Cristian Marin -
Repository is invalid after crash of the MDM Server in MDM 7.1
Hello,
after a crash of our MDS the slave repository is invalid. When I tried to connect to the repository I am getting an error like
Repository connect failed
Error: The MDM repository is Invalid
I tired to delete but I am not able to delete also. While deleteing it is giving an error like
The MDM repository is in read-only mode
The master repository on the same db server and MDS server works fine. I'm also unable to unmount the repository and note 1325833 was not helpful.
Any Help or Solution?
ThanksHello Patrick G.
Sometimes we had some situation.
Create your master repository archive .
Connect to database directly and drop you slave repository tablespace.
Than create slave repository again.
in Database you repositories have names like [repository_name] M000 or [repositoryname] _Z000
Regards
Kanstantsin Chernichenka -
Employee Photo upload vs Content Repository
Hi Guys,
Can anyone explain me
1. What are the different circumstances we use different Document Area and Storage Type for Uploading Photos in SAP?
2. Is ther any space constraint and performance issues in storing Photos in R/3 database?
3. What is the recommended document Area and Storage Type if I need to upload more than 50,000 photos?
Thanks in Advance,
Regards,
Nithya.Hi Dude,
1. Create a number range for SAP Archive Link :
IMG->Basis Components->Basis Services->SAP Archive Link->Basic Settings->Maintain number ranges.
Tcode OANR. Create range 01 from 0000000001 to 9999999999 without the external number flag.
2. Document type HRICOLFOTO must exist with document class JPG.
IMG->Basis Components->Basis Services->SAP Archive Link->System Settings->Maintain document types.
Table TOAVE, Tcode OAC2.
3. Document type HRICOLFOTO must be linked to object type PREL and IT0002.
IMG->Personnel Management->Personnel Administration->Tools->Optical Archiving->Set up Optical Archiving in HR.
View V_T585O, no Tcode. In all three columns there ara minuses, donu2019t put a flag in the check box.
4. Check which content repository (Archive) is linked to document type HRICOLFOTO and object type PREL.
IMG->Basis Components->Basis Services->SAP Archive Link->Basic Settings->Maintain Links.
Table TOAOM_C, Tcode OAC3
5. Create this content repository with storage type FILE archive.
IMG->Basis Components->Basis Services->SAP Archive Link->Basic Settings->Maintain content repositories.
Tcode OAC0
Storage type FILE archive can be attained by clicking on the field Storage type and clicking somewhere else in the screen with the right mouse button. Choose Possible entries and only then you get a list of all values. FILE Archive is entry number 08. Choose Version no. 0031 and Archive path something (e.g. C:\).
6. Link photo to personnel number.
Menu->Tools->Business Documents->Miscellaneous->Stored Documents. Tcode OAAD.
Click on the Create button. Business object PREL and Docyment type HRICOLFOTO. Click on create (fill in the right personnel number in the pop up and click Continue). Choose the photo (as a JPG file) from the place where it is saved (e.g. hard disk). SAP will notify that the Stored Document was created succesfully. Photo is visible via PA10, PA20, PA30, PA40. Double-click to magnify photo.
To delete archived document :
Tcode OAAD, click Find. In docyment type field select HRICOLFOTO and after execute you get a list of all documents. Select appropriate document and click on delete icon.
Don't forget to adjust IT0002 header!!!!
Please also see SAP Note 488281. Here's some of what it says:
1. The pictures (.jpg or .bmp) must be available on your PC.
2. Start transaction OAAD.
3. Choose function 'documents -> create'
4. Choose as business object 'PREL' and as document type 'HRICOLFOTO'
5. Push the create button
6. Fill in the appropriate personnel number
This solution requires SAP Archivelink to be installed.
Use SICF tcode that displays lot of services. Under sap --> bc there is a service called content server interface. Activate this service.
Now Create the A2 repository with TCode OAC0.
While creating the repository, keep the Document Area blank, Storage type as R/3 database, Rep. Sub-type will appear as Normal by default, Version No. as 0046 and in Contents table put 'SDOKCONT1' as the table name.
This will set the config part. Now upload the picture using tcode OAAD. -
Archive Link Error - Content Repsoitory does not exist
Hi,
I have created a content repository which points to our own external HTTP content server which is a DMS server through transaction OAC0.
In transaction CSADMIN I can see our server's status as running, still it shows yellow icon "customizing missing" in CSADMIN and in transaction OAC0 whenver I click "Test Connection" it gives the message" Content Repository does not exist". CMS 106.
Kindly help.
Regards
NehaHi,
Check this URL for Content Repository Archive set up guidelines:
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAARC/CAARC_INTRO.pdf
Thanks.
Boopathi -
ARC0: Warning. Log sequence in archive filename wrapped
Hi,
I am having my production database(Oracle 11gR1) in windows 2003 server.
I am often getting below archive warnings in alert logs.
ARC0: Warning. Log sequence in archive filename wrapped
to fix length as indicated by %S in LOG_ARCHIVE_FORMAT.
Old log archive with same name might be overwritten.
1.Could any one tell the reason and how to resolve this?
2.Also i want to know the limitations of %s and %S in LOG_ARCHIVE_FORMAT?
my log_archive_format is set to string ARC%S_%R.%TVikash Jain (DBA Trainee) wrote:
Hi,
I am having my production database(Oracle 11gR1) in windows 2003 server.
I am often getting below archive warnings in alert logs.
ARC0: Warning. Log sequence in archive filename wrapped
to fix length as indicated by %S in LOG_ARCHIVE_FORMAT.
Old log archive with same name might be overwritten.
1.Could any one tell the reason and how to resolve this?
2.Also i want to know the limitations of %s and %S in LOG_ARCHIVE_FORMAT?
my log_archive_format is set to string ARC%S_%R.%T
Change log archive format to small(s) *%s* instead of *%S*
%S Specifies the log sequence number. This number is padded to the left by
zeroes. The default value is one with a range of up to five characters.
%s Specifies the log sequence number. The number is not padded. The default
value is one with no range limit on characters. also refer this link http://docs.oracle.com/cd/B19306_01/server.102/b14237/initparams103.htm -
Content server for Document attachment through "services for object" Icon.
Guys,
I have typical problem in installation of Content server for storing external documents.
We all know that we can attach the document in SAP using the icon SERVICES FOR OBJECT. By this we can attach the document to the specific object we want.
-Since my client wants only document attachment method not to completely implement SAP DMS, I proposed this method of attaching documents through services for object method.
-If documents are stored though services for object ,The attached document will directly get stored in sap database(correct me if I am wrong) while in DMS it ask you to select the storage location while u check in for any document
-By storing the doc thru "services for object " For long run when we store the documents in sap database our system will drastically get slow down.
-In this regard I have a plan to incorporate external storage server.
-Now I should know that how I should customize content server configuration so that the attachment through services for object will store into this content server I need to know how to define Client, Content Category, Content Repository, Document Area, Physical Machine, IP Address, Port. (OACT & OAC0)
I appreciate for immediate solution and <u><b>Points will be rewarded for sure.</b></u>
Regards,
Murali.SHi Murali,
Don't Worry, its possible,
All attachments can be stored in SAP Content Server also, but through archiving process.
Set up a database storage system.
Preparation
Make sure that the HTTP plugin is active.
Transaction <b>SMICM,</b> "Display Services" function key (shift F1)). The list of services must contain a port other than 0 for HTTP.If not, you must adjust the relevant profile parameter.
<u>Typical entry:</u>
icm/server_port_0 PROT=HTTP, PORT=1080, TIMEOUT=900
<b>Make sure that the /sap/bc/contentserver service is active.</b>
If no user is defined, then use transaction SU01 to create a new user. Use the "System" user type.Assign
the SAP_ALL and SAP_NEW profiles to the user. (Eg: HRUSER/PLMUSER/PPUSER etc)
Transaction <b>SICF,</b> select: default_host - sap - bc -contentserver. Select the function to display/change the service. Make sure that a user is defined.
Using the relevant data from the newly created user, maintain the anonymous logon data for the
/default_host/sap/bc/ service and save & activate the changes in transaction <b>SICF</b>. Double click on content server and give the user name which has been created (HRUSER/PLMUSER/PPUSER/MMUSER etc)
Check the system PSE.
Start transaction <b>STRUST</b>. Expand the system PSE. The system PSE must be "green" for each application
server.
Determine a suitable exchange directory.
The exchange directory must be accessible from each application server. If all application servers are running on the same platform (for example, Windows), one network directory that is accessible on all application server (for example,
server\share) is sufficient. You can generally use the global directory
(profile parameter DIR_GLOBAL).You can use the RSPARAM report to determine the profile parameters.
Setting up the storage
Create a table for storing the data. Using transaction <b>SE11</b>, create a copy of the SDOKCONT1
table. If you want to create the repository database, you can name the table ZCONT_DB, for example. Save the
table as a local object. Activate the table.
Create a repository.
Use transaction <b>OAC0</b> to create a new repository.
Use the following parameters:
Repository Max. two characters, for example, Z1
DocArea: ARCHLINK
Storage type: R/3 database
Storage subtype: normal
Version no. : 0046
Contents table <table name> for example: ZCONT_DB
Exchange directory <directory name> for example:
server\share\
Make sure that the exchange list ends with a \ (or /on Unix).If you are using a variety of platforms, you must use transaction FILE to define a suitable logical file name and use this name. Save the settings.
1. Maintain view table <b>TOAAR_C</b>, via SM31
Cross client table displayed as information, forget it
2. In field 'StSytm' you must entered 'Z1' as your system need, or anything that you need but you must configure HR Archive link too.
3. In field 'Arch.path' (direct above Spoolpath), entered path in your system, this real path in your operating system. May be you should confirm to your Basis consultant where exactly you could store picture files. So if you enter '/', your file exists at root directory at your UNIX system.
4. Choose 'File store' radio button
5. Save.
First
<b>1. You have to create a number range for SAP ArchiveLink.
IMG: Basis Components-> Basis Services -> SAP ArchiveLink -> Basic Settings-> Maintain number ranges
(Trxn <b>OANR).</b> Create number range 01 from 0000000001 to 9999999999 without the external number flag.
2. Document type <b>HRICOLFOTO</b> must exist with document class JPG.
IMG: Basis Components->Basis Services->SAP ArchiveLink->System Settings->Maintain document types
(Table<b> TOAVE, Trxn OAC2).</b>
3. Document type <b>HRICOLFOTO</b> must be linked to object type PREL and Infotype PA0002.
IMG: Personnel Management->Personnel Administration->Tools->Optical archiving->Set up Optical Archiving
in HR. (View V_T585O, no Trxn). In the first two columns there are minuses, the third (Date) has
a plus - don't put a flag in the check box.
4. Check which content repository (Archive) is linked to document type HRICOLFOTO and object type
PREL. IMG: <b>Basis Components->Basis Services->SAP ArchiveLink->Basic Settings->Maintain Links (Table
TOAOM_C, Trxn).</b></b>
Test
Test the repository.
Use transaction SE38 to start the RSCMSTH0 report. Specify your repository (i.e. Z1) and start the test.
The report must run without errors. If no problems occurred, you can use the new repository with Archive Link after you carry out the Archive Link Customizing. If problems do occur, check whether one of the related
notes helps.
For More Details :
http://service.sap.com/archivelink.
<u><b>
NOTE:- Screen Shots are missing, i was not able to paste here, One more thing is we did this for uploading a PHOTOS into Content Server, Similarly you have to create a REPOSITORY and Z-TABLE to bring all the Attachments from all the selected Objects and then route them to the CONTENT REPOSITORY.</b></u>
Your Senior ABAP guy would help you in this, if not i may try to help you more by monday.
Regards
Rehman
<b>Reward Your Points if Satisfied.</b> -
How to get (OAAD tcode) employee photo into sapscript / smartforms??
Hi!
I need to insert the employee photo jpeg (from oaad) into an sapscript or smartforms.
It's possible to do dynamically? (without file conversion)
ThanksHi,
I m providing u with this link, u may get some idea .
How to display the employee photo in a smartform
or
These are all the steps to upload the Photo.
1. Create a number range for SAP Archive Link :
IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain number ranges.
Tcode: OANR
Create range 01 from 0000000001 to 9999999999 without the external number flag.
2. Document type HRICOLFOTO must exist with document class JPG.
IMG>Basis Components>Basis Services>SAP Archive Link>System Settings>Maintain document types.
Table: TOAVE
Tcode: OAC2
3. Document type HRICOLFOTO must be linked to object type PREL and IT0002.
IMG>Personnel Management>Personnel Administration>Tools>Optical Archiving>Set up Optical Archiving in HR.
View: V_T585O,
In all three columns there are minuses, don't put a flag in the check box.
4. Check which content repository (Archive) is linked to document type HRICOLFOTO and object type PREL.
IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain Links.
Table: TOAOM_C,
Tcode: OAC3
5. Create this content repository with storage type FILE archive.
IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain content repositories.
Tcode: OAC0
Storage type FILE archive can be attained by clicking on the field Storage type and clicking somewhere else in the screen with the right mouse button. Choose Possible entries and only then you get a list of all values. FILE Archive is entry number 08. Choose Version no. 0031 and Archive path something (e.g. C .
6. Link photo to personnel number.
Menu>Tools>Business Documents>Miscellaneous>Stored Documents.
Tcode: OAAD
Thanks,
Mamta Kumari -
Create PDF based on spool ID and store on content server
Hi all,
I need to create a PDF file from a spool ID and store this in a repository on the content server (archive). How can I do this <b>without creating a physical file on the local workstation</b>?
All helpful answers will be rewarded!
- Mari VirikHi Mari,
This is a sample report pgm which create pdf file from spool id :
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
Write statement to represent report output. Spool request is created
if write statement is executed in background. This could also be an
ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
Alternative way could be to submit another program and store spool
id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
to sap-spool
spool parameters %_print
archive parameters %_print
without spool dynpro
and return.
Get spool id from program called above
IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
FORM get_job_details *
FORM get_job_details.
Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
FORM process_email *
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
perform send_email using p_email2.
ENDFORM.
FORM send_email *
--> p_email *
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
<b>and then use archiving object to store the photo i have explained you as an example</b>
You have to create a content repository "A2" or another . You have to follow then next steps :
Create a content repository with storage type FILE archive.
Tcode OAC0
IMG: Basis Components Basis Services SAP Archive Link Basic Settings Maintain content repositories
(Embedded image moved to file: pic00041.pcx)
Swap from display to amend. Select a current entry and 'copy' or just hit 'create'. Then select .
(Embedded image moved to file: pic18467.pcx)
Then fill in the details as below:
Choose a two char name
Set DocArea to be 'Archive Link'
Storage type FILE archive (see Note below on how to get this!)
Choose Version no. 0031
Enter the path name where the photos are to be loaded from. Note this is for loading only. When the photos are linked into the sap system (see later), actually, SAP takes a 'copy' and stores it elsewhere. The path may only need to be entered to 'Arch.path', but entering to all three doesn't seem to hurt.
Note on storage type:
Storage type 'FILE archive' may not be in the dropdown list, and F4 (poss entries) may not work! If this is the case, click on the field Storage type (left mouse button) and then click the right mouse button. Choose Possible entries and a full list of all
possible storage types is shown. FILE archive is entry number 08 and then
Check which content repository (Archive) is linked to document type HRICOLFOTO in object type PREL.
Tcode OAC3
Table TOAOM_C
IMG: Basis Components Basis Services SAP Archive Link Basic Settings Maintain Links
(Embedded image moved to file: pic06334.pcx)
Set the 'Content R' field to the one you've just set in the step above.
Note the Ret.per. field is the retention period for the photo in MONTHS. (so the default is 833 years and 3 months!)
Now you can link the photo to the employee.
<b>Pls reward pts if found usefull :)</b>
Regards
Sathish -
How to display the employee photo in a smartform
hii,
I need to display the photo loaded through OAAD transaction in a smartforms.
If any one got a solution for the same,pls give me some guideline.
Regard,
Deeplatahi,
These are all the steps to upload the Photo.
1.Create a number range for SAP Archive Link :
IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain number ranges.
Tcode OANR. Create range 01 from 0000000001 to 9999999999 without the external number flag.
2.Document type HRICOLFOTO must exist with document class JPG.
IMG>Basis Components>Basis Services>SAP Archive Link>System Settings>Maintain document types.
Table TOAVE, Tcode OAC2.
3.Document type HRICOLFOTO must be linked to object type PREL and IT0002.
IMG>Personnel Management>Personnel Administration>Tools>Optical Archiving>Set up Optical Archiving in HR.
View V_T585O, no Tcode. In all three columns there ara minuses, dont put a flag in the check box.
4.Check which content repository (Archive) is linked to document type HRICOLFOTO and object type PREL.
IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain Links.
Table TOAOM_C, Tcode OAC3
5.Create this content repository with storage type FILE archive.
IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain content repositories.
Tcode OAC0
Storage type FILE archive can be attained by clicking on the field Storage type and clicking somewhere else in the screen with the right mouse button. Choose Possible entries and only then you get a list of all values. FILE Archive is entry number 08. Choose Version no. 0031 and Archive path something (e.g. C:\).
6.Link photo to personnel number.
Menu>Tools>Business Documents>Miscellaneous>Stored Documents. Tcode OAAD.
Click on the Create button. Business object PREL and Docyment type HRICOLFOTO. Click on create (fill in the right personnel number in the pop up and click Continue). Choose the photo (as a JPG file) from the place where it is saved (e.g. hard disk). SAP will notify that the Stored Document was created succesfully. Photo is visible via PA10, PA20, PA30, PA40. Double-click to magnify photo.
If you want to upload the photo in Mass, view the zprog in this link.
http://wiki.ittoolbox.com/index.php/Code:Z_report_for_Massive_Photos_Upload -
Hi All,
I have the installed MDM components succesfully. Now I want to install the content(Material, Employee, Vendor) delivered by SAP. Can somebody direct me on how doi install this content in MDM5.5
Thanks
SreekanthHello Sreekanth,
there are repository archive files (*.a2a) delivered for each of the R/3 object types, MDM supports currently.
What you have to do to activate such a repository, is :
- copy the archive file into the directory ...\server\archives
- Unarchive the repository in the console. Therefore select the MDM server and then use right mouse click to unarchive the repository
- Load the repository, again via right mouse click.
Regards Klaus -
Hello Experts,
i am uploading a photo wih the help of abaper but problem is when i run t code OAC0 and create repository for that
storage type should be type as R/3 database .but when I am selecting it is not coming another option is comes HTTP CONTENT SERVER.
Wiil u plz help me out?
i used below step
Now Create the A2 repository with Tcode: OAC0
While creating the repository, keep the Document Area blank, Storage type as R/3 database, Rep. Sub-type will appear as Normal by default, Version No. as 0046 and in Contents table put 'SDOKCONT1' as the table name.
Thanks and Regards
Jaydeep JadhavU can follow the following steps.
Configuring Employee Photos
Create Number Range
A number range must be created for SAP Archive Link.
Transaction code: OANR
For this process, additional authorisation is required for S_NUMBER = 03 ARCHIVELNK.
In u2018Intervalsu2019, create number range 01 from 0000000001 to 9999999999 without the external number flag.
This is likely to already exist.
Assign Documents Class
Document type HRICOLFOTO must exist with document class JPG.
Transaction code: OAC2
Table TOAVE
Document type settings
Document type HRICOLFOTO must be linked to object type PREL and Infotype 0002.
Transaction code: SM31
Table V_T585O (View)
Set all three columns here to minuses and don't put a flag in the check box.
Content Repository
Create a content repository with storage type FILE archive.
Transaction code OAC0
IMG: Basis Components --> Basis Services --> SAP Archive Link --> Basic Settings --> Maintain content repositories
Swap from display to amend. Select a current entry and u2018copyu2019 or just hit u2018createu2019. Then select .
Then fill in the details as below:
Choose a two character name u2013 can use Zx (where x is a number) if you wish to use the customer namespace
Choose the relevant description
Set DocArea to be u2018Archive Linku2019
Storage type u2013 set to R/3 Database
Protocol u2013 leave blank
Choose Version no. 0046 (or the latest one that is available)
Contents table u2013 set this to SDOKCONT1
Basic Path u2013 c:\ (this should be set to where the photos are all held)
Archive Path u2013 c:\ (this is the area from where the photos are retrieved)
Output Device u2013 can leave blank
Enter the path name where the photos are to be loaded from. Note this is for loading only. When the photos are linked into the sap system (see later), actually, SAP takes a u2018copyu2019 and stores it elsewhere. The path may only need to be entered to u2018Arch.pathu2019, but entering to all three doesnu2019t seem to hurt.
Maintain the required Basis Service
Transaction code: SICF
Here you activate the Content Server Interface.
First you need to create a user profile u2013 with sufficient authorisations to carry out the processes which are done by the system in the background. Ideally this should be a background user for a notional/dummy user. You can use your own user ID after which SAP will warn you that this is a dialogue user account. If you do use your own user ID, change it as soon as you have tested the config. Once you have finished the project, the chances are that your user account will be deleted from the system which will subsequently stop this service from working.
Double-click on u201Ccontent serveru201D in the left hand tree structure. You can find it under default_host --> sap --> bc --> content server
Once you have done this click on the refresh icon and make sure that the service is activated. If it is activated, the writing should be in bold (as opposed to greyed out)
Check which content repository (Archive) is linked to document type HRICOLFOTO in object type PREL
Transaction code: OAC3
Table TOAOM_C
Set the u2018Content Repositoryu2019 field to the one you set up in the step above.
Note the Ret.per. field is the retention period for the photo in MONTHS. (so the default is 833 years and 3 months!)
Link photo to personnel number
Transaction code OAAD
Click on the Create u2013 Store and Assign button. Enter Business Object PREL and Document Type HRICOLFOTO. Click on create(F8).
Enter the Personnel Number of the employee you want to link the photo to.
Maybe you are looking for
-
Home network stopped functioning after FIOS installation
I have 2 desktops running XP and a wireless laptop running Vista. With my old router, I was able to transfer files and print. After the FIOS installation, the three computers don't "see" each other. All 3 have internet connectivity and no problems
-
Help in CURSOR when pass parameter for the IN
Hi, Need some help I have CURSOR that takes a VARCHAR2 and NUMBER but when I run my Procedure it gives invalid number. Here is the CURSOR CURSOR get_count (p_list VARCHAR2, p_id NUMBER) IS SELECT COUNT (*) total_rows, N
-
Hello all, After configuring OEM to production database. i can able to check the status of database & host is up , but listener status is down, moreover all the listeners,services,databases are running. by checking logfile of EMOMS i find following e
-
hi all, i am using OOPS ALV to display the report. requirment is that i need to dispaly * when the value of the amount coloumn is 0. i changed that coloumn to character and displayed as "*", but now i am not able to used the summing option given by A
-
ip nat pool IP_PHONE_PF 192.168.111.118 192.168.111.118 netmask 255.255.255.0 type rotary ip access-list extended Udp_Ranges__IP_Phone permit udp any any 20001 permit udp any any 50100 permit udp any any range 50098 50508 permit udp any any range 500