- Start T-code: BOBF (BOPF: Business Object Configuration). Select your Business Object.
- Create Secondary
Indexes for the ROOT database table.
- Double click the
table. Change to edit mode
and click Indexes and create Indexes. Provide the Index name
Eg: A1.
- Provide with the
Index fields. Save and activate. Also Activate the Table.
- Type DEBUG in the T-code. Confirm the POPUP box as Yes. Click on Change mode button. Since for
creating Alternate keys the option is disabled.
- Provide with the
details as below and Save:
- I have created a
structure for TRQ ID and assigned to Table type.
- Double click combined
table type in ROOT.
- Select Secondary Key Tab. Select Key component as TRQ_ID from F4 help and Key Access as Non-Unique Sorted. Save and activate.
- Regenerate the Constant Interface from Extras.
- Testing the Alternative
Keys:
Open T-code BOBT (Business Object Builder – Test). Provide with your Business Object name. Here we can pass the Alternative Key. Eg: 1001. You get the corresponding record.
Tutorials for creating business objects in BOPF Framework and SAP HANA applications using UI5
Wednesday, 23 April 2014
Creating Alternative Keys
Labels:
alternative_keys,
bopf
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment