Using CSSCAN to change characterset
Hello... I am looking at changing our 10.2.0.4 database (EE) from WE8ISO8859P1 to AL32UTF8. Because I have a number of "lossy" data records, it appears to me as if the first logical step is to convert (using CSALTER) my database to WE8MSWIN1252 because my CSSCAN from WE8MSWIN1252 to WE8MSWIN1252 shows the "lossy" data items are recognized and no other data records are flagged. (Probably due to those fancy quotation marks Microsoft uses)
But I'm a bit confused about how to take care of the "lossy" data to get CSALTER to allow me to go to WE8MSWIN1252 since I've read that CSALTER won't execute without a "clean" run.
Thanks in advance for your help.
Hi,
Only way to correct the lossydata is idenifying it and correcting it by updating the rows. I am not sure if there any other way. If you proceed without correcting lossy data, you will loose some data or corrupt some data due to conversion.
I believe, csscan does not look at the data in the specifically, but it checks if the existing data will fit in the exiting table columns after conversion due to some charsets being multi byte, it may require them to have bigger column size.
Regards
Similar Messages
-
CSSCAN in 11g - Characterset not changing from WE8IMSWIN1252 to AL32UTF8
All,
We have installed a 11g database in Linux box and once after that we wanted to change the character set to AL32UTF8 from default WE8MSWIN1252.
We took the cs-alter approach and ran cs-scan utility, upon going through csscan.txt files generated by csscan utility we found that there are no lossy data but convertible data was found in data dictionary. Below is the output from csscan.txt
This is the Scan Summary
*[Scan Summary]*
All character type data in the data dictionary are convertible to the new character set
All character type application data are convertible to the new character set
Database Scan Summary Report
Time Started : 2012-10-17 21:42:17
Time Completed: 2012-10-17 21:42:47
Process ID Time Started Time Completed
1 2012-10-17 21:42:18 2012-10-17 21:42:46
2 2012-10-17 21:42:18 2012-10-17 21:42:46
3 2012-10-17 21:42:18 2012-10-17 21:42:46
[Database Size]
Tablespace Used Free Total Expansion
SYSTEM 709.75M 256.00K 710.00M 2.42M
SYSAUX 645.63M 34.38M 680.00M 12.52M
UNDOTBS1 13.13M 16.88M 30.00M .00K
TEMP .00K .00K .00K .00K
USERS 1.31M 3.69M 5.00M .00K
HYPE_DATA 1,024.00K 19,999.00M 20,000.00M .00K
HYPE_INDX 1,024.00K 19,999.00M 20,000.00M .00K
Total 1,371.81M 40,053.19M 41,425.00M 14.94M
The size of the largest CLOB is 1625114 bytes
[Database Scan Parameters]
Parameter Value
CSSCAN Version v2.1
Instance Name dvhp081
Database Version 11.2.0.3.0
Scan type Full database
Scan CHAR data? YES
Database character set WE8MSWIN1252
FROMCHAR WE8MSWIN1252
TOCHAR al32utf8
Scan NCHAR data? NO
Array fetch buffer size 10240
Number of processes 3
Capture convertible data? NO
[Scan Summary]
All character type data in the data dictionary are convertible to the new character set
All character type application data are convertible to the new character set
[Data Dictionary Conversion Summary]
Data Dictionary Tables:
Datatype Changeless Convertible Truncation Lossy
VARCHAR2 5,408,302 0 0 0
CHAR 4,261 0 0 0
LONG 249,018 0 0 0
CLOB 67,652 3,794 0 0
VARRAY 49,807 0 0 0
Total 5,779,040 3,794 0 0
Total in percentage 99.934% 0.066% 0.000% 0.000%
The data dictionary can be safely migrated using the CSALTER script
XML CSX Dictionary Tables:
Datatype Changeless Convertible Truncation Lossy
VARCHAR2 702 0 0 0
CHAR 0 0 0 0
LONG 0 0 0 0
CLOB 0 0 0 0
VARRAY 0 0 0 0
Total 702 0 0 0
Total in percentage 100.000% 0.000% 0.000% 0.000%
[Application Data Conversion Summary]
Datatype Changeless Convertible Truncation Lossy
VARCHAR2 2,550,581 0 0 0
CHAR 0 0 0 0
LONG 0 0 0 0
CLOB 22,187 8,287 0 0
VARRAY 0 0 0 0
Total 2,572,768 8,287 0 0
Total in percentage 99.679% 0.321% 0.000% 0.000%
[Distribution of Convertible, Truncated and Lossy Data by Table]
Data Dictionary Tables:
USER.TABLE Convertible Truncation Lossy
MDSYS.SDO_COORD_OP_PARAM_VALS 200 0 0
MDSYS.SDO_GEOR_XMLSCHEMA_TABLE 1 0 0
MDSYS.SDO_STYLES_TABLE 78 0 0
MDSYS.SDO_XML_SCHEMAS 5 0 0
SYS.METASTYLESHEET 179 0 0
SYS.RULE$ 1 0 0
SYS.SCHEDULER$_EVENT_LOG 356 0 0
SYS.WRH$_SQLTEXT 537 0 0
SYS.WRH$_SQL_PLAN 514 0 0
SYS.WRI$_ADV_DIRECTIVE_META 5 0 0
SYS.WRI$_ADV_OBJECTS 28 0 0
SYS.WRI$_ADV_SQLT_PLANS 2 0 0
SYS.WRI$_ADV_SQLT_PLAN_STATS 2 0 0
SYS.WRI$_DBU_FEATURE_METADATA 193 0 0
SYS.WRI$_DBU_FEATURE_USAGE 9 0 0
SYS.WRI$_DBU_HWM_METADATA 21 0 0
SYS.WRI$_REPT_FILES 27 0 0
SYSMAN.MGMT_IP_ELEM_DEFAULT_PARAMS 130 0 0
SYSMAN.MGMT_IP_REPORT_ELEM_PARAMS 1,475 0 0
SYSMAN.MGMT_IP_SQL_STATEMENTS 31 0 0
XML CSX Dictionary Tables:
USER.TABLE Convertible Truncation Lossy
Application Data:
USER.TABLE Convertible Truncation Lossy
APEX_030200.WWV_FLOW_BANNER 10 0 0
APEX_030200.WWV_FLOW_BUTTON_TEMPLATES 12 0 0
APEX_030200.WWV_FLOW_CUSTOM_AUTH_SETUPS 19 0 0
APEX_030200.WWV_FLOW_FLASH_CHART_SERIES 5 0 0
APEX_030200.WWV_FLOW_LIST_TEMPLATES 298 0 0
APEX_030200.WWV_FLOW_PAGE_GENERIC_ATTR 44 0 0
APEX_030200.WWV_FLOW_PAGE_PLUGS 3,240 0 0
APEX_030200.WWV_FLOW_PAGE_PLUG_TEMPLATES 254 0 0
APEX_030200.WWV_FLOW_PROCESSING 45 0 0
APEX_030200.WWV_FLOW_ROW_TEMPLATES 66 0 0
APEX_030200.WWV_FLOW_SHORTCUTS 39 0 0
APEX_030200.WWV_FLOW_STEPS 1,795 0 0
APEX_030200.WWV_FLOW_STEP_PROCESSING 2,238 0 0
APEX_030200.WWV_FLOW_TEMPLATES 192 0 0
APEX_030200.WWV_FLOW_WORKSHEETS 30 0 0
[Distribution of Convertible, Truncated and Lossy Data by Column]
Data Dictionary Tables:
USER.TABLE|COLUMN Convertible Truncation Lossy
MDSYS.SDO_COORD_OP_PARAM_VALS|PARAM_VALUE_FILE 200 0 0
MDSYS.SDO_GEOR_XMLSCHEMA_TABLE|XMLSCHEMA 1 0 0
MDSYS.SDO_STYLES_TABLE|DEFINITION 78 0 0
MDSYS.SDO_XML_SCHEMAS|XMLSCHEMA 5 0 0
SYS.METASTYLESHEET|STYLESHEET 179 0 0
SYS.RULE$|CONDITION 1 0 0
SYS.SCHEDULER$_EVENT_LOG|ADDITIONAL_INFO 356 0 0
SYS.WRH$_SQLTEXT|SQL_TEXT 537 0 0
SYS.WRH$_SQL_PLAN|OTHER_XML 514 0 0
SYS.WRI$_ADV_DIRECTIVE_META|DATA 5 0 0
SYS.WRI$_ADV_OBJECTS|ATTR4 28 0 0
SYS.WRI$_ADV_SQLT_PLANS|OTHER_XML 2 0 0
SYS.WRI$_ADV_SQLT_PLAN_STATS|OTHER 2 0 0
SYS.WRI$_DBU_FEATURE_METADATA|INST_CHK_LOGIC 22 0 0
SYS.WRI$_DBU_FEATURE_METADATA|USG_DET_LOGIC 171 0 0
SYS.WRI$_DBU_FEATURE_USAGE|FEATURE_INFO 9 0 0
SYS.WRI$_DBU_HWM_METADATA|LOGIC 21 0 0
SYS.WRI$_REPT_FILES|SYS_NC00005$ 27 0 0
SYSMAN.MGMT_IP_ELEM_DEFAULT_PARAMS|VALUE 130 0 0
SYSMAN.MGMT_IP_REPORT_ELEM_PARAMS|VALUE 1,475 0 0
SYSMAN.MGMT_IP_SQL_STATEMENTS|SQL_STATEMENT 31 0 0
XML CSX Dictionary Tables:
USER.TABLE|COLUMN Convertible Truncation Lossy
Application Data:
USER.TABLE|COLUMN Convertible Truncation Lossy
APEX_030200.WWV_FLOW_BANNER|BANNER 10 0 0
APEX_030200.WWV_FLOW_BUTTON_TEMPLATES|TEMPLATE 12 0 0
APEX_030200.WWV_FLOW_CUSTOM_AUTH_SETUPS|AUTH_FUNC 8 0 0
APEX_030200.WWV_FLOW_CUSTOM_AUTH_SETUPS|PAGE_SENT 10 0 0
APEX_030200.WWV_FLOW_CUSTOM_AUTH_SETUPS|POST_AUTH 1 0 0
APEX_030200.WWV_FLOW_FLASH_CHART_SERIES|SERIES_QU 5 0 0
APEX_030200.WWV_FLOW_LIST_TEMPLATES|ITEM_TEMPLATE 20 0 0
APEX_030200.WWV_FLOW_LIST_TEMPLATES|ITEM_TEMPLATE 20 0 0
APEX_030200.WWV_FLOW_LIST_TEMPLATES|LIST_TEMPLATE 105 0 0
APEX_030200.WWV_FLOW_LIST_TEMPLATES|LIST_TEMPLATE 105 0 0
APEX_030200.WWV_FLOW_LIST_TEMPLATES|SUB_LIST_ITEM 12 0 0
APEX_030200.WWV_FLOW_LIST_TEMPLATES|SUB_LIST_ITEM 12 0 0
APEX_030200.WWV_FLOW_LIST_TEMPLATES|SUB_TEMPLATE_ 12 0 0
APEX_030200.WWV_FLOW_LIST_TEMPLATES|SUB_TEMPLATE_ 12 0 0
APEX_030200.WWV_FLOW_PAGE_GENERIC_ATTR|ATTRIBUTE_ 44 0 0
APEX_030200.WWV_FLOW_PAGE_PLUGS|PLUG_SOURCE 3,240 0 0
APEX_030200.WWV_FLOW_PAGE_PLUG_TEMPLATES|TEMPLATE 166 0 0
APEX_030200.WWV_FLOW_PAGE_PLUG_TEMPLATES|TEMPLATE 88 0 0
APEX_030200.WWV_FLOW_PROCESSING|PROCESS_SQL_CLOB 45 0 0
APEX_030200.WWV_FLOW_ROW_TEMPLATES|ROW_TEMPLATE1 54 0 0
APEX_030200.WWV_FLOW_ROW_TEMPLATES|ROW_TEMPLATE2 10 0 0
APEX_030200.WWV_FLOW_ROW_TEMPLATES|ROW_TEMPLATE3 2 0 0
APEX_030200.WWV_FLOW_SHORTCUTS|SHORTCUT 39 0 0
APEX_030200.WWV_FLOW_STEPS|HELP_TEXT 1,513 0 0
APEX_030200.WWV_FLOW_STEPS|HTML_PAGE_HEADER 282 0 0
APEX_030200.WWV_FLOW_STEP_PROCESSING|PROCESS_SQL_ 2,238 0 0
APEX_030200.WWV_FLOW_TEMPLATES|BOX 64 0 0
APEX_030200.WWV_FLOW_TEMPLATES|FOOTER_TEMPLATE 64 0 0
APEX_030200.WWV_FLOW_TEMPLATES|HEADER_TEMPLATE 64 0 0
APEX_030200.WWV_FLOW_WORKSHEETS|SQL_QUERY 30 0 0
[Indexes to be Rebuilt]
USER.INDEX on USER.TABLE(COLUMN)
APEX_030200.WWV_FLOW_WORKSHEETS_UNQ_IDX on APEX_030200.WWV_FLOW_WORKSHEETS(SYS_NC00078$)
APEX_030200.WWV_FLOW_WORKSHEETS_UNQ_IDX on APEX_030200.WWV_FLOW_WORKSHEETS(SYS_NC00079$)
APEX_030200.WWV_FLOW_WORKSHEETS_UNQ_IDX on APEX_030200.WWV_FLOW_WORKSHEETS(SYS_NC00080$)
APEX_030200.WWV_FLOW_WORKSHEETS_UNQ_IDX on APEX_030200.WWV_FLOW_WORKSHEETS(SYS_NC00081$)
APEX_030200.WWV_FLOW_WS_UNQ_ALIAS_IDX on APEX_030200.WWV_FLOW_WORKSHEETS(SYS_NC00082$)
APEX_030200.WWV_FLOW_WS_UNQ_ALIAS_IDX on APEX_030200.WWV_FLOW_WORKSHEETS(ALIAS)
----------------------------------------------------------------------------------We followed few metalink documents *Solving Convertible or Lossy data in Data Dictionary objects reported by Csscan when changing the NLS_CHARACTERSET [ID 258904.1]* and found that we are good to go as convertible was found only in data dictionary and that too CLOB data. But while running csalter.plb csalter came out without changing the characterset. We ran the following query given the said document and it returned no rows which again confirms there is no problem and go ahead with running csalter.
SELECT DISTINCT z.owner_name
|| '.'
|| z.table_name
|| '('
|| z.column_name
|| ') - '
|| z.column_type
|| ' - '
|| z.error_type
|| ' ' NotHandledDataDictColumns
FROM csmig.csmv$errors z
WHERE z.owner_name IN
(SELECT DISTINCT username FROM csmig.csm$dictusers
) minus
SELECT DISTINCT z.owner_name
|| '.'
|| z.table_name
|| '('
|| z.column_name
|| ') - '
|| z.column_type
|| ' - '
|| z.error_type
|| ' ' DataDictConvCLob
FROM csmig.csmv$errors z
WHERE z.error_type ='CONVERTIBLE'
AND z.column_type = 'CLOB'
AND z.owner_name IN
(SELECT DISTINCT username FROM csmig.csm$dictusers
ORDER BY NotHandledDataDictColumns
/Sorry to have made the thread so big but to make sure and give a complete picture of the issue pasted the csscan contents. Request the PRO's to help us in this issue.You have convertible data in the application tables. CLOB or not, such data prevents csalter.plb from changing the character set.
You are on 11.2.0.3, so use the DMU (http://www.oracle.com/technetwork/products/globalization/dmu/overview/index.html). It can cope with such data.
-- Sergiusz -
Using AL32UTF8 or ZHS16GBK Characterset
Hi,
Currently, our database is using AL32UTF8 as the characterset but we need to store some Simplified Chinese data in tables.
I know what AL32UTF8 characterset is able to store Simplified Chinese data but not being able to sort the Chinese character by Han yu pin yin (By default). The default is by Binary.
I also know that ZHS16GBK characterset is able to store Simplified Chinese and the default sorting is by Han yu pin yin, which is what I want.
1. So I just wonder what type of characterset should I use, AL32UTF8 or ZHS16GBK?
2. AL32UTF8 is an unicode characterset which can support multi-language but ZHS16GBK characterset can only store Simplified Chinese? Am I right? What about English words, can ZHS16GBK characterset being able to store English words?
3.Which is the recommended Characterset to use for my case?
4. If I choose to set my characterset as AL32UTF8 but I want all the Simplified Chinese data to be sort by Han yu pin yin, how should I do?
5. I read one of the documentation and it state that I can set the NLS_SORT in the nls_Session_parameters to SCHINESE_PINYIN_M. After setting the session parameters, I want into SQLPLUS and execute a select statement (e.g. select short_name from client order by short_name) and the Simplified Chinese short name retrieve is sorted by Han yu pin yin. But when my application (NOT through SQLPLUS) execute the same select statement, the result is not sorted by Han yu pin yin. Why is this so? Did I miss out anything?
6. Lastly, I tried to set the NLS_SORT in the instance parameters as well by changing the spfile but the application using the select statement still cannot sort the Simplified Chinese data by Han yu pin yin. What should I do?Hi,
Actually, I change the nls_sort for the session paramaters through the setting of the nls_sort in the registry instead of using the alter session command line.
This is so as using alter session command line will only change the nls_sort for that particular session and once I exit the session, the nls_sort will be reset back to the default which is in Binary. I will have to re-alter the nls_sort in the session parameters again.
Thats why I set the nls_sort in the registry so that the nls_sort in the session parameters will remain in the client machine.
After setting the nls_sort in the registry, I am able to sort the Simplified Chinese characters by Han yu pin yin using the SQL*PLUS but not in my application.
My applications are running on Windows environment (Microsoft Windows 2000 5.00.2195 SP3).
The applications are split into front-end and back-end. The backend is using java and the front-end is using a software that is also using java to control.
Basically, the front-end application will execute an electronic data exchange service and it will establish a jdbc oracle thin connection to the database.
There is configuration file that is attached with each Electronic data exchange service. This configuration file contains the select statement (select short_name from client order by short_name) and each configuration file is linked with a datasource which will establish a jdbc oracle thin connection to the database.
But seems like the result of the select statement in the configuration file are not sorted by Han yu pin yin. But executing the same select statement through SQL*PLUS will return the data sorted by Han yu pin yin.
Thanks. -
Change characterset to WE8MSWIN1252
When I try to change characterset from AL32UTF8 to WE8MSWIN1252, I get this error:-
ORA-12712: new character set must be a superset of old character set.
a) How to switch off the superset check to allow changes between formally incompatible character sets to solve this character set problem ?
b) Or is it that there is only one way to solve this problem :-
1) export database
2) reinstall database
3) Import database
c) Can some one tell me that ø,æ,å characters are found in AL32UTF8 characterset.
RajkumI had read somewhere that simply using the command to change the characterset does not quite do a clean job. The best way is to recreate the db.
-
How can i use dsadm to change the ldap port?
I have a ldap with port 1389,I changed it to 389,now I can not start it because it is a non root user.
Now I want to change the port back to 1389,but I can not use dsconf because the server is not running.
How can i do now? How can i use dsadm to change the port?
Thank u very much.My apologies, I didn't mean to be rude/impolite.
I just wanted to emphasize that in a situation where a Directory Server doesn't even start, you cannot interact with the live server to configure the new port (either talking LDAP or otherwise). All you can do in that case won't be related with the LDAP (that's just the name of the protocol): either assigning network privileges to the user, or changing the Directory Server configuration file.
The other thing I'd like to outline (and this could take a separate thread ;-) ), is that semantically, I'd prefer talking of a Directory Server instead of an LDAP Server because the former is 'something' providing Directory Services, whereas the latter is just the name of the protocol we use to interact with the server; but this is just my personal opinion, you don't have to agree with me.
that's all folks!
marco -
How can you turn off the braille setting on an iPhone 4s, once on it won't let you slide the phone into use mode to change the settings or do anything?
An alternate method is Accessibility Settings when connected to iTunes. You should be able to turn it off there. I would also check out some of the answers listed to the right of this post and see if they can help.
-
Error inserting a row into a table with identity column using cfgrid on change
I got an error on trying to insert a row into a table with identity column using cfgrid on change see below
also i would like to use cfstoreproc instead of cfquery but which argument i need to pass and how to use it usually i use stored procedure
update table (xxx,xxx,xxx)
values (uu,uuu,uu)
My component
<!--- Edit a Media Type --->
<cffunction name="cfn_MediaType_Update" access="remote">
<cfargument name="gridaction" type="string" required="yes">
<cfargument name="gridrow" type="struct" required="yes">
<cfargument name="gridchanged" type="struct" required="yes">
<!--- Local variables --->
<cfset var colname="">
<cfset var value="">
<!--- Process gridaction --->
<cfswitch expression="#ARGUMENTS.gridaction#">
<!--- Process updates --->
<cfcase value="U">
<!--- Get column name and value --->
<cfset colname=StructKeyList(ARGUMENTS.gridchanged)>
<cfset value=ARGUMENTS.gridchanged[colname]>
<!--- Perform actual update --->
<cfquery datasource="#application.dsn#">
UPDATE SP.MediaType
SET #colname# = '#value#'
WHERE MediaTypeID = #ARGUMENTS.gridrow.MediaTypeID#
</cfquery>
</cfcase>
<!--- Process deletes --->
<cfcase value="D">
<!--- Perform actual delete --->
<cfquery datasource="#application.dsn#">
update SP.MediaType
set Deleted=1
WHERE MediaTypeID = #ARGUMENTS.gridrow.MediaTypeID#
</cfquery>
</cfcase>
<cfcase value="I">
<!--- Get column name and value --->
<cfset colname=StructKeyList(ARGUMENTS.gridchanged)>
<cfset value=ARGUMENTS.gridchanged[colname]>
<!--- Perform actual update --->
<cfquery datasource="#application.dsn#">
insert into SP.MediaType (#colname#)
Values ('#value#')
</cfquery>
</cfcase>
</cfswitch>
</cffunction>
my table
mediatype:
mediatypeid primary key,identity
mediatypename
my code is
<cfform method="post" name="GridExampleForm">
<cfgrid format="html" name="grid_Tables2" pagesize="3" selectmode="edit" width="800px"
delete="yes"
insert="yes"
bind="cfc:sp3.testing.MediaType.cfn_MediaType_All
({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"
onchange="cfc:sp3.testing.MediaType.cfn_MediaType_Update({cfgridaction},
{cfgridrow},
{cfgridchanged})">
<cfgridcolumn name="MediaTypeID" header="ID" display="no"/>
<cfgridcolumn name="MediaTypeName" header="Media Type" />
</cfgrid>
</cfform>
on insert I get the following error message ajax logging error message
http: Error invoking xxxxxxx/MediaType.cfc : Element '' is undefined in a CFML structure referenced as part of an expression.
{"gridaction":"I","gridrow":{"MEDIATYPEID":"","MEDIATYPENAME":"uuuuuu","CFGRIDROWINDEX":4} ,"gridchanged":{}}
ThanksIs this with the Travel database or another database?
If it's another database then make sure your columns
allow nulls. To check this in the Server Navigator, expand
your DataSource down to the column.
Select the column and view the Is Nullable property
in the Property Sheet
If still no luck, check out a tutorial, like Performing Inserts, ...
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
John -
Issue in Update Standard Price using BAPI_M_REVAL_CREATE PRICE CHANGE
Hi folks,
I was using BAPI_M_REVAL_CREATE PRICE CHANGE to update standard price, but this BAPI is not working for me..
Can anyone give me an example to run it?
My code is like this:
t_comp_code = t_thold_final-bukrs .
t_material_price_list-plant = t_final-werks.
t_material_price_list-material = t_final-matnr.
t_material_price_list-val_type = t_final-bwtar.
t_material_price_list-change_std_price = t_final-stprs.
APPEND t_material_price_list.
CLEAR t_material_price_list.
CALL FUNCTION 'BAPI_M_REVAL_CREATEPRICECHANGE'
EXPORTING
comp_code = t_comp_code
pstng_date = sy-datum
IMPORTING
ml_doc_num = w_mblnr
TABLES
material_price_list = t_material_price_list
return = t_return1.
Please help as after runing this there no error in return and no material document no created.
thanks,
varun
Edited by: Varun Gupta on Jun 12, 2009 4:06 PM
Edited by: Varun Gupta on Jun 12, 2009 4:08 PMNo idea
no error in return and no material document no created
just try debugging it -
Hello I'm trying to update my applications and it is asking me to sign in and checking my billing account .it is not accepting my billing account that I use tried to change it several time it didn't work .what can I do to solve it?
What happens when you try to confirm your details, if you are getting an error message then what does it say ? For a card to be accepted (debit cards are no longer accepted in all countries) it needs to be registered to exactly the same name and address as on your account, and have been issued by a bank in your country. If it's not being accepted then do you get the 'none' option on your account ?
-
How to use BAPI_SALESORDER_CHANGE to change payment terms in Orders?
Can any body give me an idea on how to use BAPI_SALESORDER_CHANGE to change payment terms in Orders?
Regards,
Dantham ConpolwedsonHi,
try the link
Link:[https://forums.sdn.sap.com/click.jspa?searchID=24060901&messageID=7265357] -
Finished script: Use grep find/change to fill in a supplied table of contents
This script is now complete, and has been the subject of most of my previous posts. Just in case anyone wanted to know what the finished script ended as, here it is.
Thanks so much to all. A lot of really helpful folks on this board are very responsible for the success of this task. This script is to be one of hopefully many in the creation of our records. But it's a huge leap forward. Thanks again to everyone that helped.
Cheers,
~Nate
Task:
Automatically find town names in listings, and fill in table of contents template on page 2 accordingly.
Example of page 2 toc, initially:
Example of a page of content. The town names are what need to be referenced on the TOC:
Example of page 2 toc once script is finished:
Because of the need to include the transaction dates on the TOC (comes as a provided, tagged-text file), a simple Indesign-generated TOC can't be used alone.
This script uses an Indesign-generated TOC that's on a master page called "T-tocGen" ... It then uses grep search and replaces to grab the needed information, and insert it into the page 2 TOC.
The script will update a generated TOC and then search for an instance of a page number, and town name. The generated toc lists all included towns in the following format:
(line start)## tab townName(line end)
In Grep, this would be (please note, extra \ for \d and \t ... javascript needs that for some reason):
^\\d+\\t(.*)$
After the script gets the info it needs from a found instance of the above, it replaces that line with "---", to prevent that line from being picked up once again.
The script with then place the needed page number in it's rightful place on page 2, replacing the XX.
A while loop is used to repeat the above process until there are no longer any instances of "^\\d+\\t(.*)$" present.
Not every town runs every issue, so once the script is done, it removes all remaining instance of "XX" on the page 2 TOC.
FINAL CODE:
TOC replace
This script will use grep find/change methods to apply page numbers in
tocGen to the XX's on page2TOC.
// define the text frame of generated TOC
var tocGenFrame = document.masterSpreads.item("T-tocGen").pages.item(0).textFrames.item(0);
// udpate generated TOC ... store contents in tocGenStuff
var tocGenStuff = updateTOCGen();
// set variable for while loop
var okGo = "1";
// while okGo isn't 0
while(okGo.length!=0)
// get town info from tocGen
getCurrentTown();
// replace XX's with tocGen info
replaceTown();
// grep find ... any remaining towns with page numbers in tocGen?
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "^\\d+\\t(.*)$";
// set current value of okGo ... with any instances of above grep find in tocGen
okGo = tocGenFrame.findGrep();
// grep find/change all leftover XXs in page2TOC
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "^XX\\t";
app.changeGrepPreferences.changeTo = "\\t";
app.activeDocument.changeGrep();
// clear grep prefs
app.findGrepPreferences = app.changeGrepPreferences = null;
// functions //
function getCurrentTown()
// grep options
app.findChangeGrepOptions.includeLockedLayersForFind = true;
app.findChangeGrepOptions.includeLockedStoriesForFind = true;
app.findChangeGrepOptions.includeHiddenLayers = true;
app.findChangeGrepOptions.includeMasterPages = true;
app.findChangeGrepOptions.includeFootnotes = true;
// grep find: startLine anyDigits tab anyCharacters endLine
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "^\\d+\\t(.*)$";
// get grep find results
currentGen = tocGenFrame.findGrep();
// store grep results content into currentLine
currentLine = currentGen[0].contents;
// match to get array of grep found items
currentMatch = currentGen[0].contents.match("^\\d+\\t(.*)$");
// second found item is town name, store as currentTown
currentTown = currentMatch[1];
// change current line to --- now that data has been grabbed
// this is because loop will continue as long as the above grep find yields a result
app.findGrepPreferences.findWhat = "^\\d+\\t"+currentTown+"$";
app.changeGrepPreferences.changeTo = "---";
tocGenFrame.changeGrep();
function replaceTown()
app.findChangeGrepOptions.includeLockedLayersForFind = true;
app.findChangeGrepOptions.includeLockedStoriesForFind = true;
app.findChangeGrepOptions.includeHiddenLayers = true;
app.findChangeGrepOptions.includeMasterPages = true;
app.findChangeGrepOptions.includeFootnotes = true;
// find: XX currentTown .... replace with: currentLine
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "^XX\\t"+currentTown+" \\(";
app.changeGrepPreferences.changeTo = currentLine+" \(";
app.activeDocument.changeGrep();
function updateTOCGen()
//set vars ... toc text frame, toc master pag
var tocGen = document.masterSpreads.item("T-tocGen").pages.item(0).textFrames.item(0);
var tocGenPage = document.masterSpreads.item("T-tocGen").pages.item(0);
//SELECT the text frame generatedTOC on the master TOC
tocGen.select();
//Update Table of Contents by script menu action:
app.scriptMenuActions.itemByID(71442).invoke();
//Deselect selection of text frame holding your TOC:
app.select(null);
//store contents of toc text frame in variable
var tocGenText = tocGen.contents;
//return contents of tocGen
return tocGenText;Thanks for the reply.
You are correct but the problem is there are three rows, One row is 100% black, the second is 60% black and the third is 40% black. I want to change the black to blue, the 60% black to an orange and the 40% black to a light shaded blue. In the find/change option you can select the tint you want to find and replace but yea.. does work on table cells.. oddly enough. -
Using javascript to change the "Overall Result" cell in WAD
Hi experts,
I am trying to use javascript to change the text of the "Overall Result" cell in my web template using BI 7.0. I am not familiar with javascript, but I this is what I have done so far.
I dragged the web item "Script" into my web template and I inserted the following code:
function change_overall_result_to_average() {
var cell = document.getElementsByTagName("TD");
var cellText;
for (i = 0; i < cell.length; i++)
cellText = cell<i>.innerText;
if (cellText == "Overall Result")
cell<i>.innerText = "Average";
In the XHTML view I am using added the onload function to start the javascript every time the web template is loaded. The code works fine when the web template is first loaded and the cell text is changed to "Average". However, if I navigate in my web template, the javascript function is not triggered, and the cell is therefore changed back to "Overall Result". For example, this happens when I pick another selection from one of my dropdown boxes, such as changing the selection from year 2008 to year 2007.
I don't really know how to solve this problem in an easy way, and the current solution is not good enough. I hope one of you guys can suggest an easy way of fixing this:-)
Best Regards,
MortenWoodstock apparently renders some Javascript/DOM with some homegrown widget framework which on its turn renders the HTML DOM tree instead of plain vanilla HTML. Correct me if I'm wrong, to confirm this, just view the generated HTML source of the page.
After some Googling I found out that you need getProps() and setProps() to get and set element attributes respectively.
[http://google.com/search?q=webuijsf+domnode+site:sun.com].
If you stucks with this, I recommend you to post this question at a forum or mailinglist devoted to Woodstock, e.g at their own homepage at dev.java.net or the Netbeans forum at nabble.com. You're here at a Sun JSF forum, not at a Woodstock forum. -
Using javascript to change styles and such
I want ot use javascript to change the "display" style of a
div tag
whatDiv.style.display = "block"
This works fine if the div tag has an inline style defined:
<div style="display:none"> ...</div>
But if the tag has a class attached to it and the display
:none is attached
to that class, then it doesn't work
<style...>
div.hidden{ display:none; }
</style>
<div class="hidden"> ... </div>
... how can I remedy this?On Thu, 15 Jun 2006 17:20:54 +0000 (UTC), "jeremyluby"
<[email protected]> wrote:
>What gary is saying is that you should not use a class,
but an ID only to
>define the region.
Nope. That's not what I'm saying. Regardless of whether
you're using a
class or not, if you get an object reference using an ID, you
can change
the properties. Consider this example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title>Demo</title>
<style type="text/css">
.demo {
background-color: #000099;
border: 1px solid #000;
color: #ffffff;
text-align: center;
height: 60px;
width: 500px;
</style>
<script type="text/javascript">
var bg="#009";
function changeColor(x){
o=document.getElementById(x);
bg=(bg=="#009"?"#900":"#009");
o.style.backgroundColor=bg;
</script>
</head>
<body>
<div id="test" class="demo">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing
elit.</p>
</div>
<p><a href="javascript:;"
onClick="changeColor('test')">Change
Color</a></p>
</body>
</html>
Gary -
How do I use AppleScript to Change the Creation Date to the Current Date?
I sorted my downloads folder by creation date and found that the items were sorted seemingly randomly. On closer inspection, I saw that the creation dates were not the same as the dates that I downloaded the items, so I figures that Snow Leopard was using the date given to it by the server.
In order to get the items sorted by download date, I figured I'd use Hazel, but it doesn't have a “change creation date” item. It does, however, have an “run AppleScript” item.
So my question is this: how do I use AppleScript to change the creation date of an item to the current date?TC (Techno Cat) wrote:
Okay, I tried changing the creation date with SetFile, but it kept giving me an error:
What am I doing wrong?
Looks like the date and time was not quoted
Try this Applescript. It will change the creation date of every file in the Downloads folder to the current date and time:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #E6E6EE;
overflow: auto;"
title="this text can be pasted into the AppleScript Editor">
set current_date_and_time to do shell script "date \"+%m/%d/%Y %H:%M\""
tell application "Finder"
set filelist to every file of the alias (the path to downloads folder as text)
repeat with currentFile in filelist
do shell script "/usr/bin/SetFile -d " & quoted form of current_date_and_time & space & quoted form of POSIX path of (currentFile as string)
end repeat
end tell</pre> -
When I copy and paste from Word to my e-mail using Firefox it changes the font and spacing to single space and 10pt.
It just started doing this a month ago.
It does not do it when I am on my laptop or using Explorer.
Help, I hate explorer.If this were a project that I was involved in, I would recapture the media at the correct frame rate and rebuild the sequences correctly.
Moving from production, to post production, to delivery is a series of steps, and the success of any particular step is based on having all the preceding steps done correctly.
Shortcuts and workarounds tend to create awkward and difficult problems, that often only surface late in the process.
MtD
Maybe you are looking for
-
How do you add the files name to images within a PDF
I have been searching the web trying to find an answer to this question, I am not sure what the proper term is called, but I refer to it as a 'coded pdf'. Hopefully someone knows what I am talking about and can help me find an answer! The end product
-
GL Hierarchy Extracting extra nodes from R/3 system which is not at all def
Hi Friends, While extracting GL Hierarchy Master data from R/3 system, The BI system is extracting the GL Hierarchy Node well, But the problem is the system is also extarcting the another node which i have'nt selected and Not at all defined in the R/
-
Does Siri work with Pages App?
I'm wonderinf if Siri works along with the Pages word processing App on iphone5? Does anybody out there have an answer for me?
-
MAX DB DB02 largest tables not displaying
hi all, i have sap on maxdb for BI7.0 on windows 2003 32 bit os . when i try to get the largest tables in the DB02 tcode i am not able to get any tables. its showing blank. i have configured all standard jobs in the server but still i face the scame
-
Function (value = parameter) problem ...
I created example function: <em><font color="#808080">create or replace function ttt (p number) return number is begin return p+1; end; </font></em> <p> <font color="#000000">and I wonder why </font> <em><font color="#999999">begin dbms_output.put_li