on 07-17-2014 3:13 PM
Hello Friends,
To display the field on the View, we can create the field via 3 ways:
1) By creating the model attribute
2) By creating the model node using the GENIL object and using its attributes in view
3) Creating the field in Database structure using AET
But, i am not aware that in exactly what kind of business scenarios we use the above 3 methods to create the field.
Could you help me out to clarify the same.
Friends,
Please help me out on this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dev,
1). By creating the model attribute: we will use this option in case of the field is avaibla in stanadrd sap system. It might be in another under child context nodes and we will use BOL relations to access the attribute.
2). By creating the model node using the GENIL object and using its attributes in view: We will use this option incase of there is no standard provision to use. Means you want to create any custom assignment block with custom attributes then you can go for this option. More over we can use AET to create custom genil object. We have an option Create Table in AET.
3).Creating the field in Database structure using AET: We will use this option incase of there is no attribute in database relevant to your requirement then we will go for AET enhancement.
Hope this might give you little clarification..
Best Regards,
Dharmakasi.
Hi Dev,
Model node creation is like if you want to use your own custom database table in web ui as a assignment block. Here you will be creating your custom relationship with standard entities.
Model attribute is like just adding a single attribute in already existed context node. Here if you want to add only one attribute which is available in standard then you can add single attribute alone.
Example:
I am in Items assignment block which is corresponds to BTAdmini context node.
I want to access one field from BTCustomerI and add this field into items assignment block.
In this case i will code in BTAdmini context node class. You an create your own get method with attribute name and you need to code like
current->get_related_entity( iv_relation_name = 'BTItemCustExt' ).
Best Regards,
Dharmakasi.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
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.