on 10-25-2006 8:29 AM
Hi,
Have anyone of you used this BAdI? In the performance assistant it looks like you can use this BAdI for setting default values for standard SAP fields when creating new object. However when reading the programming documentation it looks like you only should use this BAdI for customer defined fields. Does anyone of you know????
Thanks, Camilla
Hi Camilla,
Yes, this BAdI can be used for setting default values for both SAP standard fields and custom fields. In case you want to set custom fields, 2 additional steps as mentioned in the Performance Assistant are to be performed, namely:-
1) Enhance Database Tables
2) Make Customer-Specific Interface Changes
You can see the example implementation in the class CL_EXM_IM_DPR_ATTRIBUTES. Specifically check out the method SET_DEFAULTS_UPON_CREATION.
Best Regards,
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Camilla,
This BAdI can very well be used for custom fields also.
If you look at the documentation provided for the IMG activity:-
Collaboration Projects->Global Enhancements to Project Elements->Business Add-Ins (BAdIs)->BAdI: Check/Change Fields in cProjects
Link - Enhance Database Tables
Here it is explained how fields can be added to the tables of the individual cProjects objects using customer includes. Once this is done the customer field becomes available in the BAdI method and hence can be set to a default value during creation.
Best Regards,
Saurabh
User | Count |
---|---|
13 | |
6 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.