Refresh local SSMA data after procedure change in Oracle
Hi,
SSMA reported error on some non-migratable issues in one of the procedures. After changing the procedure in Oracle to something SSMA can handle (hopefully), I want to refresh the SSMA and issue the "Convert Schema" again.
However, when performing "Refresh from database" it announces that no changes were found and that all is identical.
How do I get the SSMA to load the new Oracle procedural code?
(In the mean-time I will open a new project just for this procedure, but this is not a good solution going forward. Still lost of such changes to handle)
Thanks,
Eran
Hi Eran K,
According to your description, when you migrate Oracle stored procedure to SQL Server, you has specified the source schema to migrate, then convert schema, synchronize target (including functions, procedures, tables and so on). If you change the schema of
some tables in Oracle, and even if the stored procedure use these tables. Since you had
convert the stored procedure to SQL Server, as long as the schema of SQL Server which the Oracle table need to convert to is not changed, there is no impact on your stored procedure in SQL Server. If you must load the new Oracle procedural
code in SSMA, personally, I recommend you delete the original converted stored procedure and tables in SQL Server, first modify the new schema in Oracle and create new project for re-migrating again.
Thanks,
Sofiya Li
Sofiya Li
TechNet Community Support
Similar Messages
-
Can't access data after name change of account in Time Capsule
I started using Time Capsule (TC). After transferring data to 3 different accounts. I noticed that the process of entering/ connecting to your account takes to much time. You have to connect every time to the account on TC. Because of this I changed the account names in the Airport Utility to shortened two lettre names. Unfortunately with great negative impact!
I cannot access any data anymore. The new accounts are empty although I can see that there is still data on my TC because the available disk has not changed.Changing accountnames looks like you are creating new ones and blocking the access to the old ones.
1) How can I retrieve the data?
2) Can you create a 'super account' which can access all data of all accounts?
Jeroen
The NetherlandsHow do you reset?
Hi..
What I wrote is my experience.. there is other opinions out there.
See https://discussions.apple.com/docs/DOC-2280
What I experienced was that applying user profiles over existing files resulted in nothing being visible.
But I am eggs spurt by self appointment only.. test everything.. hold to what is right.. reject the nonsense I will on occasion (unwittingly) spout.
To answer your questions.. press the reset button for 1sec will reset all user profiles to default. A longer press and it will get rid of them completely.. You will go back to default settings.
http://support.apple.com/kb/HT3728
The no user profile option is device password.. or disk password.. when you press reset it will return to device password.. that is the default.
Try what the reference above suggests.. but in my experience you cannot apply user profiles after copying material and still access it. -
Baseline Date after a change in Terms
Dear Experts,
I am having a problem where trying to change the term of payment of an invoice before a posting, the account doesnt set the baseline date correctly.
This issue occurs for baseline date type 'Entry Date' .
After whichever interaction in MIR4 , 'Enter' or 'Save', the baseline date will:
1. set to the date as in the existing entry if there is no change .
2. set to the system date if there is a change in the payment terms,
where the '2nd' is not correct because the payment term changed stated that the baseline date should be 'Entry Date'.
The above mentioned logic is inside the function module
'FI_CHANGE_PAYMENT_CONDITIONS'
Codes bellow shows the scenario mentioned in '1.' no changes
Wenn keine Änderung, dann Export versorgen und Tschüss-----
e_zterm = i_newzterm.
zterm = i_newzterm.
e_zfbdt = i_newzfbdt. <----
set to the existing entry
zfbdt = i_newzfbdt.
e_sklin = i_newsklin.
sklin = i_newsklin.
check not status is initial.
Codes bellow shows the scenario mentioned in '2.'terms change, and baseline date type 'C'
T052 contains first entry for payment term key entered "P00K005354
case t052-zdart. "P00K005354
when 'C'. "P00K005354
zfbdt = sy-datum. "P00K005354
if i_cpudt is initial. "Note 199967
zfbdt = sy-datum. "P00K005354 <------ set to current date
else. "Note 199967
zfbdt = i_cpudt. "Note 199967
endif. "Note 199967
Is this a program logic error or is it the way it should be ?
Any one encounter the similar problem ? or should there be OSS notes to apply ?
Thank you .....Hi,
If i gave the query that i mentioned above post, in my sql statement, the dynamic action is working but not fetching the correct date for the selected priority..
what is the answer that im getting is
When i select priority as low means
what is populating in my due date field is not the date im expecting........
it is giving some thing in the due date field like the below i mentioned.......
" ,,11/10/10 0&#58;0&#58;0,11/10/10 0&#58;0&#58;0,,,,,,,,,,11/24/10 0&#58;0&#58;0,11/24/10 0&#58;0&#58;0,,,,,,,,,,,11/04/10 0&#58;0&#58;0,,,,,,,11/24/10 0&#58;0&#58;0,,,,,,,,,,,,,,,,,,,11/18/10 0&#58;0&#58;0,,,,,,11/24/10 0&#58;0&#58;0,,,11/24/10 0&#58;0&#58;0,11/24/10 0&#58;0&#58;0,,,,11/27/10 0&#58;0&#58;0,11/26/10 0&#58;0&#58;0,,,,,,,11/05/10 0&#58;0&#58;0,,,,11/24/10 0&#58;0&#58;0,11/24/10 0&#58;0&#58;0,,,,,,,,,,,11/19/10 0&#58;0&#58;0,11/05/10 0&#58;0&#58;0,11/24/10 0&#58;0&#58;0"
i dont know why it is returning like this......please help me........
Regards,]
Harry...... -
Refresh control hints lables after change the locale
Hello,
I'm building a web application using ADF ( JSP/BC4J/STRUTS ).
I want to give the user the facility to change the display language, so i made an event on a Data Action that change both HTTP session locale and Application Module session locale
the code is :
public void onChangeLang(DataActionContext ctx)
Locale userLocale = getLocale(ctx.getHttpServletRequest());
String newLang = "en";
if ("en".equals(userLocale.getLanguage()))
newLang = "ar";
Locale newUserLocale = new Locale(newLang,"") ;
setLocale(ctx.getHttpServletRequest(),newUserLocale);
ctx.getBindingContainer().getDataControl().setLocaleContext(new DefLocaleContext(newUserLocale));
ctx.getBindingContainer().refreshControl();
The locale change correctly after executing this action , but the control hint labels remain as it is !!
So how i can refresh these labels, or how i correctly change the user language based on his event ?Hi,
anybody can help in this problem !! -
Background: I'm transferring file folders from a Visa laptop via an external hard drive to my IMac. In the folders are photos and videos from different cameras. SO I first tried to import to IMovie but it would not recognize any of the files. So then I imported into IPhoto and both photos and videos were imported and I created events for each folder. When I first opened IMovie I had to wait for it to create "thumb nails". Then I could view the events in IMovie BUT the video clips are not together because they have vastly different dates and are mixed with videos from other events. I looked at the dates and said I can fix that in IPhoto which i did but those new dates are not showing up in IMovie. I think I need to somehow refresh the event data that Imovie is using but have not found how to do that in either IPhoto or IMovie.
I'm doing this on three events with about 100 photos and videos. But I have many 1000s more to do so need to know how to either fix this or delete these events, reimport, change the dates, then open again in IMovie. I'm sure that would work but I can't understand why changing the dates in IPhoto is not being reflected in IMovie.
Appreciate any tips or pointers.
OBTW this is my first question as a first time Apple owner.It was suggested I move this question to IPhoto or IMovie which I did.
Well moving to a different discussion group did not provide an answer to this question either. But what I finally did was import one batch of photos and videos into IPhoto for a given day at a time. Working with these I could change the date and times in order to get them in the original sequench taken. Then I would create an album with that batch. These would all be on the same day (IMove was closed for this phase). Then I would open IMovie, generate the thumbnails for that album, and select the album I had created. This was necessary because the importing process in IPhoto was using incorrect dates for my video so it was a real struggle finding them in IMove until I developed this approach.
I believe that this whole process was so screwy because I was importing from an external hard drive not a camera. I had these photos on a PC and did not have the original cameras to use to import directly which I am fairly sure would have made this easier! -
How-To "Refresh a table of data after inserting or deleting"
I'd like to say a word on the how-to article "How to refresh a table of data after inserting or deleting a row using ADF".
(http://www.oracle.com/technology/products/jdev/howtos/1013/updtable/index.html?_template=/ocom/technology/content/print)
I spent a lot of time on it because I needed help in implementing simple CRUD functionality on a table, using JSF-ADF-TopLink technologies.
While the the article does provide correct steps, it is in one important place not specific enough, so the reader may easily get stuck. In section "Refresh the data table", point 1: when you double click on the removeEntity() button, in Structure window, then you do not get the required dialog. You get CommandButton Properties dialog.
You must click on the removeEntity() button in Editor's Design view. But even there you may get the CommandButton Properties dialog, not managed beans dialog.
You may resolve that by going to JSF configuration file, faces-config.xml, and switch to Overview view. This will show you the managed beans that you have.
Then, you may already have a backing bean for the page. You can use that and avoid creating a new managed bean.
I could understand what the operations mean only after very careful reading of "Creating More Complex Pages", section "Overriding Declarative Methods" in JDeveloper Help (or in ADF Developer's Guide PDF document).
In general: I believe that "ADF bindings" need more conceptual explanation, maybe in form of an article. Grammatical form "bindings" may create a false understanding that "bindings" are just references. But they are not -- ADF bindings are active objects that handle traffic between UI components and Data Controls. It seems that "bindings" even communicate among themselves. Maybe it would be more understandable to differentiate strictly between "binding objects" (or "binders"?), binding object definitions and binding object references.
It would be very helpful to have a diagram showing grahically what specific binder objects are created in a small apllication (2-3 pages using 1-2 tables), with whom they communicate and what type of data is passed on.
PriitHi
Thanks for your infos.
Yes exactly I use almost the same code you have post here.
Could You answer to my next questions?
First - >what do you mean by saying that "it's not good idea using refreshing in IE?" Of course I use refreshing in backing_bean for my button "remove" that removes row, commit changes to database and refresh table, almost the same as You said in your post:
Code in backing_bean is and comments on difference to Your code is below:
public commandButton2_action1(){
BindingContainer bindings = getBindings();
OperationBinding operationBinding =
bindings.getOperationBinding("removeEntity");
Object result = operationBinding.execute();
if (!operationBinding.getErrors().isEmpty()) {
return null;
//above remove entity, but I dont now if it do commit to database? So i do it below
OperationBinding commit1 = bindings.getOperationBinding("Commit");
commit1.execute();
//and at the end I refresh my table, "findAllRezerwacja1 - it is an id of the methodAction, not the iterator -> is it ok? or should I change to Iterator id?
OperationBinding requery = bindings.getOperationBinding("findAllRezerwacja1");
requery.execute();
return null;
Page Definition code for this:
<methodAction id="findAllRezerwacja1"
InstanceName="SessionEJBLocal.dataProvider"
DataControl="SessionEJBLocal" MethodName="findAllRezerwacja"
RequiresUpdateModel="true" Action="999"
ReturnName="SessionEJBLocal.methodResults.SessionEJBLocal_dataProvider_findAllRezerwacja_result"/>
<table id="findAllRezerwacja2" IterBinding="findAllRezerwacja1Iter">
<AttrNames>
<Item Value="dataDo"/>
<Item Value="dataOd"/>
<Item Value="idRezerwacja"/>
<Item Value="liczbaUczestnikow"/>
<Item Value="prowadzacy"/>
<Item Value="uwagi"/>
</AttrNames>
</table>
<methodAction id="removeEntity" InstanceName="SessionEJBLocal.dataProvider"
DataControl="SessionEJBLocal" MethodName="removeEntity"
RequiresUpdateModel="true" Action="999">
<NamedData NDName="entity"
NDValue="${bindings.findAllRezerwacja2.currentRow.dataProvider}"
NDType="java.lang.Object"/>
</methodAction>
<action id="Commit" IterBinding="findAllRezerwacja1Iter"
InstanceName="SessionEJBLocal.dataProvider"
DataControl="SessionEJBLocal" RequiresUpdateModel="true"
Action="2"/>
</bindings>
//and rest of code for Iterator etc
My second question is, why when you use refresh button in IE (I know is not recommended as You said, but sometimes user do it, so I want prevent situations that I will describe here) so when I press refresh button in IE exactly after removing one row by clicking my button, refreshing by pressing IE button is doing the same --> is deleting next row. How to stop deleting row, when for example user would press IE refresh button after pressing remove button for table. If I change selection in table after deleting row, and press refresh button in IE, instead of deleting row, I got error message: JBO-29000: JBO-35007: and
JBO-35007. So where Im doing wrong. Maybe I should do sth with postback ? Could You help me? Thanks in advance
Last one question: what is the difference between using delete and removeEntity from operations node? Im now reading carefully ADF Dev Guide, so I hope I can find infos there? But if You know, please answer to this question.
Thanks -
Not getting delta master data after refresh
Hello,
We have just refreshed our QA (BW and R/3) environments from our production environments. It was a synchronized restore. We have done this multiple times in the past and have not run into this problem before.
Everything checks out fine - full master data loads fine, and delta transaction data loads fine, but our master data loads that are deltas retreive no data and produce the following message:
Selection conditions replaced by last init. selection conditions
Message no. RSM1036
Diagnosis
Selection conditions replaced by init. selection conditions.
No new selections can be made when requesting delta data from a 2.0 extractor.
Delta selections are composed of the total quantity of all the selections of all the sucessful init. requests for this DataSource.
I have looked this up here and in OSS. What I have found would indicate that we have multiple inits. However, when I look at the Initialization Options for Source System from within the infopkg, there is only one. Also, RSA7 appears to be fine on R/3.
Is there table or setting that may have been missed or some other place I need to check?
Any ideas or suggestions would be appreciated.
Thanks,
KelleyThanks, but I do not understand what exactly to look for in that table. What fields in that table should I check and for what?
I have compared rssdlinit on BW with roosprmsc on R/3 and they match. I have checked other tables too and they look fine.
There was a mistake made when the system was refreshed that may have caused this problem. That would at least explain why we are having this problem now and did not before.
I tested one of our delta master data objects (0material_text). I deleted the init from within the infopkg. Then I ran the infopkg to init with no data transfer. That appeared to work - resulting in 1 record which is normal for an init delta with no data. Then changed material text on R/3 and ran the infopkg with delta update. It still gave the same message that I listed in my first post, and it retrieved 0 records.
Any ideas?
Thanks,
Kelley -
PSE 10 tossing images in trash after I change the date on a mac
Is it normal for PSE 10 to throw images in the trash after I change the date of a image? I have a bunch of images that came in with the wrong date from my camera, I decided finally to correct the date. I noticed my trash can suddenly with content, I opened it and all the images I changed the date on were in the trash can. This makes me nervous if I should empty the trash. Is this normal for these images to get tossed? It doesn't keep the original somewhere?
I'm on a macbook pro, os x 10.7.2 lion.Hi,
If you are adjusting date time of your images, the new images with new date time are created with the same name as the older ones. So they replace the old files on the disk location. As such the older files (with old date time) are sent to trash. Also, why would one want to clutter his catalog with duplicates having one set of wrong timed media and a duplicate set of correctly timed media.
I guess this is how organizer understands the workflow.
So possibly you can safely empty your trash, but this does mean loosing out on your 'old-timed' media.
Thanks
andaleeb -
Performance Management: Changing plan end date after publishing plan.
Dear experts,
I want to change my plan end date after publishing the plan. But there is no update option when i go to HR professional > Performance Management > Performance Management Plans > Query A plan > Update.
Kindly guide me.Change the End Date of Plan and Rebublish the Plan.
Thanks -
Server name in outlook profile stay the same after SSL changed from local to public fqdn
Hi,
I switched our UCC certificate for exchange 2010 so that it is no longer include .local in it. I used different FQDN url for external and internal (i.e externaURL is ExSrv.abc.com and internalURL is InSrv.abc.com). After I changed all settings, I found that
the outlook profiles are still using the internal server name (i.e. myexchangesrv.abc.local). Is this normal? Should I expect the server name to be the new internalURL? The following are the commands I used and I also used EMC to change the OWA and ECP's internal
URL to "InSrv.abc.com" as well. Did I missing anything?
Set-ClientAccessServer -Identity MyExchangSrv -AutodiscoverServiceInternalUri https://InSrv.abc.com/autodiscover/autodiscover.xml
Set-WebServicesVirtualDirectory -Identity "MyExchangSrv\EWS (Default Web Site)" -InternalUrl https://InSrv.abc.com/ews/exchange.asmx
Set-OABVirtualDirectory -Identity "MyExchangSrv\OAB (Default Web Site)" -InternalUrl https://InSrv.abc.com/oab
set-ActiveSyncVirtualDirectory -Identity "MyExchangSrv\Microsoft-Server-ActiveSync (Default Web Site)" -InternalUrl "https://InSrv.abc.com/Microsoft-Server-ActiveSync
Thank you,
AldousHi,
When an Outlook client goes to connect to an Exchange 2010 database, it looks at an attribute associated with the mailbox database called RPCClientAccess to determine which client access server/client access server array to use for connectivity.
Outlook 2007 and Outlook 2010 clients do not pickup this change automatically when you change the value of RPCClientAccess server, you need to repair Outlook Profile to update new RPC endpoint.
However, be careful to Change this property, because this can broke Outlook Clients to Exchange:
http://blogs.technet.com/b/exchange/archive/2012/05/30/rpc-client-access-cross-site-connectivity-changes.aspx
Meanwhile, this attribute must be point to client access server or client access server array. You must have an CAS array named “InSrv.abc.com” as your expected.
Also I find an similar thread about your concern, please refer to below link as “Brian Day” mentioned:
https://social.technet.microsoft.com/Forums/exchange/en-US/2d0c0f5f-e4ec-4f33-a37d-b94fd7a2319f/cas-array-and-autodiscover-for-internal-and-external-access?forum=exchange2010
“The only place the clients will ever use the CAS Array name is when the value of RPCClientAccessServer on their database is looked up and returned to them so they can then resolve the name via DNS and connect through MAPI. This is why the CAS Array
name is not required to be on a SSL cert unless an admin chose to use the same FQDN for OWA/EAS/EWS/etc...., which would not be recommened for the reason Mitch points out above.”
Thanks
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Allen Wang
TechNet Community Support -
Refreshing ADF Query Component after changing some property of a criteria
Hi All
Use Case : Refreshing ADF Query Component after changing some property of a criteria attribute.
I have a query panel with 2 query criteria i.e. FirstName and DepartmentId where in DepartmentId is a drop down. The scenario is like when change the value of DepartmentId to 'Finance' with code value of '100' then my criteria attribute 'Firstaname' should be invisibe(queriable=false).
Approach: Have overriden the queryOperationListener of adfquery as " queryOperationListener ="#{backingBeanScope.backing_queryLstener.processQueryOperation}" "
My backing bean method goes as below :
public void processQueryOperation(QueryOperationEvent queryOperationEvent) {
// Add event code here...
if( queryOperationEvent.getOperation().equals(queryOperationEvent.getOperation().CRITERION_UPDATE) ){
DCBindingContainer bindings = (DCBindingContainer)this.getBindings();
DCIteratorBinding iter =bindings.findIteratorBinding("EmployeeView1Iterator");
ViewObjectImpl voimpl = (ViewObjectImpl)iter.getViewObject();
ViewCriteria vc = voimpl.getViewCriteriaManager().getViewCriteria("EmployeeViewCriteriaDemo");
Row currRow = vc.first();
System.out.println("Department :"+currRow.getAttribute("DepartmentId"));
if( (Integer)currRow.getAttribute("DepartmentId") ==100 ){
AttributeDef[] attrs = voimpl.getAttributeDefs();
int attrIndex = voimpl.getAttributeIndexOf("FirstName");
ViewAttributeDefImpl attrDef = (ViewAttributeDefImpl) attrs[attrIndex];
attrDef.setQueriable(false);
// AdfFacesContext.getCurrentInstance().addPartialTarget(getQryId1()); //here i need to refresh the query component which is not happening
// refreshQueryComponent(getQryId1());
Everything is happening as expected but the query panel s not get refreshed.When i refresh the whole link/page then i can see the change.
Please suggest.
Thanks in adv.
-SanjeebHi,
can's say anything about the first part of the question as more insight to the implementation would be required. However, have a look at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/83-bidi-synchronization-tree-form-401841.pdf, which may be what you are looking for
To the second part: You can programmaticallly refresh the tree component from a managed bean. So instead of using the declarative PPR option (or ChangeEventPolicy set to PPR on the iterator binding) you can wire the submit button to the managed bean, perform your validation and if it fails don't refresh teh tree
The call is
AdfFacesContext.getCurrentInstance().addPartialTarget(the_tree_instance)
Frank -
How to save data after clicking checkbox stored in databasetable
TYPE-pools: slis.
tables:mkpf,mseg,mard.
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,
checkbox TYPE c,
__mark,
END OF tp_data,
tp_tbl_data TYPE STANDARD TABLE OF tp_data.
Constants
Data objects (variable declarations and definitions)
Report data to be shown.
DATA: it_data TYPE STANDARD TABLE OF tp_data.
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.
=========================== 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 mardlgpbe msegcharg msegbwart mkpfbudat
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 '__MARK' 'XFELD' space 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 'LIFNR' '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 = sy-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 p_edit IS NOT INITIAL.
wa_fieldcat-INPUT = 'X'.
wa_fieldcat-EDIT = 'X'.
ENDIF.
APPEND wa_fieldcat TO t_fieldcat.
ENDFORM. "set_fieldcat2
=========================== Subroutines called by ALV ================
*& 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 = 'XXXXX'
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.
Example Code
Executes a command considering the sy-ucomm.
CASE r_ucomm.
WHEN '&IC1'.
Set your "double click action" response here.
Example code: Create and display a status message.
DATA: w_msg TYPE string,
w_row(4) TYPE n.
w_row = rs_selfield-tabindex.
CONCATENATE 'You have clicked row' w_row
'field' rs_s lfield-fieldname
'with value' rs_selfield-value
INTO w_msg SEPARATED BY space.
MESSAGE w_msg TYPE 'S'.
ENDCASE.
End of example code.
ENDFORM. "user_command
this is mycode,mblnr, matnr and checkbox both field had created in database table
then save data after clicking checkbox data stored in database table,and next clickin checkboxes are no change. this my requirment.
plz send me code .Try this
In user_command form...
LOOP AT IT_DATA.
IF CHECKBOX __MARK EQ 'X'.
write logic wht u want....
ENDIF.
ENDLOOP. -
Locale for Date Problem.
Hi all,
I am using following code:
SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yyyy hh:mm aa");
Date date=new Date();
String ls_dateTime=sdf.format(date);
It is working well. My problem is that I want to change Locale for date as Japanese. But I had problem on new SimpleDateFormat("dd/MM/yyyy hh:mm aa");
This aa is used to tell that am or pm. Probs is there. [am or pm] which is not correctly displayed.Please tell the solution.alinux wrote:
Hi guys.
I have a table with 100 000 items and it is growing with 50 rows per day. it has a lot of columns and two of them are:
expiration_date date,
status varchar2 (1) ---- A- active and N- Non active.
the expiration_date is a date.
80% of these have status = 'A' and expiration_date in future.
the problem is that I need to create a processes that changes the items status from A to N in exact expiration_date.
exact means: the exact time, or can be 10 minutes or one hour max after that date.
the expiration date can be put manually somewhere in future. when I reach this date, the item need to have the status changed to N.
I was thinking to create a job, that runs each minute. and select all items that are in status A and have expiration_date smaller than sysdate.
my select will be something like.
select * from my_table where expiration_date < sysdate and status = A for update.
for this I will create a composite index on (expiration_date and status).
is there a another solution? can I do something like a 'ticking bomb':) : when expiration_date is updated and set somewhere in future, to set a process that will take care to change the status when that time is reached. doing this I can avoid to scan the index (from the first solution) at every minute.
I use oracle 10G.
Thanks in advance.The BEST solution would be to modify the app so it doesn't rely on a "status" that is derived from a date. Why doesn't the app already know this:
if expiration_date < sysdate
status is active
else
status is non active
end ifUse of a data element (in this case STATUS) that can be derived from another data element (in this case EXPIRATION_DATE) is a violation of basic data design 101. -
Do I need to upload entire site after every change?
Publishing to a folder, then uploading with Fetch. If I make a change in on one page (and my site has 11 pages), do I need to upload the entire site every-time? I make changes and additions all the time.
iWeb 1.1.1.
Sorry if this topic has been discussed before. Thanks, MarcosMarcos ~ Click below to read an article "Using Fetch with iWeb":
...it says:
"When you re-publish your website after making changes, iWeb re-creates every file, even if you just made one change on one page. As a result, if you are using Fetch's Mirror command to upload your website, every file will appear to be newer than the ones on the server, and all files will be uploaded again. This is a limitation of iWeb, and there is no way to work around it currently."
In September 2007 I asked the guys at Transmit about this and they replied:
"Transmit is in the same boat as Fetch. There is currently no workaround for this, as Transmit 3 was only designed to consider dates when synchronizing, not size. Transmit 4 will be able to compare sizes."
(The current version of Transmit is 3.6.5)
RBrowser has +Folder Syncronization+; click here:
"RBrowser's sync engine will automatically find your changes and publish your new and changed files only to the remote server."
...But perhaps you would have to buy the licensed version to get that feature:
"Absolutely unrestricted operations in all protocols (Local, FTP/SSL/TLS, SFTP-SSH), *including Folder Sync*."
...you could try the free version first and see if it has that feature.
Here's a comprehensive list of Mac file transfer software:
http://www.macorchard.com/filetransfer/
By the way, when publishing to .Mac, only the changed pages are uploaded. -
How to ensure that refreshed page is displayed after an update?
I have a page with “Form” region. I’ve used “Table” for “Create a data entry form based on”. The form works as it should, but I have set the same page to go to after “Save” or “Apply Changes” button is pressed. Now whenever I change any field at the page via my form I get back to the same page, but the changes are NOT visible. I need to go to a different page and then back to my page with table form to see new/updated data.
Is there a way of enforcing the refresh/re-query of the data after I click on Apply Changes/Save button?
jarola has suggested the following topic: Branch to URL identify session and record ID
However, when I follow the suggestion and add "Optional URL Redirect" to the same page (76) for "Apply Changes" button, and configure "Set These Items" with "With These Values" then the values entered via the form are NOT saved at all. If I remove "Optional URL Redirect" (I set "Target is a" to "- No Target -") then the data is at least saved when I click on "Apply Changes".
Thank you for your time.
DanielI am gathering that what you want is for the user to make some changes, save the data, and be left with a refreshed page showing the new values, right?
I order to save the data, the form usually has to perform some kind of submit action. Therefore, do not use a URL redirect. The only time you can use that is if your URL redirect calls javascript which in turn does a submit. But if you just redirect, no submit is done.
Make sure whatever the user does to initiate processing is doing a submit. This usually is by clicking a button whose action is "no target" (this equates to some sort of submit action).
Then, make sure this submit action invokes whatever process it is that does the save to the database. Check the row processng that was created during the wizard creation of the form and make sure that any conditions on it are such that it fires based on your request value or the button in question being pressed.
(Actually this brings up a question...if after the save action, can you see updated data in the database via SQL*Plus or SQL*Developer (or whatever database query tool) but just not in Apex? This will at least tell you if the data is being saved and it's just an application presentation issue or not.)
Then, make sure any proper page branches are firing. Again, look at the conditions and/or button-pressed settings. I think for this sort of thing I would clear the cache for your page via the page branch settings, and then do a "set these items..." and "with these values..." such that you are setting the PK values of the record with the existing PK values of the record you are dealing with. (I guess this assumes this form does the usual automated row fetch during loading if the PK values are not null. Is this the case?)
Maybe you are looking for
-
my friend was recently in a car crash, and since then, he's ipod classic (180gb, 7th generation i think) has been on the fritz. from what he has told me, when plugged in, it says it is corrpted, but then it goes to an error (which i cannot identify r
-
Using an AE as a router? (Bridge Mode?)
We're attending a trade-show in Vegas next week, and the internet is VERY expensive. We're purchasing one "Wireless Code" which means that we get a code to their wireless network. We have 2 wired Mac Minis that we're planning on using. I have both an
-
External Microphone on HP mini 210-2010 TU notebook
Hi I need to use skype regularly. for this I want to use headphones with microphone. There is no port to connect the external mic. Please help me how can i use external mic alongwith the headfones on my mini notebook. Urgent
-
All of a sudden my send button is grayed out - for reply, new message, forward. Have done nothing new but can't send any messages. Any suggestions? Connie
-
STARS for best external FW recommendations!
I had posted this question a while back, but never moved on it and Gary suggested I repost now. Here is the original thread. http://discussions.apple.com/thread.jspa?threadID=458154 I've pretty much decided upon getting miniStack v2 320MB for my wife