Check for null values in conditional formatting when no rows returned.
I have a report that is showing facts for different months.
For some months there is no row in the facts table.
But in the report, I have to show a * when there is no data.
If there is a row in the facts table with null value for data, the conditional formatting successfully shows a * when data is null.
But when no row is present in the facts for a particular month , conditional formatting is unable to detect any null, as none exist.
How we can check that no rews returned for a particular month and then show *?
thanks
Hi,
which obiee version r u using?
My Blog ref:
http://obieeelegant.blogspot.com/2011/06/replacing-null-as-0-in-obiee.html
in obiee10g its working fine.expect obiee11g
also see the bug reference
How to replace null as 0 in obiee11g pivot table view?
obiee11.1.1.6.0 also have the same issues.
Thanks
Deva
Similar Messages
-
How does APEX check for null values in Text Fields on the forms?
Hello all,
How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
Declare
v_valid boolean;
Begin
IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := FALSE;
ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := FALSE;
END IF;
return v_valid;
END;
My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
ThanksSee SQL report for LIKE SEARCH I have just explained how Select list return value works..
Cheers,
Hari -
Checking for null value in arraylist
Hi
i have an excel file which i i am reading into an arraylist row by row but not necesarrily that all columns in the row mite be filled. So how do i check for null values in the array list.
try
int cellCount = 0;
int emptyRow = 0;
HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(file));
HSSFSheet sheet = workbook.getSheetAt(0);
Iterator rows = sheet.rowIterator();
myRow = new ArrayList();
int r = 1;
while (rows.hasNext())
System.out.println("Row # " + r);
HSSFRow row = (HSSFRow) rows.next();
Iterator cells = row.cellIterator();
cellCount = 0;
boolean isValid = false;
while (cells.hasNext())
HSSFCell cell = (HSSFCell) cells.next();
switch (cell.getCellType())
case HSSFCell.CELL_TYPE_NUMERIC:
double num = cell.getNumericCellValue();
DecimalFormat pattern = new DecimalFormat("###,###,###,###");
NumberFormat testNumberFormat = NumberFormat.getNumberInstance();
String mob = testNumberFormat.format(num);
Number n = null;
try
n = pattern.parse(mob);
catch ( ParseException e )
e.printStackTrace();
System.out.println(n);
myRow.add(n);
//myRow.add(String.valueOf(cell.getNumericCellValue()).trim());
//System.out.println("numeric: " +cell.getNumericCellValue());
break;
case HSSFCell.CELL_TYPE_STRING:
myRow.add(cell.getStringCellValue().trim());
System.out.println("string: " + cell.getStringCellValue().trim());
break;
case HSSFCell.CELL_TYPE_BLANK:
myRow.add(" ");
System.out.println("add empty:");
break;
} // end switch
cellCount++;
} // end while
r++;
}// end while
} myRow is the arrayList i am adding the cells of the excel file to. I have checked for blank spaces in my coding so please help with how to check for the black spaces that has been added to my arraylist.
I have tried checking by looping through the ArrayList and then checking for null values like this
if(myRow.get(i)!=null)
// do something
// i have tried this also
if(myRow.get(i)!="")
//do something
}Edited by: nb123 on Feb 3, 2008 11:23 PMFrom your post I see you are using a 3rd party package to access the Excel SpreadSheets, you will have to look in your API for you 3rd party package and see if there is a method that will identify a blank row, if there is and it does not work, then you have to take that problem up with them. I know this is a pain, but it is the price we pay for 3rd party object use.
In the mean time, you can make a workaround by checking every column in your row and seeing if it is null, or perhaps even better: check and see if the trimmed value of each cell has a lenth of 0. -
How to check for null values in bpel?? Please Help! very urgent!!!
Hello Guys,
I have a problem. I have an external webservice to which I have to post my request. My task is to create an Webservice and Service Assembly to which others would post request and get response. I have to create SA to deploy onto the bus.
The problem is that there are optional elements in the request and response xsd's. In the Response sometimes certain feilds may come or they may not. for Example:- my response could contain a tag like this <firstName></firstName>
I have to copy these feilds in my bpel process from one variable to another.(like in the mapper).
My Question is , Is there any way in BPEL process or BPEL mapper where I could Check for null values in the request or response???
Your inputs would be very helpful.
Thanks
RajeshThanks for replying man :)
Ok I will be more clear.
Here is a snippet of one of the xsd's that I am using.
<xs:element name="returnUrl" nillable="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Partner specifies the return URL to which responses need to be sent to, in case of
Async message model.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:anyURI">
<xs:maxLength value="300"/>
<xs:whiteSpace value="collapse"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
This means that the return URL field can be there or it may not be there. But if it is there it cant be null because nillable=false. But the whole <returnURL> </returnURL> can be there or it may not be there because minOccurs=0.
My requirement is , if returnURL is there in the response with a value, then in my BPEL mapper I should map it else I should not map it.
Thats the issue.
and Yes kiran, the node be non-existant.
So can you please help me with this.
Thanks
Rajesh -
Can't check for nulls in a conditional?
Hey everyone. Trying my hand at a text based game but I'm encountering many problems:
I have this method in one class that (as you can see) has a conditional that checks to see if 'check' is null, this throws a null pointer exception whenever it is called.
private void placeChars()
String check = currentItem.getItemString();
if(check.equals(null) && currentRoom.getShortDescription().equals("in the cafeteria"))
josh.getSentence(0);
}Here is the method that it is calling from:
public String getItemString()
String returnString = null;
if(haveItems != 0 ){
returnString = "Items:";
Set<String> keys = items.keySet();
for(String item : keys) {
returnString += " " + item;
return returnString;
}I'm not sure what I am doing wrong here :/ and yes I know the code is extremely ugly :)if check is null, you can't invoke any methods on it, including equals.
To check for null:
if (check == null) -
How to check for null value/field?
Hi!
I have created a form that is designed to calculate the rows using the FormCalc function.
My problem is that if I have no value in the some of the rows, a 0 is automatically display as the calculated output field. If a row has no data, how can I get a null or blank field in the result (calculated field) field?
Let's say, I have 5 rows and each row should have a calculated value in one of the fields; when I fill out only two of the rows, the remaining three rows come out with 0s in the calculated output field. I need a blank output field for the remaining calculated values instead of 0s. I am a newbie so please excuse me if I am not explaining well.
Thanks
Jofar1This is the value that I have on my calculate event: "Rate*Units_of_ServiceRow2".
How should/can I incorporate the two codes? -
Check for NULL value (Recordset field)
Hi y'all...
A little question, so just for the weekend...
I've a query that returns 4 fields, the fisrt three always containing data, and the last one an integer, or NULL. If I get the value with <i>rs.Fields.Item(3).Value.ToString();</i> it always contains an integer. The NULL values are always converted to '0'.
How can I check if it is a NULL value?Okey, found a workaround, using the SQL function ISNULL()...
SELECT ISNULL(U_MyVar, 'null_value') FROM [@MyTable]
Now I can check if the value has the value <i>"null_value"</i>. If so, that field was <i>null</i> -
Hi,
I have a table with columns a1, a2, a3, a4 and a5. The column a1 is the primary key for the table. I want to check if all the other columns except a1 have null values. How can I do that?
Thanks,
MachaanFor fun;
select a1,
a2,
a3,
a4,
a5,
nvl2(a2, 0,1) + nvl2(a3, 0,1) + nvl2(a4, 0,1) + nvl2(a5, 0,1) num_nulls
from sample_data;
A1 A2 A3 A4 A5 NUM_NULLS
1 2 3
2 4
3 4 3
4 4 4 2
5 2 3
6 -2 3
7 1 2 3 4 0
8 -1 -2 -3 -4 0 -
How to check for null values in pl sql?
Hello,
I have an sql statement where I read the db column into a number of variables, some of the columns contain NULL values or empty varchars. How can I check if my variable contains any data?
Thanks,
Jto check if your variable contain null or not use like this
if v_variable is null if you use
if v_variable=NULL this is right according to syntax but it will not give you desired result
SQL> declare
2 v_empname varchar2(20);
3 v_comm number;
4 begin
5 select ename,comm into v_empname,v_comm from emp
6 where empno=7839 and comm is NULL;
7 dbms_output.put_line(v_empname);
8 if v_comm is NULL then
9 dbms_output.put_line(v_empname);
10 end if;
11 end;
12 /
KING
KING
PL/SQL procedure successfully completed.but if you will use = null then you will not get result
SQL> declare
2 v_empname varchar2(20);
3 v_comm number;
4 begin
5 select ename,comm into v_empname,v_comm from emp
6 where empno=7839 and comm is NULL;
7 dbms_output.put_line(v_empname);
8 if v_comm = NULL then
9 dbms_output.put_line(v_empname);
10 end if;
11 end;
12 /
KING -------------king will get printed only once.
PL/SQL procedure successfully completed. -
How to check for null value of output parameter?
Hi guys, I get a test procedure with 2 output parameters and do nothing:
CREATE OR REPLACE PACKAGE BODY p_parameters_test AS
PROCEDURE p_null_output_basetype(p1 OUT NUMBER,p2 OUT VARCHAR2)
AS
BEGIN
DBMS_OUTPUT.PUT_LINE('DO NOTHING');
END p_null_output_basetype;
END;And I have below C# code:
cmd.CommandText = "p_parameters_test.p_null_output_basetype";
OracleParameter p1 = new OracleParameter("p1", OracleDbType.Decimal, System.Data.ParameterDirection.Output);
OracleParameter p2 = new OracleParameter("p2", OracleDbType.Varchar2, System.Data.ParameterDirection.Output);
cmd.Parameters.Add(p1);
cmd.Parameters.Add(p2);
try
conn.Open();
cmd.ExecuteNonQuery();
if (p1.Value==null)
Console.WriteLine("p1.Value==null");
else if (Convert.IsDBNull(p1.Value))
Console.WriteLine("Convert.IsDBNull(p1.Value)");
else
Console.WriteLine("p1 else "+p1.Value);
if (p2.Value==null)
Console.WriteLine("p2.Value==null");
else if (Convert.IsDBNull(p2.Value))
Console.WriteLine("Convert.IsDBNull(p2.Value)");
else
Console.WriteLine("p2 else "+p2.Value);
Console.WriteLine("finished");
catch......The output of it is:
p1 else null
p2 else null
Does anyone have any idea why it always goes to the 'else' of the condition-branching, and how can I check if the output parameter is null?
Thanks in advance.Morven... I ran into similar problems. Maybe you've found a solution of your own by now, but here's what I've learned...
The Value property of output parameters, like p1 and p2 in your code, actually varies, according to (I think) the OracleDbType of the parameter. You've got OracleDbType.Decimal for p1 and OracleDbType.Varchar2 for p2. These look about right, since they match the parameter types in your actual stored procedure.
After cmd.ExecuteNonQuery() executes, the respective Value properties of p1 and p2 are actually of different types. For p1, it's going to be "OracleDecimal" and for p2 it's "OracleString". Keep in miind that these are the types of the Value property of the OracleParameter objects, not the OracleParameter objects themselves.
OracleDecimal and OracleString (and some other types like OracleDate, etc.) have an "IsNull" property you can use if you cast the Value property to its runtime type...
if ((OracleDecimal)cmd.Parameters["p1"].Value).IsNull) { …do something… }
else { …do something else… }
Or maybe something like this...
Decimal p1val = ((OracleDecimal)cmd.Parameters["p1"].Value).IsNull ? 0 : ((OracleDecimal)cmd.Parameters["AVG_SALARY"].Value).Value;
I'll admit that expressions like this: ((OracleDecimal)cmd.Parameters["AVG_SALARY"].Value).Value look a little weird. But the "Value" of the "OracleDecimal" property is a regular .NET decimal type (System.Decimal). So, it's a "Value" of the "Value" property of the OracleParameter class.
Even when the stored procedure returns a null, the Value property is still populated. In the case of p1, it's populated with an OracleDecimal object (actually a struct) where IsNull is true. That's why "p1.Value==null" tests false.
From what I can see, OracleDecimal, OracleString, etc. will never be typed as DbNull, or DBNull.Value. So, that would be why Convert.IsDBNull(p1.Value)) always returns false. btw, it appears that these are Value types. That would suggest that coding something like like this, should be avoided…
OracleString p2val = ((OracleString)cmd.Parameters["p2"].Value;
if (p2val.IsNull) { …do something… }
else { …do something else… }
By assigning the value to another variable, you’d be actually creating an entire copy of the OracleString structure, which is pointless.
I hope that helps
Edited by: 897674 on Jan 3, 2012 10:44 AM
Edited by: 897674 on Jan 3, 2012 10:46 AM -
Check for null value of an attribute
Hi,
I am reading an attribute using the get_attribute method of the element of a node.
Depending on whether the value of this attribute is initial or not, I need to do some further processing. But the get_attribute method itself is giving an exception that "Access via null reference is not possible". I first need to check if this is initial (or null) and then proceed. Is there some other way to check this value apart from the get_attribute method??
Here is the sample code
IF elem_es_detalhes IS NOT INITIAL.
DATA:
item_zzorgas LIKE stru_es_detalhes-zzorgas.
get single attribute
elem_es_detalhes->get_attribute(
EXPORTING
name = `ZZORGAS`
IMPORTING
value = item_zzorgas ).
wd_comp_controller->setleadselectionorgas( EXPORTING i_value = item_zzorgas ).
ENDIF.
> the get_attribute method is throwing an exception that access via null object reference is not possible.
Please help!!
regards,
PriyankRuntime Errors OBJECTS_OBJREF_NOT_ASSIGNED
Date and Time 04.04.2007 05:54:08
Short text
Access via 'NULL' object reference not possible.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_WDR_CONTEXT_ELEMENT========CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
You attempted to use a 'NULL' object reference (points to 'nothing')
access a component (variable: " ").
An object reference must point to an object (an instance of a class)
before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using the
CLEAR statement.
How to correct the error
Probably the only way to eliminate the error is to correct the program.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"OBJECTS_OBJREF_NOT_ASSIGNED" " "
"CL_WDR_CONTEXT_ELEMENT========CP" or "CL_WDR_CONTEXT_ELEMENT========CM006"
"IF_WD_CONTEXT_ELEMENT~GET_ATTRIBUTE"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.
System environment
SAP-Release 700
Application server... "pioerp01"
Network address...... "192.168.0.10"
Operating system..... "Windows NT"
Release.............. "5.2"
Hardware type........ "4x Intel 801586"
Character length.... 8 Bits
Pointer length....... 32 Bits
Work process number.. 0
Shortdump setting.... "full"
Database server... "PIOERP01"
Database type..... "ORACLE"
Database name..... "ERD"
Database user ID.. "SAPERD"
Char.set.... "English_United State"
SAP kernel....... 700
created (date)... "Oct 13 2006 00:08:41"
create on........ "NT 5.0 2195 Service Pack 4 x86 MS VC++ 13.10"
Database version. "OCI_10201_SHARE (10.2.0.1.0) "
Patch level. 80
Patch text.. " "
Database............. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE 10.2.0.."
SAP database version. 700
Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"
Memory consumption
Roll.... 1754160
EM...... 8362368
Heap.... 0
Page.... 0
MM Used. 9168936
MM Free. 935200
User and Transaction
Client.............. 210
User................ "PJAIN"
Language Key........ "E"
Transaction......... " "
Program............. "CL_WDR_CONTEXT_ELEMENT========CP"
Screen.............. "SAPMHTTP 0010"
Screen Line......... 2
Information on Caller ofr "HTTP" Connection:
Plug-in Type.......... "HTTP"
Caller IP............. "122.167.22.28"
Caller Port........... 8000
Universal Resource Id. "/sap/bc/webdynpro/sap/zagr_fazenda/"
Information on where terminated
Termination occurred in the ABAP program "CL_WDR_CONTEXT_ELEMENT========CP" -
in "IF_WD_CONTEXT_ELEMENT~GET_ATTRIBUTE".
The main program was "SAPMHTTP ".
In the source code you have the termination point in line 36
of the (Include) program "CL_WDR_CONTEXT_ELEMENT========CM006".
Source Code Extract
Line
SourceCde
6
get_not type abap_bool value abap_false,
7
first_part type string,
8
second_part type string,
9
attr_wa like line of me->dynamic_attributes.
10
11
field-symbols:
12
<dyn_attr> like line of me->dynamic_attributes,
13
<value> type data,
14
<attr_info> like line of me->node_info->attributes->*.
15
16
while try_again = abap_true.
17
18
first try static attributes
19
assign static_attributes->(name) to <value>.
20
if sy-subrc = 0.
21
value = <value>.
22
try_again = abap_false.
23
continue.
24
else.
25
26
second try dynamic attributes
27
read table dynamic_attributes assigning <dyn_attr> with table key name = name.
28
if sy-subrc = 0.
29
assign <dyn_attr>-value->* to <value>.
30
value = <value>.
31
try_again = abap_false.
32
continue.
33
else.
34
35
dynamic attribute not yet created?
>>>>>
read table me->node_info->attributes->* assigning <attr_info> with table key name =
37
if sy-subrc = 0.
38
attr_wa-name = name.
39
create data attr_wa-value type handle <attr_info>-rtti.
40
assign attr_wa-value->* to <value>.
41
if <attr_info>-default_value is not initial.
42
<value> = <attr_info>-default_value.
43
endif.
44
value = <value>.
45
insert attr_wa into table me->dynamic_attributes.
46
try_again = abap_false.
47
continue.
48
else.
49
50
test for :FINAL:NOT
51
split name at ':' into name first_part second_part.
52
if first_part is initial and second_part is initial.
53
try_again = abap_false.
54
continue.
55
else.
Contents of system fields
Name
Val.
SY-SUBRC
4
SY-INDEX
1
SY-TABIX
0
SY-DBCNT
3
SY-FDPOS
0
SY-LSIND
0
SY-PAGNO
0
SY-LINNO
1
SY-COLNO
1
SY-PFKEY
SY-UCOMM
SY-TITLE
Controle HTTP
SY-MSGTY
SY-MSGID
SY-MSGNO
000
SY-MSGV1
SY-MSGV2
SY-MSGV3
SY-MSGV4
SY-MODNO
0
SY-DATUM
20070404
SY-UZEIT
055408
SY-XPROG
SAPCNVE
SY-XFORM
CONVERSION_EXIT
Active Calls/Events
No. Ty. Program Include Line
Name
24 METHOD CL_WDR_CONTEXT_ELEMENT========CP CL_WDR_CONTEXT_ELEMENT========CM006 36
CL_WDR_CONTEXT_ELEMENT=>IF_WD_CONTEXT_ELEMENT~GET_ATTRIBUTE
23 METHOD /1BCWDY/BOKYKZO9MNVO45K6OKJH==CP /1BCWDY/B_5OLH0AU1A64NGHK6WYWX 1265
CL_FAZENDA_DASHBOARD_CTR=>ONCLICK
Web Dynpro Component ZAGR_FAZENDA
Web Dynpro Controller FAZENDA_DASHBOARD
22 METHOD /1BCWDY/BOKYKZO9MNVO45K6OKJH==CP /1BCWDY/B_5OLH0AU1A64NGHK6WYWX 358
CLF_FAZENDA_DASHBOARD_CTR=>ONCLICK
Web Dynpro Component ZAGR_FAZENDA
Web Dynpro Controller FAZENDA_DASHBOARD
21 METHOD /1BCWDY/BOKYKZO9MNVO45K6OKJH==CP /1BCWDY/B_5OLH0AU1A64NGHK6WYWX 320
CLF_FAZENDA_DASHBOARD_CTR=>IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER
Web Dynpro Component ZAGR_FAZENDA
Web Dynpro Controller FAZENDA_DASHBOARD
20 METHOD CL_WDR_DELEGATING_VIEW========CP CL_WDR_DELEGATING_VIEW========CM005 3
CL_WDR_DELEGATING_VIEW=>INVOKE_EVENTHANDLER
19 METHOD CL_WDR_COMPONENT==============CP CL_WDR_COMPONENT==============CM00D 41
CL_WDR_COMPONENT=>FIRE_EVENT
18 METHOD SAPLWDR_RG_PROXY_FACTORY LWDR_RG_PROXY_FACTORYI00 120
LCL_INTERNAL_API=>_IF_WDR_INTERNAL_API~RAISE_EVENT
17 METHOD /1BCWDY/CX3JTPYDGO9FTM6UG46K==CP /1BCWDY/B_BC0OBUXS328BVP4ZI6L1 388
CLF_COMPONENTCONTROLLER_CTR=>IF_COMPONENTCONTROLLER~FIRE_ON_CLICK_EVT
Web Dynpro Component SALV_WD_TABLE
Web Dynpro Controller COMPONENTCONTROLLER
16 METHOD CL_SALV_WD_C_TABLE============CP CL_SALV_WD_C_TABLE============CM002 116
CL_SALV_WD_C_TABLE=>IF_SALV_WD_COMPONENT~FIRE_EVENT
15 METHOD CL_SALV_WD_C_TABLE_V_TABLE====CP CL_SALV_WD_C_TABLE_V_TABLE====CM012 197
CL_SALV_WD_C_TABLE_V_TABLE=>IF_SALV_WD_COMP_TABLE_EVENTS~ON_CELL
14 METHOD CL_SALV_WD_C_TABLE_V_TABLE====CP CL_SALV_WD_C_TABLE_V_TABLE====CM005 39
CL_SALV_WD_C_TABLE_V_TABLE=>IF_SALV_WD_VIEW~ON_EVENT
13 METHOD CL_SALV_WD_A_COMPONENT========CP CL_SALV_WD_A_COMPONENT========CM005 19
CL_SALV_WD_A_COMPONENT=>IF_SALV_WD_COMPONENT~VIEW_ON_EVENT
12 METHOD /1BCWDY/CX3JTPYDGO9FTM6UG46K==CP /1BCWDY/B_X4QHFLHM8I07VGMCNR1L 736
CL_VIEW_TABLE_CTR=>ONACTIONTABLE_CELL
Web Dynpro Component SALV_WD_TABLE
Web Dynpro Controller VIEW_TABLE
11 METHOD /1BCWDY/CX3JTPYDGO9FTM6UG46K==CP /1BCWDY/B_X4QHFLHM8I07VGMCNR1L 468
CLF_VIEW_TABLE_CTR=>IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER
Web Dynpro Component SALV_WD_TABLE
Web Dynpro Controller VIEW_TABLE
10 METHOD CL_WDR_DELEGATING_VIEW========CP CL_WDR_DELEGATING_VIEW========CM005 3
CL_WDR_DELEGATING_VIEW=>INVOKE_EVENTHANDLER
9 METHOD CL_WDR_ACTION=================CP CL_WDR_ACTION=================CM00A 38
CL_WDR_ACTION=>IF_WDR_ACTION~FIRE
8 METHOD CL_WDR_WINDOW_PHASE_MODEL=====CP CL_WDR_WINDOW_PHASE_MODEL=====CM009 52
CL_WDR_WINDOW_PHASE_MODEL=>DO_HANDLE_ACTION_EVENT
7 METHOD CL_WDR_WINDOW_PHASE_MODEL=====CP CL_WDR_WINDOW_PHASE_MODEL=====CM002 62
CL_WDR_WINDOW_PHASE_MODEL=>PROCESS_REQUEST
6 METHOD CL_WDR_WINDOW=================CP CL_WDR_WINDOW=================CM00V 9
CL_WDR_WINDOW=>PROCESS_REQUEST
5 METHOD CL_WDR_MAIN_TASK==============CP CL_WDR_MAIN_TASK==============CM00I 94
CL_WDR_MAIN_TASK=>EXECUTE
4 METHOD CL_WDR_MAIN_TASK==============CP CL_WDR_MAIN_TASK==============CM00J 69
CL_WDR_MAIN_TASK=>IF_HTTP_EXTENSION~HANDLE_REQUEST
3 METHOD CL_HTTP_SERVER================CP CL_HTTP_SERVER================CM017 366
CL_HTTP_SERVER=>EXECUTE_REQUEST_FROM_MEMORY
2 FUNCTION SAPLHTTP_RUNTIME LHTTP_RUNTIMEU02 946
HTTP_DISPATCH_REQUEST
1 MODULE (PBO) SAPMHTTP SAPMHTTP 13
%_HTTP_START
Chosen variables
Name
Val.
No. 24 Ty. METHOD
Name CL_WDR_CONTEXT_ELEMENT=>IF_WD_CONTEXT_ELEMENT~GET_ATTRIBUTE
NAME
ZZPRECO
5555444
AA0253F
VALUE
222
000
TRY_AGAIN
X
5
8
ABAP_TRUE
X
5
8
ME->STATIC_ATTRIBUTES
0.0.0.0.0.0.0.1.
C0000000
F0000000
<VALUE>
SY-SUBRC
4
0000
4000
SPACE
2
0
ME->DYNAMIC_ATTRIBUTES
Table[initial]
<DYN_ATTR>
%_DUMMY$$
2222
0000
%_SPACE
2
0
RSJOBINFO
00000000000000 ####
222222222222222222222222222222223333333333333322222222222222222222222222222222220000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<DYN_ATTR>-VALUE
<ATTR_INFO>
CL_WDR_VIEW_ELEMENT=>CO_UNKNOWN_TEXTLEN
-1
FFFF
FFFF
ATTR_WA-NAME
ATTR_WA-VALUE
0.0.0.0.0.0.0.1.
C0000000
F0000000
<ATTR_INFO>-RTTI
<ATTR_INFO>-DEFAULT_VALUE
No. 23 Ty. METHOD
Name CL_FAZENDA_DASHBOARD_CTR=>ONCLICK
R_PARAM
|
| E0001000 |
| B0004800 |
| WDEVENT |
|
E0001000
C0003800
SY-REPID
/1BCWDY/BOKYKZO9MNVO45K6OKJH==CP
2344545244454543445433434444334522222222
F123749F2FB9BAF9DE6F45B6FBA8DD3000000000
<L_VALUE>
FTP100600000
455333333333222222222222
640100600000000000000000
ITEM_BUKRS
BP01
4533
2001
%_DUMMY$$
2222
0000
ITEM_LIFNR
0001100000
3333333333
0001100000
ITEM_PSPID
FTP100600000
455333333333222222222222
640100600000000000000000
ELEM_ES_DETALHES
|
| F0000000 |
| 3000C800 |
| ITEM_ZZPRECO |
| |
| 222 |
| 000 |
| SPACE |
| |
| 2 |
| 0 |
| SY-XPROG |
| SAPCNVE |
| 5454454222222222222222222222222222222222 |
| 3103E65000000000000000000000000000000000 |
| No. 22 Ty. METHOD |
| Name CLF_FAZENDA_DASHBOARD_CTR=>ONCLICK |
| EVENT |
|
E0001000
C0003800
RESULT
|
| F0000000 |
| F0000000 |
| EVENT->PARAMETERS |
| Table IT_8213[1x16] |
| DATA=PARAMETERS
Table reference: 2596
TABH+ 0(20) = 78213E3D98253E3D00000000240A000015200000
TABH+ 20(20) = 0100000010000000FFFFFFFF04890300A0030000
TABH+ 40( 8) = 10000000A4288401
store = 0x78213E3D
ext1 = 0x98253E3D
shmId = 0 (0x00000000)
id = 2596 (0x240A0000)
label = 8213 (0x15200000)
fill = 1 (0x01000000)
leng = 16 (0x10000000)
loop = -1 (0xFFFFFFFF)
xtyp = TYPE#000006
occu = 16 (0x10000000)
access = 4 (ItAccessHashed)
idxKind = 0 (ItIndexNone)
uniKind = 1 (ItUnique)
keyKind = 1 (default)
cmpMode = 4 (cmpSingleEq)
occu0 = 1
groupCntl = 0
rfc = 0
unShareable = 0
mightBeShared = 1
sharedWithShmTab = 0
isShmLockId = 0
gcKind = 0
isUsed = 1
isCtfyAble = 1
>>>>> Shareable Table Header Data <<<<<
tabi = 0x68203E3D
pgHook = 0x00000000
idxPtr = 0xB8213E3D
shmTabhSet = 0x00000000
id = 4494 (0x8E110000)
refCount = 2 (0x02000000)
tstRefCount = 0 (0x00000000)
lineAdmin = 16 (0x10000000)
lineAlloc = 16 (0x10000000)
shmVersId = 0 (0x00000000)
shmRefCount = 3 (0x03000000)
>>>>> 1st level extension part <<<<<
regHook = 0x68243E3D
collHook = 0x00000000
ext2 = 0x00000000
>>>>> 2nd level extension part <<<<<
tabhBack = Not allocated
delta_head = Not allocated
pb_func = Not allocated
pb_handle = Not allocated
<CUR_PARAM>
'###Ø###Á#######
2000D100C0000000
700089001000E500
SY-SUBRC
4
0000
4000
%_VIASELSCR
0
4
SY
0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
0000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000
1000000000000000000000000000000000000000300000001000000010000000000000000000000000000000000040
%_EXCP
|
| F0000000 |
| F0000000 |
| %_SPACE |
| |
| 2 |
| 0 |
| <CUR_PARAM>-VALUE |
| 0.0.0.0.0.0.0.1. |
| C0000000 |
| 1000E500 |
| R_PARAM |
|
E0001000
B0004800
ME->F_APPL_CLASS
|
| A0005000 |
| 2000D200 |
| WDEVENT |
|
E0001000
C0003800
No. 21 Ty. METHOD
Name CLF_FAZENDA_DASHBOARD_CTR=>IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER
HANDLER_NAME
ONCLICK
4444444
FE3C93B
EVENT
E0001000
C0003800
PARAMETERS
Table[initial]
RESULT
|
| F0000000 |
| F0000000 |
| SYST |
| 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1. |
| 0000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000 |
| 1000000000000000000000000000000000000000300000001000000010000000000000000000000000000000000040 |
| ME->F_APPL_CLASS |
|
A0005000
2000D200
WDEVENT
|
| E0001000 |
| C0003800 |
| CL_ABAP_TYPEDESCR=>TRUE |
| X |
| 5 |
| 8 |
| ME |
|
B0004000
4000B200
%_EXCP
|
| F0000000 |
| F0000000 |
| No. 20 Ty. METHOD |
| Name CL_WDR_DELEGATING_VIEW=>INVOKE_EVENTHANDLER |
| NAME |
| ONCLICK |
| 4444444 |
| FE3C93B |
| EVENT |
|
E0001000
C0003800
RET
F0000000
F0000000
SYST-REPID
CL_WDR_DELEGATING_VIEW========CP
4455455444444544455445333333334522222222
3CF742F45C57149E7F6957DDDDDDDD3000000000
SY-REPID
CL_WDR_DELEGATING_VIEW========CP
4455455444444544455445333333334522222222
3CF742F45C57149E7F6957DDDDDDDD3000000000
%_SPACE
2
0
%_DUMMY$$
2222
0000
No. 19 Ty. METHOD
Name CL_WDR_COMPONENT=>FIRE_EVENT
CONTROLLER_NAME
COMPONENTCONTROLLER
4445444454445544445
3FD0FE5E43FE42FCC52
EVENT_NAME
ON_CLICK
44544444
FEF3C93B
PARAMETERS
Table IT_8211[1x16]
CLASS=CL_WDR_COMPONENTMETHOD=FIRE_EVENTDATA=PARAMETERS
Table reference: 1900
TABH+ 0(20) = 78213E3D00000000000000006C07000013200000
TABH+ 20(20) = 0100000010000000FFFFFFFF04B10000E00F0000
TABH+ 40( 8) = 10000000A4288401
store = 0x78213E3D
ext1 = 0x00000000
shmId = 0 (0x00000000)
id = 1900 (0x6C070000)
label = 8211 (0x13200000)
fill = 1 (0x01000000)
leng = 16 (0x10000000)
loop = -1 (0xFFFFFFFF)
xtyp = TYPE#000062
occu = 16 (0x10000000)
access = 4 (ItAccessHashed)
idxKind = 0 (ItIndexNone)
uniKind = 1 (ItUnique)
keyKind = 1 (default)
cmpMode = 4 (cmpSingleEq)
occu0 = 1
groupCntl = 0
rfc = 0
unShareable = 0
mightBeShared = 1
sharedWithShmTab = 0
isShmLockId = 0
gcKind = 0
isUsed = 1
isCtfyAble = 1
>>>>> Shareable Table Header Data <<<<<
tabi = 0x68203E3D
pgHook = 0x00000000
idxPtr = 0xB8213E3D
shmTabhSet = 0x00000000
id = 4494 (0x8E110000)
refCount = 2 (0x02000000)
tstRefCount = 0 (0x00000000)
lineAdmin = 16 (0x10000000)
lineAlloc = 16 (0x10000000)
shmVersId = 0 (0x00000000)
shmRefCount = 3 (0x03000000)
>>>>> 1st level extension part <<<<<
regHook = Not allocated
collHook = Not allocated
ext2 = Not allocated
>>>>> 2nd level extension part <<<<<
tabhBack = Not allocated
delta_head = Not allocated
pb_func = Not allocated
pb_handle = Not allocated
<EVT_SUBSCRIBER>-LISTENER->COMPONENT->COMPONENT_NAME
ZAGR_FAZENDA
544554454444
A172F61A5E41
<EVT_SUBSCRIBER>-LISTENER->IF_WD_CONTROLLER~NAME
FAZENDA_DASHBOARD
44544445445444454
61A5E41F41382F124
<EVT_SUBSCRIBER>-HANDLER_NAME
ONCLICK
4444444
FE3C93B
CL_WD_TRACE_TOOL=>INSTANCE
|
| F0000000 |
| F0000000 |
| %_VIASELSCR |
| # |
| 0 |
| 4 |
| SPACE |
| |
| 2 |
| 0 |
| SY-REPID |
| CL_WDR_COMPONENT==============CP |
| 4455455444544445333333333333334522222222 |
| 3CF742F3FD0FE5E4DDDDDDDDDDDDDD3000000000 |
| ME->COMPONENT_NAME |
| SALV_WD_TABLE |
| 5445554554444 |
| 31C6F74F412C5 |
| %_DUMMY$$ |
| |
| 2222 |
| 0000 |
| SYST-REPID |
| CL_WDR_COMPONENT==============CP |
| 4455455444544445333333333333334522222222 |
| 3CF742F3FD0FE5E4DDDDDDDDDDDDDD3000000000 |
| <EVT_SUBSCRIBER>-LISTENER |
|
B0004000
80007200
CUSTOM_EVENT
|
| E0001000 |
| C0003800 |
| %_ARCHIVE |
| |
| 2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222 |
| 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
| RSJOBINFO |
| 00000000000000 #### |
| 222222222222222222222222222222223333333333333322222222222222222222222222222222220000 |
| 000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
| No. 18 Ty. METHOD |
| Name LCL_INTERNAL_API=>_IF_WDR_INTERNAL_API~RAISE_EVENT |
| CONTROLLER_NAME |
| COMPONENTCONTROLLER |
| 4445444454445544445 |
| 3FD0FE5E43FE42FCC52 |
| EVENT_NAME |
| ON_CLICK |
| 44544444 |
| FEF3C93B |
| PARAMETERS |
| Table IT_8210[1x16] |
| CLASS-POOL=/1BCWDY/CX3JTPYDGO9FTM6UG46KCLASS=CLF_COMPONENTCONTROLLER_CTRMETHOD=IF_COMPONENT |
| Table reference: 2237 |
| TABH+ 0(20) = 78213E3D0000000000000000BD08000012200000 |
| TABH+ 20(20) = 0100000010000000FFFFFFFF0477010070630000 |
| TABH+ 40( 8) = 10000000A4288401 |
| store = 0x78213E3D |
| ext1 = 0x00000000 |
| shmId = 0 (0x00000000) |
| id = 2237 (0xBD080000) |
| label = 8210 (0x12200000) |
| fill = 1 (0x01000000) |
| leng = 16 (0x10000000) |
| loop = -1 (0xFFFFFFFF) |
| xtyp = TYPE#000444 |
| occu = 16 (0x10000000) |
| access = 4 (ItAccessHashed) |
| idxKind = 0 (ItIndexNone) |
| uniKind = 1 (ItUnique) |
| keyKind = 1 (default) |
| cmpMode = 4 (cmpSingleEq) |
| occu0 = 1 |
| groupCntl = 0 |
| rfc = 0 |
| unShareable = 0 |
| mightBeShared = 1 |
| sharedWithShmTab = 0 |
| isShmLockId = 0 |
| gcKind = 0 |
| isUsed = 1 |
| isCtfyAble = 1 |
| >>>>> Shareable Table Header Data <<<<< |
| tabi = 0x68203E3D |
| pgHook = 0x00000000 |
| idxPtr = 0xB8213E3D |
| shmTabhSet = 0x00000000 |
| id = 4494 (0x8E110000) |
| refCount = 2 (0x02000000) |
| tstRefCount = 0 (0x00000000) |
| lineAdmin = 16 (0x10000000) |
| lineAlloc = 16 (0x10000000) |
| shmVersId = 0 (0x00000000) |
| shmRefCount = 3 (0x03000000) |
| >>>>> 1st level extension part <<<<< |
| regHook = Not allocated |
| collHook = Not allocated |
| ext2 = Not allocated |
| >>>>> 2nd level extension part <<<<< |
| tabhBack = Not allocated |
| delta_head = Not allocated |
| pb_func = Not allocated |
| pb_handle = Not allocated |
| SYST-REPID |
| SAPLWDR_RG_PROXY_FACTORY |
| 5454545554555455544454552222222222222222 |
| 310C742F27F02F89F6134F290000000000000000 |
| ME->F_CTLR_INST->COMPONENT |
|
3000C000
C0003200
%_DUMMY$$
2222
0000
No. 17 Ty. METHOD
Name CLF_COMPONENTCONTROLLER_CTR=>IF_COMPONENTCONTROLLER~FIRE_ON_CLICK_EVT
R_PARAM
|
| E0001000 |
| B0004800 |
| %_DUMMY$$ |
| |
| 2222 |
| 0000 |
| CUR_PARAM-NAME |
| R_PARAM |
| 5554544 |
| 2F0121D |
| CUR_PARAM-VALUE |
| 0.0.0.0.0.0.0.1. |
| C0000000 |
| 1000E500 |
| <VALUE> |
|
E0001000
B0004800
ALL_PARAMS
Table IT_8210[1x16]
CUR_PARAM
'###Ø###Á#######
2000D100C0000000
700089001000E500
SYST-REPID
/1BCWDY/CX3JTPYDGO9FTM6UG46K==CP
2344545245345554443454354334334522222222
F123749F383A40947F964D65746BDD3000000000
No. 16 Ty. METHOD
Name CL_SALV_WD_C_TABLE=>IF_SALV_WD_COMPONENT~FIRE_EVENT
NAME
ON_CLICK
44544444
FEF3C93B
R_PARAM
E0001000
B0004800
LR_STD_FUNCTION
F0000000
F0000000
SY-REPID
CL_SALV_WD_C_TABLE============CP
4455445554545544443333333333334522222222
3CF31C6F74F3F412C5DDDDDDDDDDDD3000000000
LS_MPARAM-NAME
R_PARAM
555454422222222222222222222222
2F0121D00000000000000000000000
CL_GUI_CONTROL=>LIFETIME_DEFAULT
%_DUMMY$$
2222
0000
LS_MPARAM-KIND
E
4
5
CL_ABAP_OBJECTDESCR=>EXPORTING
E
4
5
LS_MPARAM-VALUE
0.0.0.0.0.0.0.1.
C0000000
0000F500
LT_MPARAM
Table IT_8209[1x40]
CLASS=CL_SALV_WD_C_TABLEMETHOD=IF_SALV_WD_COMPONENT~FIRE_EVENTDATA=LT_MPARAM
Table reference: 2071
TABH+ 0(20) = 701E3E3D00000000000000001708000011200000
TABH+ 20(20) = 0100000028000000FFFFFFFF04C70100200E0000
TABH+ 40( 8) = 10000000A4258001
store = 0x701E3E3D
ext1 = 0x00000000
shmId = 0 (0x00000000)
id = 2071 (0x17080000)
label = 8209 (0x11200000)
fill = 1 (0x01000000)
leng = 40 (0x28000000)
loop = -1 (0xFFFFFFFF)
xtyp = TYPE#000054
occu = 16 (0x10000000)
access = 4 (ItAccessHashed)
idxKind = 0 (ItIndexNone)
uniKind = 1 (ItUnique)
keyKind = 3 (user defined)
cmpMode = 2 (cmpSingleMcmpR)
occu0 = 1
groupCntl = 0
rfc = 0
unShareable = 0
mightBeShared = 0
sharedWithShmTab = 0
isShmLockId = 0
gcKind = 0
isUsed = 1
isCtfyAble = 1
>>>>> Shareable Table Header Data <<<<<
tabi = 0xE01B3E3D
pgHook = 0x00000000
idxPtr = 0xB01E3E3D
shmTabhSet = 0x00000000
id = 4493 (0x8D110000)
refCount = 0 (0x00000000)
tstRefCount = 0 (0x00000000)
lineAdmin = 16 (0x10000000)
lineAlloc = 16 (0x10000000)
shmVersId = 0 (0x00000000)
shmRefCount = 1 (0x01000000)
>>>>> 1st level extension part <<<<<
regHook = Not allocated
collHook = Not allocated
ext2 = Not allocated
>>>>> 2nd level extension part <<<<<
tabhBack = Not allocated
delta_head = Not allocated
pb_func = Not allocated
pb_handle = Not allocated
LS_MPARAM
R_PARAM E#À#######
55545442222222222222222222222240C0000000
2F0121D00000000000000000000000500000F500
CL_SALV_WD_C_TABLE=>C_EVENT_ON_SUPPLY_DRDN_VALUES
ON_SUPPLY_DRDN_VALUE
44555554554544554454
FEF3500C9F424EF61C55
%_ARCHIVE
2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
LR_DRDN_VALUES
|
| F0000000 |
| F0000000 |
| CL_SALV_WD_C_TABLE=>C_EVENT_ON_AFTER_CONFIG |
| ON_AFTER_CONFIG_CTRL |
| 44544545544444454554 |
| FEF16452F3FE697F342C |
| ME->IF_SALV_WD_COMPONENT~R_WD_COMPONENT |
|
3000C000
5000A200
L_METHOD
IF_COMPONENTCONTROLLER~FIRE_ON_CLICK_EVT
4454445444454445544445744545445444445455
96F3FD0FE5E43FE42FCC52E6925FFEF3C93BF564
No. 15 Ty. METHOD
Name CL_SALV_WD_C_TABLE_V_TABLE=>IF_SALV_WD_COMP_TABLE_EVENTS~ON_CELL
T_PARAMETERS
Table IT_8123[5x16]
DATA=S_EVENT_INFO-T_PARAMETERS
Table reference: 2402
TABH+ 0(20) = B054273D000000000000000062090000BB1F0000
TABH+ 20(20) = 0500000010000000FFFFFFFF04CB010048040000
TABH+ 40( 8) = 10000000C1288001
store = 0xB054273D
ext1 = 0x00000000
shmId = 0 (0x00000000)
id = 2402 (0x62090000)
label = 8123 (0xBB1F0000)
fill = 5 (0x05000000)
leng = 16 (0x10000000)
loop = -1 (0xFFFFFFFF)
xtyp = TYPE#000009
occu = 16 (0x10000000)
access = 1 (ItAccessStandard)
idxKind = 0 (ItIndexNone)
uniKind = 2 (ItUniqueNon)
keyKind = 1 (default)
cmpMode = 4 (cmpSingleEq)
occu0 = 1
groupCntl = 0
rfc = 0
unShareable = 0
mightBeShared = 0
sharedWithShmTab = 0
isShmLockId = 0
gcKind = 0
isUsed = 1
isCtfyAble = 1
>>>>> Shareable Table Header Data <<<<<
tabi = 0xA053273D
pgHook = 0x00000000
idxPtr = 0x00000000
shmTabhSet = 0x00000000
id = 4433 (0x51110000)
refCount = 0 (0x00000000)
tstRefCount = 0 (0x00000000)
lineAdmin = 16 (0x10000000)
lineAlloc = 16 (0x10000000)
shmVersId = 0 (0x00000000)
shmRefCount = 1 (0x01000000)
>>>>> 1st level extension part <<<<<
regHook = Not allocated
collHook = Not allocated
ext2 = Not allocated
>>>>> 2nd level extension part <<<<<
tabhBack = Not allocated
delta_head = Not allocated
pb_func = Not allocated
pb_handle = Not allocated
CL_ -
Check for null value for Date Field
Hello everyone,
I have a database that consist of date field and also a bean that will able to access the db.
here are my example:-
private int setDate(int date) {
this.date = date;
private void getDate {
return date;
later, I entered a date value and wanna check whether the date is on the database or not. SO, do you all have any idea?Perhaps before passing your date off to a primitive int, you could pass it to an [Integer] object. Then check to see if that object is null;
Integer d = new Integer(int value);
if (d == null) {
} -
Check for null values in string, if no values, print blank
Hi
I posted a question a few days back, after playing with functions I was able to resolve it, I just have one more problem, if the string comes empty, only blank spaces should be printed, following is my string and my fix:
My string:
SEV.ORI/999999.VIN/1D7Hx11111111111111.VYR/2005.VMA/DODG.VMO/THU.DOT/07072013.CRT/MI1111111.OCA/11111111890123000001.LIT/PC.LIC/BFK9331
=Left(Split(Fields!MESSAGE.Value,"/")(6),2) + "/"
& Mid(Split(Fields!MESSAGE.Value, "/")(6) ,3 ,2) + "/"
& Mid(Split(Fields!MESSAGE.Value, "/")(6), 5, 4)
With this I get: 07/07/2013
If DOT comes empty, i get .CRT/
So I need to validate for empty space on DOT and print blank spaces. I'm guessing it would be with an IIF
or IsNothing function. Any help would be appreciated.Hi
Again after a few hours of playing with functions I resolved the issue, I will post the fix in case it can help someone else.
String:
M00836Z911134.SEV.ORI/MI3987656.VIN/1XXXXXXXXXXXXXX88.VYR/XXXX.VMA/FORD.VMO/THU.DOT/01192013.CRT/MIXX11XX0.OCA/XXXXXXXXXX123000XXX.LIT/PC.LIC/XXXXXXX.
Function:
=IIF(Mid(Split(Fields!MESSAGE.Value, ".")(7) ,1 ,3) = "DOT" , Mid(Split(Fields!MESSAGE.Value, ".")(7) ,5 ,2) + "/"
+ Mid(Split(Fields!MESSAGE.Value, ".")(7) ,7 ,2) + "/"
+ Mid(Split(Fields!MESSAGE.Value, ".")(7) ,9 ,4)," ")
Result:
01/19/2013
If DOT is missing, the space in the report comes blank -
Check for null in IF statement
Hi,
I have a variable of type char(8).
I want to check if this field is empty. This is the logic I use right now:
condense lv_date no-gaps.
if lv_date eq ''.
*then some default value
endif.
Is this the correct approach or there is a way to directly check for null values in a variable.
Thanks,
CDHello,
You have to check IS INITIAL.
condense lv_date no-gaps.
if lv_date IS INITIAL.
*then some default value
endif.
BR,
Suhas -
Page Validation - Function Returning Boolean - Check for NULL
I have 3 Page Validations which all fire on "When Button Pressed" = "Submit".
<br><br>
Number 1 is of type "Item specified is NOT NULL" for "P199_BUSINESS_UNIT1".
<br>
Number 2 is of type "Item specified is NOT NULL" for "P199_BUSINESS_UNIT2".
<br>
Number 3 is of type "Function Returning Boolean" and has the following code:
<br><br>
IF :P199_BUSINESS_UNIT1 IS NULL AND
:P199_BUSINESS_UNIT2 IS NULL THEN
RETURN FALSE ;
ELSE
RETURN TRUE ;
END IF ;<br>
When P199_BUSINESS_UNIT1 is NULL and P199_BUSINESS_UNIT2 is NOT NULL, I get the Error from Validation 1. Perfect.
<br>
When P199_BUSINESS_UNIT1 is NOT NULL and P199_BUSINESS_UNIT2 is NULL, I get the Error from Validation 2. Perfect.
<br>
When P199_BUSINESS_UNIT1 is NOT NULL and P199_BUSINESS_UNIT2 is NOT NULL, I don't get an Error Message. Perfect.
<br><br>
When P199_BUSINESS_UNIT1 is NULL and P199_BUSINESS_UNIT2 is NULL, I get Error Message 1 & 2, <strong>but nothing from 3.</strong>
<br><br>
If I change the code to:
<br><br>
IF :P199_BUSINESS_UNIT1 = '01' AND
:P199_BUSINESS_UNIT2 = '01' THEN
RETURN FALSE ;
ELSE
RETURN TRUE ;
END IF ;<br>
and change both values to '01', I get the appropriate Error Message.
<br><br>
What is going on? Is there some reason I can't check for NULL in a Function Returning Boolean?Scott,
<br><br>
Instead of adding the Validations, I changed my code from:
<br><br>
IF :P199_BUSINESS_UNIT1 IS NULL AND
:P199_BUSINESS_UNIT2 IS NULL THEN
RETURN FALSE ;
ELSE
RETURN TRUE ;
END IF ;
<br>to the following and got the desired results:
<br><br>
IF REPLACE(:P199_BUSINESS_UNIT1,<strong>'%null'</strong> || '%',NULL) IS NULL AND
REPLACE(:P199_BUSINESS_UNIT2,<strong>'%null'</strong> || '%',NULL) IS NULL THEN
RETURN FALSE ;
ELSE
RETURN TRUE ;
END IF ;<br>
Note that I changed the word REPLACE to upper case and the second occurrence of the word NULL to upper case to accentuate the fact that the '%null' is case sensitive, using "%NULL' does not work, it has to be "%null' in lower case.
<br><br>
<strong>Thanks for your help.</strong>
Maybe you are looking for
-
Problem with FileUpload with Struts
Hello, Here is my form I've created : <html:form action="/UploadFile.do" method="post" enctype="multipart/form-data"> <html:file property="file" /> </html:form> The form I submit conatins a "file" attribute of FileForm type. I did exatcly as mentionn
-
I am not planning to load Windows on my Mac, use it mainly for music, internet and casual gaming ( Apple games not Windows games ), I suppose for this the ATI 1900 would be sufficient and I do not really have to worry about a bigger graphics card. Wo
-
Won't open new window, only tabs
Previous version I could change option to open new window rather than tabs in 'tools' - 'options' This does not change anything. Also, it no longer saves 'home page'
-
How to set a plugin to "Never activate" without disabling it
Hello, Here in Brazil almost every bank use this "Internet Banking Helper" plugin from a third-part local security company in their internet banking services. I want to enable this plugin only for two domain names from my bank website and get rid of
-
I updated from itunes 10.7 to itunes 11 and I installed it but when I opened up itunes only little icons would show, it woulndt display any words or letters. so then i tried uninstalling and installing back the old itunes and it wouldnt open at all.