Page 1 of 1

Use of BDT - setting default value on the BP screen

PostPosted: Wed Apr 26, 2006 11:26 am
by Karolina3808
Hi,

I am trying to set certain default for the Grouping Range when I create a new Bp using Tcode BP. For this i have changed the PBC fucntion for the view BUP020 ( TCode : BUS3). The Z function module attached is Z_FBSBP_SET_DEFAULT_GROUPING

FUNCTION z_fbsbp_set_default_grouping.
*"----------------------------------------------------------------------
*"*"Local interface:
*" IMPORTING
*" REFERENCE(IV_ACTION) LIKE BUS000FLDS-CHAR1
*" REFERENCE(IV_SICHT) TYPE BU_SICHT
*"----------------------------------------------------------------------

DATA: lv_bu_group TYPE bu_group VALUE 'GR01'.

* Set the Grouping Range with a default value for all roles, each time
* when transaction BP is called
SET PARAMETER ID 'BPP' FIELD lv_bu_group.

* Call the standard PBC fucntion module for BP Creation
CALL FUNCTION 'BUP_BUPA_PBC_MISC'
EXPORTING
i_action = iv_action
i_sicht = iv_sicht.

ENDFUNCTION.

As per my notion this fucntion module should get triggered once I open the transaction BP and try to create a new BP, but such a thing is not happening.

Can someone help me in this?

Regards
Priyanka :?:

PostPosted: Tue Oct 10, 2006 7:21 am
by Alen3085
In my opinion this functionality in BDT is made for adding additional data to the database if a certain field is changed, in your case the function module just gets triggered after you change the value in field grouping

regards
Meex