Skip to content

Instantly share code, notes, and snippets.

@pvl
pvl / gist:4157906
Created November 27, 2012 23:23
Search Help Mobile Patch
LY_MOBIWEAVERF01
*** 15,21 ****
data:
l_offset type i,
+ l_value type string,
l_title type string,
ls_xml type char255.
@pvl
pvl / gist:2942801
Created June 16, 2012 23:12
zjson document tests
*&---------------------------------------------------------------------*
*& Report ZJSON_DOCUMENT_TEST
*&
*&---------------------------------------------------------------------*
*& Test cases for the ZJSON class. To run the test cases use the
*& ABAP unit test framework (menu program > test > unit test)
*&---------------------------------------------------------------------*
report zjson_document_test.
@pvl
pvl / gist:2905883
Created June 10, 2012 14:21
ZJSON patch
data: number_re type ref to cl_abap_regex,
number_matcher type ref to cl_abap_matcher.
create object number_re
exporting
pattern = '(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?'.
...
elseif <data_line>-value(1) cn '{['.
@pvl
pvl / z_zake_fs_from_package
Created October 3, 2011 16:23
ABAP sample to Export/Import from the filesystem using ZAKE
*&---------------------------------------------------------------------*
*& Report z_zake_fs_from_package
*&---------------------------------------------------------------------*
* Uses ZAKE to export to the filesystem the contents of a package as
* slinkees and to upload from the filesystem the objects into SAP.
*----------------------------------------------------------------------*
report z_zake_fs_from_package.
* zake subclass just for using the download/upload to filesystem
class lcl_zake_fs definition inheriting from zake.