on 06-11-2011 3:52 AM
Hello All
I have created FPM GAF Application with below steps
Main Step 1 Main Step 2 Substep 2.1 SubStep2.2 and MainStep 3.
Problem is I am unable to navigate subroadmap i.e 2.1.
When I am I am clicking Next button Main Step2 directly going Mainstep 3 it is not going to 2.1 and 2.2
How can I resolve this. Please help.
Thanks & Regards
CW
Substeps have to be activated from the view based on à action in the view.
For the code snippet see this thread.[|]
In the fpm developer manual this has been explained. Please go through that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Baskaran,
Thanks for your reply.
Yes. I have gone through WDA FPM Manual and implemented the same code in my component.
But i am getting "NULL Object Reference Error" i am not able to understand what is the wrong.
Could you pls give ur suggestions..
Implemented below code in PROCESS_EVENT method of CompController. Do i need to write put any other code or conditions.
Please help me out.
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_3' ).
lr_event->mo_event_data->set_value(
iv_key = cl_fpm_event=>gc_event_param_substep_id
iv_value = 'SUBSTEP_3_1' ).
lr_event->mo_event_data->set_value(
iv_key = cl_fpm_event=>gc_event_param_subvariant_id
iv_value = 'SUBSTEP_VARIANT_3_1' ).
now raise event
lo_fpm->raise_event( io_event = lr_event ).
BR
-CW
hello
If keep the same code in PROCESS EVENT getting the below error when clicking NEXT button of FPM Application.
The following error text was processed in the system D32 : Access via 'NULL' object reference not possible.
The error occurred on the application server pesap42_D32_44 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: GET_UIBBS_FOR_EVENT of program /1BCWDY/FTMPLAHGUH628RMXU8R5==CP
Method: IWCI_IF_FPM_FLOORPLAN_COMP~GET_UIBBS_FOR_EVENT of program /1BCWDY/FTMPLAHGUH628RMXU8R5==CP
Method: IF_FPM_FLOORPLAN~GET_UIBBS_FOR_EVENT of program CL_FPM_GAF_INTERNAL===========CP
Method: GET_NEXT_UIBBS of program CL_FPM========================CP
Method: PROCESS_EVENT of program CL_FPM========================CP
Method: RUN_EVENT_LOOP of program CL_FPM========================CP
Method: RAISE_EVENTS of program CL_FPM========================CP
Method: ONACTIONBUTTON_PRESSED of program /1BCWDY/FTMPLAHGUH628RMXU8R5==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/FTMPLAHGUH628RMXU8R5==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
Could you please what is the wrong. View Event Handler methos means where exactly i should put the code.
BR
-CW
You have à wda view which is embedded for the mainstep-3, in that view Create a action for example goto_substep.
In this eventhandler cut and paste code from process_event.
You need to trigger this action , bind this action to Any ui element event in the view or Create à button and bind this action.
Hello Baskaran,
I have action in the view in that pasted above same code.
While clicking the button giving the same dump.
Could you please suggest what is wrong in the code.
The following error text was processed in the system D32 : Access via 'NULL' object reference not possible.
The error occurred on the application server pesap42_D32_44 and in the work process 1 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: GET_UIBBS_FOR_EVENT of program /1BCWDY/FTMPLAHGUH628RMXU8R5==CP
Method: IWCI_IF_FPM_FLOORPLAN_COMP~GET_UIBBS_FOR_EVENT of program /1BCWDY/FTMPLAHGUH628RMXU8R5==CP
Method: IF_FPM_FLOORPLAN~GET_UIBBS_FOR_EVENT of program CL_FPM_GAF_INTERNAL===========CP
Method: GET_NEXT_UIBBS of program CL_FPM========================CP
Method: PROCESS_EVENT of program CL_FPM========================CP
Method: RUN_EVENT_LOOP of program CL_FPM========================CP
Method: IF_FPM~RAISE_EVENT of program CL_FPM========================CP
Method: ONACTIONSUBROADMAP of program /1BCWDY/M463YDTTX7R2G8IOE501==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/M463YDTTX7R2G8IOE501==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
BR
-CW
There is something fundamentally wrong in bringing the view for the substep. I have looked at the two error message of you and they are happening at the same place.
It is hard to say what is going wrong without seeing your application.
I assume that you are in mainstep-3 and you press a button in WDA view.Probably you need to debug from this point and see what is going wrong.
Hello Baskaran,
There is something fundamentally wrong in bringing the view for the substep. I didn't get you what exactly fundamentally wrong you mean include substeps?
I assume that you are in mainstep-3 and you press a button in WDA view. Yes u r correct.
I have tried to debug from the action event it is failing in the standard objects.
Thanks & Regards
Sridhar.
What i meant "fundamentally wrong" was that the interface view which need to be brought up for substep 3-1 might have some serious problem Or initialization of that component is having problem. I do not know.
I have done few of this scenario and it is working for me. So, i am not sure what is going wrong with your configuration/coding.
Hello Baskaran
I am quite new to FPM WDA.
Could you please explian more.
You mean i need create one action last substep of View right?
In this view i need write the code? Is it some like this?
Could you please give high level steps.
In the toolbar there is button called Exit to Main Step . Do i need include this?
BR
-CW
Edited by: CarlinWilliams on Jun 14, 2011 3:29 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.