Type-Pools in SE11 used on Class Parameter
I have a strange one. In 46C have parameter on a method of a class that uses a data type from a type pool. Specific the parameter is a range type that is defined in the Type Pool. In 46C this syntax checks fine. But now we have upgraded our test system to 6.00 this no longer syntax checks. It Syntax checks ok in SE24, but in SE11 it errors out. In SE11 I get the error message The type "ZVMPL_TYRG_IDNFL" is unknown. I am on Basis Stack 13. Any insight on the problem would be appreciated.
Thanks.
Matthew
Here is the type pool
TYPE-POOL zvmpl .
TYPES:
BEGIN OF zvmpl_tyst_lifnr_vmpl,
lifnr TYPE lifnr,
name1 TYPE name1_gp,
name_short TYPE name1_gp,
bahns TYPE bahns,
obj_vmpl TYPE REF TO zcl_masterpricelist,
END OF zvmpl_tyst_lifnr_vmpl,
zvmpl_tyit_lifnr_vmpl TYPE HASHED TABLE OF zvmpl_tyst_lifnr_vmpl
WITH UNIQUE KEY lifnr,
zvmpl_tyrg_idnlf TYPE RANGE OF idnlf.
SE24 Definition of Class
class ZCL_MASTERPRICELIST definition
public
create public .
" public components of class ZCL_MASTERPRICELIST
" do not include other source files here!!!
public section.
type-pools ZVMPL .
methods PL_GET_ZVMPL_WHERE
returning
value(RE_RG_IDNLF) type ZVMPL_TYRG_IDNLF .
everything seems to be fine for the type grp in se11. just goto the the change mode in se11 for the type group and click on "Display object list" (CTRLSHIFTF5). Then activate teh object name u find in the repo.browser
Edited by: Prabhu S on Mar 11, 2008 8:16 AM
Similar Messages
-
Internal class type 023 cannot be used in class maintenance
Dear PP gurus,
I am creating class from t code CL01 and while entering class type 023 , i am getting a error message
"Internal class type 023 cannot be used in class maintenance" . when i pressed F4 , in the list 023 is not present.
In the develpopment client , when i do the same 023 , it allows be to create class
pls help me wher i am missing or?
RegardsHello All,
I am facing a similar problem.
I have checked the following customization "SPRO --> Cross Application component -->Classification system --> Class --> Maintain Object type and class,
Here select the MARA table click on the object and check class type 023 is assigned or not."
Class type 023 is not assigned there. When i try to add a new entry I get the following error message
"Specify the key within the work area".
I referred to the following note :OSS Note 1066606, but that is concerned with AFS component.
Kindly provide me a solution as soon as possible.
Regards,
Julia -
Generic Table to a formal type - for master data user exit class
Hello,
I am attempting to setup an ABAP OO framework for extending master data with the CMOD exit, EXIT_SAPLRSAP_002. My goal is to create generic base class, upcast to the actual extraction structure, apply the customizing data fields, and then return the full table to the exit. The problem is that I_T_DATA, the internal table for return values is untyped and therefore generic. I tried using a class parameter as type ref to DATA, but the upcast if failing is failing. Can any one suggest:
What parameter type should I use for the class method parameter?
How do you upcast to the formal extract structure type?
How do you assign the result back to the generic type?
Thanks very much for the help!I ended up figuring out the answer after a bit more work. In case it helps others, the keys points are:
I_T_DATA exposed in EXIT_SAPLRSAP_00x is a dynamic internal table
The reference to the table can be passed to a method parameter as a generic type, TABLE
Though, to store the value in the class as a formally typed value, such as required by an attribute, the type must be cast to the type, DATA.
For example:
Public section
Method CONSTRUCTUR
IMPORTS
PT_DATA TYPE TABLE.
Assign data pointer to attribute
GET REFERENCE OF PT_DATA INTO A_T_DATA.
Endmethod.
protected section.
data A_T_DATA type ref to DATA .
Hope that helps. -
Type pool program??
Hi all,
I want to write a type pool program.. but i could not see type pool in the pull down menu when you create a program from se38.. there was program types: 1, f, i, j, k, m, s but nothing for type pool. Please give me steps for creating one and also one example of such program by sap.
Thanks,
Charles.u can create type pool in se11 not se38....
but use it in se38....
in se11 u find 'type group'......give a name and create...
for reference...u check SLIS type group....which we generally use in ALV...
type pool or group and is nothing more than a collection of TYPE statements. When you use the TYPE-POOLS: statement in your program, and name the type group , this gives you access to these TYPES so that you can use them in your DATA statements.
Regards
Vasu -
how to create our own Type-pools?for using alv?
hi,
This is taken directly from the HELP.
Type Groups
Before Release 4.5A, it was not possible to define standalone types in the ABAP Dictionary to which you could refer using a TYPE addition in an ABAP program. It was only possible to refer to flat structures. Structures in programs corresponded to the structures of database tables or structures in the ABAP Dictionary. In ABAP programs, you could only refer to database tables and structures in the ABAP Dictionary using LIKE. It was, however, possible to refer to individual components of the Dictionary type. Complex local data types such as internal tables or deep structures had no equivalent in the ABAP Dictionary. The solution to this from Release 3.0 onwards was to use type groups. Type groups were based on the include technique, and allowed you to store any type definitions globally in the Dictionary by defining them using TYPES statements.
The definition of a type group is a fragment of ABAP code which you enter in the ABAP Editor. The first statement for the type group <pool> is always:
TYPE-POOL <pool>.
After this came the definitions of data types using the TYPES statement, as described in Local Data Types in Programs. It was also possible to define global constants using the CONSTANTS statement. All the names of these data types and constants must begin with the name of the type group and an underscore:
In an ABAP program, you must declare a type group as follows before you can use it:
TYPE-POOLS <pool>.
This statement allows you to use all the data types and constants defined in the type group <pool> in your program. You can use several type groups in the same program.
Let the type group HKTST be created as follows in the ABAP Dictionary:
TYPE-POOL hktst.
TYPES: BEGIN OF hktst_typ1,
col1(10) TYPE c,
col2 TYPE i,
END OF hktst_typ1.
TYPES hktst_typ2 TYPE p DECIMALS 2.
CONSTANTS hktst_eleven TYPE i VALUE 11.
This type group defines two data types HKTST_TYP1 and HKTST_TYP2, as well as a constant HKTST_ELEVEN with the value 11.
Any ABAP program can use this definition with the TYPE-POOLS statement:
TYPE-POOLS hktst.
DATA: dat1 TYPE hktst_typ1,
dat2 TYPE hktst_typ2 VALUE '1.23'.
WRITE: dat2, / hktst_eleven.
The output is:
1,23
11
The data types defined in the type group are used to declare data objects with the DATA statement and the value of the constant is, as the output shows, known in the program.
~~Guduri -
What is TYPE GROUP /TYPE-POOL? When to use that ?
hello friends
Can any one tell me
What is TYPE GROUP /TYPE-POOL? When to use that ?
Thanks & Best Regards
NileshType group
If you want to define global constants, you have to use a type group. The name of
the type group can only contain a maximum of five characters. In the type group,
you can define constants using the CONSTANTS statement. As types, you are
provided with the integrated ABAP types or the global types of the Dictionary.
In order to be able to use the types of a type group in a program, make the type
group known using the TYPE POOL statement. From these lines on, you can use
all constants of the type group.
The definition of a type group is a piece of ABAP code that is either maintained
via the Dictionary (SE11) or via the ABAP Editor (SE38).
Realization:
The first statement for the type group zmytp is always:
TYPE-POOL zmytp.This is followed by the definition of data types with the statement TYPES, as
described under local program data types. Furthermore, cross-program constants
can be declared using the CONSTANTS statement. All names of this data type
and constants must begin with the name of the type group and an underline:
zmytp_
In an ABAP program, type groups must be made known with the following
statements before they are used:
TYPE-POOLS zmytp.
When using this statement, all data types ansd constants, which are defined in the
zmytp type group can be used in the program. Several type groups can be used
in a program. -
Hey guys,
did someone of you recognized the strange behaviour of the ABAP workbench if you insert TYPE-POOLS in public section of the calss. If you than add a method to the class as PUBLIC, the TYPE-POOLS definition get lost. How could i use TYPE-POOLS within my class?
thx,
M.Hi,
Use type-pools in the first line of class and also in public section.
like.,
class zcl_testclass definition.
type-pools: <type_pool>.
public-section.
type-pools: <type_pool>.
methods: method_name
endclass.
hope this helps u.,
Thanks & Regards,
Kiran -
IN MATERIAL MASTER RECORD WHAT IS THE USE OF CLASS TYPE(CLASSIFICATION VIEW
Hi Guys,
Can you please explain what are the different critiria to use different class type and what exactly meaning of the each class type with respect to Material classification.
Any material available on this to study. Please give link.
Thanks,
DhanuHi,
Purpose
The classification system allows you to use characteristics to describe all types of objects, and to group similar objects in classes u2013 to classify objects, in other words, so that you can find them more easily later.
You then use the classes to help you to find objects more easily, using the characteristics defined in them as search criteria. This ensures that you can find objects with similar or identical characteristics as quickly as possible.
Integration
The classification system allows you to classify all types of object. First, you must define certain settings in Customizing for the classification system. For more information, see Customizing for the Classification System.
SAP has predefined a number of object types (for example, materials, and equipment). The settings for these object types have already been defined in Customizing, so you can start to set up your classification system for these object types without defining further settings.
Features
Before you can use classification functions, you need to set up your classification system.
The there are three steps to setting up a classification system:
Defining the Properties of Objects
You use characteristics to describe the properties of objects. You create characteristics centrally in the SAP R/3 System.
See the SAP Library, Characteristics (CA-CL-CHR).
Creating Classes
You need classes to classify objects. These classes must be set up. During set up you must assign characteristics to the classes.
Assigning Objects
Once you have created the classes you require for classification, you can assign objects to these classes. You use the characteristics of the class to describe the objects you classify.
This completes the data you require to use your classification system. You can then use your classification system to find objects that match the criteria you require.
Once you have set up the classification system you can use it to find certain objects. To do this:
Find a class in which objects are classified
Find the object(s) you require in the class
When you use classification to find objects, you use the characteristics as search criteria, and the system compares the values you enter with the values of the classified objects.
Uts
Award if helpfull -
What type pool is used in ALV's
Hi ,
What type pool used in ALV's ? and How many secondary lists r possible in ALV's?
Thanks & Regards,
Gopi.SLIS
i guess, no such limit,but not very sure about that.
regards
srikanth
Message was edited by: Srikanth Kidambi -
Binding XML to java types generated using Oracle Class Gen
Hi,
how can you bind an XML to the java types generated using the class gen provided byOracle.
I am using oracle 9i production. as part of my design, i have to read an xml input in my java class and use the contents to create some records and send a response xml back.
The latter part of i can do as the java types provide setter methods to set the data and conversion to xml.
Jaxb can be using to bind xml to java datatypes but its not supported in Oracle9i.
What are the alternatives for achieving the same?
Thanks
AshwinHi Ashwin,
This is a bit outside my area of expertise, but I did run an older version of TopLink in the Oracle database java VM a few years back so I'll base my advice on that. Hopefully other forum members can correct me if I steer you wrong.
First you will need to set up your XML environment:
I believe the Oracle 9i database includes a JDK 1.3 VM. You will first need to determine if the VM includes any JAXP APIs. I believe there is an SQL query that allows you to query the classes available in the VM. First check if javax.xml.parsers.DocumentBuilderFactory is present.
If the JAXP APIs are already present in the database you will need to do the following. First load the class javax.xml.namespace.QName into the database. You can extract this from xmlparserv2.jar or from Suns Java Web Service Developer Pack jax-qname.jar. Then you will need to load the JAXB APIs. You can load xml.jar or jaxb-api.jar from Sun's JWSDP.
If the JAXP APIs are not present you will need to load the 10.1.3 version of the XDK jars (these are shipped with the 10.1.3 TopLink install). Load xmlparserv2.jar and xml.jar into the database.
Second you will need to setup your TopLink environment:
Load toplink.jar into the database. If the JAXP APIs were already present and you didn't load the 10.1.3 XDK jars into the database you will need to set the following System property.
toplink.xml.platform=oracle.toplink.platform.xml.jaxp.JAXPPlatform-Blaise -
ALV Using TYPE-POOLS: SLIS
hi
Using TYPE-POOLS: SLIS
I created a "special group" using structure
slis_sp_group_alv
and appending it to table of type
slis_t_sp_group_alv
i call this special group internal table using the function module:
"REUSE_ALV_HIERSEQ_LIST_DISPLAY"
the sample code will look something like this:
DATA: gt_sgroup TYPE slis_t_sp_group_alv.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
IT_SPECIAL_GROUPS = gt_sgroup.
My question is How should i add the contents of my internal tables which i create using 'fieldcat' into this "special group" say 'xyzw' is the name of my special group.
DeepakHi Deepak,
First you have to populate the internal table ( i.e, Fill the internal table ). Then pass that internal table to that function u r calling.
See d below code for your reference for how to add the rows to the internal table. Follow similarly,
REPORT zsomalv3 NO STANDARD PAGE HEADING.
TYPE-POOLS: slis.
DATA: BEGIN OF i_data OCCURS 0,
qmnum LIKE qmel-qmnum,
qmart LIKE qmel-qmart,
qmtxt LIKE qmel-qmtxt,
ws_row TYPE i,
ws_char(5) TYPE c,
chk,
END OF i_data.
DATA: report_id LIKE sy-repid.
DATA: ws_title TYPE lvc_title VALUE 'An ALV Report'.
DATA: i_layout TYPE slis_layout_alv.
DATA: i_fieldcat TYPE slis_t_fieldcat_alv.
SELECT qmnum
qmart
qmtxt
INTO TABLE i_data
FROM qmel
WHERE qmnum <= '00030000010'.
LOOP AT i_data.
i_data-ws_row = sy-tabix.
i_data-ws_char = 'AAAAA'.
MODIFY i_data.
ENDLOOP.
report_id = sy-repid.
PERFORM f1000_layout_init CHANGING i_layout.
PERFORM f2000_fieldcat_init CHANGING i_fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = report_id
i_grid_title = ws_title
is_layout = i_layout
it_fieldcat = i_fieldcat
i_save = 'A'
TABLES
t_outtab = i_data
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*& Form F1000_Layout_Init
FORM f1000_layout_init USING i_layout TYPE slis_layout_alv.
CLEAR i_layout.
i_layout-colwidth_optimize = 'X'.
i_layout-edit = 'X'.
ENDFORM. " F1000_Layout_Init
*& Form f2000_fieldcat_init
FORM f2000_fieldcat_init CHANGING i_fieldcat TYPE slis_t_fieldcat_alv.
DATA: line_fieldcat TYPE slis_fieldcat_alv.
CLEAR line_fieldcat.
line_fieldcat-fieldname = 'QMNUM'.
line_fieldcat-tabname = 'I_DATA'.
line_fieldcat-key = 'X'.
line_fieldcat-seltext_m = 'Notification No.'
APPEND line_fieldcat TO i_fieldcat.
CLEAR line_fieldcat.
line_fieldcat-fieldname = 'QMART'.
line_fieldcat-ref_tabname = 'I_DATA'.
line_fieldcat-hotspot = 'X'.
line_fieldcat-seltext_m = 'Notif Type'.
APPEND line_fieldcat TO i_fieldcat.
CLEAR line_fieldcat.
line_fieldcat-fieldname = 'QMTXT'.
line_fieldcat-tabname = 'I_DATA'.
line_fieldcat-seltext_m = 'Description'.
APPEND line_fieldcat TO i_fieldcat.
CLEAR line_fieldcat.
line_fieldcat-fieldname = 'WS_ROW'.
line_fieldcat-tabname = 'I_DATA'.
line_fieldcat-seltext_m = 'Row Number'.
APPEND line_fieldcat TO i_fieldcat.
CLEAR line_fieldcat.
line_fieldcat-fieldname = 'WS_CHAR'.
line_fieldcat-tabname = 'I_DATA'.
line_fieldcat-seltext_l = 'Test Character Field'.
line_fieldcat-datatype = 'CHAR'.
line_fieldcat-outputlen = '15'.
APPEND line_fieldcat TO i_fieldcat.
CLEAR line_fieldcat.
line_fieldcat-fieldname = 'CHK'.
line_fieldcat-tabname = 'I_DATA'.
line_fieldcat-seltext_l = 'Checkbox'.
line_fieldcat-checkbox = 'X'.
line_fieldcat-edit = 'X'.
APPEND line_fieldcat TO i_fieldcat.
ENDFORM. " f2000_fieldcat_init
Here i_fieldcat is the internal table u r passing to the function above. Just see how it is populated.
Regs,
Venkat -
Hi Experts,
I have a query like can we create custom "type pools". if yes, then what are the steps to create it.
Thank you in advance.
Samad.hi..
Pls check the f1 help in ur system.
It gives u simple examples. Anyway,
Typepool falls under - Data types.
Data Types
You can define program-local data types in ABAP programs that can be used for typing or declaring additional data types and data objects according to validity and visibility.
The corresponding statements are:
1. TYPE-POOLS
2. TYPES
3. INCLUDE TYPE
TYPE-POOLS
Syntax
TYPE-POOLS tpool.
Effect
Declaring global data types and constants from a type group.
The TYPE-POOLS statement declares the data types and constants of type group tpool You can specify it in the global data declarations of an ABAP program or in the declaration section of a class or interface. The data types and constants of the type group are visible as of this statement in the current context.
Notes
If the declared type group tpool integrates a further type group with the TYPE-POOLS statement, its data types and constants are also declared.
,,Data types declared using type groups cover ABAP Dictionary data types of the same name.
Example
Declaration of the predefined type group abap. By referring to the table type abap_func_parmbind_tab from the type group abap, the system declares an internal table parameter_tab for the dynamic parameter transfer to function modules.
TYPE-POOLS abap.
DATA parameter_tab TYPE abap_func_parmbind_tab.
regards,
Padma
Edited by: Padmashree RamMaghenthar on Oct 13, 2008 11:18 AM -
Hi,
What is type-pools? why we are using <b>truxs</b> type-pools. what are the benifits of <b>truxs</b> type-pools. Please explains these thinks..
Thanks
marganiHi
Type pool is a collection of pre defined data types..
Frequently used data types in programming are clubbed into a type pool so that if u write in ur code:
TYPE-POOLS: slis.
the declarations in SLIS will apply to ur code also..
SLIS contains data definitions for ALV structures & internal tables. so that u dont need to declare alv data everytime in ur program..
check out type pools: ICON, etc.. In SE11, type groups..
We can use ABAP ALV LIST and GRID function modules to display Normal LIST and Hiearchical LISTS .
All the definitions TYPES and STRUCTURES and CONSTANTS are defined
in the TYPE-POOL 'SLIS' ,so it should be declared first.
TYPE-POOLS : 'SLIS' .
To display ALV LISTS the function module used are :
REUSE_ALV_LIST_DISPLAY "For Normal LIST
REUSE_ALV_HIERARCHICAL_LIST_DISPLAY "For Hierarchical LIST
To display ALV GRID the function module used are :
REUSE_ALV_GRID_DISPLAY . "For GRID display
The most important component of the ALV is the FIELDCATALOG which is of
TYPE SLIS_T_FIEDLCAT_ALV
or of
TYPE STANDARD TABLE OF SLIS_FIELDCAT_ALV .
The line items of the field catalog are of
TYPE SLIS_FIELDCAT_ALV .
FIELDCATALOG
To prepare field catalog certain fields are essential .There are various other fields allowing for vaarious possibilities and display options.
TABNAME
FIELDNAME
REF_TABNAME
SELTECT_M
e.g.
DATA: WS_FCAT TYPE SLIS_FIELDCAT_ALV . "LINE ITEM OF FCAT
DATA: IN_FCAT TYPE SLIS_T_FIELDCAT_ALV.
WS_FCAT-TABNAME = 'MARA'.
WS_FCAT-FIELDNAME = 'MATNR'.
WS_FCAT-SELTEXT_M = 'Material Number'.
APPEND WS_FCAT TO IN_FCAT .
CLEAR WS_FCAT.
WS_FCAT-TABNAME = 'MAKT'.
WS_FCAT-FIELDNAME = 'MAKTX'.
WS_FCAT-SELTEXT_M = 'Material Description'.
APPEND WS_FCAT TO IN_FCAT .
This will create fieldcatalog with two columns for displaying material and material description .
RESUSE_ALV_LIST_DISPLAY.
The following FM is used to display the data in the internal table in the form of ALV
LIST. The Event table is only required if event handling is being done.
CALL FUNCTION 'RESUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID "of TYPE SY-REPID and
" value SY-REPID
IS_LAYOUT = W_LAYOUT "of TYPE SLIS_LAYOUT_ALV
IT_FIELDCAT = IN_FCAT "of TYPE SLIS_T_FIELDCAT_ALV
I_SAVE = W_SAVE "of TYPE C ,values A ,U ,' '
IT_EVENTS = IN_EVENTS " of TYPE SLIS_T_EVENT
TABLES
T_OUTTAB = IN_DATA "internal table conatining data
"corresponding to IN_FCAT
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC NE 0.
MESSAGE ENNN .
ENDIF.
REUSE_ALV_EVENTS_GET.
This FM is used to get the default event table of the ALV LIST DISPLAY.
The IN_EVENTS internal table is of TYPE SLIS_T_EVENT. This table contains
all the events wrapped up in the ALV LIST or ALV GRID and consistsof two fields
NAME and FORM .The NAME corresponds to names of the events like TOP_OF_PAGE and END_OF_PAGE ,USER_COMMAND and FORM will contain the name of the FORM ROUTINE that will be called dynamically through callback mechanism when the particular event will fire and is initial for all events bt default and has to be filled for
events for which handling is required.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = IN_EVENTS[].
e.g.
DATA: W_EVENT TYPE SLSI_ALV_EVENT "LINE ITEM OF EVENT TABLE
DATA: IN_EVENTS TYPE SLSI_T_EVENT . "Internal table containing events
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = IN_EVENTS[].
RTEAD TABLE IN_EVENTS WITH KEY NAME = 'TOP_OG_PAGE'
INTO W_EVENT.
IF SY-SUBRC EQ 0.
MOVE 'F3000_TOP_OF_PAGE' TO W_EVENT -FORM.
MODIFY IN_EVENTS FROM W_EVENT INDEX SY-TABIX.
ENDIF.
Here the FORM ROUTINE 'F3000_TOP_OF_PAGE' is being set up for the
event TOP_OF_PAGE which will fire when the ALV LIST will be displayed ,This form
will be called dynamically by th ALV LIST display during top_of_page event and for this the modified Events internal table has to be passed to the FM 'REUSE_ALV_LIST_DISPLAY' in the exporting parameter IT_EVENTS. Failing this the form '3000_TOP_OF_PAGE' will not be called . This event is used for placing heading information like Current date and time and the name of the report.
For Sample programs..
Check this link.
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm -
Hi ,
have been working on a ALV report using the class SALV cl_salv_hierseq_table
I am facing few issues pertaining to two things:
1. Displaying some subtotal text along with the subtotals.
Example refer the standard demo example: SALV_DEMO_HIERSEQ_FORM_EVENTS
Now instead of A 17 and A26 I would like to show text like Subtotal for the Carrid.for subtotals and grand totals
Like Subtotal for A 17 is : XXXXXXX
GrandTotal is : YYYYYY
2. We have a page break and a new page for every purchasing group as in the standard example SALV_DEMO_HIERSEQ_FORM_EVENTS for CARRID.
I need to display some variable values as number of documents ,total number of records etc at the end of each CARRID group before a new page starts for the next CARRID.Please note i do not want it on every page.it should only be diaplyed at the end of page whose next page would be for next CARRID.[basically at end of every carrid]Example:after displaying all details for AA need to display the number of records for that carrid at the end of the page[as page break is based on CARRID]/
Thanks
Jyotsnaat end of page event, for CL_SALV_EVENTS_HIERSEQ, has some useful parameters allowing to know where you are at the time of event
parameter VALUE is of type CL_SALV_FORM which contains public attribute IF_SALV_FORM~ACCDESCRIPTION; you can slo get contents of it
about text of total/subtotal, this is normally set in the layout -
How to use application class reference in the controller methods of BSP
Hi,
I have created a bsp application and also created an application class and assigned it to the application class. In the application class, I have created attribute TEXT type string(public and instance parameter).
In the controller let's say main.do, I am trying to give a value to to the text by adding the following code.
application->text = 'test'.
I am getting syntax error saying field 'text' is unknown. It is not contained in one of the specified tables nor defined by DATA statement.
Please can someone let me know how to use the application class in the coding with an example. I couldn't find how exactly this has to be reference. Please help.
Best regards
SivaHi,
if you are having main controller and sub-controller then you may need to use below coding to use application class reference.
*Data declaration
DATA: obj_cntrl TYPE REF TO cl_bsp_controller2,
obj_sub_cntrl TYPE REF TO z_cl_sub_cntl,
application TYPE REF TO z_cl_application.
*Get the controller
CALL METHOD obj_main_cntrl->get_controller "obj_main_cntrl is the object of main controller
EXPORTING
controller_id = 'SUB' "Controller ID
RECEIVING
controller_instance = obj_cntrl .
obj_sub_cntrl ?= obj_cntrl .
application ?= obj_sub_cntrl ->application.
or simply use below code in your controller method.
application ?= me->application.
Thnaks,
Chandra
Maybe you are looking for
-
How can I create a pop up window for a Windows Media video file in Dreamweaver CS6?
I have a Windows Media video file on my homepage that plays automatically when you go to the website. I'd like to change my homepage. I now would like to place text that says "click here to play the video" and I'd like a pop up window to open and pla
-
I've run into a problem I can't quite figure out how to resolve for a client, Sometimes when I open a .pdf file in IE 8 on a windows 7 machine I receive a blank error message with a blue question mark in it with absolutely no text. At first I thought
-
I'm running an iMac with OS X 10.9.4. Ever since this upgrade was installed I have not been able to scan from my Epson Artisan 800 over the network. I can install the printer with it's IP and it shows up and prints just fine but the scanning utility
-
Re:How to input database to java program
Hi...anyone can briefly teach me how to input my Microsoft access(database) folder into my Java program? Or anyone have the java code to input data to the program?If i input do i need to declare a table first in it? Help Appreciated.Thanks...
-
Object id for BP Internal reconciliation and SPTN
Hi expert, Can any one help, What is the Object id for BP Internal reconciliation SAP B1? We want to make SPTN notification if any BP reconciliation customer/supplier code are not matching then system block for reconciliation. Thanks in Advance. Rega