Sunteți pe pagina 1din 15

1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

Products
Products Industries
Industries Support
Support Training
Training Community
Community Developer
Developer Partner
Partner

About
About

 
Home / Community / Blogs + Actions

FSCM: Additional Tab to Business partner


through BDT Settings
December 31, 2013 | 3,798 Views |

Gangadhar Ragula
more by this author

ABAP Development
abap | development guide | fscm | knowledge sharing

share
0 share
0 tweet share
0

Follow

Introduction to BDT:

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 1/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

The BDT (Business Data Toolset) is a central control tool for maintaining master
data and simple transaction data. In addition to dialog maintenance, it also
supports maintenance with direct input and/or function modules.

The BDT also provides generic services for consistently recurring requirements
such as occur in change document lists, field groupings and the deletion program.
It takes control over these objects as well as generic parts and calls the
applications using predefined interfaces (control tables and events). The
applications themselves introduce application-specific enhancements, such as
writing and reading application tables

BDT settings:

Step 1: Create Module Pool Program – SAPLZFG_FSCM with screen 9001.

(Function Group: ZFG_FSCM)

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 2/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

Step 2: Create New Application for screen

BUPT->Business Partner->Control->Applications / t-code (BUS1)

Step 3: Create New Dataset for the application:


BUPT->Business Partner->Control->Data Sets / t-code (BUS23)

Step 4: Create field groups as required:


BUPT->Business Partner->Control->Screen Layout->Field Groups / t-code (BUS2)

Assign the fields to the field group

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 3/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

Step 5: Create view:


BUPT->Business Partner->Control->Screen Layout->Views / t-code (BUS3)

Assign the field groups to the views:

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 4/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

Step 6: Create section


Go to BUPT->Business Partner->Control->Screen Layout->Section/ t-code
(BUS4)

Assign View to the section:

Step 7: Create Screen:


Go to BUPT->Business Partner->Control->Screen Layout->Screens (BUS5)

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 5/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

Assign the section to the screen

Step 8: Create the screen sequence:


Go to BUPT->Business Partner->Control->Screen Sequences (BUS6)

Select the screen sequence and click on Screen Sequence->Screens to


assign the Screen.

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 6/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

Create a screen sequence category:

Selecting the Screen Sequence category, assign the screen sequence to it.

Step 9:
Add your screen with the standard screen sequence so that it would appear with
the standard TABS.
Select the BUP001 Screen Sequence and add your screen with the required Item
number.
Item Number will depict where the tab will come.

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 7/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

**************Most Important Step******************

Step 10: Create Divisibility:


BUPT->Business Partner->Control->Divisibility->BP Views (BUSD)

Add Data Set ZFSCM to standard BP View UKM000

Add the custom application to standard BP view UKM000

Output: Execute t-code “UKM_BP” and enter partner number.

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 8/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

Incorporating a logic flow for the validations etc. of those custom fields

To incorporate the logic for the validations of the custom fields, the PAI and the
PBO of the custom program that is attached to the View can be used.

Here we attached the custom FM “ZZAPP_BUPA_PBO_ZAPP9001” to the


view ZFSCM.

Updating the underlying database tables for the custom fields when the
BP transaction is saved

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 9/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

We will need to create FMs and configure the FMs to trigger under specific
SAP events.

The list of the events can be found from the transaction BUPT using the path:

SAP Menu -> Business Partner -> Control Data -> Events -> Business
Data Toolset (BUS7)

In the e.g. described above, 2 FMs were created under the Function Group
‘ZGM_FSCM’.

These FMs were:

1) FM ‘ZZAPP_BUPA_EVNT_XCHNG’:

The custom FM was attached to the event the event ‘XCHNG’ (which
is triggered to check whether Data Has Been changed). The
application name used was ‘ZAPP’.

2) FM ‘ZZAPP_BUPA_EVNT_DSAVE’:

The custom FM was attached to the event ‘DSAVE’ (which is triggered


to Save Data in Database (from Local Memory)). The application

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 10/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

name used was ‘ZAPP’.

Alert Moderator

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

Chigon Li

July 4, 2014 at 9:28 am

Glad to find this document that help me a lot.

Dear Expert, can u tell me how to write the function modules:


ZZAPP_BUPA_PBO_ZAPP9001,

ZZAPP_BUPA_EVNT_XCHNG,

ZZAPP_BUPA_EVNT_DSAVE.

Thanks in advanced .

Gangadhar Ragula Post author

July 6, 2014 at 7:05 am

Hi Chigon,

Below are the steps.

Create function group for these function modules in SE37.


Create the function modules with below parameters

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 11/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

ZZAPP_BUPA_EVNT_XCHNG

Export parameter – E_XCHNG TYPE BOOLE_D

This FM is used to check if the screen data has been changed

After checking the validation based on the screen data, if data has been
changed then mark the exporting flag i.e, E_XCHNG = ‘X’.

ZZAPP_BUPA_EVNT_DSAVE

This FM will be used to save the data from screen to respective DB tables and doesn’t
have any parameters.

ZZAPP_BUPA_PBO_ZAPP9001

This FM will be used to move the initial data from DB tables to the screen.
No interface is required.

Similarly we can create PAI function module to validate the screen data
after user inputs and do perform any specific validations.

Hope it clears and please let me know if you require any other information.

Regards

Gangadhar

Karthik Anumalasetty

May 29, 2015 at 1:21 pm

Hi Gangadhar,

Can u explain how to get the data like partner,partner name and company..etc like
standard data in to those FM’s or PBO, PAI of customized tab.

Thanks in Advance.

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 12/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

Gangadhar Ragula Post author

May 29, 2015 at 1:31 pm

Hi Karthik,

You can use the FM “BUP_BUPA_BUT000_GET” to get partner number of screen. It


will import all the details of partner.

Thanks

Gangadhar

Karthik Anumalasetty

May 29, 2015 at 1:46 pm

Can u give ur gmai id?

I Have some more issues. Need to clarify.

Thanks in Advance.

Karthik Anumalasetty

May 29, 2015 at 2:37 pm

Hi Gangadhar,

I Created those FM’s and assigned under


particular events.

But, those FM’s are not triggering and not


updating my Z-table when Saving the BP(wrote
the code to update DB in FM’s).

When Saving the BP after entering the data on


Custom tab, It is showing “No Changes were
made”.

Please do favour to solve the issues.

Thanks in advance.

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 13/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

Karthik Anumalasetty

June 1, 2015 at 11:55 am

Hi Gangadhar,

Please, explain me how to make it work those FM’s.

My Save FM not at all triggering, but XCHNG FM is triggering .

Not able to get the value what i have entered as a input into
XCHNG FM.

Turgay Piyadeoğlu

March 28, 2017 at 1:35 pm

Hi Gangadhar,

I have made all customizing. Everything looks fine. I can see and update field value in
BP screen. I have problem about showing one field in two different roles. I have created
2 different app, dataset, field group, screen, view etc.

When i delete the field from one of the field group, I can see field in BP screen for the
other one and it’s same for both of them.

Do you have any advice for me?

Regards,

Ekrem.

vinuta hegde

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 14/15
1/15/2018 FSCM: Additional Tab to Business partner through BDT Settings | SAP Blogs

November 7, 2017 at 6:50 am

Hi Gangadhar,

I have enhanced the BUT000 table with custom fields. I am facing the issue during
saving the data. Screen data for custom fields are not filling in database tables. After
seeing this post i understood that DSAVE and XCHNG event Function module must be
created. MY doubt is i have ZFIELDS1 ZFIELDS2 ZFIELD3 . In SCREEN PAI i have
called FMBUS_PAI and In pBO i have called FM BUS_PBO . Please tell me if i created
Function module for DSAVE event what is the logic i have to write ?

Share & Follow


Privacy Terms of Use Legal Disclosure Copyright Trademark Sitemap Newsletter

https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/ 15/15

S-ar putea să vă placă și