cancel
Showing results for 
Search instead for 
Did you mean: 

Travel Expense in Travel Management

Former Member
0 Kudos

Hi Experts,

I need to activate the standard workflow WS20000050 for business object BUS2089 for implementing the Travel Expense part of Travel management. I had activated the workflow using SWDD and when i tried to submit the trip expense in TRIP(tcode), it is getting automatically approved and the status of that trip is 'to be settled'.

My requirement is when the employer submits the trip expenses then workflow should route that workitem for approval to his immediate manager. When the manager approves, then

1. A mail to be sent to employer that his travel expense is approved

2. workflow should route to financial accountant who will get workitem as a mail in his R/3 inbox and who verifies the expenses and posts to FI.

I should be able to see the workitem of travel expense in manager's inbox and once he approves, one mail should be sent to employer with the status approved or rejected as the case may be.

Your inputs are highly appreciated.

Thanks & regards,

Rizwana

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi check whether you have assigned the user for this also check whether you have used the correct workflow.

Former Member
0 Kudos

Hi,

Thanks for the prompt response. I am trying to assign the roles and checking the workflow. Could you please let me know if there is any other workflow used in Travel Expense Report Approval process.

Thanks for your valuable inputs.

kannan_rajagopalan
Contributor
0 Kudos

Dear Rizwana,

I think the value for the field ANTRG is getting updated as '4' in table "PTRV_PERIO". Might be because of this the workflow is behaving like this.

Can you please check the table level entries in PTRV_PERIO after creating an expense claim and let me know. So that we can explore more on this issue.

Warm Regards,

Raj

Former Member
0 Kudos

Hi Rajagopalan,

Thanks for your suggestion and sorry for the delay in replying. The value in ANTRG is 3. That problem is solved now.

I have an issue with the FM BAPI_TRIP_GET_DETAILS, it is not returning the values for the fields 'Trip Number' and 'Employee number' though in the Trip field, below fields are displayed.

1. Business object,

2. Trip number and

3. Employee number .

Regards,

Rizwana

kannan_rajagopalan
Contributor
0 Kudos

Dear Rizwana,

The FM : BAPI_TRIP_GET_DETAILS, will fetch the trip details for the given trip number and employee number.

This fucntion module will not give you the trip number and employee number.

If you can look in to the FM, in the Import parameters you can find the employee number and trip number.

Cheers,

Raj

Former Member
0 Kudos

Hi Rajagopalan,

Thanks a lot for your prompt reply. So sorry for mentioning the incorrect BAPI.

The FM 'Swk_Wi_Container_Read' provides the trip number and employee number as part of container element table field, given the work item as input. There are five rows in container element table, only 3 fields are populated which are extended, note reference and trip. Trip number and employee number are not populated.

Is this because there is some binding problem issue? i have checked the steps and binding, but no luck.

Your inputs are highly appreciated.

Thanks & regards,

Rizwana

kannan_rajagopalan
Contributor
0 Kudos

Hi Rizwana,

I just checked the FM which you gave.

I got the value.

You have to pass the below values.

IM_WI_ID - The work item id which gets generated when the workflow is triggered.

IM_UNAME - The user id of the person who has triggered the workflow.

IM_LANGU - EN.

When executed, the FM gives the value in the Object type, concatenating the pernr and trip number.

Cheers,

Raj

Former Member
0 Kudos

Thanks so much for your reply and sorry for the delay. I too had got the values in object type, was wondering if we get it seperately. Thanks once again.

Regards,

Rizwana

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks for the replies.