No static attribute???
I'm in big trouble if I can't solve this quick!! Here is the
error code I'm getting:
**Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 1: The
property being referenced does not have the static attribute.
LoadVars.onLoad {
**Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 5: The
property being referenced does not have the static attribute.
LoadVars.onLoad (enterFrame) {
Here is the Action Script thats causing this error:
LoadVars.onLoad {
accel = _root.accel;
rate = _root.rate;
LoadVars.onLoad (enterFrame) {
y = y*accel+(_root.ykoord-_y)*rate;
_y += y;
x = x*accel+(_root.xkoord-_x)*rate;
_x += x;
if (Math.abs(_root.ykoord-_y)<1) {
_y = _root.ykoord;
if (Math.abs(_root.xkoord-_x)<1) {
_x = _root.xkoord;
My website is not functioning and I believe this to be the
problem. I'm using FLASH 8 PRO. I get this same error whether I
publish in FP 6, 7, 8 and even AS 1.0 or 2.0.
Please help!!!
Thanks,
Whoa, I just added all your AS and it's giving me these
errors:
**Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 1:
Statement must appear within on/onClipEvent handler
var myLoadVars:LoadVars= new LoadVars()
**Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 3:
Statement must appear within on/onClipEvent handler
myLoadVars.onLoad
**Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 4:
Statement must appear within on/onClipEvent handler
**Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 8:
Statement must appear within on/onClipEvent handler
myLoadVars.onLoad (enterFrame)
**Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 9:
Statement must appear within on/onClipEvent handler
{
Similar Messages
-
Dynamic call of a static method of an static attribute
Hi all,
is it possible to call dynamically a static method of a static attribute of a class.
The statement without dynamic call would look like this:
cl_test_class=>static_attribute=>static_method( ).
I would like to do it like this:
('CL_TEST_CLASS')=>static_attribute=>static_method( ).
Netiher the one nor the other way works for me - I'm getting the error "The notation used is reserved for business object classes".
Regards, StefanI guess, it is not possible to call method using the short form (parameters in brackets) is not possible in Dynamic Access. You may need to get the attribute first and then call the method.
CLASS lcl_main DEFINITION.
PUBLIC SECTION.
CLASS-DATA: o_same TYPE REF TO lcl_main.
METHODS: run.
ENDCLASS. "lcl_main DEFINITION
CLASS lcl_main IMPLEMENTATION.
METHOD run.
WRITE: 'success'.
ENDMETHOD. "run
ENDCLASS. "lcl_main IMPLEMENTATION
START-OF-SELECTION.
DATA: lo_same TYPE REF TO lcl_main.
CREATE OBJECT lcl_main=>o_same.
* lcl_main=>o_same=>run( ).
TRY.
FIELD-SYMBOLS: <fs> TYPE REF TO lcl_main.
ASSIGN ('LCL_MAIN')=>('O_SAME') TO <fs>.
CALL METHOD <fs>->('RUN').
CATCH cx_root.
ENDTRY.
Regards,
Naimesh Patel -
How to Get static attributes dynamically
Hi,
I have to get static attributes from the context dynamically is it possible?
DATA node TYPE REF TO if_wd_context_node.
DATA element TYPE REF TO if_wd_context_element.
node = wd_context->path_get_node( path = path_node ).
element = node->get_element( ).
element->set_static_attributes( static_attributes = ??? ).
Thank you in advance.
MiguelHi ,
i would suggest to use CL_ABAP_STRUCTDESCR
cl_abap_typedescr=>describe_by_data -
How to get static attribute using it's name as a string
I have an app with about 100 unique combo boxes (it's a gov't requirement, I'm not that bad a designer ) and I would like to define all the choices in a single separate file like this:
package components {
import mx.collections.ArrayCollection;
public class Choices {
[Bindable] public static var A0310A:ArrayCollection = new ArrayCollection ( [
{ value:"01", label:"Admission"},
{ value:"02", label:"Quarterly" },
........snip ..
{ value:"99", label:"NOT OBRA Required" }]);
public static function getChoices(name:String):ArrayCollection {
var temp:ArrayCollection = ????????????????
return temp;
}//----------------end of class--------------------------------
}//======================== end of package==============================
I want to use it like this
<my:ComboBox id="mdscombo" tag="A0310A" />
Where the definition of my:ComboBox includes code like this
var zz:ArrayCollection = Choices.getChoices(name);
but I cannot find any function that will let me do this. I really don't want to clutter the code by creating a name->object lookup table.
I had also considered using the XML data type but I would have the same issue unless I had all the choices under a single root (possible) but that could be a nightmare in debugging typo's in the XML.
Any suggestions???The technique you describedd worked perfectly.
I've yet to deploy my first production app in Flex, so I would appreciate what you see in my approach that is "not desireable" If I'm heading down a bad path I would like to know while I can still refactor. -
How to reset the value of a static attribute in a class (in SAP CRM)
Following the documentation in "C04_BB_ConfigGuide_EN_DE.doc".
I created a logical link for a remote ERP transaction from CRM7.0
The link to this file is http://help.sap.com/bp_crmv12007/CRM_DE/HTML/index.htm then Technical Information --> Building Block Library.
I made a mistake in the defining MappedLogSys name for the remote ERP system in Tcode CRMS_IC_CROSS_SYS.
Later I deleted the wrong entry using tcode CRMS_IC_CROSS_SYS and created the correct entry for the remote ERP system.
But whenever I try to create a new Link for ERP transaction in the CRM system using the wizard, (tcode CRMC_UI_ACTIONWZ), the wizard pickes up the deleted logsys name.
Using tcode SE24 & the Test icon (F8) I ran a test for the class CL_ERP_TX_MMBE and the value of the attribute "GV_MAPPEDLOGSYS" is set to the old deleted value.
How Can I fix this issue and make the class pickup the correct MappedLogSys value.I basically deleted the transaction launcher link and recreated a new one.
-
Using Static Variable against Context Attribute for Holding IWDView
Dear Friends,
I have a method which is in another DC which has a parameter of the type IWDView. In my view, I will have an action which will call the method in another component by passing the value for the view parameter. Here, I can achieve this in 2 types. One is - I declare a static variable and assign the wdDoModifyView's view as parameter value and I can pass this variable as parameter whenever calling that method or the second way - create an attribute and assign the same wdDoModifyView's view parameter as its value. Whenever I call this method, I can pass this attribute as parameter. What is the difference between these two types of holding the value since I am storing the same value i.e., wdDoModifyView's view parameter. But when I trigger the action from different user sessions, the first type of code (using static variable) prints the same value in both the sessions for view.hashCode() and View.toString(), but the same is printing the different values when I pass the attribute which holds the view parameter.
Clarification on this is highly appreciated
The problem I face is when I use static variable to get the view instance and export the data using the UI element's id, the data belonging to different user sessions is mixed up where as when I use Context Attribute, the same problem doesn't arise. I want to know the reason why it is so. Is there any other place or way where I can get the current view instance of each session instead of wdDoModifyView?Hi Sujai ,
As you have specified the problem that we face when we use static attributes, when end users are using the application .
Static means i have n number of objects but the static variable value will remain same every where.
when it is context attribute for every object i.e nth object you have a nth context attribute i mean nth copy of the context attribute.
so every user has a unique Iview parameter , when context is used and
when static is used , assume you have userA , his iview is set this intially and u have another user B , when he is using , since the variable is static and when you access this variable you will get the value of userA.
Regards
Govardan Raj -
Adding dynamic attributes to static context node
Hi All,
I have defined a context node LINES with several attributes. This is done staticly during developmenttime.
During run-time node LINES is extended with several attributes dynamicly. See below:
10 HEADER_GUID ->
11 DETAIL_GUID ->
12 EXTERNAL_ID ->
13 OBJECT_TYPE ->
14 IN_OUT_PLAN ->
15 TRAFFIC_LIGHT_1 ->
16 TRAFFIC_LIGHT_2 ->
17 TRAFFIC_LIGHT_3 ->
18 TRAFFIC_LIGHT_4 ->
19 _LOCATION \TYPE=STRING ->
20 _ZZTOPGROUPING \TYPE=STRING ->
21 _STATUS \TYPE=STRING ->
22 _100000200 \TYPE=STRING ->
19..22 are added dynamicly.
I have an internal table that matches de new context. This <fs_tb_tree_new> I want to bind like:
*&- bind table
lr_node->bind_table( new_items = <fs_tb_tree_new>
set_initial_elements = abap_true ).
In <fs_tb_tree_new> the dynamicly added attrbutes contains values e.g. (the static attributes also have values via <fs_tb_tree_new>):
_LOCATION _ZZTOPGROUPING _STATUS _100000200
5 Africa 0002 Reporting Entity 0.000
6 Russia, CIS 0003 Identify 0.000
An ALV presents the values of the attribute. But.... only the values of the static part are presented, not the dynamic attributes added during runtime.
Please advise what I forget or do wrong .
Thanks in advance.
JohnI solved the issue:
If you use a combination of static attributes added with dynanic attributes (during runtime) for dynamic ALV, I advise to create a new node and bind the values to this new created node:
Cheers, John
wd_this->extend_context( EXPORTING im_struc_descr = lr_cl_abap_structdescr
IMPORTING ex_node = lr_node_alv ).
Method:
*&- Create new dynamic context LINES_DYN
Node for alv-table
lr_node_info = wd_context->get_node_info( ).
CALL METHOD lr_node_info->add_new_child_node
EXPORTING
name = 'LINES_NEW'
static_element_rtti = im_struc_descr
is_static = abap_true
is_multiple = abap_true
is_multiple_selection = abap_false
RECEIVING
child_node_info = lr_subnode_info.
lr_node = lr_subnode_info->get_parent( ).
lr_node = wd_context->get_child_node( 'LINES_NEW' ).
ex_node = lr_node.
*&- bind table for alv
lr_node_alv->bind_table( new_items = <fs_tb_tree_new>
set_initial_elements = abap_true ). -
Dynamic ALV with Static and Dynamic attributes
Hi All,
In my requirement we have some 5 static attributes and rest attributes needs needs to be dynamically created based upon the input selections. for eg my input for start date and end date is between 201023 to 201152 then weeks between this range should apear as dynamic columns.
i am able to create a dummy alv table display with out populating data into it but unable to set the data to it . Kindly help me in solving this issue.
Regards,
Sana.You might have created a dynamic node, bind the data to this node and after that use the SET_DATA method of ALV interface controller to set the data by passing the dynamically created node.
-
Problem with local class, static private attribute and public method
Hello SDN,
Consider the following situation:
1) I have defined a LOCAL class airplane.
2) This class has a private static attribute "type table of ref to" airplane (array of airplanes)
3) A public method should return the private static table attribute
Problems:
a) The table cannot be given as an EXPORTING parameter in the method because TYPE TABLE OF... is not supported and I get syntax errors. I also cannot define a dictionary table type because it is a local class.
b) The table cannot be given as a TABLES parameter in the method because TABLES is not supported in the OO context.
c) The table cannot be given as an EXPORTING parameter in the method defined as LIKE myStaticAttribute because my method is PUBLIC and my attribute is PRIVATE. ABAP syntax requires that all PUBLIC statements are defined before PRIVATE ones, therefore it cannot find the attribute to reference to with LIKE.
I see only 2 solutions:
a) Never ever use local classes and always use global classes so that I might define a dictionary table type of my class which I can then use in my class.
b) Make the attribute public, but this goes against OO principles, and isn't really an option.
Am I missing anything here, or is this simply overlooked so far?Hello Niels
Since your class is local and, thus, only know to the "surrounding" application is does not really make sense to make it public to any other application.
However, if you require to store instances of your local classes in internal tables simply use the most generic reference type possible, i.e. <b>OBJECT</b>.
The following sample report shows how to do that. Furthermore, I believe it also shows that there are <u><b>no </b></u>serious inconsistency in the ABAP language.
*& Report ZUS_SDN_LOCAL_CLASS
REPORT zus_sdn_local_class.
" NOTE: SWF_UTL_OBJECT_TAB is a table type having reference type OBJECT
* CLASS lcl_airplane DEFINITION
CLASS lcl_airplane DEFINITION.
PUBLIC SECTION.
DATA: md_counter(3) TYPE n.
METHODS: constructor,
get_instances
RETURNING
value(rt_instances) TYPE swf_utl_object_tab.
PRIVATE SECTION.
CLASS-DATA: mt_instances TYPE swf_utl_object_tab.
ENDCLASS. "lcl_airplane DEFINITION
* CLASS lcl_airplane IMPLEMENTATION
CLASS lcl_airplane IMPLEMENTATION.
METHOD constructor.
APPEND me TO mt_instances.
DESCRIBE TABLE mt_instances.
md_counter = syst-tfill.
ENDMETHOD. "constructor
METHOD get_instances.
rt_instances = mt_instances.
ENDMETHOD. "get_instance
ENDCLASS. "lcl_airplane IMPLEMENTATION
DATA:
gt_instances TYPE swf_utl_object_tab,
go_object TYPE REF TO object,
go_airplane TYPE REF TO lcl_airplane.
START-OF-SELECTION.
" Create a few airplane instance
DO 5 TIMES.
CREATE OBJECT go_airplane.
ENDDO.
gt_instances = go_airplane->get_instances( ).
CLEAR: go_airplane.
LOOP AT gt_instances INTO go_object.
go_airplane ?= go_object.
WRITE: / 'Airplane =', go_airplane->md_counter.
ENDLOOP.
END-OF-SELECTION.
Regards
Uwe<u></u> -
Regarding static methos and attributes...
Hi..
What do u mena by static methids and atributes?
Why v'll use these?
Whats the purpose?
Regards
sandeep.Hi,
Static Attributes
The contents of static attributes define the state of the class that is valid for all instances of the class. Static attributes exist once for each class. You declare them using the CLASS-DATA statement. They are accessible for the entire runtime of the class.
All of the objects in a class can access its static attributes. If you change a static attribute in an object, the change is visible in all other objects in the class.
The technical properties of instance attributes belong to the static properties of a class. It is therefore possible to refer in a LIKE addition to the visible attributes of a class through the class component selector or through reference variables, without prior creation of an object.
Methods
Methods are internal procedures in a class that define the behavior of an object. They can access all of the attributes of a class. This allows them to change the data content of an object. They also have a parameter interface, with which users can supply them with values when calling them, and receive values back from them The private attributes of a class can only be changed by methods in the same class.
The definition and parameter interface of a method is similar to that of function modules. You define a method meth in the definition part of a class and implement it in the implementation part using the following processing block:
Static Methods
You declare static methods using the CLASS-METHODSstatement. They can only access static attributes and trigger static events.
Reward If Helpfull.
Regards Madhu. -
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_ -
How to define a Value for an Attribute of an Class
Hi,
How to define a Value for an Attribute of a Class ...
( I need to change the value of an Attribute of a class in standard program ....
Ex...
cl_hrce_masterswitches=>infotype_framework_is_active
Here infotype_framework_is_active is the attribute .. its value in standard program is 'X'... Now i need to change it as ' '.
How to define it and set value as ' '.Hello Surendar
The static attribute INFOTYPE_FRAMEWORK_IS_ACTIVE is read-only and there is not SETTER method to manipulate its value.
However, the attribute is filled in the CLASS_CONSTRUCTOR:
METHOD class_constructor.
IF ce_is_active = true OR
global_payroll_is_active = true OR
mngmt_global_empls_is_active = true.
infotype_framework_is_active = true.
perid_infotype_is_active = true.
ELSE.
infotype_framework_is_active = false.
perid_infotype_is_active = false.
ENDIF.
ENDMETHOD.
Thus, you need to analyze how attribute CE_IS_ACTIVE, GLOBAL_PAYROLL_IS_ACTIVE and MNGMT_GLOBAL_EMPLS_IS_ACTIVE are filled in the CLASS_CONSTRUCTOR.
For sure you will find customizing settings that are responsible for this.
Regards
Uwe -
Static Interface Methods in ABAP
Hello,
I'd like to know what sense it makes to define static methods in an interface.
My understanding is, that an interface can only be used with an instance of a class implementing that interface. So I always need to have an instance and thus, static methods are not needed.
But ABAP-OO (in contrast to Java, for example) allows that, so maybe there is some need for that?
Thanks for your help, best regards,
Timo Wolf.Hi,
As you know that static methods are not instance- specific. Hence when a class implements an interface, the methods defined as static do not require an instance-specific call. Rather they are called as CLASSNAME=>INTREFACE_NAME~STATIC_METHOD_NAME. You do not need an instance to access them.
The only purpose of declaring a method as STATIC in interface definition is to create an agreement that a particular method will not depend on an instance to work. When a class implements the interface, calls to this method will be as mentioned above.
<b>
As far as the static components of interfaces are concerned, you can only use the interface name to access constants:
Addressing a constant <const>: <intf>=><const>
For all other static components of an interface, you can only use object references or the class <class> that implements the interface:
Addressing a static attribute <attr>: <class>=><intf~attr>
Calling a static method <meth>: CALL METHOD <class>=><intf~meth>
</b>
Hope this helps.
Regards
Message was edited by: Shehryar Khan
Message was edited by: Shehryar Khan -
How to synchronize concurrent access to static data in ABAP Objects
Hi,
1) First of all I mwould like to know the scope of static (class-data) data of an ABAP Objects Class: If changing a static data variable is that change visible to all concurrent processes in the same Application Server?
2) If that is the case. How can concurrent access to such data (that can be shared between many processes) be controlled. In C one could use semaphores and in Java Synchronized methods and the monitor concept. But what controls are available in ABAP for controlling concurrent access to in-memory data?
Many thanks for your help!
Regards,
ChristianHello Christian
Here is an example that shows that the static attributes of a class are not shared between two reports that are linked via SUBMIT statement.
*& Report ZUS_SDN_OO_STATIC_ATTRIBUTES
REPORT zus_sdn_oo_static_attributes.
DATA:
gt_list TYPE STANDARD TABLE OF abaplist,
go_static TYPE REF TO zcl_sdn_static_attributes.
<i>* CONSTRUCTOR method of class ZCL_SDN_STATIC_ATTRIBUTES:
**METHOD constructor.
*** define local data
** DATA:
** ld_msg TYPE bapi_msg.
** ADD id_count TO md_count.
**ENDMETHOD.
* Static public attribute MD_COUNT (type i), initial value = 1</i>
PARAMETERS:
p_called(1) TYPE c DEFAULT ' ' NO-DISPLAY.
START-OF-SELECTION.
<b>* Initial state of static attribute:
* zcl_sdn_static_attributes=>md_count = 0</b>
syst-index = 0.
WRITE: / syst-index, '. object: static counter=',
zcl_sdn_static_attributes=>md_count.
DO 5 TIMES.
<b>* Every time sy-index is added to md_count</b>
CREATE OBJECT go_static
EXPORTING
id_count = syst-index.
WRITE: / syst-index, '. object: static counter=',
zcl_sdn_static_attributes=>md_count.
<b>* After the 3rd round we start the report again (via SUBMIT)
* and return the result via list memory.
* If the value of the static attribute is not reset we would
* start with initial value of md_count = 7 (1+1+2+3).</b>
IF ( p_called = ' ' AND
syst-index = 3 ).
SUBMIT zus_sdn_oo_static_attributes EXPORTING LIST TO MEMORY
WITH p_called = 'X'
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = gt_list
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'DISPLAY_LIST'
* EXPORTING
* FULLSCREEN =
* CALLER_HANDLES_EVENTS =
* STARTING_X = 10
* STARTING_Y = 10
* ENDING_X = 60
* ENDING_Y = 20
* IMPORTING
* USER_COMMAND =
TABLES
listobject = gt_list
EXCEPTIONS
empty_list = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDDO.
<b>* Result: in the 2nd run of the report (via SUBMIT) we get
* the same values for the static counter.</b>
END-OF-SELECTION.
Regards
Uwe -
Reflection: attributes from the base class
Is there a way to get the attributes from the base class of a derived class via reflection? I only found methods to get the attributes from the derived class.
Example:
class A
int a = 4;
class B extends A
int b = 5;
Object unknown = new B();
Code/Idea to get all attributes from baseclass A using unknown (here: a=4)?Thank you all for your hints. The mistake I make, was to use the baseclass, and not the derived class for getting the attributes. By using an extra parameter of type class I got all attributes in their context.
private StringBuffer getDump(Object obj, Class cl)
dmp.append(cl.getName() + " {\n");
Field[] attribute = cl.getDeclaredFields(); <--- only the fields of the current class
for (int j = 0; j < attribute.length; j++)
attribute[j].setAccessible(true);
try
if (attribute[j].getType().isPrimitive() || attribute[j].getType() == String.class)
dmp.append(attribute[j].getName() + "=" + attribute[j].get(obj) + "\n");
else
if (((attribute[j].getModifiers() & Modifier.STATIC) != Modifier.STATIC) &&
(attribute[j].getType().getName().startsWith("java.lang") == false) &&
((attribute[j].getModifiers() & Modifier.FINAL) != Modifier.FINAL))
dmp.append(getDump(attribute[j].get(obj), attribute[j].get(obj).getClass())); <- recursive call
catch (IllegalAccessException ex)
ex.printStackTrace();
dmp.append("}");
return dmp;
}
Maybe you are looking for
-
I'm not sure how or when it happened but whenever I click on any Firefox icon on my desktop, I get redirected to what appears to be a Mozilla Firefox page but there is a window on the screen that says "Paypal and Firefox Simple promotion!, Did you kn
-
How do I set up a PCI-DNET card as master with A-B DNI as slave?
I'm trying to communicate with an Allen Bradley PLC through DeviceNet. I have a NI PCI-DNet card in my computer, and an Allen-Bradley 1761-NET-DNI interface between my PLC and the DeviceNet network. Does anyone know how to set up my National Instru
-
Can´t add a new web site in iweb
My web site is completely blocked, even all the options to do things in my iweb are in grey so I can´t do anything with it, please help???
-
Hello, is there a way to connect my 7th generation nano to an output video/television?
-
Business Logic in Taghandler methods???
Hi, Is there any reason that the business operation(logic) in a TagHandler class should take place in a doEndTag() for TagSupport class and doAfterBody() in BodyTagSupport class? If so, why it can't be done in the doStartTag() and doInitBody() ? Than