Bopf (Document)
Bopf (Document)
Architecture:
TCode -> BOBF
How to create business object in bopf:
Tcode -> bob
Goto se11->create structure(based on any table . like(vbap) ->
activated -> goto bob -> click custom business object ->pop up
will appear-> click continue-> give name in prefix value and
give name for name and short des->continue->constant interface
name automatically will appear->give persistent structure name
(already u created one ) or ( here also click on persistesnt name
it will navigate structure name) ->continue-> root node and data
base type name will appear->continue->completed.
Extensible :
An indicator to define whether a node can be extended.
Transient :
An indicator to define if a node is transient.
Use:
This indicator can be used to define if a node is stored in the
database or some other persistency.
Types of nodes :
1) Standard node
2) Delegated Node
3) Businees object representation nodes
Types of Node elements :
1) Actions
2) Determinations
3) Validations -------a) Action validation , b) Consistency
validation
4) Association
5) Queries
6) Alternative keys
Actions :
Explicitly we have to call the actions.
Determinations:
Whenever we made changes in node instance ,it will trigger
automatically in determination.(Implicitly it will trigger based
on node changes.)
Types :
a) Transient determination
b) Prescient determination
Difference between determination and validation
Determination -> We can do curd operation(create , modify
, delete and read) and validation also.
Validation --- We cant do curd operation but we can
validate the fields based on 2 ways.
a) Action Validation -- It will trigger based on action
name.
b) Consistency validation -- After determination it will
trigger (this validation).
Association:
It is relationship between two nodes.
Uni-directional ------- Root to item
By-directional--------- root to item and item to root.
Note : We can insert the data two data base table using of
association
Queries :
It is used to retrieve the data based on custom queries or
standard queries.
a) Node attribute query
b) Custom Query
Difference between retrieve and query:
Retrieve -- Fetching data from buffer.
Query-----Fetching data from data base table
Query Category:
a) Modeled Query -- Node Attribute Queries
Node attribute queries are modeled queries whose logic is defined within the
BOPF runtime. These simple queries can be used whenever you simply need to
search for BO nodes by their attributes (e.g. ID = ‘12345’).
b) Implemented Query
Writing custom logic only implemented query.
If this parameter is empty, all node instances (that are assigned to the query) are
affected by the query.
IV_FILL_DATA---
Indicates that the node data is to be read. If true, ET_DATA holds the read node data -
including all attributes. If false, only the attribute key is returned in table ET_DATA .