Events it's a possibility of the classes to tell anyone who is interested in this, that some changes in the class was made.
Class _A don't know anything about class _B or class _C. He just send the message for all listener. Like a radio station.
T...
Hello community,
this article describe solution to mock the data without need it to COPY + PASTE them.
In this approach you need to get the data in the preferred way (it can be SQL query, FUNCTION CALL and so one...), and save it to DB.
For exampl...
In this article I will show an approach to declare OData entities dynamically.
Why?
In case we should change an business logic types and don't want to change the OData service.
How?
Declare OData entities dynamically.
Contra?
It is more difficult...
Dear SAP community,
I tried to save serialized object to DB table. The problem is that this approach doesn't work for classes with attribute TYPE REF TO.
My class looks like this:
CLASS zcl_mock DEFINITION PUBLIC CREATE PUBLIC.
INTERFACES I...
Hello experts,
I try to duplicate all rows from the table that has 36 Million rows. For that reason I use DB cursor and PACKAGE SIZE. It works fine so far but when I try to make INSERT I become dump. Its happens on 1 Million inserted rows. Cann som...
Hey Oleg,thank you for the comment.In this blog I just want to show an approach to serialize and de-serialize the data. It's not perfect and fully finished solution yet Also some places with possible exceptions are not covered. Interesting for me is...
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE title.SELECTION-SCREEN BEGIN OF LINE.PARAMETERS: p_rb1 RADIOBUTTON GROUP grp1 DEFAULT 'X'.SELECTION-SCREEN COMMENT (15) lbl1 FOR FIELD p_rb1.PARAMETERS: p_rb2 RADIOBUTTON GROUP grp1.SELECTION-SCREEN...
Hey sandra.rossi, thank you for your answer. Your example works fine. But if I set some table to mock_data attribute, I get an CX_REFERENCE_NOT_SERIALIZABLE exception. You can see the example below:
REPORT.CLASS zcl_mock DEFINITION CREATE PUBLIC. P...
Hello everywhere, I solved this problem by myself. I added after INSERT... CALL FUNCTION 'DB_COMIT' INSERT za911 FROM TABLE <xtab>.
CALL FUNCTION 'DB_COMMIT'. One important point! The command COMMIT WORK resets the database cursor, so the next fetch...