Reusable Parts as Instance List Relationship Handlers
Reusable Parts as Instance List Relationship Handlers
Instance list relationship handlers can now be created as reusable parts.
The code for the reusable part version is simpler, and similar to the code used by filters to write to the instance list.
For example, this is the code used to write the sections for an organization into the instance list, in the shipped demo:
WHEN VALUE_IS('= DEM_ORG')
* Expand Sections in a Department/Organization
#DEPTMENT := #AKEY1
SELECT FIELDS(*ALL) FROM_FILE(SECTAB) WITH_KEY(#DEPTMENT)
Signal uAddListItem AKey1(#DEPTMENT) AKey2(#SECTION) VisualId1(#SECDESC) VisualId2(#SECTION) AColumn1( #SECADDR1) AColumn2(#SECADDR2) AColumn3(#SECADDR3) AColumn4(#SECPHBUS) NColumn1(#SECPCODE) BusinessObjectType(#TargetType)
ENDSELECT
See Sample Relationship Reusable Part.
The VLF looks for a component for the relationship handler (rather than a function) if the following property is checked:
Business object properties --> Instance List tab --> Relationship properties --> Use a Reusable part.