1. Create BOPF Business Object Z_TRQ<XX> (<XX> is participant number).
2. Generate the Constant Interface ZXXX_IF_TRQ_C 3. Create Persistent Structure ZS<XX>ROOT_D with following fields:
4. Create Transient Structure ZS<XX>ROOT_DT. Assign a dummy field to it as
structure should have at least one field. 5. Create Determination INIT_TRQ<XX>. This determination should be triggered at the time of creation as soon as instance of TRQ root is created. It should assign value $1 to TRQ_ID. 6. Create Determination DET_TRQID<XX>. This determination should be triggered at the time of saving during saving only. Pick up the next number of TRQ ID using function module 'SWE_GET_NEXT_NUMBER' and assign it to TRQ_ID. 7. Create Validation VALIDATE_XX. This consistency validation should throw error message Invalid Validity Date if VALID_TILL date is less than system current date. 8. Create Action CONFIRM_XX. This action should set status of status flag ZCONFIRM to X. If use try to confirm a already order then error message should be displayed Order already confirmed. 9. Create Query QUERY_BY_ATTRIBUTE. IT should be a node attribute query.
Exercise 2 - Service Manager Retrieve by Association/Convert Alternative Key
1. Create a report program ZDEMO1_XX and have TRQ_ID as selection parameter field. 2. Using service manager convert TRQ ID to Alternative Key. 3. Using alternative use retrieve by association to retrieve Item of BO Z_TRQ<XX>.
Exercise3 Service Manager Query
1. Create report program ZDEMO2_XX and have TRQ_TYPE as selection screen parameter. 2. Use service manager to find list of all TRQ_IDs having same TRQ_TYPE. Exercise4 Service Manager Action 1. Create report program ZDEMO3_XX and have TRQ_ID as selection screen parameter. 2. Use query method of service manager to find key of TRQ_ID. 3. Use do_action method of service manager to call action CONFIRM of BO Z_TRQ_XX. 4. Get instance of transaction manager and save confirm action. 5. Go to /BOBF/TEST_UI and check if order is confirmed or not.