All we know that with the help of GFTR_C0102 transaction we can manage the status of standard fields.

/wp-content/uploads/2014/07/stdfield_503454.jpg

But what about custom fields?

Actually it’s all the same! But we need to make some configuration.

Precondition: you must know how to create custom tabs in Treasury and how to add custom fields on the tabs. Tabs and fields must be already created.

Status of custom tabs

1. Tr. GFTR_C0002 – check if everything is okey here, because field groups for custom tabs are already predefined and you don’t have to change anything here – 0093 “Customer Enhancements: Tabstrip 1” and 0094 “Customer Enhancements: Tabstrip 2”

On the “Field Groups” level do not change anything

/wp-content/uploads/2014/07/9394_503455.jpg

/wp-content/uploads/2014/07/93_503480.jpg

/wp-content/uploads/2014/07/94_503481.jpg

Now let’s assign Fields to Field Groups:

  • Field Group 93: VTG_OPEN_TRTM_DISPLAY-OPEN_TRTM_CUST_01
  • Field Group 94: VTG_OPEN_TRTM_DISPLAY-OPEN_TRTM_CUST_02

/wp-content/uploads/2014/07/93field_503482.jpg

/wp-content/uploads/2014/07/94field_503489.jpg

It’s all. Now you can manage the status of custom tabs: Display or Hide.

/wp-content/uploads/2014/07/set9394_503490.jpg

Status of custom fields

1. Tr. GFTR_C0002 – let’s create field groups for our custom fields and assign custom fields.

TIP1: We can set the status only for Group Field. It means you must group your custom fields in Group Field logically, technically. For example, fields like Amount and Currency are always together, so they must always be in the same Field Group.

TIP2: The range for customer field groups is between  600 (inclusive) and 799 (inclusive)

Let’s create Field Group 601.

Enter description for your field group and Function module FTR_SUBSCR_FMOD2_EVENT

/wp-content/uploads/2014/07/601_503508.jpg

Now assign custom fields to Field group

You enter the same parameters as on your screen painter and don’t forget to put checkmark in Input field.

/wp-content/uploads/2014/07/screen_503555.jpg

/wp-content/uploads/2014/07/601assign_503556.jpg

2. Tr. GFTR_C0003 – assign Field Group to View “CUST01”.

/wp-content/uploads/2014/07/view_503557.jpg

Check parameters of the view

/wp-content/uploads/2014/07/viewcheck_503576.jpg

Assign Field Groups to view CUST01

/wp-content/uploads/2014/07/viewfldgrp_503577.jpg

3. Tr. GFTR_C0011 – Assign Screen parameters to Database parameters.

Parameters in Screen painter is Screen parameters

/wp-content/uploads/2014/07/screen_503555.jpg

Fields in the Database is Database parameters

/wp-content/uploads/2014/07/table_503582.jpg

We must match both parameters – Screen and Database

/wp-content/uploads/2014/07/screendatabase_503583.jpg

And that’s all. In transaction GFTR_C0102 you’ll find new Field Groups. And you can manage the statuses of custom fields in your deals!

/wp-content/uploads/2014/07/config_503584.jpg


4. And the last step. Don’t forget to insert code


CALL METHOD G_PROXY_FMOD->APPLY_FMOD

in PBO logic of the screen where your custom fields situated. This piece of code will transfer field’s status from configuration into your transaction.

Easy and elegant. Using standard possibilities is the best way to manage the system.

P.S. If you face some unpredictable behaviour of your configuration, try to debug function module BUS_FMOD_MAIN (tr. SE37).

The instrument we used is BDT (help.sap.com) Business Data Toolset (not to be confused with DBT Derived business transaction). With BDT you can reconfigure you screens in different modules (the most usual is Business Partners management) – move fields from one tab to another, create custom tabs, etc

But in Treasury module this instrument is used only partially. If you want to get acquainted with the instument – read CR590 course “Business Data Toolset”

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

  1. Reenu John

    Hello Grigoriy Babitskiy,

    I followed the post and simulated the settings in my system, I am done with all the configurations and the Field additions but i am unable to get the below settings done.

    Kindly let me know the navigation steps how to get the below screen, so that it will be a great help for me.

    Screen.png

    Regards,

    Reenu John

    (0) 
    1. Grigoriy Babitskiy Post author

      Hello Reenu John

      1. SE18 -> FTR_CUSTOMER_EXTENT -> Menu “Enchancement implementation” -> View

      /wp-content/uploads/2014/11/1_589756.jpg

      Select your implementation.

      /wp-content/uploads/2014/11/2_589772.jpg

      “Interface” tab -> Method “EVT_APPLICATION_START” -> Double click

      /wp-content/uploads/2014/11/3_589773.jpg

      Double click on Function module.

      /wp-content/uploads/2014/11/4_589774.jpg

      copy report id – in my case it was “SAPLZSTR_TABS”.

      /wp-content/uploads/2014/11/5_589775.jpg

      SE38 ->

      /wp-content/uploads/2014/11/7_589776.jpg

      “Display object list” button.

      /wp-content/uploads/2014/11/8_589777.jpg

      Select screen where you fields are listed and make double click on it.

      /wp-content/uploads/2014/11/9_589778.jpg

      “Layout” button.

      /wp-content/uploads/2014/11/10_589779.jpg

      Select your screen (click on it) and you’ll see it’s name.

      /wp-content/uploads/2014/11/11_589780.jpg

      (0) 
  2. Rohan Sadula

    Hi Grigoriy,

    I have followed all the steps you have mentioned. I am getting my values at the time of selecting. But i am unable to get it to store in VTBFHA table. I have written my code in SAVE_READY method of CUS_EXTENT

    (0) 

Leave a Reply