cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:structures

Former Member
0 Kudos

Hello All,

            What is the use of different structures(create,key and attribute) in bol model? and when to use which type of attribute? explain me with example.

Thanks & Regards,

ramesh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ramesh,

                

                When we for the first time try to create a GeniL Business Object , we'll try to create all the three structures namely Key, Attribute and Create structure, the significance of these three structures are.

( in simple terms )

Key Structure : This structure store the Key of an Object.

Attribute Structure : this structure carries all the properties of the Object.

Create Structure : This structure contains the data required to create an Object (for example all the required fields )

Regards

Former Member
0 Kudos

Hi Rohan,

               In genil_bol_browser while creating a new root object  we pass create structure and test . like that From where do we pass key structure ?Explain  with example if possible.

Thanks & Regards,

Ramesh


Former Member
0 Kudos

Hi Ramesh,

          well, Key structure will not be passed, what we have in the key structure is the GUID of that particular object, so once you create a set ( Create Object) or transaction , an alphanumeric key value will be generated, for that transaction , which is called the GUID which will identify that particular transaction.

so conclusion is that Key Structure value will not be passed, but will get generated automatically for every new entry in that node (root) you actually create.

Hope you understood.

regards

Former Member
0 Kudos

Hello Rohan,

                   Any way we are mentioning that value in attribute structure then what is the need of having separate key structure?

Thanks & Regards,

Ramesh

Former Member
0 Kudos

well that's because the GUID we get generated referring to the Key Structure, and attribute structure will just have that field called GUID because,

when we create a instance of that object using the attribute structure. that particular instance should be recognized for future transactions so, that is done through the GUID .

so key structure , where we will generate the GUID,

copy of that GUID generated for respective instance will also present in the Attribute structure for further use.

Regards

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi Ramesh,

Each structure type has its on significance.

Create Structure : is relevant only for root objects and the attributes in this structure are the attributes you need to pass( with values) to create an Entity of this Object.

Examples: BTOrder - With out giving PROCESS_TYPE ( Transaction Type ) you will not be able to                 create a Transaction

                BuilHeader With out giving BP_CATEGORY ( Person / Org/Group) you will not be able to                 create a BP

Key Structure : is having the attributes which form the Key of the Record / Entity you are creating.

Examples: BTOrder, BuilHeader - GUID

Attribute Structure : is list of all the attributes of that particular Object with out differentiating any Key / Create Attributes. This is applicable for all the Object Types. In case of Query and DQuery Objects this turns out to be the Search Criteria which is used to query.

Regards

Vinod

Former Member
0 Kudos

Hello Vinod,

                   If we include all the attributes in attribute structure then what is the need of create and key structures?

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi Ramesh,

As I mentioned in my previous post to Create Structure attributes are the attributes you need to pass as a bare minimum to create an entity of that kind and Key Structure Attributes are to differentiate one record / entity from the other... basically key like key fields in you db table ... there we have a check box saying its a key.

Regards

Vinod.

Former Member
0 Kudos

Hello Vinod,

                  In genil_bol_browser while creating a new root object we pass create structure and test . like that From where do we pass key structure ?

Thanks&Regards,

Ramesh

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi Ramesh,

When ever we create a root entities ( in WEB UI ) we use these structures. I would suggest you to go trough the BOL Programming Guide at http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0ddd4e6-32f9-2c10-9d88-d993c4b00...

to understand it better

Regards

Vinod