cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to navigate to Sub roadmap Steps

carlin_willams
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90f3cfd2-46d0-2b10-b3ab-eabf3452c...

carlin_willams
Participant
0 Kudos

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

Former Member
0 Kudos

Which line you get error.?

You have to be inthe uibb of the main. Step 3.

Try this code in that view-event handler and not in process_event.

carlin_willams
Participant
0 Kudos

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

Former Member
0 Kudos

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.

carlin_willams
Participant
0 Kudos

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

Former Member
0 Kudos

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.

carlin_willams
Participant
0 Kudos

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.

Former Member
0 Kudos

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.

carlin_willams
Participant
0 Kudos

Thanks Baskaran,

Just I have removed existing Sub Step Variants, created new sub variants able to navigate to substeps.

But once I go to substeps I am unable navigate to next Main Steps.

Do I need to write any extra code and any configuration have to do? Please let me know

BR

-CW

Former Member
0 Kudos

There is a event " exit to main step" , you can fire this event to exit the substep and go to the main step.

carlin_willams
Participant
0 Kudos

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

Former Member
0 Kudos

hi,

Sorry for the unclear suggestion.

In the configuration editor , you can add a button using add toolbar element -> exit to main step.

When the user presses this button, control comes back to the main step.

carlin_willams
Participant
0 Kudos

Thanks.

Yes it is working.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Williams,

Check this thread, Check manas answer it might helps.

cheers,

Kris.

carlin_willams
Participant
0 Kudos

Hello KS

The provided link is not suitable to my query.

Could you please give ur ideas on my query.

I am not able to proceed further.

BR

-CW

Edited by: CarlinWilliams on Jun 11, 2011 3:03 PM