on 03-19-2012 1:47 PM
Hi Team,
I have designed FPM applicaton,
this has 2 free style UIBB and one GUIBB
Configured FPM_OIF_COMPONENT used 2 free style UIBB and
merged with 2 wdp components like ZEKKO and ZMKPF
created FORM GUIBB and Configured FPM_FORM_UIBB and used ZBKPF feeder class
to display data.
My requirement how share data between zekko WDP and feedr class.so that
i can display account document IN GUIBB for those delivery document in free style uibb.
Regards
Ramky.
I have done it in two ways:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check this Singleton Class Usage for Data Sharing.
Regards,
Ashish Shah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dav
It`s quite easy to use singleton - Create the class:
CLASS zcl_your_singleton DEFINITION.
PUBLIC
FINAL
CREATE PRIVATE .
PUBLIC SECTION.
DATA your_data TYPE your_type.
.....
CLASS-METHODS get_instance
RETURNING
value(re_instance) TYPE REF TO zcl_your_singleton.
PRIVATE SECTION.
CLASS-DATA my_instance TYPE REF TO zcl_your_singleton.
ENDCLASS.
CLASS zcl_your_singleton IMPLEMENTATION.
METHOD get_instance.
IF my_instance IS INITIAL.
CREATE OBJECT my_instance.
ENDIF.
re_instance = my_instance.
ENDMETHOD.
Setting and getting Data from the attributes you difined
DATA: lr_data TYPE REF TO zcl_your_singleton,
lt_data TYPE your_data.
lr_data = zcl_your_singleton=>get_instance( ).
lt_data = lr_data->your_data. " to get data
lr_data->your_data = lt_data. " to set data
Cheers
Dieter
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.