Generic doubt reg. ABAP
Hello,
I had about 4 - 5 yrs exp. in sap abap ( in India ) but then, i moved out of IT for a few years.
I am looking at brushing up abap again but seem to be out of touch completely.
My queries :
1. For a 5 yr exp. person in ABAP , what are the topics and knowledge level Currently expected in Interviews ?
2. Can you link me to Proper SAP materials which are up to date ?
3. Would my SAP exp. help me getting into Functional / SAP - Analyst openings Currently - and if yes, how ?
Thanks.
ps.1. All queries are Specific to Indian IT industry.
ps.2. Hope i am in the right forum - If not, pls guide this post to a forum which fits better.
very good sound knowledge in ALV reports in MM/SD/WM modules having real time experience,Enhancement Spots,Conversion Programs,improving the performance,should developed user exit
Similar Messages
-
Hi Floks,
I have few doubts in ABAP programming could please clarify that ..
1. how to handle error messages in Call transaction and Call Session method .
2. which logic can be used to handle the table control in BDC method . when table control required ? let me give few transction related to table control of BDC.
3. what is structure of BDC DATA ? what is diffrence between BDC Session and Call Transaction method in programming steps ?
4.how many message types available ? what are they ?
5.when call transction or Call session can be used ? how to decide which method is best for requirement ?
could you please help me out . if u have any material or links forward to [email protected]
Good Rewards for best answers
Thanks ,
SunithaHere are the answers to your questions.
1. how to handle error messages in Call transaction and Call Session method .
--> In Call transaction, if you see the command, messages are populated into an internal table. You need to read last record of this table. Using Function module FORMAT_MESSAGE, you can get details of the message. For session method, session gets created and status of session can be seen in transaction SM35. You can process erroneous sessions from here.
2. which logic can be used to handle the table control in BDC method . when table control required ? let me give few transction related to table control of BDC.
--> Check these links which explain in detail with examples.
BDC - TABLE CONTROL
In BDC table control
3. what is structure of BDC DATA ? what is diffrence between BDC Session and Call Transaction method in programming steps ?
-->PROGRAM - Program Name
DYNPRO - BDC Screen number
DYNBEGIN - BDC screen start (Flag)
FNAM - BDC Field name
FVAL - BDC Field value
4.how many message types available ? what are they
-->
A (Abend) Termination
E (Error) Error
I (Info) Information
S (Status) Status message
W (Warning) Warning
X (Exit) Termination with short dump
5.when call transction or Call session can be used ? how to decide which method is best for requirement ?\
--> These threads discuss the same
Session Method
Difference between Session method and Call transaction method -
Doubt Reg Generic Delta "Safety Interval" Setting
Hi Experts,
I have a doubt regarding Setting "Safety Interval Upper Limit" and Lower limit in RSO2 for generic delta.
What does this setting imply?
If I do setting for calender day say both 1 then wht will be difference between delta before setting amd after setting?
Plz explain in terms other tham help provided...
Points will be awarded to say thanks..
Thanks in advance,
SorabhHi Sorabh,
Here some SAP informations:
Safety Interval Upper Limit of Delta Selection
This field is used by DataSources that determine their delta generically using a repetitively-increasing field in the extract structure. The field contains the discrepancy between the current maximum when the delta or delta init extraction took place and the data that has actually been read. Leaving the value blank increases the risk that the system could not extract records arising during extraction. Example: A time stamp is used to determine the delta. The time stamp that was last read is 12:00:00. The next delta extraction begins at 12:30:00. In this case, the selection interval is 12:00:00 to 12:30:00. At the end of extraction, the pointer is set to 12:30:00. A record - for example, a document- is created at 12:25 but not saved until 12:35. It is not contained in the extracted data but, because of its time stamp, is not extracted the next time either.
For this reason, the safety margin between read and transferred data must always be larger than the maximum length of time that it takes to create a record for this DataSource (with a time stamp delta), or it must display an interval that is sufficiently large (for determining delta using a serial number).
Safety Interval Lower Limit
This field contains the value taken from the highest value of the previous delta extraction to determine the lowest value of the time stamp for the next delta extraction. For example: A time stamp is used to determine a delta. The extracted data is master data: The system only transfers after-images that overwrite the status in the BW. Therefore, a record can be extracted into the BW for such data without any problems.
Taking this into account, the current time stamp can always be used as the upper limit when extracting: The lower limit of the next extraction is not seamlessly joined to the upper limit of the last extraction. Instead, its value is the same as this upper limit minus a safety margin. This safety margin needs to be big enough to contain all values in the extraction which already had a time stamp when the last extraction was carried out but which were not read. Not surprisingly, records can be transferred twice. However, for the reasons above, this is unavoidable.
Extracted Data Delta Type
The system uses the delta type to determine how extracted data is to be interpreted in BW, and into which data targets it can be posted.
A distinction is made between the following:
1. Additive delta
The key figures for extracted data are added up in BW. DataSources with this delta type can supply data to ODS objects and InfoCubes.
2. New status for changed records
Each record to be loaded delivers the new status for the key figures and characteristics. DataSources with this delta type can write to ODS objects or master data tables.
Check also examples in "How to... Create Generic Delta" under www.service.sap.com/bi.
Ciao.
Riccardo. -
Hi Gurus!
I have a simple doubt.
Exist any difference in the name of Poxies created with SPROXY against created with SE80?
I think "SPROXY Proxies" are named ABAP Proxies and the "SE80 Proxies" are named Client Proxies, aren´t they?
Helpful answers will be rewarded.
Thanks and regards,
Manuel.Hi Manuel,
SPROXY is about proxy (client or server) you generate against an SLD connection, I mean when you Business System belongs to an SLD and it is connected to it. Finally when your Bus Sys has an integration server linked.
Via SE80 you can create also proxy related to an integration server or client proxy in order to consumer Web Servicies.
Hope this help
regs
matteo -
Hi Experts,
I am new to ABAP WebDynpro and self-learning going through SDN stuff and other online-help. Please provide me
your kind explanation on below doubts.
1. When do we use GET_ATTRIBUTE and GET_STATIC_ATTRIBUTE
2. How to read the index of a particular selected row in table?
3. How do you change position of a particulr node dynamically?
4. Is it possible to execute a component without a window?
5. Is it possible to run a VIEW without embeding into a window in Webdynpro application?
6. How to read the content entered in PARAMTER and SELECT-OPTION elements in ABAP Webdynpro? Can anybody pass code how to read entries?
I mean GET_ATTRIBUTE or GET_STATIC_ATTRIBUTES is used for reading attribute value.
7. Is it possible to fix the Message window position? Show at the bottom of a screen? Please provide some code for this.
8. Is it possible to change the color of a laber attached to a attribute dynamically? For example somefield is mandatory but you forgot to enter and press on u2018Continueu2019 then program should show that elementu2019s lable with redcolor text. Please provide me example code.
Thanks in advance for the support and useful explanation!
Regards,
Meera.Hi
Refer the answers inline
1) When do we use GET_ATTRIBUTE and GET_STATIC_ATTRIBUTE
GET_ATTRIBUTE
Method to get the values of a context attribute.
The prerequisite for this method is that the application knows the data type of the attribute.
The value of the given attribute is copied to the export parameter. To do this the export parameter must have a data type to which a value can be written.
GET_STATIC_ATTRIBUTES
This method copies the static attributes to the transferred variable. If the structure is not identical, a move-correspondingis performed, which is not as efficient as a direct move, but is still useful in many cases.
Static attributes are those that either have been declared or that belong to the structure with which the node was declared.
2) How to read the index of a particular selected row in table?
data: lr_element type ref to if_wd_context_element,
lv_index type i.
lr_element = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
lv_index = lr_element->get_index( ).
3) How do you change position of a particulr node dynamically?
Explain Bit deeply
4) Is it possible to execute a component without a window?
No it is not possible, actually the component view can be viewed by embedding it to the window
5) Is it possible to run a VIEW without embeding into a window in Webdynpro application?
No it is not possible, without window you cant run the view
6) Is it possible to run a VIEW without embeding into a window in Webdynpro application?
DATA LO_ND_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_MAIN_NODE TYPE WD_THIS->ELEMENT_MAIN_NODE.
DATA LV_INP_VALUE LIKE LS_MAIN_NODE-INP_VALUE.
navigate from <CONTEXT> to <MAIN_NODE> via lead selection
LO_ND_MAIN_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'MAIN_NODE' ).
get element via lead selection
LO_EL_MAIN_NODE = LO_ND_MAIN_NODE->GET_ELEMENT( ).
get single attribute
LO_EL_MAIN_NODE->GET_ATTRIBUTE(
EXPORTING
NAME = `INPUT_VALUE`
IMPORTING
VALUE = LV_INP_VALUE ).
7) Is it possible to fix the Message window position? Show at the bottom of a screen?
Yes it is possible to show the messages by using the message area UI element in the needed position
8. Is it possible to change the color of a laber attached to a attribute dynamically? For example somefield is mandatory but you forgot to enter and press on u2018Continueu2019 then program should show that elementu2019s lable with redcolor text.
Im working onit and let you know after i complete.
Regards
Arun.P -
Hi,
I have a doubt in one of the abap function module i use.
This contain code to retrieve ,update and delete and create values in table. I am using this function module to
retrieve ,update and delete and create values in table. This is the ABAP code.
FUNCTION ZUP_DESIG12.
*"*"Local Interface:
*" IMPORTING
*" VALUE(DESG_CODE) TYPE ZUP_DESIG-DESG_CODE OPTIONAL
*" VALUE(DESG_DESC) TYPE ZUP_DESIG-DESG_DESC OPTIONAL
*" VALUE(DESG_ACT) TYPE ZUP_DESIG-DESG_ACT OPTIONAL
*" VALUE(DESG_OPT) TYPE ZUP_DESIG-DESG_OPT OPTIONAL
*" EXPORTING
*" VALUE(DESG_CODE_C) TYPE ZUP_DESIG-DESG_CODE
*" VALUE(DESG_DESC_C) TYPE ZUP_DESIG-DESG_DESC
*" VALUE(DESG_ACT_C) TYPE ZUP_DESIG-DESG_ACT
*" VALUE(DESG_OPT_C) TYPE ZUP_DESIG-DESG_OPT
*" TABLES
*" WA STRUCTURE ZMSTR_DESIG
DATA CNT TYPE I.
SELECT MANDT DESG_CODE DESG_DESC DESG_ACT FROM ZMSTR_DESIG
INTO TABLE WA.
IF DESG_OPT = 'U'.
UPDATE ZMSTR_DESIG
SET DESG_DESC = DESG_DESC
DESG_ACT = DESG_ACT
WHERE DESG_CODE = DESG_CODE.
MESSAGE 'Updated Successfully' TYPE 'I'.
ELSEIF DESG_OPT = 'C'.
SELECT COUNT( * ) FROM ZMSTR_DESIG INTO CNT
WHERE DESG_CODE = DESG_CODE.
IF CNT > 0.
MESSAGE 'Duplicate Designation code' TYPE 'I'.
ELSE.
WA-DESG_CODE = DESG_CODE.
WA-DESG_DESC = DESG_DESC.
WA-DESG_ACT = DESG_ACT.
MODIFY ZMSTR_DESIG FROM WA.
MESSAGE 'Inserted successfully' TYPE 'I'.
ENDIF.
ELSEIF DESG_OPT = 'D'.
DELETE FROM ZMSTR_DESIG WHERE DESG_CODE = DESG_CODE.
MESSAGE 'Deleted successfully' TYPE 'I'.
ENDIF.
ENDFUNCTION.
can any one what is wrong in this function.
Regards,
H.V.SwathiMy doubt is how to write code to insert data to table. I have written code like this.
try{
String str1= wdContext.currentTestElement().getCode();
String str2= wdContext.currentTestElement().getDesc();
boolean str3= wdContext.currentTestElement().getAct();
String str4= wdContext.currentTestElement().getOpt();
String str5;
if(str3)
str5=new String("x");
else
str5=new String(" ");
Zup_Desig12_Input input=new Zup_Desig12_Input();
input.setDesg_Code(str1);
input.setDesg_Desc(str2);
input.setDesg_Act(str5);
input.setDesg_Opt(str4);
wdContext.nodeZup_Desig12_Input().bind(input);
wdContext.currentZup_Desig12_InputElement().modelObject().execute();
}catch(Exception e)
wdComponentAPI.getMessageManager().reportSuccess(e.toString());
But i am getting java.lang.ArrayIndexOutOfBoundsException: -1
in line
input.setDesg_Act(str5);
can any one help me plz -
Reg:ABAP dump:TYPELOAD_NEW_VERSION
Hi All,
We are getting the dumps(150),TYPELOAD_NEW_VERSION with only one particular user in one of our production servers,there are a few background jobs scheduled with the same user and all the jobs have got finished successfully.
below pasted is the detailed dump message
Data type "MC11VA0ITM" was found in a newer version than required.
What happened?
Runtime error
The current ABAP program, "SAPLMCEX", had to be terminated because one of the
statements could not be executed at runtime.
What can you do?
Try restarting the program.
If the error occurrs several times, consult your SAP administrator.
Choose "Print" to obtain a hard copy of the termination message.
You can use Transaction ST22 to display and manage short dump messages.
It also allows you to retain them beyond their normal deletion date.
Error analysis
The data type "MC11VA0ITM" was reloaded from the database while the program
was running.
However, the system found a version of the type that was newer than
the one required.
How to correct the error
Try to restart the program.
System environment
SAP Release.............. "620"
Application server....... "provpr08"
Network address.......... "10.130.33.98"
Operating system......... "AIX"
Release.................. "5.3"
Hardware type............ "00C6C8D04C00"
Character length......... 16 Bits
Pointer length........... 64 Bits
Work process number...... 0
Short dump setting....... "full"
Database server.......... "provpr01"
Database type............ "ORACLE"
Database name............ "VPR"
Database owner........... "SAPERP"
Character set............ "C"
SAP kernel............... "640"
Created on............... "Aug 17 2008 21:27:08"
Created in............... "AIX 1 5 00538A4A4C00"
Database version......... "OCI_920 "
Patch level.............. "247"
Patch text............... " "
Supported environment....
Database................. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE
10.2.0.."
SAP database version..... "640"
Operating system......... "AIX 1 5, AIX 2 5, AIX 3 5, AIX 1 6"
User, transaction...
Client.............. 810
User................ "ADMINJOBS"
Language key........ "E"
Transaction......... " "
Program............. "SAPLMCEX"
Screen.............. "SAPMSSY0 1000"
Row of screen....... 6
Information about program making the Remote Function Call (RFC):
System.............. "VPR"
Database Release.... 620
Kernel Release...... 640
Connection type: 3 (2 = R/2, 3 = R/3, E = External, R = Reg.external)
Call type: "synchron (imode 1)" (S = Synchronous, a/A = Asynchronous, T =
Transaction)
Client.............. 810
User................ "ADMINJOBS"
Transaction......... " (Program: SAPLV50R_VIEW)"
Function module..... "SHP_VL10_DELIVERY_CREATE_PARA"
Call destination.... "provpr08_VPR_01"
Source server....... "provpr05_VPR_01"
Source IP address... "10.130.33.108"
Additional RFC logon information:
Trusted Relation....." "
Logon return code....0
Trusted return code..0
Note: Prior to Release 4.0, there was less information available on RFC
calling programs.
Information on where terminated
The termination occurred in the ABAP program "SAPLMCEX" in "MCEX_11_QRFC".
The main program was "SAPMSSY4 ".
The termination occurred in line 0 of the source code of the (Include)
program " "
of the source code of program " " (when calling the editor 00).
We are on 640 Kernel-AIX ,level-247
I have no clue on how to go about,
can some one pls.look into it nad do the needful.
Thanks in advance
Rgds
VenuHi Rohit,
Thanks once again
I believe that my question has been answered appropriately,I appriciate the your help and support.
I take the liberty to put across one more ABAP dump(80 dumps by a single user),"RABAX_CALLING_RABAX:"
The error text is as below
Runtime Error RABAX_CALLING_RABAX
Occurred on 03/24/2009 at 07:25:29
Error "14 431" in error handling.
What happened?
A further error occurred when displaying an error message.
What can you do?
You can display the error message using Transaction ST22. If
no further error is logged there, try to find an appropriate
entry in the SAP system log.
Make a note of the actions and input which caused the error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
Error analysis
The T100 error code is "14 431".
The error text reads
Invalid output to terminal from background processing
with this key.
Last error logged in SAP kernel
Component............ "Taskhandler"
Place................ "SAP-Server provpr03_VPR_01 on host provpr03 (wp 0)"
Version.............. 1
Error code........... 5
Error text........... "ThAMInsert: no active mode"
Description.......... " "
System call.......... " "
Module............... "thxxhead.c"
Line................. 9893
How to correct the error
In general, it is sufficient to determine the original cause of the
error and to eliminate it. Since the display of the runtime error
has failed, you can only analyze the error by looking at the
system log or the short dump display.
System environment
SAP Release.............. "620"
Application server....... "provpr03"
Network address.......... "10.130.33.106"
Operating system......... "AIX"
Release.................. "5.3"
Hardware type............ "00C6C9904C00"
Character length......... 16 Bits
Pointer length........... 64 Bits
Work process number...... 2
Short dump setting....... "full"
Database server.......... "provpr01"
Database type............ "ORACLE"
Database name............ "VPR"
Database owner........... "SAPERP"
Character set............ "C"
SAP kernel............... "640"
Created on............... "Aug 17 2008 21:27:08"
Created in............... "AIX 1 5 00538A4A4C00"
Database version......... "OCI_920 "
Patch level.............. "247"
Patch text............... " "
Supported environment....
Database................. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE
10.2.0.."
SAP database version..... "640"
Operating system......... "AIX 1 5, AIX 2 5, AIX 3 5, AIX 1 6"
Client.............. 810
User................ "HJAFFER"
Language key........ "E"
Transaction......... " "
Program............. "SAPLSGUI"
Screen.............. "SAPMS380 0100"
Row of screen....... 3
Information about program making the Remote Function Call (RFC):
System.............. "VPR"
Database Release.... 620
Kernel Release...... 640
Connection type: 3 (2 = R/2, 3 = R/3, E = External, R = Reg.external)
Call type: "synchron (imode 1)" (S = Synchronous, a/A = Asynchronous, T =
Transaction)
Client.............. 810
User................ "HJAFFER"
Transaction......... "ZSA5E (Program: ZVRV_OPEN_ORDERS_ALV)"
Function module..... "ZVRV_OPEN_ORDERS_ALV_PRL"
Call destination.... "provpr03_VPR_00"
Source server....... "provpr03_VPR_01"
Source IP address... "10.130.33.106"
Additional RFC logon information:
Trusted Relation....." "
Logon return code....0
Trusted return code..0
Note: Prior to Release 4.0, there was less information available on RFC
calling programs.
Information on where terminated
The termination occurred in the ABAP program "SAPLSGUI" in
"SAPGUI_PROGRESS_INDICATOR".
The main program was "SAPMS380 ".
The termination occurred in line 33 of the source code of the (Include)
program "LSGUIU01"
of the source code of program "LSGUIU01" (when calling the editor 330).
There are so many logs written in SM21 by the same user as mentioned below
HJAFFER AB0 Run-time error "CALL_FUNCTION_SEND_ERROR" occurred
HJAFFER AB1 > Short dump "090324 072401 provpr03 HJAFFER " generated
HJAFFER D01 Transaction Canceled 14 431 ( )
HJAFFER AB0 Run-time error "RABAX_CALLING_RABAX" occurred
detailed Log...
Details Page 1 Line 17 System Log: Central Analysis 1
Time Instance Ty. Nr Cl. User Tcod MNo Text Date : 24.03.09
07:24:01 provpr03_VPR_00 DIA 01 810 HJAFFER D01 Transaction Canceled 14 431 ( )
Details
Recording at local and central time........................ 03/24/2009 07:24:01
Entry in collective system log at local time............... 03/24/2009 07:25:25
Task................ 55318 . 01 D1 Dialog work process No. 01
User................ HJAFFER
Client.............. 810
Terminal............ TXFRIALP
Session............. 1
Transaction code....
Program name........ SAPMS380
Problem class....... K SAP Web AS Problem
Development class... SDYN
Module name.........
Location............
T100................ 14 431
Parameters..........
Documentation for system log message D0 1 :
The transaction has been terminated. This may be caused by a
termination message from the application (MESSAGE Axxx) or by an
error detected by the SAP System due to which it makes no sense to
proceed with the transaction. The actual reason for the termination
is indicated by the T100 message and the parameters.
Additional documentation for message 14 431
Invalid output to terminal from background processing
No documentation exists for message 14431
Pls.look into it and guide me thru as you did in the earlier case
Rgds
Venu -
Hi All,
One of my inetrfaces i am using ABAP-XSLT mapping some times i am getting the following erre "Error while calling mapping program ZXXXX_XXX (type Abap-XSLT, kernel error ID CX_XSLT_RUNTIME_ERROR) No valid source context supplied"
What does it mean and what is the reason for that error.
Regards,
Rama
Edited by: Ramakrishna Balusu on Oct 27, 2009 1:35 PM
Edited by: Ramakrishna Balusu on Oct 27, 2009 1:36 PMCheck this discussion:
XI Error
Regards,
ravi -
Hi Gurus,
Can any one help me in abap mapping ,
where the source and destination nodes and the source and destination structure different and with multiple nodes.
Thanks & Regards
ShivaHi,
Blog -- /people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping
SDN TV demo to create and test ABAP mapiing - https://media.sdn.sap.com/SDNTV/main.asp?mediaId=128
How to guide for ABAP mapping.
https://websmp106.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000071155&
pdf for ABAP mapping.
*https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
*https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20abap-mapping%20in%20xi%203.0.pdf
testing ABAP Mapping- Testing ABAP Mapping
Thanks,
Shweta -
hai friends,
i created one user defined table in abap dic, in that fields, i want u add either in or out option for one field of the table created in abap dic?
so please send for it......
thank u
sureshHi Suresh
To provide user-defined values for a field, we've to go at domain level of that field.
As u said, for the options 'in' 'out', go to domain of that field, there u'll find value range tab, there it allows user to provide our own values.
If this works out for u, reward me plz -
Hi friends,
I am working on ABAP Proxies in XI(Client Proxy)
After creating the Message interface in Integration Repository ,
I went to the ABAP proxy generation,using SPROXY.
And went to he Message Interface (Outbound) .There its displaying
"Proxy_intfc_OB" (this is the message interface defined in IR)
But when Right click on the out bound interface and press " create" .Its asking me
"Specifications for Objects to be generated"
under it
Package :
Prefix :
whats these two and what I have to give here ....
pls help me...Hello,
When I right click on the message Interface (OB) in SPROXY.
I created a Package and prefix and entered.
It showing a pop up window
with title : Add Developer.
Message : You are not registered as a developer .Please register in the online service system(OSS) in the OSS you will recieve an access key .
Key
User Name : sap1user2
Access key :
Installation : "Installation number " -
Reg:Abap program table name
Hi friends,
Which table contains all the abap programs ?
Thanks and Regards
V.Raja sekaranHi V,
Or you can use this transparent table : D010SINF
Thanks
william wilstroth -
CLASS SAMPLE DEFINITION.
PUBLIC SECTION.
DATA : PU_A TYPE I.
METHODS : CONSTRUCTOR,MM1,MM2.
PRIVATE SECTION.
DATA : PR_B TYPE I.
ENDCLASS.
CLASS SAMPLE IMPLEMENTATION.
METHOD CONSTRUCTOR.
ENDMETHOD.
METHOD MM1.
ENDMETHOD.
METHOD MM2.
ENDMETHOD.
ENDCLASS.
DATA : OBJ_SAMPLE TYPE REF TO SAMPLE.
<b>CREATE OBJECT OBJ_SAMPLE.</b>
In CREATE OBJECT OBJ_SAMPLE its giving err msg that statement could not be accessible.why id it so?.plz helphi
copy paste my code and check. its very simple one that ur are looking for.
REPORT zaaclc_report.
* CLASS lcl_test_class DEFINITION
CLASS lcl_test_class DEFINITION.
PUBLIC SECTION.
METHODS increment_counter.
EVENTS break_statement EXPORTING value(count) TYPE i.
PRIVATE SECTION.
DATA: num TYPE i,
max TYPE i VALUE 5.
ENDCLASS. "lcl_test_class DEFINITION
* CLASS lcl_test_class IMPLEMENTATION
CLASS lcl_test_class IMPLEMENTATION.
METHOD increment_counter.
num = num + 1.
IF num EQ max.
RAISE EVENT break_statement EXPORTING count = num.
ENDIF.
WRITE:/ num .
ENDMETHOD. "increment_counter
ENDCLASS. "lcl_test_class IMPLEMENTATION
* CLASS event_receiver DEFINITION
CLASS event_receiver DEFINITION.
PUBLIC SECTION.
METHODS handler FOR EVENT break_statement OF lcl_test_class IMPORTING count.
endclass.
* CLASS event_receiver IMPLEMENTATION
CLASS event_receiver IMPLEMENTATION.
METHOD handler.
* count = count + 10.
WRITE :/ count.
WRITE :/ 'Event Raised'.
endmethod.
ENDCLASS. "event_receiver IMPLEMENTATION
DATA:obj TYPE REF TO lcl_test_class,
rec TYPE REF TO event_receiver.
START-OF-SELECTION.
CREATE OBJECT: obj,rec.
set handler rec->handler for obj." for all instances.
DO 10 TIMES.
CALL METHOD obj->increment_counter.
ENDDO.
<b> hope it clears ur doubt</b>
regards
ravish
<b>plz dont forget to reward points if helpful</b>
Message was edited by:
ravish goyal -
Hi friends,
I want a clear idea of what is the diference between data type 'f' and 'p' with examples and in what situation which should be used.
Similary what and where is 'x' and 'xstring' is used .. In what situations we 'll handly BYTE data ?????
Iam not at all clear ... so eagerly waiting for ur responses with sample examples and clear explanations
thanks in advance
Cheers,
R.Kripa.Hi Kripa,
Types X and XSTRING are for binary data. For type X, the length of the data is specified at declaration, whereas for XSTRING, it can arbitrarily grow as for STRING.
X binary octets RAW base64 string
Type X is used for binary octets. The length of the octets sequence must be specified at declaration. The initial value of each octet is 0.
The lexical representation of binary octets is a sequence of characters in the MIME base64 format.
There are two possible representations of data of type X, namely base64 and hex. base64 is a preferred binary coding scheme in the Internet community. There are standard libraries for encoding and decoding. base64 uses about 33% less space over hex coding. Although ABAP MOVE uses hex coding for binary to character conversion, base64 will be used to represent data of this type in XML.
Note that the sequence of octets is transformed by the base64 encoding. The result, interpreted as a sequence of US-ASCII characters, appears as a sequence of Unicode characters in the content of that element.
Dictionary type RAW corresponds to this type.
XSTRING variable length binary octets RAWSTRING base64 string
Type XSTRING is used for a variable length binary octets. The initial value is ''. The length can vary as the string grows.
The lexical representation of this type is the same as Type X.
This type corresponds to the binary type.
Dictionary type RAWSTRING corresponds to this type.
Regards,
Raj -
Hi Experts,
I have doubt, i have an internal table with four column. like below.
KSCHL VALUE DIFF
ZMBO 1.25 12.56
ZMBO 2.31 12.56
ZMBO 4 12.56
ZMBO 5 12.56
ZCHL 4.31 16.87
ZCHL 5.21 16.87
ZCHL 7.35 16.87
ZNLM 0.005 8.03
ZNLM 0.125 8.03
ZNLM 3.65 8.03
ZNLM 4.25 8.03
Now i want to print the above internal table like below,
KSCHL VALUE DIFF
ZMBO 1.25 12.56
ZMBO 2.31 12.56
ZMBO 4 12.56
ZMBO 5 12.56
ZMBO TOTAL 12.56
ZCHL 4.31 16.87
ZCHL 5.21 16.87
ZCHL 7.35 16.87
ZCHL TOTAL 16.87
ZNLM 0.005 8.03
ZNLM 0.125 8.03
ZNLM 3.65 8.03
ZNLM 4.25 8.03
ZNLM TOTAL 8.03
How to print this? Can any one help this. Point will be sure.
MohanaWant headings?
DATA:
BEGIN OF myrec,
kschl TYPE kschl,
value(4) TYPE p DECIMALS 3,
diff(4) TYPE p DECIMALS 3,
END OF myrec,
itab LIKE STANDARD TABLE OF myrec.
DATA: sv_diff(4) TYPE p DECIMALS 3.
TOP-OF-PAGE.
WRITE:/1 'KSCHL',
10 'Value',
25 'Diff'.
START-OF-SELECTION.
PERFORM build_table.
SORT itab.
NEW-PAGE.
LOOP AT itab INTO myrec.
WRITE:/ myrec-kschl UNDER 'KSCHL',
myrec-value UNDER 'Value',
myrec-diff UNDER 'Diff'.
sv_diff = myrec-diff.
AT END OF kschl.
WRITE:/ 'Total', myrec-kschl,
sv_diff under 'Diff'.
SKIP.
ENDAT.
ENDLOOP.
*& Form build_table
FORM build_table.
myrec-kschl = 'ZMBO'. myrec-value = '1.25'. myrec-diff = '12.56'.
APPEND myrec TO itab.
myrec-kschl = 'ZMBO'. myrec-value = '2.31'. myrec-diff = '12.56'.
APPEND myrec TO itab.
myrec-kschl = 'ZMBO'. myrec-value = '4.00'. myrec-diff = '12.56'.
APPEND myrec TO itab.
myrec-kschl = 'ZMBO'. myrec-value = '5.00'. myrec-diff = '12.56'.
APPEND myrec TO itab.
myrec-kschl = 'ZCHL'. myrec-value = '4.31'. myrec-diff = '16.87'.
APPEND myrec TO itab.
myrec-kschl = 'ZCHL'. myrec-value = '5.21'. myrec-diff = '16.87'.
APPEND myrec TO itab.
myrec-kschl = 'ZCHL'. myrec-value = '7.35'. myrec-diff = '16.87'.
APPEND myrec TO itab.
myrec-kschl = 'ZNLM'. myrec-value = '0.005'. myrec-diff = '8.03'.
APPEND myrec TO itab.
myrec-kschl = 'ZNLM'. myrec-value = '0.125'. myrec-diff = '8.03'.
APPEND myrec TO itab.
myrec-kschl = 'ZNLM'. myrec-value = '3.65'. myrec-diff = '8.03'.
APPEND myrec TO itab.
myrec-kschl = 'ZNLM'. myrec-value = '4.25'. myrec-diff = '8.03'.
APPEND myrec TO itab.
ENDFORM. " build_table
And the Output
KSCHL Value Diff
ZCHL 7.350 16.870
ZCHL 5.210 16.870
ZCHL 4.310 16.870
Total ZCHL 16.870
ZMBO 1.250 12.560
ZMBO 2.310 12.560
ZMBO 4.000 12.560
ZMBO 5.000 12.560
Total ZMBO 12.560
ZNLM 4.250 8.030
ZNLM 3.650 8.030
ZNLM 0.125 8.030
ZNLM 0.005 8.030
Total ZNLM 8.030
Maybe you are looking for
-
Hi , I have a Cube with Date (DATS Type) and Time (TIMS type) Fileds as KeyFigures. I want to load the information from a flat file but when creating the update rules there is no proposal for updating and by Update Type says "No Update" what could b
-
Default Raw material valuation type consideration for st. cost esti. of FG
Dear SAP gurus, For Raw materials we have split valuation (DOMESTIC, IMPORT). During standard cost estimate of finished product, system is considering always DOMESTIC valuation for raw material component. why system is behaving like this. But we need
-
There seems to be a limit of only 10 steps for the Value Axis. Is that true? Also, when I try to set a maximum value of 4 for the Value Axis, it keeps defaulting to 96.00. Any idea why? Also, is there a limit to the number of characters, entries, or
-
How can I back up the contacts on this windows phone
I just purchased the iPhone and need to back up the contacts fro the windows phone. How can I do this?
-
when i try to restore and upgrade to a new version, i get an unknown error. it says something like "unknown error. iphone can not be restored: error 1015" now i cant use the phone at all. does anyone know how to fix this? thanks in advance!