There are 8 bits in a byte. There is No Shortcut to be A Great ABAP Programmer and It's Applies to All.
Monday, January 14, 2019
Wednesday, February 7, 2018
Webdynpro Run Time Analysis - SAT / SE30
I. How to create a performance trace for a Web Dynpro Application:
1. Please create a new variant in transaction SE30 (WEBDYNPRO for example).
2. Go to the corresponding service of your application in SICF and start the performance analysis (Edit menu → Runtime analysis → Activate): select variant (WEBDYNPRO), choose "High" for the measurement precision and "Single entries" for the processing.
3. Start application and recreate the steps where the performance problem facing.
4. Deactivate the performance analysis (Edit menu → Runtime analysis → Deactivate)
II. To evaluate the trace within transaction SE30 or SAT:
1. Go to the tab 'Evaluate'.
2. Select from the table the measurement with the highest 'runtime' value 3. Double-click it
4. Go to tab 'Hit list'
5. Sort in decreasing order the results by 'Net (microsec)' time
6. The Statements/events in the top rows would take up the most time by the application.
Reference :
https://launchpad.support.sap.com/#/notes/2327539
Reference :
https://launchpad.support.sap.com/#/notes/2327539
Monday, September 25, 2017
Thursday, September 7, 2017
How to Read Class or Object with Multiple Reference ??
- We need to read the ZCX_EXCEPTION reference in the code.
- zcx_exception TYPE REF TO lcx_exception.
- DATA: exc TYPE REF TO cx_root,
- CATCH lcx_exception INTO zcx_exception.exc ?= zcx_exception. " Take CX_ROOT INSTANCE
- Above is the way to read CX_ROOT value in the ZCX_EXCEPTION to EXC reference.
- textid = exc-textid.
- zcx_exception-text . Reading local class value.
Monday, September 4, 2017
Upload to AL 11 through Webdynpro
method onactionupload2 .
data lo_el_context type ref to if_wd_context_element.
data ls_context type wd_this->element_context.
data lv_zraw type wd_this->element_context-zraw.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
if lo_el_context is initial.
endif.
* get single attribute
lo_el_context->get_attribute(
exporting
name = `ZRAW`
importing
value = lv_zraw ).
data :
l_fname type string ,
lv_x type x,
lv_string type string.
lv_x = lv_zraw.
l_fname = '/ECD/RAHSIAXSTRING2.PGP'.
data: lit_binary_content type solix_tab.
call function 'SCMS_XSTRING_TO_BINARY'
exporting
buffer = lv_zraw
* APPEND_TO_TABLE = ' '
* IMPORTING
* OUTPUT_LENGTH =
tables
binary_tab = lit_binary_content.
.
open dataset l_fname for output in binary mode .
loop at lit_binary_content assigning field-symbol(
transfer
endloop.
close dataset l_fname.
endmethod.
Sunday, March 19, 2017
Assign anyr eference type of data to specific attributes
"To assign any data type reference to specific val
DATA lt_tarikh TYPE zwdselopt.
DATA ls_tarikh TYPE selopt.
FIELD-SYMBOLS: TYPE INDEX TABLE,
DATA lt_datum TYPE REF TO data.
ASSIGN lt_datum->* TO .
IF IS ASSIGNED.
LOOP AT ASSIGNING .
ASSIGN COMPONENT 'SIGN' OF STRUCTURE TO .
ASSIGN COMPONENT 'OPTION' OF STRUCTURE TO
ASSIGN COMPONENT 'LOW' OF STRUCTURE TO .
ASSIGN COMPONENT 'HIGH' OF STRUCTURE TO .
ls_tarikh-sign = .
ls_tarikh-option =
ls_tarikh-low = .
ls_tarikh-high = .
APPEND ls_tarikh TO lt_tarikh.
ENDLOOP.
ENDIF.
Monday, March 13, 2017
New Line Smartform
Hi,
You can try to use do called dynamic text. First, convert your string to so called ITF Text, something like this:
DATA: l_string TYPE string,
lt_stream_lines TYPE STANDARD TABLE OF string,gt_text TYPE tline_t .
CONCATENATE 'AAAA'
cl_abap_char_utilities=>newline
'BBBB'
cl_abap_char_utilities=>cr_lf
'CCCC'
INTO l_string .
APPEND l_string TO lt_stream_lines .
CALL FUNCTION 'CONVERT_STREAM_TO_ITF_TEXT'
EXPORTING
stream_lines = lt_stream_lines
lf = 'X'
TABLES
itf_text = gt_text.
Then, in the Smartform, set the Text node Type to dynamic text and assign the table with ITF Text:
You should get something like this:
This conversion is especially useful when you have to deal with strings longer than 255 characters (maximum variable output length in Smartforms).
The contents of the dynamic text will be parsed by Smartform Composer during runtime, so you can even include variables (the ones visible in Smartform context) in the string.
cheers
Janis
Copy From : https://archive.sap.com/discussions/thread/3802222
Subscribe to:
Posts (Atom)




