Ansicht
Dokumentation

FMBU0001 - Add user-specific fields to table BPDK

FMBU0001 - Add user-specific fields to table BPDK

Addresses (Business Address Services)   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This enhancement enables you to maintain your own fields for the document header of the budget entry documents. Maintenance takes place in a subscreen in all budgeting transactions that generate an entry document.

You have to generate an initial screen and some function modules:

  • Screen SAPLFMG2 0400
  • Function module EXIT_SAPLKBPB_004
    This function module provides your subscreen with data.
  • Function module EXIT_SAPLKBPB_005
    This function module returns the data from your subscreen.

As soon as you have created the subscreen and your enhancement project is activated, the pushbutton User-specific fields appears for the budgeting transactions. If the user selects in the create- change- display function of a document, the subsreen is shown and the user can maintain and display the appropriate fields.

In addition, you can use these fields on the initial screen to display documents, using the F4 help to select them. The User-defined fields function appears on this selection screen also. The selection conditions the user enters here are in addition to the existing conditions.

  1. Create Customer Project
    You create a customer project using SAP standard enhancement FMBU0001 in project management of SAP enhancement (transaction code CMOD) 001.
  2. Fill Include Table
    To create your own fields, you must create the CI_BPDK include table. To do this, choose Change Enhancement Components on the CMOD initial screen.
    Double click Include table CI_BPDK and specify all the fields you want to add to the document header.

    Example:
    Enter a short description and specify the following:
    Field name: TESTVAL
    Data element: X
    Type: CHAR
    Length: 1
    Short description: Yes/No (X/ )
    Use direct type input to control whether you are entering the type directly or want to reference a data element.

    Save and activate the fields and activate the table.
  3. Create Function Module Exits
    Double click function module exit EXIT_SAPLKBPB_004. Double click include ZXKBPU5 and create the include. Enter the following code in the include:

    1 *------------------------------------------------------------------*
    2 * INCLUDE ZXKBPU05 3
    3 *------------------------------------------------------------------*
    4
    5 move I_BPDK to G_F_BPDK.
    Double click G_F_BPDK and create a global data field named G_F_BPDK like BPDK in Include ZXKBPTOP.

    Double click function module exit EXIT_SAPLKBPB_005. Double click include ZXKBPU6 and create the include. Enter the following code in the include:
    1 *------------------------------------------------------------------*
    2 * INCLUDE ZXKBPU05 3
    3 *------------------------------------------------------------------*
    4
    5 check I_SHOW is initial.
    6
    7 move G_F_BPDK to E_BPDK.

    Function module EXIT_SAPLKBPB_004 is accessed as of event PBO and enters data in your subscreen.
    Function module EXIT_SAPLKBPB_005 is accessed as of event PAI and enters data in your subscreen.

    Activate the function module exits

Create Screen Area as Subscreen
Double click screen area SAPLKBPB0190_SUB1_SAPLXKBP0190 and create your new screen with screen type "Subscreen". Put the desired fields from table CI_BPDK into your subscreen. You can also insert fields from other tables, but only as display fields. The subscreen should not include more than ten lines or users have to scroll to reach the fields.
Activate the subscreen.

  1. Activate the project.





Fill RESBD Structure from EBP Component Structure   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 3954 Date: 20240329 Time: 145758     sap01-206 ( 81 ms )