cancel
Showing results for 
Search instead for 
Did you mean: 

How to make travel expense amount per travel days?

Former Member
0 Kudos

Hi, gurus.

I'm sorry but I'm really new in HCM module.

My client use lumpsum system for travel, so they basically give the amount per expense type in advance and they don't have to return it if there are still balance. So for travel I make default amount for each expense type based on their infotype 0017.

The problem is my client wants the default amount per travel days. For example if the default amount is $50, then for 3 days travel it would appear $150 as default value.

Do you think it's possible?

I've tried user exit, customer exit, and BADI for PR05, but nothing works. I've also tried to get the value from the screen but it cannot be done also.

Do you have any suggestion?

I'll really appreciate any help you offer. Thank you.

Best Regards,

Shirley Xiao

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hello Shirley,

maybe a helpfull example how to fulfill your requirement:

For Country Version norway exists a so called salaray element 'SAL'- a receipt solution-

The customizing for SAl receipt

'S' receipt (sm30 V_T706B2)

IMG: Create Travel Expense Types for Individual Receipts

Create a Default amount for this receipt (sm30: V_T706B2)

IMG: Define Maximum Rates and Default Values for Expense Types

Fo SAL:  435 NOK

than:

Field Control for Additional Receipt Information

Setting: Number calculation: 1 Differences in dates+ 1 day

and

from/to date as optional

number = required.


Than check via se38 Include MP56TF30

You will find there

    LOOP AT SCREEN.

      CASE screen-name.

        WHEN 'PTK03-SPKZL'.

          IF ptk03-spkzl = 'FRI'  OR

             ptk03-spkzl = 'FRI2' OR

             ptk03-spkzl = 'FRI3' OR

             ptk03-spkzl = 'HYB'  OR

             ptk03-spkzl = 'SAL'  OR                        "KCNK008073

             ptk03-spkzl = 'BRA'.

            screen-input = 0.

            MODIFY SCREEN.

          ENDIF.

        WHEN 'PTK03-BETRG'.


          IF ptk03-spkzl = 'FRI'  OR

             ptk03-spkzl = 'FRI2' OR

             ptk03-spkzl = 'FRI3' OR

             ptk03-spkzl = 'HYB'  OR

             ptk03-spkzl = 'SAL'  OR                        "KCNK008073

             ptk03-spkzl = 'BRA'.


            IF ptk03-betrg NE '0'.

              screen-input = 0.

              MODIFY SCREEN.

            ENDIF.


            IF ptk03-spkzl <> 'SAL'.

              READ TABLE it_706b2 WITH KEY spkzl = ptk03-spkzl

                                           atype = 'A'.

              IF sy-subrc IS INITIAL.

                ptk03-betrg = it_706b2-betrg.

                MULTIPLY ptk03-betrg BY exbel-anzal.

                beleg-betrg = ptk03-betrg.

              ENDIF.

            ENDIF.

the logic of this coding is: If you implement a SAL receipt (e.g. in PR05) you can't overwrite afterwards the receipt and the calculated amount- it will be calculated with the Default amount and the number of days coming from additional receipt informations.

Substitute or copy the logic for the norwegian SAL receipt with your receipt name and you will have a smilar solution- but with status 'modification'.

You can compare the customizing in your Client 000 /trip Provision variant 20 (norway) too. Here you will find the delivery customizing.

Best regards Klaus

Paulo_Vitoriano
Active Contributor
0 Kudos

Hi Shirley,

I believe this is FI-TV standard, it is called per diem amount.  It can be calculated based on start/end date/time for the trip.  No need for user-exits.

Regards,

Paulo

Former Member
0 Kudos

Hi, Paulo..

Could you tell me the outline for the customization?

As for I know, the per diem amount is for accomodation and meals? My expense type is declared in Expense Type for Individual Receipt. Could I setting it like that?

Thanks for your answer.

Regards,

Shirley