Deleting CAF-Entity-Tables
Hello!
In a former I already asked how to delete the database tables that are generated by CAF for entity-services.
There are got some answers for maxDB. The problem is, we use Oracle. It version is 10.1.0.4.0, I think, I can see it in db13-transaction in SAP-logon, or is that database a totally different?
Can anyone suggest a oracle-client and give a short hint how to use it?
Thank you in advance for your help.
Jörg
Hi Jorg,
You can download the client from Oracle.
http://www.oracle.com/technology/tech/oci/instantclient/index.html
Best Regards,
Austin.
Similar Messages
-
How to sort web dynpro table wich data bind to CAF Entity Service
Hi
I created UI Table based on Model Node (CAF Entity).
When I try to sort this Table with using TableSorter, I get following in the trace log:
The error is: com.sap.caf.rt.exception.CAFBaseRuntimeException: Aspect does not support changing rows via its list interface
Have I met CAF limitation, or do I do something wrong?Hi Nikolai,
if you use the implementation
<code>
IServiceFacade serviceFacade = CAFServiceFactory.getServiceFacade(ts2Definition.class);
</code>
it means you use the typed access.
Possible in this sneak the
<code>
IServiceFacade serviceFacade = CAFServiceFactory.getServiceFacade();
</code>
does not work.
Try the following way - it must work.
<code>
private IServiceFacade getServiceFacade() {
final String method = "getServiceFacade()";
entering(method);
if (m_serviceFacade==null) {
try {
CoolConnectionProperties properties = new CoolConnectionProperties()
public String getCoolHost()
return "caf";
m_serviceFacade = CoolUtils.getServiceFacade(properties);
} catch (CoolConnectionPropertiesException e) {
wdComponentAPI.getMessageManager().reportException(e.getMessage(),false);
CAFUIPublicLogger.traceThrowable(Severity.ERROR, method, e) ;
} catch (CoolUtilsException e) {
wdComponentAPI.getMessageManager().reportException(e.getMessage(),false);
CAFUIPublicLogger.traceThrowable(Severity.ERROR, method, e) ;
exiting(method) ;
return m_serviceFacade;
</code>
Also do not sort in query. Sort the model node after you aspect binded. Use the method
node.sort(your_comparator) ;
the comparator like this:
<code>
public class YourComparator implements Comparator
public int compare(Object o1, Object o2)
IWDNodeElement nodeElement1 = (IWDNodeElement) o1 ;
IWDNodeElement nodeElement2 = (IWDNodeElement) o2 ;
String name1 = nodeElement1.getAttributeAsText(_attrName) ;
String name2 = nodeElement2.getAttributeAsText(_attrName) ;
if (name1 == null)
return -1 ;
if (name2 == null)
return 1 ;
if (_direction == "up")
return name1.compareToIgnoreCase(name2) ;
else if (_direction == "down")
return -name1.compareToIgnoreCase(name2) ;
return 0 ;
public void initilize(String attrName, String direction)
_attrName = attrName ;
_direction = direction ;
private String _attrName ;
private String _direction ;
</code>
Best regards,
Aliaksei. -
CAF entity coupled with application service activation problem
Hi Experts,
I have an existing CAF entity service to which i had added an additional attribute.
I have the assosiated application application setdataservice,which has a custom method to add data to the entity service (mass upload).
In the custom method i have added the code to set data for the addtional attribute.
I had generated the project and build the dc locally,
The buid is fine with no error's .
But when I activate the request the activity fails with "cannot resolve symbol" for the new method even though the local build is sucessful.
Any idea why this is occuring,
ERROR: /NWDI/usr/sap/DIP/JC37/j2ee/cluster/server0/temp/CBS/c6/.B/28783/DCs/spe.com/portal/prc_core/ejbmodule/_comp/ejbModule/com/spe/portal/prc_core/appsrv/setdataservice/SetDataServiceBean.java:3434: cannot resolve symbol [javac] ERROR: symbol : method setFixPromvalue (double) [javac] ERROR: location: class com.spe.portal.prc_core.besrv.int_promocodes.Int_PromoCodes [javac] ERROR: promoCode.setFixPromvalue(fixPromValue); [javac] ERROR: ^ [javac] 1 error Error: /NWDI/usr/sap/DIP/JC37/j2ee/cluster/server0/temp/CBS/c6/.B/28783/DCs/spe.com/portal/prc_core/ejbmodule/_comp/gen/default/logs/build.xml:111: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:112) at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:61) at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:213) at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:190) at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66) at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350) at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:102) at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:76) at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58) at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723) at com.sap.tc.devconf.impl.DCProxy.makeHi again,
I've deleted the two methods (or just commented them) I had and have readded them by choosing the Override Method option in the Source menu of JDeveloper 10.1.3. I've addet the methods prepareForActivation and prepareForPassivation too.
When I execute the application, with breakpoints into the four methods (I attach the code below), I see that it prepares for pasivation and pasivates. When I do any action, I see it prepares for activation, but the method activateState is never reached.
I have no other overriden methods in the class. Any idea of why the activateState doesn't execute?
Thanks,
Carles Biosca
BBR Ingeniería de Servicios
protected void activateState(Element element) {
super.activateState(element);
protected void passivateState(Document document, Element element) {
super.passivateState(document, element);
protected void prepareForActivation(Element element) {
super.prepareForActivation(element);
protected void prepareForPassivation(Document document, Element element) {
super.prepareForPassivation(document, element);
}Message was edited by:
cbios -
How to design CAF Entity service?
hello,
here is my question.
how to design CAF Entity service?
i got employees data and departments data.
an employee can join over one department, and of course, a department had many employee.
in tradition RDBMS(relational database management system), i'll create three tables and named "Employee", "Department" and "DepEmp". the table "DepEmp" is a kind of table for N to N relaction.
but when i use CAF's entity service, i can't do like RDBMS.
i can create three entity services, named "Employee", "Department" and "DepEmp". i can make service refence(pull service from left side of windows), but the information about Key(in properties) cannot be "true".
how can i do?
is there a different normalization way i have to learn.thank you so much, it really help.
but when the issue more complicated.
a employee can join multiple departments, and he/she got different job title in each department. case will like fallow.
Vic is a software engineer in XX company's IT department, and he is a MIS engineer in XX company's HR department.
the db( i'm sorry for take this for example) structure will like..
=======================================
table:employee
column:
employeeCode PK
name
phone
table:department
column:
departmentCode PK
name
location
table:jobTitle
column:
titleCode PK
name
description
table:deptEmployee
column:
employeeCode PK FK
departmentCode PK FK
titleCode PK FK
=======================================
my SAP NetWeaver Developer Studio is version 7.0
1. how i make sure that three keys be mapped each other?(empCode,deptCode,titleCode)
2. is there have any "IUD abnormality" risk?
3. if there have, how can i avoid it?
thank you again, i'm sorry for ask much, because the way to design CAF Entity Service is that i didn't learn before. it really make me confused.
have a nice day -
Removing/updating data through CAF entity service
Does anyone know a way to remove/update data through a CAF entity service from a web dynpro which uses the webdynpro model of the CAF project ?
Hi Nicolaij,
This example describes how UPDATE and DELETE works under SP8.
Hopefully it helps.
Regards
Kamil
UPDATE of entity called "Bank"
=======================
ABank recordBank;
recordBank = BankServiceProxy.read(000000024);
recordBank.setCountryId(Germany);
IAspect aspectList = recordBank.getAspect();
aspectList.sendChanges();
DELETE from entity called "TransferID"
============================
ATransferID recordTransferID;
recordTransferID = TransferIDServiceProxy.read(123115651);
IAspect aspectList = recordTransferID.getAspect();
IAspectRow aspectRow = aspectList.getAspectRow(0);
aspectList.removeAspectRow(aspectRow);
aspectList.sendChanges(); -
Data import for CAF generated tables
Hello,
I developed a CAF application with custom Web Dynpro UI. As the persistency up to now just consists of "Local persistency", all the data is stored in CAF tables on my NW2004s system. I know that I can create records "by hand" in the Service Browser. But it's time consuming and I have more than 10.000 records.
How can I import data to these tables? Are there any upload functions for csv/xls or any other file types?
Thanks and regards
Joschihi all,
As u all discussed about importing data into sql tables form CAF database,i understud the concept.
can you please provide me step by step approach or any document to do this practically.
im new to CAF development.I want to practice a scenario on CAF Remote persistency,for that
i want to utilise sql tables into CAF entity services and develop some functionality(Using CRUD) methods.
i konw that to utilse sql tables,call those tables into java application and expose it as webservice and using caf external service we have to capture that webservice.
is that correct approach..
can anyone explain the clear procedure..(or any document)
how can i achieve remote persistency of caf in case of sql server.
Thanks & Regards
sowmya. -
XCode 4.02 data model editor -- How do I delete an entity?
How does one delete an entity from the data model editor in XCode 4.02?
I have searched for the past hour for a little "minus" button hidding somewhere on the screen.Switch Editor Style to 'Graph' from 'Table' (lower right of the editor window).
Select the entity you want gone...tap once so it shows focus.
Hit the 'Delete' key on your keyboard. 'Undo' if you want it back. -
Hibernate: how to null out foreign key references when deleting an entity?
We use Spring/Hibernate3 in our app, and ran into kind of a bummer of a problem. We have a relationship that is many-to-one (e.g. Student -> School). This is represented by a schoolId on the Student table. When we delete the school through the Hibernate layer, we are immediately receiving foreign key constraints because Hibernate does not null out the Students' schoolId columns where applicable.
What we'd like to see happen is something like this:
1. SchoolDAO.delete(id)
Hibernate: UPDATE Student set schoolId = NULL where schoolId = ?
Hibernate: DELETE from School where id = ?
But what we're actually seeing is:
1. SchoolDAO.delete(id)
Hibernate: DELETE from School where id = ?
And hence the foreign key constraints.
Was wondering if someone else here has run into this. Someone on the Hibernate forums suggested using an Interceptor, but the Hibernate3 interceptors don't give us access to the Session to allow us to do a bulk update to null out these references. Apparently the interceptor javadoc says that the interceptor is basically there to change properties on the object in question and should not involve the session at all.
We then looked at implementing an Event, and that worked, but was not called for every cascade deleted event. We have a lot of cascade activity in our database, so that was a little disappointing.
We had briefly considered manually nulling out that FK in the DAO itself, but that would not work with the large amount of Hibernate driven cascade deletion that goes on in our app (Hibernate does not call our DAO every time it cascade deletes an entity).
Would greatly appreciate any pointers on this subject. We're hoping that others have run into this as well.
thanks.I'm not sure why you'd expect that given that there's
not really an equivalent object oriented operation -
if you want to relinquish the object in the OO scheme
of things you have to null all the references to it;
you can't just say "make everything that points to
this object null".I can field that question. We came from EJB 2.x where in the event that you deleted a School entity bean using ejbRemove() you would see the following queries generated:
UPDATE Student set schoolId = NULL where schoolId = ?
DELETE from School where id = ?
Basically, it would manage the relationship for you. I know it's a completely different system but we were a little surprised to learn that Hibernate did not do this on its own as well. -
Error while deleting a customer table
When I try to delete a customer table which is saved as a local object I get an error stating that the table is still used in ABAP Dictionary. It seems that the customer table is still used in a customer program, but the program is already deleted! I deleted the program earlier and thus no longer exist in our system. I cannot find any trace of the program, but am unable to delete the customer table now. Any suggestions?
Program name would have been of the table maintenance generator and you deleted it manually.
It should have been deleted from TMG .
Your problem will be resolved if you will create Table maintenance of the database table and then delete it again. -
Issue:
I have SAP BW system and SAP HANA System
SAP BW to SAP HANA connecting through a DB Connection (named HANA)
Whenever I created any Open Hub as Destination like DB Table with the help of DB Connection, table will be created at HANA Schema level ( L_F50800_D )
Executed the Open Hub service without checking DELETING Data from table option
Data loaded with 16 Records from BW to HANA same
Second time again executed from BW to HANA now 32 records came ( it is going to append )
Executed the Open Hub service with checking DELETING Data from table option
Now am getting short Dump DBIF_RSQL_TABLE_KNOWN getting
If checking in SAP BW system tio SAP BW system it is working fine ..
will this option supports through DB Connection or not ?
Please follow the attachemnet along with this discussion and help me to resolve how ?
From
Santhosh KumarHi Ramanjaneyulu ,
First of all thanks for the reply ,
Here the issue is At OH level ( Definition Level - DESTINATION TAB and FIELD DEFINITION )
in that there is check box i have selected already that is what my issue even though selected also
not performing the deletion from target level .
SAP BW - to SAP HANA via DBC connection
1. first time from BW suppose 16 records - Dtp Executed -loaded up to HANA - 16 same
2. second time again executed from BW - now hana side appaended means 16+16 = 32
3. so that i used to select the check box at OH level like Deleting data from table
4. Now excuted the DTP it throws an Short Dump - DBIF_RSQL_TABLE_KNOWN
Now please tell me how to resolve this ? will this option is applicable for HANA mean to say like , deleting data from table option ...
Thanks
Santhosh Kumar -
Using Insert and Delete icons in table control wizard.
Can anyone tell me how to perform a new row insertion or deletion in a table created using the table control wizard.
I see there is a form fcode_insert_row and fcode_delete_row, but dont know how to call them and what parameters to pass and all.
Since iam new to SAP-ABAP, some code samples will be a great help.
Thanks to all in advance.Hi Lavanya ,
You have to add the icons personally in the table control.. . Put fcode for addition button as INSE and delete as DELE ..coding will be already thr in the wizard no need to anything just add icons in the table control by selecting from f4 help on icons option of screen.
Thanks,
Vishnu . -
Delete records from tableA which are not in tableB
Table A contains milions of records which is the best way to delete records from tableA which are not in tableB
delete from tableA where empno not in (select empno from tableb)
or
delete from tableA where empno not exists (select empno from tableb
where b.empno=a.empno)
any helpHi
If you can do this, do with this:
create table tableC
as select a.*
from tableA a,
(select empno from tableA
minus
select empno from tableB) b
where a.empno = b.empno;
drop table tableA;
rename table tableC to tableA;
Ott Karesz
http://www.trendo-kft.hu -
Could not delete from specified table?
hi all,
i'm getting this error could not delete from specified table when i execute a delete on dbf file via JDBC-ODBC bridge, when i execute an update table command i get operation must use an updatable query, but i'm not updating the query returned from select statement.
Does anyone have similar problem before??Hi,
my code is below:
try {
conn=DriverManager.getConnectio("jdbc:odbc:sui","","");
stmt = conn.createStatement();
int r= stmt.executeUpdate("Update Alarms set ACK=True WHERE DT = { d '" + msgdate + "' } AND TM= '" + msgtime + "'");
System.out.println(r+" records updated in Alarms ");
stmt.close();
conn.close();
stmt=null;
conn=null;
catch (NullPointerException e) {System.out.println(e.getMessage());}
catch (SQLException e) {System.out.println(e.getMessage());}
I have an ODBC datasource called sui and a table called alarms, i need to write into the column Ack to true when DT equals msgdate and TM equals msgtime, the error returned is Operation must use an updatable query.
I believe the SQL has no problem because there is no SQL syntax error and i'm not updating any resultset returned from select query.
When i delete, i get could not delete from specified table. Anyone has any idea wh'at's wrong? -
How to delete record from table control using BDC?
Hello friends,
I am running a BDC program to delete records.
I have file with following records and i got these records into t_itab.
Material Plant Start date End date Cost
MQ100001 S001 09/01/2008 09/31/2008 55.00
MQ100004 S002 09/01/2008 09/31/2008 56.00
MQ100008 S003 09/01/2008 09/31/2008 57.00
Now, I have BDC transaction in which table control screen which contains following structure.
MQ100001 S001 09/01/2008 09/31/2008 55.00
MQ100002 S002 09/01/2008 09/31/2008 56.00
MQ100004 S003 09/01/2008 09/31/2008 47.00
MQ100005 S004 09/01/2008 09/31/2008 25.00
MQ100006 S012 09/01/2008 09/31/2008 76.00
MQ100007 S033 09/01/2008 09/31/2008 17.00
MQ100008 S011 09/01/2008 09/31/2008 95.00
MQ100009 S002 09/01/2008 09/31/2008 46.00
I have recorded from SHDB in which first record will be delete.
So, when i loop through t_itab,instead of deleting MQ100001,MQ100004 and MQ100008 from BDC screen,
it is deleting MQ100001,MQ100002 and MQ100004 (first record for each process ).
Which i don't want to.
Is there any facility in BDC to put records on top which i want to delete?
Please guide me.
Regards,
RHOne option is to identify the table and find out the location as the number of row which should be deleted from the table and then in the bdc program instead of postioning the cursor on the row 1(using the statement perform bdc_cursor ....(01)), replace the 01 with the row number.
Second option is that if a filter control is available for the table control, then filter the data each and every time with the material number to be deleted and then delete the first row.
Regards
Farzan -
How to record the records deleted in a table
Hi Experts
I want to run a report as a batch which should deleted the records
which are sysdate - 60 and The report should log the number of records deleted
from each table at End Of Run.
Criteria for selecting records to be deleted are as follows:
1. ZINT_DATA
u2022 ZINT_DATA.CREATED_ON <= (Today u2013 60 Days)
and ZINT_DATA.STATUS = u2018OKu2019
So I want to create a table for log history recorded as
Delete Date Log description
01.01.2008 1500 rows deleted
30.03.2008 2000 rows deleted.
30.04.2008 300 rows deleted.
Eg The table are ZINT_DATA.
The report starts like this
REPORT z_eslp_command.
DATA:
fs_zint_data TYPE zint_data.
DATA:
t_zint_data TYPE
TABLE OF
ZINT_DATA.
START-OF-SELECTION.
SELECT *
FROM ZINT_DATA
INTO TABLE t_ZINT_DATA PACKAGE SIZE 10000.
ENDSELECT.
LOOP AT t_zint_data INTO fs_zint_data.
INSERT INTO ZINT_DATA_DEL
VALUES fs_zint_data.
select count(*) from zint_data_del.
ENDLOOP.
IF sy-subrc EQ 0.
WRITE:
'DATA INSERTED FROM ZINT_DATA into ZINT_DATA_DEL'.
ENDIF.
But Instead of creating another table , I want only log to be recorded as described.
Thanks
Regards
PirozHi Kiran
See the final modification of the report but I am getting an error as
Field " Corresponding_fields" is unknown, it is neithere in one of the specified tables nor defined by a
DATA statement, but I have already created an internal table itab1 , could you check and revert with the correction.
REPORT ZSD1DELETION .
TYPE-POOLS:SLIS.
*Used in ZSDI_INTERFACE1 Program.
TABLES:ZINT_DATA_DEL .
*DATA: BEGIN OF ITAB1 OCCURS 0.
*DATA: SL_NO TYPE SY-TABIX.
INCLUDE STRUCTURE zint_data_del.
*DATA:END OF ITAB1.
DATA: BEGIN OF ITAB1 occurs 0 ,
MANDT type zint_data_del-mandt,
ZINT_ID type zint_data_del-zint_id,
ZINT_TY type zint_data_del-zint_ty,
CREATED_ON type zint_data_del-created_on,
KEY_VAL type zint_data_del-key_val,
SEQUENCE type zint_data_del-sequence,
STATUS type zint_data_del-status,
LENGTH type zint_data_del-length,
RAW_DATA type zint_data_del-raw_data,
end of itab1.
*DATA: i_data TYPE TABLE OF ITAB1, " internal table
*wa_data TYPE ITAB1. " work area
DATA:LINE1(10) TYPE C,
LINE2(10) TYPE C,
date1(10) type c,
date2(10) type c,
name1(60),
string1(100),
title1(65),
title2(100) type c,
FNAME TYPE STRING.
*Declarations for ALV
DATA:itfieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA:itrepid TYPE sy-repid.
itrepid = sy-repid.
DATA:itevent TYPE slis_t_event.
DATA:itlistheader TYPE slis_t_listheader.
DATA:walistheader LIKE LINE OF itlistheader.
DATA:itlayout TYPE slis_layout_alv.
DATA:top TYPE slis_formname.
DATA:itsort TYPE slis_t_sortinfo_alv WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
*PARAMETERS:P_WERKS LIKE BSEG-WERKS.
SELECT-OPTIONS: S_DATE FOR ZINT_DATA_DEL-CREATED_ON OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
*Validations w.r.t the Date
AT SELECTION-SCREEN ON S_DATE.
IF S_DATE IS INITIAL.
MESSAGE 'Enter the Date' type 'E'.
*Records from 2007 can't be deleted.
ELSEIF S_DATE-LOW+0(4) >= '2007' AND
S_DATE-HIGH+0(4) >= '2007'.
MESSAGE 'Records from the Year 2007 cannot be Deleted' type 'E'.
ENDIF.
CONCATENATE s_DATE-low6(2) '.' s_DATE-low4(2) '.' s_DATE-low+0(4)
INTO date1.
CONCATENATE s_DATE-high6(2) '.' s_DATE-high4(2) '.' s_DATE-high+0(4)
INTO date2.
PERFORM GETDATA.
*& Form DOWNLOAD
text
--> p1 text
<-- p2 text
form GETDATA.
SELECT * FROM ZINT_DATA_DEL
INTO CORRESPONDING_FIELDS OF TABLE ITAB1
WHERE CREATED_ON IN S_DATE.
IF ITAB1[] IS NOT INITIAL.
DESCRIBE TABLE ITAB1 LINES LINE1.
PERFORM DELETION.
PERFORM ALV.
ELSE.
MESSAGE 'No Data' type 'S'.
ENDIF.
endform. " GETDATA
*& Form DELETION
text
--> p1 text
<-- p2 text
form DELETION .
DELETE FROM ZINT_DATA_DEL WHERE CREATED_ON IN S_DATE.
endform. " DELETION
*& Form alv
Fieldcatalog for ALV Report
FORM alv.
LOOP AT ITAB1.
ITAB1-SL_NO = SY-TABIX.
MODIFY ITAB1.
ENDLOOP.
DEFINE m_fieldcat.
itfieldcat-fieldname = &1.
itfieldcat-col_pos = &2.
itfieldcat-seltext_l = &3.
itfieldcat-do_sum = &4.
itfieldcat-outputlen = &5.
itfieldcat-edit = &6.
append itfieldcat to itfieldcat.
clear itfieldcat.
END-OF-DEFINITION.
m_fieldcat 'MANDT' '' 'Client' '' 03 ''.
m_fieldcat 'ZINT_ID' '' 'Id' '' 10 ''.
m_fieldcat 'ZINT_TY' '' 'Type.' '' 05 ''.
m_fieldcat 'CREATED_ON' '' 'Date Created on' '' 25 ''.
m_fieldcat 'KEY_VAL' '' 'key value' '' 04 ''.
m_fieldcat 'SEQUENCE' '' 'sequence' '' 06 '' .
m_fieldcat 'STATUS' '' 'status.' '' 10 ''.
m_fieldcat 'LENGTH' '' 'Length.' '' 18 ''.
m_fieldcat 'RAW_DATA' '' 'Raw Data' '' 15 '' .
itlayout-zebra = 'X'.
itlayout-colwidth_optimize = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = itlayout
i_callback_user_command = ' '
i_callback_top_of_page = 'TOP'
it_fieldcat = itfieldcat[]
i_save = 'A'
is_variant = ITVARIANT
it_events = itevent[]
is_print = ITPRINTPARAMS
it_sort = itsort[]
TABLES
t_outtab = itAB1
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. "alv
*& Form TOP
Top of page for ALV Report
FORM top.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = itevent
EXCEPTIONS
LIST_TYPE_WRONG = 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.
string1 = 'Records from'.
CONCATENATE string1 date1 'to' date2 INTO title1
SEPARATED BY space.
walistheader-typ = 'H'.
walistheader-info = title1.
APPEND walistheader TO itlistheader.
CONCATENATE 'Records Deleted' '-' LINE1 INTO title2.
walistheader-typ = 'H'.
walistheader-info = title2.
APPEND walistheader TO itlistheader.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = itlistheader
I_LOGO = ''.
I_END_OF_LIST_GRID =
ENDIF.
CLEAR itlistheader.
ENDIF.
ENDFORM. "TOP
Regrds
Piroz
Maybe you are looking for
-
Open File Dialog shows all files
I have searched the discussion boards and not found any solution to this problem. When I go to the File->Open dialog in Word, Matlab, etc, I see all files, even the hidden files. This is when "Enable" is set to filter on a certain file type. The file
-
ITunes is not syncing my iphone 6, 64GB ios 8.3
When i plug in my iPod 4thg, iTunes used to start up with no problem, but when i plug in my iphone, iTunes doesnt start up, i dont see my phone when i manually start it up. I dont know what to do. I deleted and redownloaded iTunes about 3 times. I kn
-
Jdev3.1/ Validator problem or bug???
Hi, On one of the entity attributes, i have added a listValidator. this validates against a list of values from a select statement. The problem is that while testing the appl module, once i enter a correct value in the concerned field and tab out. no
-
Can PSP be used in Portals?
Hi Portal Gurus, I understand PL/SQL Cartridges can be used in portal development. But, has Oracle started supporting use of PSP (PL/SQL Server Pages) for portal development? If so, is there any documentation out there for it? Any help will be greatl
-
Bridge Output Module: Use Custom Transformer.xslt?
Hello, I've been poking around the Adobe Output Module in CS4 to determine if we might be able to use it instead of the old Web Photo Gallery plug-in for Photoshop. I can understand the reasoning behind using XSLT / XML to generate HTML gallery pages