on 05-09-2012 6:35 AM
Hi Friends,
I am working in FPM GAF Component , In that i am adding substep to Mainstep , so, for that I took one button GOTOSUBSTEP and in ONACTION I am writing the code but is showing NULL OBJECT REFERNCE NOT POSSIBLE when i am testing,
check this and give the code.
The code in OnAction Property is:
DATA: lo_fpm TYPE REF TO if_fpm,
lr_event TYPE REF TO cl_fpm_event.
* get reference to FPM API
lo_fpm = cl_fpm_factory=>get_instance( ).
* create event
lr_event = cl_fpm_event=>create_by_id( cl_fpm_event=>gc_event_change_step ).
* fill event parameters
lr_event->mo_event_data->set_value(
iv_key = cl_fpm_event=>gc_event_param_mainstep_id
iv_value = 'MAINSTEP_1' ).
lr_event->mo_event_data->set_value(
iv_key = cl_fpm_event=>gc_event_param_substep_id
iv_value = 'SUBSTEP_1_1' ).
lr_event->mo_event_data->set_value(
iv_key = cl_fpm_event=>gc_event_param_subvariant_id
iv_value = 'SUBSTEP_VARIANT_1_1' ).
*now raise event
lo_fpm->raise_event( io_event = lr_event ).
Thanks,
Raghunadh Kodali.
Hi Raghunadh,
Could you please place a breakpoint at the statement lo_fpm->raise_event( io_event = lr_event ) and check if lo_fpm is not initial.
I think this dump should come only in this case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deva,
I tries using F6 also even though it is going to dump
|
Thanks, Raghunadh.k |
Hi Raghunath,
At First Double Cick on Component->In implemented Interface
Reimpliment the Following two Interfaces
i.e, IF_FPM_UI_BUILDING_BLOCK & IF_FPM_GAF_CONF_EXIT
Then In Click on Applcation -> Give Compnent name as FPM_OIF_COMPONENT
and Interface name as FPM_WINDOW & plug name as Default
then goto se80->select Package & Package name of your object
then expand webdynpro->then expand webdynpro application->right click on your Apllication and Creat/Change Configuration->give new congiuration id->create
give the new configration name in configaration.
save & go to Component Configuration (some times it shows not exist at the]
time click on create & save it in package)
then here you see add main step & add sub step buttons .
as per your req create substeps.
select the Main Step->UIBB->then Attributes give your Component name & view(i.e, window name of that component)
like above you also add in Substep.
Regards,
Venkata Ramana.
Hi Raghunath,
At First Double Cick on Component->In implemented Interface
Reimpliment the Following two Interfaces
i.e, IF_FPM_UI_BUILDING_BLOCK & IF_FPM_GAF_CONF_EXIT
Then In Click on Applcation -> Give Compnent name as FPM_OIF_COMPONENT
and Interface name as FPM_WINDOW & plug name as Default
then goto se80->select Package & Package name of your object
then expand webdynpro->then expand webdynpro application->right click on your Apllication and Creat/Change Configuration->give new congiuration id->create
give the new configration name in configaration.
save & go to Component Configuration (some times it shows not exist at the]
time click on create & save it in package)
then here you see add main step & add sub step buttons .
as per your req create substeps.
select the Main Step->UIBB->then Attributes give your Component name & view(i.e, window name of that component)
like above you also add in Substep.
Regards,
Venkata Ramana.
Hi Ragu,
Previously i got this problem i resolves by using following code which is written in Component controller->wdinit()
* Get the reference to the IF_FPM interface.
WD_THIS->GL_FPM = CL_FPM_FACTORY=>GET_INSTANCE( ).
WD_THIS->LO_IDR ?= WD_THIS->GL_FPM->GET_SERVICE( CL_FPM_SERVICE_MANAGER=>GC_KEY_IDR ).
* *----Get a handle to the CNR.
WD_THIS->LO_CNR_OIF ?= CL_FPM_SERVICE_MANAGER=>GET_SERVICE( CL_FPM_SERVICE_MANAGER=>GC_KEY_CNR_OIF ).
take the GL_FPM type IF_FPM & LO_IDR type IF_FPM_IDR & LO_CNR_OIF type IF_FPM_CNR_OIF as Global Attributes in Component Controller.
Where ever you fine OIF Use GAF
I Think it works....
Regards,
Venkata Ramana.
Raghu,
@ which point it reaised this error.. can you please point out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
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.