Testing Initial Value
Not a question - just a surprising find that when you test for initial value i.e. IS INITIAL, the condition is satisfied by the '/' no-data character used by BDC and Direct Input. I had always used 'CO ' /' before finding this.
Hmmmm....
Didn't work that way when I tried it.
Rob
Similar Messages
-
In DEV system, this piece of code is working fine. However when it moves to Testing system it dump due to cl_fpm_factory=>get_instance( ) return initial value. What could be the reason for this? Thanks!
data lo_fpm type ref to if_fpm.
lo_fpm = cl_fpm_factory=>get_instance( ).
wd_this->go_message_manager = lo_fpm->mo_message_manager.Hi Anthony,
how sure are you that the DEV and Test system running the same Netweaver SP versions ?. My doubt is that the test system is not NW7.01 (Ehp-1) . Or some thigs are not enabled in the configuration.
Regards
Senthi -
Default initial value for opportunity field
Hi all,
What is the fastest and most elegant way to achieve this requirement:
When user clicks create opportunity the field "Relevant for forecast" should be default unflagged. Currently it defaults it to be flagged. It should only happen at creation time. The user should be able to flag the field again before saving. So basically I need to make sure that the defaulting is only done once in the lifetime of an opportunity (i.e. at the very first creation).
Br,
AndersHi,
1) Enhance your component
2) Enhance view "BT111H_OPPT"
3) Generate GETTER/SETTER for "STRUCT.FORECAST_REL" in context node "BTOPPORTH"
4) Add the following code at the end of the method "GET_FORECAST_REL"
IF value IS INITIAL.
* value = 'X' -> to check the checkbox if initial
value = ''.
ENDIF.
This should work, but I have not tested it in this case.
Kind regards
Michael -
Hello Everyone,
When I run a report, I filled user:pwd@DB. I would like to save the report in a table ( same DB).
I have a challenge for Initial Value of DESNAME.
If you have any more questions for us, please let us know.
Thanks advance,
N YTry something like this:
declare
l_file bfile;
l_blob blob;
l_filename varchar2(20) := 'myfile.pdf';
begin
l_file := bfilename('doc_loc', l_filename);
dbms_lob.fileopen(l_file, dbms_lob.file_readonly);
dbms_lob.createtemporary (l_blob, false);
dbms_lob.loadfromfile(l_blob, l_file, dbms_lob.lobmaxsize,1 ,1 );
dbms_lob.fileclose(l_file);
insert into test (id, docs)
values (1, l_blob);
-- If you want to delete the file after loading:
utl_file.fremove ('doc_loc', l_filename);
dbms_lob.freetemporary (l_blob);
end; -
In our application, we use the Item Property 'Initial Value' to populate default values in new records.
For our Forms 4.5 release of the application, the Item Property 'Default Value' populated this value at form startup (the record status is 'new'). As I recall (hazily) during pre-conversion testing, Forms 6.0 Item Property 'Initial Value' performed the same functionality at form startup. No code changes have been made during the conversion for this event.
Forms 6i (6.0.10.3) appears to only populate initial values that are hard coded or system defaults. Initial values retrieved from a block/global item is not set at form startup (block values are set in the WNFI trigger and globals are set before entering the form).
The only solution we found is to add a CLEAR_RECORD to the WHEN-NEW-FORM-INSTANCE trigger. After this built-in is executed, the initial values from block/global locations are populated.
Has anyone noticed this problem. I checked the bug database and did not find any mention of this problem.
You might want to keep this in mind at form startup in your application when converting to Forms 6i.Hi John
Thanks for your tip; I noticed that behaviour and tried to work around it with pre-insert triggers (which also don't work properly for me).
I'm on Forms version 6.0.8.8.0, on linux.
Thanks again
Paulo
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by John Mierzurak ([email protected]):
In our application, we use the Item Property 'Initial Value' to populate default values in new records.
For our Forms 4.5 release of the application, the Item Property 'Default Value' populated this value at form startup (the record status is 'new'). As I recall (hazily) during pre-conversion testing, Forms 6.0 Item Property 'Initial Value' performed the same functionality at form startup. No code changes have been made during the conversion for this event.
Forms 6i (6.0.10.3) appears to only populate initial values that are hard coded or system defaults. Initial values retrieved from a block/global item is not set at form startup (block values are set in the WNFI trigger and globals are set before entering the form).
The only solution we found is to add a CLEAR_RECORD to the WHEN-NEW-FORM-INSTANCE trigger. After this built-in is executed, the initial values from block/global locations are populated.
Has anyone noticed this problem. I checked the bug database and did not find any mention of this problem.
You might want to keep this in mind at form startup in your application when converting to Forms 6i.<HR></BLOCKQUOTE>
null -
What the Initial value for sy-tabix & sy-index
Hi Folks
I have a small doubt.
What the Initial value for sy-tabix & sy-index?
Can anyone please clarify me?
Regards,
Sreehi sree,
both values are initialized to 0 before processing and after processing values are changed according to used scenarios.
if helpful reward some points.
with regards,
suresh babu aluri. -
Initial value and value in the database
Hello world ,
i want to add initial value with value in the database depend on the date
for example i have initial value for 30/09/2009
i and to all it with value in the database in 31/12/2009
take a look what i did
PROCEDURE pkd_prem IS
cursor gr_pkd_prem is select
SUM(DECODE(mark,'01',FM_mark,TM_mark) A,
SUM(DECODE(FMS,'01',LS,NS) b
from fr_treaty_profile ftp, fr_monthly_summary
where
(ftp.tpr_cgp_id = fr_monthly_summary.fms_cgp_id )
AND (ftp.tpr_cmp_id = fr_monthly_summary.fms_cmp_id )
AND (ftp.tpr_treaty_origin = fr_monthly_summary.fms_treaty_origin )
AND (ftp.tpr_uw_year = fr_monthly_summary.fms_uw_year )
AND (ftp.tpr_class = fr_monthly_summary.fms_class )
AND (ftp.tpr_type = fr_monthly_summary.fms_type )
AND (ftp.tpr_serial = fr_monthly_summary.fms_serial )
AND
(fr_monthly_summary.fms_treaty_origin=:BLK1.EO_ORIGIN) AND
(fr_monthly_summary.fms_uw_year=:BLK1.EO_UW_YEAR) AND
(fr_monthly_summary.fms_class=:BLK1.EO_CLASS) AND
(fr_monthly_summary.fms_treaty_type=:BLK1.EO_TYPE) AND
( fr_monthly_summary.fms_treaty_serial=:BLK1.EO_SERIAL)
AND (FMS_TYPE ='P')
AND FMS_SERIAL = '01'
AND (FMS_OFC_ID !='X')
and (FMS_YEAR =substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),7,4))
and (FMS_PERIOD between substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2)-2 and substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2)) ;
---Initial value
cursor base is select EO_GR_BKD_PREM from FR_EN
where
EO_TREATY_ORIGIN=:BLK1.EO_ORIGIN AND
EO_UW_YEAR=:BLK1.EO_UW_YEAR AND
EO_CLASS=:BLK1.EO_CLASS AND
EO_TREATY_TYPE=:BLK1.EO_TYPE AND
EO_TREATY_SERIAL=:BLK1.EO_SERIAL AND
EO_YEAR=:BLK1.EO_YEAR;
A number(18,3);
B number(18,3);
v_base number(18,3);
BEGIN
open base;
open gr_pkd_prem;
fetch gr_pkd_prem into a,b;
fetch base into v_base;
:BLK1.EO_GR_BKD_PREM :=nvl(a,0)+ nvl(b,0)+ nvl(v_base,0);
close gr_pkd_prem;
close base;
END;
the proceudre is correct and the values come as i want
but here
FMS_PERIOD between substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2)-2 and substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2))
suppose i will add from 6 to 9
the value will come down to add with base value
but next time i want from 10 to 12
it will add value 10 to 12 with the base for just period 10 to 12
i want to keep adding
if i start from 6 to 9
then shoud be
add the value of 6 to 9 to 10 to 12
butlook ..
i created a form and let's say there is one field called Base ..
and i inert value on that field and saved .
then
i created cursor to fetch value from another table
that value which i fetched from another table must add to past value
take this scenario
i started with value 6
then i fetch by cursor value from 1/1/2010 to 31/3/2010 and that value = 33
first action
6+33
then
i fecth by using cursor from 1/6/2010 to 30/9/2010 and that value = 2
the result of first action must add with the last value which is 2
(6+33) from first action plus(+) 2 and display the result on the secreen -
Error: Missing initial value for session parameter
Hi,
I'm facing a problem while running the ETL process for Complete 11.5.10 Execution Plan in DAC Client. Some tasks are getting failed beacuse of the following error:-
ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: VAR_27026 [Error: Missing initial value for session parameter:[$DBConnection_OLAP].].
ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6270 [Error: Variable parameter expansion error.].
ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6163 [Error initializing variables and parameters for the paritition.].
ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6226 [ERROR: Failed to initialize session [SDE_ORA_Product_Category_Derive_Full]].
ERROR : LM_36320 [Mon Nov 19 21:02:08 2007] : (2108|2632) Session task instance [SDE_ORA_Product_Category_Derive_Full]: Execution failed.
When i checked the parameter file i can see the value assigned to the $DBConnection_OLAP. The same tasks ran successfully when i ran the ETL process for Complete 11.5.10 for the first time. I did not change anything after that and also all these are came built-in with the installation of Oracle BI Applications.
Please anyone give me an idea what is causing the problem.
Thanks,in DAC > Run History > Task Details, query
Name = SDE_ORA_Product_Category_Temporary
Open Status Description, look for string -lpf, the file after it is the actual parameter file DAC send to INFA server. E.g
-lpf D:\DACTOPUS\Informatica\parameters\SDE_ORAR12_Adaptor.SDE_ORA_Product_Category_Temporary.txt
Open the parameter file, most likely the [session_name] does not match with SDE_ORA_Product_Category_Derive_Full or some parameters are missing. -
Problem setting initial value for LOV
Hello, everyone. This seems like it should be simple, but it's giving me lots of problems. I am trying to create my first LOV. I have a messageLovInput item called PFedFilingStatus. From the Property Inspector, I can set an Initial Value of "02", which displays when I run the page, and lets me change it and validate it using the associated LOV.
What I would rather do is set the initial value programmatically, but here are my problems:
If I set the value like this:
OAMessageLovInputBean lovText = (OAMessageLovInputBean)pageLayout.findIndexedChildRecursive("PFedFilingStatus");
lovText.setText("02");
then the field displays properly at run time, but can't be changed. The LOV runs, but any value I select flips back to "02"
If I set the value like this:
lovText.setDefaultValue("02");
then nothing seems to happen at run time. The value is not displayed at all.
Can anyone tell me what I am doing wrong? Thanks for your help.
--DaveYes, that helps a bunch. Now can you tell me where that is set?
Thanks so much.
--Dave -
Incorrect initial value for char 0FISCYEAR in i_t_range in DTP filter prog
Gurus
I need your help , I have searched all the threads but could not find anything which can help me resolve this issue.
I have a filter in DTP as a routine to get the year from system date.
The program is correct for syntex but when I trigger the DTP I am getting the following message , not sure what needs to be added to my programe.
Incorrect initial value for characteristic 0FISCYEAR in i_t_range
Message no. DBMAN889
appreciate any help I can get to reoslve this ASAP.
Thanks in advanceHi
Pleae check if you have initialised with a NULL value . "blank/null" is indeed not a valid characteristic value for fiscal period. Fisc.per is of type NUMC which means all characters have to be numerical. The initial value should be "0000000" .
Thanks,
Rajesh.
Please provide points to answers if you find them helpful -
Incorrect initial value for characteristic 0fiscyear in i_t_range
Hi,
While extracting the data from the source DSO to Target I got an error message like '' Incorrect initial value for characteristic 0fiscyear in i_t_range".
what is the step should i take to resolve this?
Thanks in Advance.Gurus
I have the same problem with my ABAP code written in DTP filter.
Can anyone please help what needs to be done , I am getting this error when I try to load the data to cube. -
What is initial value of an empty drop-down?
I have written a script to populate the items in a drop-down list but only if there is no entry already existing.
The problem I have is recognizing that the list is empty. I have tried to test for null (if dropdown.isNull = true) and testing the
rawValue = "" and a bunch of other things with no good result.
I'm sure this is easy but apparently not for me.
Thanks for the help!Those commands are testing the value that is selected by the user. As they have not selected anything yet they will not have a value.
The command:
DropDownList1.items.nodes.length
Will give you the number of items in the DDlist. It is 1 based. Note that it will not count any items that were added to the dropdown by the user.
Paul -
What is the purpose of the Initial Value checkbox in SE11?
Hi,
When we create database tables using SE11, there is a Initial Value checkbox for the fields that we create. How do we make use of this checkbox?
For example, after checking the Initial Value checkbox, how do I go about entering the intial value? There isn't a input field for me to do it. Thanks."Initial values" Flag ---> Indicator that NOT NULL is forced for this field
Select the flag if a field to be inserted in the database is to be filled with initial values. The initial value used depends on the data type of the field.
Please note that fields in the database for which the this flag is not set can also be filled with initial values.
When you create a table, all fields of the table can be defined as NOT NULL and filled with an initial value. The same applies when converting the table. Only when new fields are added or inserted, are these filled with initial values. An exception is key fields. These are always filled automatically with initial values.
Restrictions and notes:
The initial value cannot be set for fields of data types LCHR, LRAW, and RAW. If the field length is greater than 32, the initial flag cannot be set for fields of data type NUMC.
If a new field is inserted in the table and the initial flag is set, the complete table is scanned on activation and an UPDATE is made to the new field. This can be very time-consuming.
If the initial flag is set for an included structure, this means that the attributes from the structure are transferred. That is, exactly those fields which are marked as initial in the definition have this attribute in the table as well.
Hope this helps.
Thanks,
Balaji -
Initial value for a dropdown box
Hello all,
I have created a web template in the WAD (BI 70) with a dropdown box on a characteristic. A chart is displayed based on the query result. My query is built on an infoset.
My problem is to populate the filter with an initial value and still let users change the characteristic value in the dropdown (all values for the characteristic is not acceptable in the context) . Also, I don't want the variable screen to show up.
What is the best approach to achieve this?
Thanks,
JLIn Query Designer you put in your default value in the area to the right in the first pane..
If you put it on the left hand side, the filter will not be changeable.
Hope this helps.
Can give more presise answer if you need it. -
What is the initial value for a numeric field ??
Can someone tell me what the INITIAL VALUE FOR A NUMERIC FIELD is ?? Thank you
Rod.Using the following...
class MyClass
int myvar1; // Default initial value
int myvar2 = 3; // Default initial value and default value
MyOtherClass myclass1; // Default initial value
void doit()
int mylocal1; // No value
MyOtherClass myclass2; // No value
All number member variables, like myvar1 start off with andefault initial value which is zero. For booleans this is false. Object reference variables, like myclass1, have a null value.
All local numeric variables are considered undefined. So mylocal1 and myclass2 are undefined. Before you can use them you must explicitly provide a value.
Finally note that myvar2 will have two values during class instantiation. Initially it will have a value of zero. Sometime later it will have the value of 3. (When that happens is very definitely outside the scope of what this forum covers. If you want to know then ask in the advanced forum.)
Maybe you are looking for
-
Need advice on importing for quality since Lame won't work on itunes 7
I had been using Lame to import CDs. It would record at a variable rate based on the music and made really good sounding recordings to iTunes. Since I updated iTunes to v.7.3, Lame no longer works and is now available only as source code (let me admi
-
HELP!! MY Zen Micros broken AG
ok I got impatient waiting for replies on the other post... My zen micro screen has gone blank, but the music still plays, this is the second time it has broken in the 2 weeks i've had it!! please can some one tell me how to fix this as i dont want t
-
Query Designer - Variables - Replacement Path
I need a help. In one query I need to select some data from the current Period until yesterday. In another query I need to select the same data, but from the current Month until yesterday. I created 2 restricted key figures: SEL_PERIOD restricts 0FIS
-
Granting Read Only Access to user in another schema
Oracle Database 10g Red Hat Enterprise Linux Server release 5.3 We are requested by a developer to grant his account read only access to TABLES, VIEWS, INDEXES, SEQUENCES, FUNCTIONS, PROCEDURES, PACKAGES, TRIGGERS, JOBS of another schema. I know gran
-
How to create rules in business rule composer?
for 1.Id type cannot be null 2.Id type = Identity Card then Insured_Id length should equal to 13.