Aperture Data Base lost
Hi All:
I have an old MacBookPro 2008, (the first aluminum model) with upgraded hardware and software to 1Tb HD, plus 8Mb RAM. IOS Maverick 10,9,5 and Aperture 3,5,1.
Initially When I began with second Aperture version, accidentally I made two database in separate files. When upgraded Aperture to version 3, both database merged to one. Unfortunately in this process I loose some original files, only appeared the versions.
I backuped in an external disk with time machine prior to upgrade to 1Tb and RAM.
The new configuration, ran fast during a short time. First The Mac shut down unexpectedly, and when started, it requires repair disk. It never repaired correctly. After checking many procedures, I ran fsck -fy three times with no success. Finnally the hard drive did not started IOS more, so I had to replace it.
I replaced for a new 1Tb, and with Time Machine I restored the information, the IOS and data.
The problem with Aperture began to intensify, and it claimed for repair data any time I started Aperture. I used also restore, with no success and as a result the 90% of my photos disappeared, only the folders exist, and some photos has a exclamation alert above the file.
Unfortunatelly last time I was restoring the system Time Machine took all the night doing the process, finished and next time it tried to back up, overwrite old version (non corrupted) and as a result all my backups are corrupted.
I tried to downloaded my recent photos using Lightroom, but Aperture opens when I connected the Compact Flash card reader. I cancelled the preview in Aperture, but surprisingly it does not being recognized again.
After checking, the Compact Flash Card with 32Gb photos was damaged, but the more serious, the Mac book doesn't started again. The ram was also damaged.
Now I had to pay in order to restore my photos from CF, but my 15 years photos stored in the old mac and external memory are corrupted.
I have an external backup corrupted, a hard disk damaged and an old MacbookPro with corrupted information.
I decided to buy a new MACBOOKPRO but I am not sure how to proceed with corrupted files from Aperture. What do you recommend me??
Jaime D
Photoboydc,
I regret to say that I don't have a fix for you and I'm sorry to say that you are indeed in a quite a rough spot. At the risk of Apple deleting this, thread, I wish to share with you that I experienced, more than once, the issue you are having. The first time it happened to me it nearly bankrupted my business with labor costs just to have my employees redo all the work of an entire wedding season; seriously, it nearly did. I was very vocal about this issue both on here and over at Aperture Users Network. In the end, there was not a viable fix or work around.
It is unfortunate to read your story as I was told from the folks over at the Aperture Users Network that Aperture update 2.1.3 was largely going to take care of such issues. As a matter of fact, I remember distinctly the release notes on the update stating bug fixes related to such issues you are having now.
Here is the thing: While any work you have done (adjustments etc.) may be lost, your master images are still able to be rescued if you are willing to start over. Go to: Aperture Library>right click>show package contents, from here you will see any and all projects you had in the library. From here you can, one at a time, move a project to the desktop, restart Aperture and see what happens. Rebuilding the database using this stepwise progression might lead you to some luck after all.
I must admit that I'm quite distressed about the future of Aperture. I would hate to see Aperture fall as I feel that it is a much better tool than Lightroom. Lightroom though, has an enormous following and user base which, in their numbers, has power to petition for change.
I really hope this helps Photoboydc, as I can only imagine the sinking feeling you are feeling in your stomach.
Good luck,
ChristopherDavid
Similar Messages
-
Aperture "data base inconsistency"
I'm shooting a project in the middle of Sudan and Aperture (2.13) has suddenly quit. My library is on a correctly formated external, the vault on another one. I got a message saying Aperture had detected a database inconsistency, and directed me to restart the app holding down the option and cmd keys. I did that and got a progress bar, but after six hours or so it stalled 75% of the way through. I have seen on the web cases where it stalled for days, until the user gave up, which I did. And until this problem gets resolved, Aperture is unusable; it won't load the library. So what's going on? Will it stall for very long periods and then actually complete? I really need this to work; the nearest Apple store is 5000 miles from here. Thanks
Photoboydc,
I regret to say that I don't have a fix for you and I'm sorry to say that you are indeed in a quite a rough spot. At the risk of Apple deleting this, thread, I wish to share with you that I experienced, more than once, the issue you are having. The first time it happened to me it nearly bankrupted my business with labor costs just to have my employees redo all the work of an entire wedding season; seriously, it nearly did. I was very vocal about this issue both on here and over at Aperture Users Network. In the end, there was not a viable fix or work around.
It is unfortunate to read your story as I was told from the folks over at the Aperture Users Network that Aperture update 2.1.3 was largely going to take care of such issues. As a matter of fact, I remember distinctly the release notes on the update stating bug fixes related to such issues you are having now.
Here is the thing: While any work you have done (adjustments etc.) may be lost, your master images are still able to be rescued if you are willing to start over. Go to: Aperture Library>right click>show package contents, from here you will see any and all projects you had in the library. From here you can, one at a time, move a project to the desktop, restart Aperture and see what happens. Rebuilding the database using this stepwise progression might lead you to some luck after all.
I must admit that I'm quite distressed about the future of Aperture. I would hate to see Aperture fall as I feel that it is a much better tool than Lightroom. Lightroom though, has an enormous following and user base which, in their numbers, has power to petition for change.
I really hope this helps Photoboydc, as I can only imagine the sinking feeling you are feeling in your stomach.
Good luck,
ChristopherDavid -
Error opening data base for the library for Aperture
Hello,
I have been using Aperture all day and for some reason am now getting this error message when trying to open it again.
Te was an error opening the data base for the library "users/*******/pictures/aperture3triallibrary.aplibrary
Has this happened for anyone else?
Many ThanksWhen I hold down ⌘⌥ firmly, at the same time, and with these keys held down double click the Aperture library that I want to repair, I get this panel:
Then, when I select "Repair" Aperture will show a progress bar and the Dock icon will stay highlighted.
When it is finished, the Aperture window will open.
When I select repair, it seems as though it doesn't run. I don't get a dialog box to confirm it's happening and on the dock the little light under the Aperture icon isn't lit, which seems it is'nt open or running.
After you select "Repair", does the panel close and then nothing? Or does the panel not react?
I still don't see fully, what is going on on your mac.
But it is a good sign, that you can create a new library. That suggests, that Aperture is running correctly on your mac, and "only" your old library has a problem. Try to test the new library - import a few images and try to adjust them.
Once you are convinced, that the new library is working well, you have three options.
Try "Rebuild" instead of "Repair".
Or try to import your old library into the new library (Aperture's main menu bar > File >Import > Library) - that is another approach to rebuilsd the library.
Or restore from backup. To restore from Time Machine, open a Finder Window showing your Aperture library, and then enter Time Machine. Go back in time to the most recent date that has a working Aperture library and select "Restore". If you have enough space on your disk, restore to a different folder and don't overwrite your current library.
Regards
Léonie -
I have had Aperture 3 loaded on my computer for a while now. Never had any problems till tonight. Restarted my computer and went to open Aperture and a "warning" box poped up, There was an error opening the data base for the library /picture/aperture library ap library. Then a "quit" button.
What is going on and how can I open my aperture. I have pictures that need worked for clients. Help!Have you run through the steps in Aperture 3: Troubleshooting Basics. If not that's always a good place to start.
If that doesn;t resolve the problem when you post back describe your hardware and software setup.
good luck -
Aperture working on OS 10.6.8 then Library Update rqstd on Aperture 3.2; said yes;
now Aperture won't open, get msg "error opening data base for the library "~/Pictures/Aperture Library.aplibrary"
TIme machine won't load backup "error code -8003"
Tried reloading Aperture 3.2 but get same result.You’re running an outdated copy of Safari on your Desktop. That won’t work.
In the Finder, select
Go ▹ Applications
from the menu bar, or press the key combination shift-command-A to open the Applications folder. Check that the Safari application is in that folder. If it is, use it, and delete the copy on your Desktop. Never move or copy built-in applications.
If you've deleted Safari from the Applications folder, back up all data, then reinstall OS X. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin. -
Aperture 3: GPS data gets lost after 'Update from Master'
My library contains photos in JPEG format that I geotag in Places, then I save the metadata with 'Write IPTC Metadata to Master'. The problem I have is, that the GPS data gets lost after I do an 'Update from Master', even if I saved the metadata before. I'm having this problem with referenced and managed photos and all my JPEGs from several different cameras. The only way to permanently store the GPS info into my photos seems to be to export the geotagged photos as versions.
Does anybody has the same problem or knows how to solve this?
Thanks in advance,
MichaelUse Houdah geo (http://www.houdah.com) to write location data back to the EXIF. It's interface is very similar to Places (Google maps and pins) and you can interface with the Aperture library. It's a bit of a pain, but if you need it done now rather than wait for an Aperture 3 fix, then...
Also, see here: http://www.nickrains.com/index.php?option=com_content&view=article&id=65:apertur e-3&catid=12:news&Itemid=24 -
I am working on projects with one other person and we would like to see the updates from one another. In preference we'd like to share the same data base. However we do in fact have our own seperate copies of the program.
I don't know if the aplibrary can be on a network attached storage drive. You could try that. Still, only one person can work on the library at a time.
See this support article: The library needs to be on a local volume:
Aperture: Use locally mounted Mac OS X Extended volumes for your Aperture library:http://support.apple.com/kb/TS3252 -
Sql server data base retored to an earlier date (lost data)
halo,
I have found that someone or something restored my mssql database to an earlier date and lost a lot of data as a result
I have no back up for the lost data.
is there a way to roll back database server so I can recover the lost data?
I will be grateful for any suggestion you give me
thank you...If backup was restored with REPLACE option or Overwrite option(in GUI) you as such cannot rollback the restore process.
Do you have any backup which is taken after you made changes to your data, or any backup which would include the data you want. If you have you can restore from that backup otherwise there is no solution.
Is this database mirrored/Logshipped/ replicated anywhere ?
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP -
Create a small data base stored in a file
I want to create a small data base of about 10 to 20 items. Each item will have an item number, serial number, time stamp and description. I want to store these 10 items in a file and be able to retrieve them by item number. How can I do this with LabView?
For something this small, use a single VI to manage it in memory:
It has a FUNCTION input, an enum with values of (INIT, READ FILE, WRITE FILE, ADD ITEM, FIND ITEM).
It has a CLUSTER input, which is your record type {Item number, serial number, time stamp, description}
It has a CLUSTER output, of the same type.
It has an ITEM NUMBER input, which is an integer (assuming your item number is truly a number).
The code is a WHILE loop with the CONTINUE input wired to FALSE (it never loops).
Inside the WHILE LOOP is a CASE statement, with the selector wired to the FUNCTION control.
For case INIT, make an empty array of records (your cluster type) and feed it to a shift register on the WHILE loop.
For case WRITE FILE, take the shift regis
ter input and CREATE, WRITE, and CLOSE a file. (pass it thru to the output as well). Wire the cluster to the DATALOG TYPE of the CREATE FILE function to create a datalog file.
For case READ FILE, use OPEN FILE, READ FILE, and CLOSE FILE functions, with DATALOG TYPE wired to the cluster type.
For case ADD ITEM, just append the new item (input cluster control) to the array from the shift reg and put the array back in the shift reg.
For case FIND ITEM, just search thru the array (from the shift reg) until you find the matching item number, then return the whole record in the output.
You'll have to pass the left shift reg thru the case to the right shift reg in all cases except INIT, READ FILE, and ADD ITEM.
This means the actual storage is in the shift reg, for max efficiency.
If you get beyound a hundred items, I would suggest a different FIND ITEM technique (keep a separate list for ITEM NUMBERS and search that, rather than the whole thing).
This assumes you ha
ve control of shutdown - any changes you make are lost unless you call WRITE FILE afterwards.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks -
Data base was broken now its fixed
When I installed 2.0 I upgraded my broken data Base because I never thought I would find the broken part anyway. Well "knock on wood" after playing with it for a little while I restarted aperture to rebuild the data base expecting to find errors all over the place. None!
I know Apple worked on the data base but I didnt expect this. I have run Cocktail in between the rebuilds but I'm pretty sure that would not of done it. Apple did it right ... at least by me.
Hope others work out too
DavidIf you restore to an older backup, you will get the content that is in the backup. Everything on the iPhone will be erased and you will be brought back to the time that backup was made. See this document prepared by another user about syncing to a new computer https://discussions.apple.com/docs/DOC-3141
-
Transfer of xml file elements to data base columns
hi all,
i have to store xml file's data(element values) into the data base(table columns).
i heard that we can acheive this by XSU.
IS it is mediator between xml and db? if yes how to install it.
i tried something as below
with t as (
select xmltype('<Message-Header>
<Message-Id>1234</Message-Id>
<Sender-Company-ID>4569</Sender-Company-ID>
<Sender-Company-Name>abc company</Sender-Company-Nam
<Sender-User-ID>AA</Sender-User-ID>
<Recv-Company-ID>050</Recv-Company-ID>
<Recv-Company-Name>XYZ pvt.ltd</Recv-Company-Name>
<Creation-Time>20101019 15:59:39</Creation-Time>
</Message-Header>') as xml from dual
)but i am getting following error. can anybody explain about this
SQL> ed
Wrote file afiedt.buf
1 with t as (
2 select xmltype('<Message-Header>
3 <Message-Id>1234</Message-Id>
4 <Sender-Company-ID>4569</Sender-Company-ID>
5 <Sender-Company-Name>abc company</Sender-Company-Name>
6 <Sender-User-ID>AA</Sender-User-ID>
7 <Recv-Company-ID>050</Recv-Company-ID>
8 <Recv-Company-Name>XYZ pvt.ltd</Recv-Company-Name>
9 <Creation-Time>20101019 15:59:39</Creation-Time>
10 </Message-Header>') as xml from dual
11* )
SQL> /
with t as (
ERROR at line 1:
ORA-01041: internal error. hostdef extension doesn't existPlease help me..
my db version is Oracle Database 10g Release 10.2.0.1.0 - ProductionHi,
What are you trying to achieve with a single WITH clause and no SELECT?
Please see this from the documentation if you want to use it properly :
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#i2077142
Apart from its true purpose of subquery factoring, the WITH clause is often use here and there to simulate a table content, but you'll always need a SELECT.
Maybe that's what you were trying to do?
As for your question, starting with release 10.2, Oracle provides XMLTable to shred XML documents into relational structures.
For example,
with t as (
select xmltype('<Message-Header>
<Message-Id>1234</Message-Id>
<Sender-Company-ID>4569</Sender-Company-ID>
<Sender-Company-Name>abc company</Sender-Company-Name>
<Sender-User-ID>AA</Sender-User-ID>
<Recv-Company-ID>050</Recv-Company-ID>
<Recv-Company-Name>XYZ pvt.ltd</Recv-Company-Name>
<Creation-Time>20101019 15:59:39</Creation-Time>
</Message-Header>') as xml from dual
select x.*
from t,
XMLTable(
'/Message-Header'
passing t.xml
columns
message_id number path 'Message-Id',
sender_company_id number path 'Sender-Company-ID',
sender_company_name varchar2(30) path 'Sender-Company-Name',
sender_user_id varchar2(30) path 'Sender-User-ID',
recv_company_id varchar2(30) path 'Recv-Company-ID',
recv_company_name varchar2(30) path 'Recv-Company-Name',
creation_time varchar2(30) path 'Creation-Time'
) x
;If you're working in PL/SQL, and the XML resides in a variable, you can directly do (with necessary datatype conversion in the SELECT) :
insert into your_table ( <your_columns_list> )
select <your_columns_list>
from XMLTable(
'/Message-Header'
passing your_xml_var
columns
message_id number path 'Message-Id',
sender_company_id number path 'Sender-Company-ID',
sender_company_name varchar2(30) path 'Sender-Company-Name',
sender_user_id varchar2(30) path 'Sender-User-ID',
recv_company_id varchar2(30) path 'Recv-Company-ID',
recv_company_name varchar2(30) path 'Recv-Company-Name',
creation_time varchar2(30) path 'Creation-Time'
) x
; -
How to export a data as an XML file from oracle data base?
could u pls tell me the step by step procedure for following questions...? how to export a data as an XML file from oracle data base? is it possible? plz tell me itz urgent requirement...
Thankz in advance
BalaSQL> SELECT * FROM v$version;
BANNER
Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
5 rows selected.
SQL> CREATE OR REPLACE directory utldata AS 'C:\temp';
Directory created.
SQL> declare
2 doc DBMS_XMLDOM.DOMDocument;
3 xdata XMLTYPE;
4
5 CURSOR xmlcur IS
6 SELECT xmlelement("Employee",XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",
7 'http://www.oracle.com/Employee.xsd' AS "xsi:nonamespaceSchemaLocation")
8 ,xmlelement("EmployeeNumber",e.empno)
9 ,xmlelement("EmployeeName",e.ename)
10 ,xmlelement("Department",xmlelement("DepartmentName",d.dname)
11 ,xmlelement("Location",d.loc)
12 )
13 )
14 FROM emp e
15 , dept d
16 WHERE e.DEPTNO=d.DEPTNO;
17
18 begin
19 OPEN xmlcur;
20 FETCH xmlcur INTO xdata;
21 CLOSE xmlcur;
22 doc := DBMS_XMLDOM.NewDOMDocument(xdata);
23 DBMS_XMLDOM.WRITETOFILE(doc, 'UTLDATA/marco.xml');
24 end;
25 /
PL/SQL procedure successfully completed.
. -
Im trying to build user expiration into my registration form, but I cant get the form to send back the date registering.
in my data base i have tried every thing from timestamp to datetime. I can get a timestamp but it is not functioning with the expiration?just have a look at my tutorial Login tables: installation & configuration where the required column attributes are explained and where you can obtain a fully functional SQL dump for a typical ADDT "login" and (optionally) "login_stats" table.
BTW, "expiration" will have to be an "int" column.
Cheers,
Günter -
Quota Generation not happen's on Pro data basis .
Dear experts,
Time evalution status - 1.
1.Employee service 0 - 5 years - 24 Days entitlement
2.Employee service 5 - 10 years - 29 days entitlement.
when generating quota for employee less than five years its calculating correctly.when come's to employee more than 5 years its not calculating on pro-data basis of employee joining month. Instead of Month it's looking at the year and calculating it.
DOJ of employee
Mar-09
Year
TOTAL quota accrued
2009
20
2010
24
2011
24
2012
24
2013
24
Client requirement
System calculation as of now
2014
28
29
Calculation part.
below screen shot show how system calculating and how client needed.
how this scenario can be configured.
Regards
VinodhCheck the Deduction rule for that Quota
once check the Groupings for ESG and PSA
V_001P_ALL
V_503_ALL -
How to stored data after clicking checkbox in data base table
REPORT ZT .
TYPE-pools: slis.
tables:mkpf,mseg,mard,COWB_COMP,ZTABLE.
Types:BEGIN OF tp_data,
mblnr LIKE mseg-mblnr,
matnr LIKE mseg-matnr,
werks LIKE mard-werks,
lgort LIKE mard-lgort,
lgpbe LIKE mard-lgpbe,
charg LIKE mseg-charg,
bwart LIKE mseg-bwart,
budat LIKE mkpf-budat,
menge LIKE mseg-menge,
meins LIKE mseg-meins,
kostl LIKE mseg-kostl,
aufnr LIKE mseg-aufnr,
rsnum LIKE mseg-rsnum,
endkz like COWB_COMP-endkz,
END OF tp_data,
tp_tbl_data TYPE STANDARD TABLE OF tp_data.
MODIFIED*******************
DATA: WA TYPE TP_DATA.
MODIFIED*******************
*data: t_data like Y00_MM_ISSUE_DAT occurs 0 with header line.
Constants
Data objects (variable declarations and definitions)
Report data to be shown.
DATA: it_data TYPE STANDARD TABLE OF tp_data.
MODIFIED*******************
DATA : V_REPID LIKE SY-REPID.
MODIFIED*******************
Heading of the report.
DATA: t_heading TYPE slis_t_listheader.
*========================== Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS:smblnr FOR mseg-mblnr MODIF ID m1,
smatnr FOR mseg-matnr MODIF ID m2,
swerks FOR mard-werks MODIF ID m3,
slgort FOR mard-lgort MODIF ID m4,
slgpbe FOR mard-lgpbe MODIF ID m5,
scharg FOR mseg-charg MODIF ID m6,
sbwart FOR mseg-bwart MODIF ID m7,
skostl FOR mseg-kostl MODIF ID m8,
saufnr FOR mseg-aufnr MODIF ID m9,
srsnum FOR mseg-rsnum MODIF ID m10.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS:pre RADIOBUTTON GROUP radi USER-COMMAND ucomm DEFAULT 'X',
pse RADIOBUTTON GROUP radi,
bps RADIOBUTTON GROUP radi.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
PARAMETER:layout TYPE i.
SELECTION-SCREEN END OF BLOCK b3.
MODIFIED*******************
INITIALIZATION.
V_REPID = sy-repid.
MODIFIED*******************
*=========================== Event Blocks
AT selection-SCREEN.
start-OF-selection.
PERFORM get_data USING it_data.
END-OF-selection.
PERFORM build_alv USING it_data t_heading.
*=========================== Subroutines
*& Form get_data
Gets the information to be shown in the report.
FORM get_data USING t_data TYPE tp_tbl_data.
SELECT msegmblnr msegmatnr mardwerks mardlgort mard~lgpbe
msegcharg msegbwart mkpf~budat
msegmenge msegmeins msegkostl msegaufnr mseg~rsnum
INTO CORRESPONDING FIELDS OF TABLE t_data
FROM mseg
JOIN mard ON mardmatnr EQ msegmatnr
JOIN mkpf ON msegmblnr EQ mkpfmblnr
WHERE mseg~matnr IN smatnr.
ENDFORM. " get_data
*& Form build_alv
Builds and display the ALV Grid.
FORM build_alv USING t_data TYPE tp_tbl_data
t_heading TYPE slis_t_listheader.
ALV required data objects.
DATA: w_title TYPE lvc_title,
w_comm TYPE slis_formname,
w_status TYPE slis_formname,
x_layout TYPE slis_layout_alv,
t_event TYPE slis_t_event,
t_fieldcat TYPE slis_t_fieldcat_alv,
t_sort TYPE slis_t_sortinfo_alv.
REFRESH t_fieldcat.
REFRESH t_event.
REFRESH t_sort.
CLEAR x_layout.
CLEAR w_title.
Field Catalog
PERFORM set_fieldcat2 USING:
1 'MBLNR' 'MBLNR' 'MSEG' space space space space space space
space space space space space space t_fieldcat ,
2 'MATNR' 'MATNR' 'MSEG' space space space space space space
space space space space space space t_fieldcat ,
3 'WERKS' 'WERKS' 'MARD' space space space space space space
space space space space space space t_fieldcat,
4 'LGORT' 'LGORT' 'MARD' space space space space space space
space space space space space space t_fieldcat ,
5 'LGPBE' 'LGPBE' 'MARD' space space space space space space
space space space space space space t_fieldcat ,
6 'CHARG' 'CHARG' 'MSEG' space space space space space space
space space space space space space t_fieldcat ,
7 'BWART' 'BWART' 'MSEG' space space space space space space
space space space space space space t_fieldcat,
8 'BUDAT' 'BUDAT' 'MKPF' space space space space space space
space space space space space space t_fieldcat,
9 'MENGE' 'MENGE' 'MSEG' space space space space space space
space space space space space space t_fieldcat,
10 'MEINS' 'MEINS' 'MSEG' space space space space space space
space space space space space space t_fieldcat,
11 'KOSTL' 'KOSTL' 'MSEG' space space space space space space
space space space space space space t_fieldcat,
12 'AUFNR' 'AUFNR' 'MSEG' space space space space space space
space space space space space space t_fieldcat,
13 'RSNUM' 'RSNUM' 'MSEG' space space space space space space
space space space space space space t_fieldcat,
14 'ENDKZ' 'ENDKZ' 'COWB_COMP' space space 'select' 'Select this row' 'Sel' 'Select this row' space space space 'X' 'X' space t_fieldcat.
Layout
x_layout-zebra = 'X'.
Top of page heading
PERFORM set_top_page_heading USING t_heading t_event.
Events
PERFORM set_events USING t_event.
GUI Status
w_status = ''.
User commands
w_comm = 'USER_COMMAND'.
Order
Example
PERFORM set_order USING '<field>' 'IT_DATA' 'X' space space t_sort.
PERFORM set_order USING 'MBLNR' 'IT_DATA' 'X' space 'X' t_sort.
PERFORM set_order USING 'EBELN' 'IT_DATA' 'X' space 'X' t_sort.
PERFORM set_order USING 'EBELP' 'IT_DATA' 'X' space space t_sort.
Displays the ALV grid
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = V_REPID
it_fieldcat = t_fieldcat
is_layout = x_layout
it_sort = t_sort
i_callback_pf_status_set = w_status
i_callback_user_command = w_comm
i_save = 'X'
it_events = t_event
i_grid_title = w_title
TABLES
t_outtab = t_data
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " build_alv.
*& Form set_top_page_heading
Creates the report headings.
FORM set_top_page_heading USING t_heading TYPE slis_t_listheader
t_events TYPE slis_t_event.
DATA: x_heading TYPE slis_listheader,
x_event TYPE LINE OF slis_t_event.
Report title
CLEAR t_heading[].
CLEAR x_heading.
x_heading-typ = 'H'.
x_heading-info = 'Reporte Prueba'(001).
APPEND x_heading TO t_heading.
Program name
CLEAR x_heading.
x_heading-typ = 'S'.
x_heading-KEY = 'Program: '.
x_heading-info = sy-repid.
APPEND x_heading TO t_heading.
User who is running the report
CLEAR x_heading.
x_heading-typ = 'S'.
x_heading-KEY = 'User: '.
x_heading-info = sy-uname.
APPEND x_heading TO t_heading.
Date of execution
CLEAR x_heading.
x_heading-typ = 'S'.
x_heading-KEY = 'Date: '.
WRITE sy-datum TO x_heading-info.
APPEND x_heading TO t_heading.
Time of execution
CLEAR x_heading.
x_heading-typ = 'S'.
x_heading-KEY = 'Time: '.
WRITE sy-uzeit TO x_heading-info.
APPEND x_heading TO t_heading.
Top of page event
x_event-name = slis_ev_top_of_page.
x_event-FORM = 'TOP_OF_PAGE'.
APPEND x_event TO t_events.
ENDFORM.
*& Form set_events
Sets the events for ALV.
The TOP_OF_PAGE event is alredy being registered in
the set_top_page_heading subroutine.
FORM set_events USING t_events TYPE slis_t_event.
DATA: x_event TYPE LINE OF slis_t_event.
Example
clear x_event.
x_event-name = .
x_event-form = .
append x_event to t_event.
ENDFORM.
*& Form set_order
Adds an entry to the order table.
FORM set_order USING p_fieldname p_tabname p_up p_down p_subtot
t_sort TYPE slis_t_sortinfo_alv.
DATA: x_sort TYPE slis_sortinfo_alv.
CLEAR x_sort.
x_sort-fieldname = p_fieldname.
x_sort-tabname = p_tabname.
x_sort-UP = p_up.
x_sort-down = p_down.
x_sort-subtot = p_subtot.
APPEND x_sort TO t_sort.
ENDFORM. "set_order
*& Form set_fieldcat2
Adds an entry to the field catalog.
FORM set_fieldcat2 USING p_colpos p_fieldname p_ref_fieldname
p_ref_tabname
p_outputlen p_noout
p_seltext_m p_seltext_l p_seltext_s p_reptext_ddic p_ddictxt
p_hotspot p_showasicon p_checkbox p_edit
p_dosum
t_fieldcat TYPE slis_t_fieldcat_alv.
DATA: wa_fieldcat TYPE slis_fieldcat_alv.
CLEAR wa_fieldcat.
General settings
wa_fieldcat-fieldname = p_fieldname.
wa_fieldcat-col_pos = p_colpos.
wa_fieldcat-no_out = p_noout.
wa_fieldcat-HOTSPOT = p_hotspot.
wa_fieldcat-CHECKBOX = p_checkbox.
wa_fieldcat-ICON = p_showasicon.
wa_fieldcat-do_sum = p_dosum.
Set reference fieldname, tablenam and rollname.
If p_ref_tabname is not given, the ref_fieldname given is a data
*element.
If p_ref_tabname is given, the ref_fieldname given is a field of a
*table. In case ref_fieldname is not given, it is copied from the
*fieldname.
IF p_ref_tabname IS INITIAL.
wa_fieldcat-rollname = p_ref_fieldname.
ELSE.
wa_fieldcat-ref_tabname = p_ref_tabname.
IF p_ref_fieldname EQ space.
wa_fieldcat-ref_fieldname = wa_fieldcat-fieldname.
ELSE.
wa_fieldcat-ref_fieldname = p_ref_fieldname.
ENDIF.
ENDIF.
Set output length.
IF NOT p_outputlen IS INITIAL.
wa_fieldcat-outputlen = p_outputlen.
ENDIF.
Set text headers.
IF NOT p_seltext_m IS INITIAL.
wa_fieldcat-seltext_m = p_seltext_m.
ENDIF.
IF NOT p_seltext_l IS INITIAL.
wa_fieldcat-seltext_l = p_seltext_l.
ENDIF.
IF NOT p_seltext_s IS INITIAL.
wa_fieldcat-seltext_s = p_seltext_s.
ENDIF.
IF NOT p_reptext_ddic IS INITIAL.
wa_fieldcat-reptext_ddic = p_reptext_ddic.
ENDIF.
IF NOT p_ddictxt IS INITIAL.
wa_fieldcat-ddictxt = p_ddictxt.
ENDIF.
Set as editable or not.
IF NOT p_edit IS INITIAL.
wa_fieldcat-INPUT = 'X'.
wa_fieldcat-EDIT = 'X'.
ENDIF.
APPEND wa_fieldcat TO t_fieldcat.
ENDFORM. "set_fieldcat2
*& Form top_of_page
Called on top_of_page ALV event.
Prints the heading.
FORM top_of_page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
i_logo = 'TRVPICTURE04'
it_list_commentary = t_heading.
ENDFORM. " alv_top_of_page
*& Form user_command
Called on user_command ALV event.
Executes custom commands.
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
case sy-ucomm.
WHEN '&DATA_SAVE'.
LOOP AT IT_DATA INTO WA WHERE ENDKZ = 'X'.
IF WA-ENDKZ = 'X'.
*******MODIFIED*********************************
U DELETE THIS CODE N USER UR INSERT CODE TO CHECK
SY-MSGV1 = WA-MBLNR. " U CAN DELETE
SY-MSGV2 = WA-MATNR. " U CAN DELETE
MESSAGE ID 'BC_BOR' TYPE 'I' NUMBER '888' " U CAN DELETE
WITH SY-MSGV1 SY-MSGV2. " U CAN DELETE
*******MODIFIED*********************************
INSERT ZTABLE.
ENDIF.
endloop.
ENDCASE.
ENDFORM. "user_command
this is my code, database will stored in fields only.data is empty,
how to slove that one,send any sugestion.Hi Lakshmi,
Can u explain briefly what is ur requirement. U mean to say that after clicking the checkbox in data base table or Screen?
Regards,
Jayaram...
Maybe you are looking for
-
Hello Experts, I am new to SDN forum. I need all your experts help to enhance my skills in SRM. Currently i am getting an error when i click on Create Contract then error is : "Org Unit Doesn;t Exist" .I checked my user is linked to org structure. I
-
Difficulties replacing some BC functionality with XI (refer to example)
<b>Difficulties replacing some BC functionality with XI (refer to example)</b> I am transferring all interface processing from BC to XI and am having difficulties replacing some of the current BC functionality. Please refer to my example below <b>Cu
-
Cp6.. Audio from FLV Slide Video keeps playing
I have a project with several slides in a row that have flv videos with audio. I used the multi-slide/sync video.. not event video to install the video on each slide. Here's the problem: Say I'm watching /listening to the video on slide 1, when I u
-
Deleted site, but still have the files
ok, i had 2 websites in iweb. no problem, i was publishing to folders then uploading to a non .mac site. finally got .mac and uploaded my site, but it kept doing both, so i deleted the one i didn't wan ton .mac and assumed i could take the published
-
Question about Java's HttpServer: Threading? Backlog?
Hello, I have two questions about Java's HttpServer (com.sun.net.httpserver). From the JavaDoc: > Management of threads can be done external to this object by providing a Executor object. If none is provided a default implementation is used. > How ca