on 07-16-2012 5:49 PM
Dear Experts.
I have the following requeriment.
In the service "Create Travel Request", Advance (button Enter Advance) they want that only are enabled the currency "Colombian Peso" amd "Dollar".
Only allow register advance with this two currency.
And For Travel Expenses, when the money is different to the money of society , convert this to dollar.
This can be managed by customizing?
Hi,
you can refer to this link.
http://scn.sap.com/thread/3194410
basically, when you configure exchange rates, then it would show in travel.
hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You want to configure advance for specific currency ...correct?
Did you check the customizing in IMG activity 'Global Settings for Travel management' (V_706D_B) here you can select currency for receipt and advances .
It depends on how you have home and accounting currency customised as advances and Receipts in home currency e.g USD are ALWAYS then settled in home currency e.g USD too. Only for a foreign currency can you have a accounting currency different to home currency. So: if you want to settle the advance in COP you must enter an advance currency different to USD!
One more point: in the schema and field control (trx. FITVFELD) you can can also enable the field for the currency (PTK08-WAERS).
Hope that helps
Sally
Dear Sally.
We need that the sytem does not allow to select currency differents to COP or USD in the advances process. I have reviewed the customizing in Global Settings for Travel management, but the unique control allowed for currencies is settlement of Foreing Currency Receipts. Let us know if only with a abap validation is possible to get this control.
Thank in advance
Regards
Dear .
In the component WD FITV_VC_ADVANCES-->COMPONENTCONTROLLER-->Method CURRENCY_GET--> I created an enhancement Overwrite Exit-->
DATA: application_name(30) TYPE c.
DATA sl_symsg TYPE symsg.
DATA lo_el_general_data TYPE REF TO if_wd_context_element.
DATA tl_atributos TYPE string_table.
DATA lo_el_context TYPE REF TO if_wd_context_element.
* declarations for fuba parameters
DATA:
stru_c_i_advances TYPE ptrv_web_advances_int,
stru_c_e_advances TYPE ptrv_web_advances_ext.
DATA:
node_advances TYPE REF TO if_wd_context_node,
elem_advances TYPE REF TO if_wd_context_element,
stru_advances TYPE if_componentcontroller=>element_advances.
node_advances = wd_context->get_child_node( name = if_componentcontroller=>wdctx_advances ).
elem_advances = node_advances->get_element( ).
elem_advances->get_static_attributes( IMPORTING static_attributes = stru_advances ).
MOVE-CORRESPONDING stru_advances TO stru_c_i_advances.
IF stru_advances-adv_curr <> 'COP' OR stru_advances-adv_curr <> 'USD'.
* get message manager
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
lo_el_context = wd_context->get_element( ).
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
CALL METHOD lo_message_manager->report_t100_message
EXPORTING
msgid ='ZTV_ESS'
msgno ='003'
msgty ='E'.
ELSE.
DATA: itab_f_et_return TYPE bapirettab.
* /* Execute RFC call to PTRA_WEB_CURRENCY_GET. */
* the invocation - errors are always fatal !!!
CALL FUNCTION 'PTRA_WEB_CURRENCY_GET_2'
EXPORTING
i_employeenumber = wd_assist->gs_common_rfc_input-employee_number
i_tripnumber = wd_assist->gs_common_rfc_input-trip_number
* i_currency = stru_advances
* i_date = wd_this->mv_date
i_pay_curr = stru_advances-pay_curr
i_advances = stru_c_i_advances
i_trip_component = wd_assist->gs_common_rfc_input-trip_component
i_language = wd_assist->gs_common_rfc_input-language
IMPORTING
e_advances = stru_c_e_advances
TABLES
et_valid_curr = wd_this->mt_valid_currency
et_return = itab_f_et_return.
* // Display (error) messages.
IF NOT itab_f_et_return[] IS INITIAL.
wd_this->mo_fpm->report_bapiret2_messages( it_bapiret2 = itab_f_et_return[] ).
ENDIF.
* // Copy received advances data
MOVE-CORRESPONDING stru_c_e_advances TO stru_advances.
elem_advances->set_static_attributes( EXPORTING static_attributes = stru_advances ).
ENDIF.
With this code source the system show the message when i use othe current different to COP or USD. However When I press the button Accep the system no show the error.
I want know When have that put also this same code?
Thanks in advance
Regards
Hi, I don't think that this can be achieved through configuration however you can make an enhancement in the Webdynpro to restrict the currency that you would like to see in the drop down. Also look at the BAdi Trip_web_customizing. Should be able to write a logic to restrict the currency in the drop down.
Hope this helps 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.