There are 8 bits in a byte. There is No Shortcut to be A Great ABAP Programmer and It's Applies to All.
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.
Subscribe to:
Posts (Atom)