08-20-2007 10:13 AM
Can anyone help me??? Problem still not confirmed??
Hi SDN's
I need to add a custom field to the Asset Master --> General Data tab.
I found the enhancement AIST0002, Can anyone confirm is it the right one or not?
And please let me know the steps to be followed for this?
And also any customistaion setting to be done, plz tell me.
It would be nice if you mention in sequence of steps
<b><u>Points for sure for correct answers</u></b>
Regards
Pratyusha
08-20-2007 12:39 PM
Hi Pratyusha,
Enhancement AIST0002 is Correct. I have given the detailed document for activating this exit.
You can use this enhancement to enter fields you define yourself in the
asset master record. Follow these steps:
1. Create structure CI_ANLU in the ABAP Dictionary, and define the
fields that you want to have in the asset master record in addition
to the standard fields. The master record data of these fields will
later be stored in the separate table ANLU.
2. Create include ZXAISU03 in function group XAIS. Enter program code
there in order to transfer the asset master data to global
variables. The asset master data referred to here is the data that
is transferred using function module EXIT_SAPLAIST_002, and which
you need later for checking the field contents of the fields that
you have defined. At the least, you should transfer the values
transferred in parameter I_ANLU to a global structure.
3. In function group XAIS, define one or more subscreens that you want
to integrate into the maintenance interface of the asset master
record. On these subscreens, you can either
a) Make the fields available to the global ANLU structure that you
defined in the previous step
b) Make any other fields available, from which you then derive
values for the ANLU fields.
4. Create include ZXAISU04 in function group XAIS. Enter code there in
order to assign the ANLU structure that was returned to asset master
data maintenance by parameter E_ANLU of function module
EXIT_SAPLAIST_003.
5. Create a customer enhancement project, which is related to SAP
enhancement AIST0002, and activate this project (transaction CMOD).
6. Define master data tab layouts that use the subscreens (group boxes)
you have defined. Assign asset classes to these tab layouts.
Once you define your own user-defined fields, you can include them in
Asset Accounting reporting. You can use your user-defined fields when
defining sort versions. They are also available when you use dynamic
selection for selecting assets. To be able to use your user-defined fields in this way, you only have to create your own selection view for
the logical database ADA and assign the user-defined fields to a
functional group (for example, functional group 10 for general data).
If you want your user-defined fields to be displayed in reports, in
addition to being used for sorting and selection, you have to create
your own report or your own query. The system makes the user-defined
fields available at the time of GET ANLAV via logical database ADA in
the ANLAV structure. Therefore you do not need to program your own data
retrieval program.
Limitations
o It is not possible to enter default values in the asset class for
user-defined fields.
o User-defined fields are not integrated in the screen layout control
of Asset Accounting. However, you can program your own field control
that is dependent on the asset class and/or company code (in the
EXIT_SAPLAIST_002 function module). This field control can also
distinguish between main number and subnumber master records.
When you create
- An asset using a reference
- A subnumber
- A target asset for an intercompany transfer
then the system transfers the user-defined fields from the
- Reference asset
- Main asset number
- Sending asset
In function module EXIT_SAPLAIST_002, you can completely or
partially delete or change the transferred values.
o User-defined fields cannot be substituted or validated.
Hope this will help u. If u have any queries ping me.
With Wishes
Jai
08-20-2007 12:39 PM
Hi Pratyusha,
Enhancement AIST0002 is Correct. I have given the detailed document for activating this exit.
You can use this enhancement to enter fields you define yourself in the
asset master record. Follow these steps:
1. Create structure CI_ANLU in the ABAP Dictionary, and define the
fields that you want to have in the asset master record in addition
to the standard fields. The master record data of these fields will
later be stored in the separate table ANLU.
2. Create include ZXAISU03 in function group XAIS. Enter program code
there in order to transfer the asset master data to global
variables. The asset master data referred to here is the data that
is transferred using function module EXIT_SAPLAIST_002, and which
you need later for checking the field contents of the fields that
you have defined. At the least, you should transfer the values
transferred in parameter I_ANLU to a global structure.
3. In function group XAIS, define one or more subscreens that you want
to integrate into the maintenance interface of the asset master
record. On these subscreens, you can either
a) Make the fields available to the global ANLU structure that you
defined in the previous step
b) Make any other fields available, from which you then derive
values for the ANLU fields.
4. Create include ZXAISU04 in function group XAIS. Enter code there in
order to assign the ANLU structure that was returned to asset master
data maintenance by parameter E_ANLU of function module
EXIT_SAPLAIST_003.
5. Create a customer enhancement project, which is related to SAP
enhancement AIST0002, and activate this project (transaction CMOD).
6. Define master data tab layouts that use the subscreens (group boxes)
you have defined. Assign asset classes to these tab layouts.
Once you define your own user-defined fields, you can include them in
Asset Accounting reporting. You can use your user-defined fields when
defining sort versions. They are also available when you use dynamic
selection for selecting assets. To be able to use your user-defined fields in this way, you only have to create your own selection view for
the logical database ADA and assign the user-defined fields to a
functional group (for example, functional group 10 for general data).
If you want your user-defined fields to be displayed in reports, in
addition to being used for sorting and selection, you have to create
your own report or your own query. The system makes the user-defined
fields available at the time of GET ANLAV via logical database ADA in
the ANLAV structure. Therefore you do not need to program your own data
retrieval program.
Limitations
o It is not possible to enter default values in the asset class for
user-defined fields.
o User-defined fields are not integrated in the screen layout control
of Asset Accounting. However, you can program your own field control
that is dependent on the asset class and/or company code (in the
EXIT_SAPLAIST_002 function module). This field control can also
distinguish between main number and subnumber master records.
When you create
- An asset using a reference
- A subnumber
- A target asset for an intercompany transfer
then the system transfers the user-defined fields from the
- Reference asset
- Main asset number
- Sending asset
In function module EXIT_SAPLAIST_002, you can completely or
partially delete or change the transferred values.
o User-defined fields cannot be substituted or validated.
Hope this will help u. If u have any queries ping me.
With Wishes
Jai
08-11-2016 5:43 PM
is it possible to have a drop down list of values for the custom fields?
08-21-2007 2:17 AM
It is a well documented Enhancement.
Go to SMOD transaction and Check the Documentation.
Regards,
Ravi
08-21-2007 2:19 AM
Thanks Ravi,
but just wanted to <b>confirm</b> if this really satisfies my requirement or not.
Regards
Pratyusha