Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

FITE_VC_REVIEW with FITP_REQUEST_FORM connection

$
0
0

I have created 2 custom field in W.C. : FITE_VC_GENERAL_DATA with enhancement.

 

then it move to W.C. : FITE_VC_REVIEW after pressing "Review" button.

 

then in  W.C. : FITE_VC_REVIEW have a button "Display Request Form"

 

after pressing this button Travel request form is open in browser .

 

how it is connected from W.C. : FITE_VC_GENERAL_DATA ?

and what is the form name ?

How can I find the form Name?


example for code:


method ONACTIONDISPLAYFORM .

   wd_Comp_Controller->Displayform).

endmethod.


method DISPLAYFORM .

 

DATA:

lt_return TYPE bapirettab.

 

* Make current expenses data available for ExpenseForm application.

 

*begin PHREAJK002356    --> Should also work for Travel Request

*CALL FUNCTION 'PTRA_WEB_TRIP_GET_SAVE_TO_SHB'

*  EXPORTING

*    I_EMPLOYEENUMBER       = wd_assist->gs_common_rfc_input-employee_number

*    I_TRIPNUMBER           = wd_assist->gs_common_rfc_input-trip_number

*    I_TRIP_ACTION          = wd_assist->gs_common_rfc_input-trip_action

*    I_PERIODNUMBER         = wd_assist->gs_common_rfc_input-period_number

*    I_TRIP_COMPONENT       = wd_assist->gs_common_rfc_input-trip_component

*  TABLES

*    ET_RETURN              = lt_return.

CALL FUNCTION 'PTRM_WEB_TRIP_GET_SAVE_TO_SHB'

   EXPORTING

     I_EMPLOYEENUMBER       = wd_assist->gs_common_rfc_input-employee_number

     I_TRIPNUMBER           = wd_assist->gs_common_rfc_input-trip_number

     I_TRIP_ACTION          = wd_assist->gs_common_rfc_input-trip_action

     I_PERIODNUMBER         = wd_assist->gs_common_rfc_input-period_number

     I_TRIP_COMPONENT       = wd_assist->gs_common_rfc_input-trip_component

   TABLES

     ET_RETURN              = lt_return.

*end PHREAJK002356

 

DATA:

      l_api_component       TYPE REF TO if_wd_component,

      l_operation           TYPE string,

      ls_bo_param           TYPE LINE OF wdy_key_value_table,

      lt_bo_params          TYPE wdy_key_value_table.

 

   l_api_component = wd_this->wd_get_api( ).

 

   CLEAR lt_bo_params.

 

   ls_bo_param-key   = cl_fitv_navigation=>gc_param_persno.

   ls_bo_param-value = wd_assist->gs_common_rfc_input-employee_number.

   INSERT ls_bo_param INTO TABLE lt_bo_params.

 

   ls_bo_param-key   = cl_fitv_navigation=>gc_param_tripno.

   ls_bo_param-value = wd_assist->gs_common_rfc_input-trip_number.

   INSERT ls_bo_param INTO TABLE lt_bo_params.

 

   ls_bo_param-key   = cl_fitv_navigation=>gc_param_tripcmp.

   ls_bo_param-value = wd_assist->gs_common_rfc_input-trip_component.

   INSERT ls_bo_param INTO TABLE lt_bo_params.

 

   ls_bo_param-key   = cl_fitv_navigation=>gc_param_datasrc.

   ls_bo_param-value = cl_fitv_navigation=>gc_value_datasrc_shb.

   INSERT ls_bo_param INTO TABLE lt_bo_params.

 

   l_operation = cl_fitv_navigation=>gc_op_displayform.

 

   CALL METHOD cl_fitv_navigation=>navigate_to_object

     EXPORTING

       component           = l_api_component

       operation           = l_operation

       business_parameters = lt_bo_params.

 

 

endmethod.


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>