Skip to Content
Author's profile photo Former Member

Addition of New Fields PR05(PTK99) and Schema (FITVFELD) uses

Applies to

This white paper helps to use custom screen provided by SAP in PR05 and TRIP transaction while creation of expense report. Also explain how we can add custom fields to FITVFELD – schema.

Summary

Business wants addition of two new fields in PR05 while creating expense report and these fields also need to reflect in schema so that this can be controlled using schema as well.

1.0       Step by Step Procedure

     1.1  Solution Overview

PR05 and TRIP both transaction are using SAPMP56T program. SAP has provided one screen where developer can add custom fields as per requirement (required access key for this development).

/wp-content/uploads/2014/03/1_415880.png

This enhancement requires 3 access keys –

  1. For editing SAPMP56T-9999 using screen painter
  2. To add logic in PBO – MODULE D9999O_INIT.
  3. To add logic in PAI –  MODULE D9999I_INIT.
  • To enhance SAPMP56T-9999 1st we need to enhance the standard structure PTK99 with required fields
  • Appended PTK99 with ZZPTK99 with two filled
    • Deputation Number
    • sMiles Number

/wp-content/uploads/2014/03/2_415881.png

Now in SE80 select SAPMP56T-9999 and click on Layout screen as shown below


/wp-content/uploads/2014/03/3_415895.png


Initial Layout of Screen as below –

/wp-content/uploads/2014/03/4_415896.png

Just invisible the labels instead of deleting it


/wp-content/uploads/2014/03/5_415897.png

Click on Dictionary/Program fields window (F6) give PTK99 and click on Get From Dictionary


/wp-content/uploads/2014/03/6_415901.png


This will display appended structure fields here, just select and drag drop to screen and label them as per requirement


/wp-content/uploads/2014/03/7_415902.png


After editing screen look like below

/wp-content/uploads/2014/03/8_415903.png

Here we are done with Screen Level Enhancement.

To SAVE data enter on screen in Deputation Number and sMiles TR Number below logic need to be add in PBO and PAI

PAI Coding –

/wp-content/uploads/2014/03/9_415907.png

PBO Coding –


/wp-content/uploads/2014/03/10_415908.png

/wp-content/uploads/2014/03/11_415909.png

Final PR05 Screen after enhancement –


/wp-content/uploads/2014/03/12_415910.png


2.0      Configuration

     2.1   Configuration Overview

IMP – This enhancement is totally based on schema.


Configuration requires to be done at schema side.


Use T-Code – FITVFELD


/wp-content/uploads/2014/03/13_415879.png


Give proper Schema Name and select proper Trip schema; here I selected 01 overseas Schema


/wp-content/uploads/2014/03/14_415917.png


Check the User Data Check Box and give required Name “Travel Data”, same name will be appear on PR05 screen.

The solution has been designed using the following enhancements

  • Appending ZZPTK99 in standard SAP structure PTK99
  • Adding code in SAPMP56T-9999 PBO and PAI to save and retrieve data accordingly. Required Access Key



Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Good job, it is very helpful.

      Thanks, Kumar

      Author's profile photo Former Member
      Former Member

      very useful.. thanks for the information..

      Author's profile photo Former Member
      Former Member

      Very good info

      Author's profile photo Vineet Safaya
      Vineet Safaya

      Hi,

      You have not mentioned in which table my custom details will be saved. ?