- Purchase Orders layout with content from Order Base table
- Order Releases/Bookings layout with content from Order Release table. This content should be detail (child level) for Purchase Order content.
- Shipment layout with contect from Buy Shipments table. This content should be detail (child) level content associated to order release selected.
Configuration and Administration > User Configuration > Workbench Designer New
On the left hand side, select 'Create Layout' action. Enter below details:
- Component Type: Table
- Object Type: Order Base
- Tab Name: Purchase Orders
- Screen Set: OB_ORDER_BASE
- Check 'Default first row selection'
Now let's add a new layout to show order releases associated to PO.
For this, let's write an SQL that takes PO number as input and fetches Order Release GID:
Saved Query: TEMP_ORDER_REL
select order_release_gid from order_release where order_base_gid = '?'
On the right panel click 'Edit Layout', and on the top right corner of this layout, click button 'Split Horizontally'.
This will create a new empty layout on the right side of existing 'Purchase Orders' layout.
On this new blank layout, go to right top corner and click 'Add content' button and enter below details:
- Component Type: Table
- Object Type: Order Release
- Tab Name: Bookings
- Screen Set: ORDER_RELEASE
- Detail Table: Check this option
- Associated Tables: Purchase Order Saved Search: TEMP_ORDER_REL
- Note: Using this 'Associated Table' option - link is being establshed from Parent PO level data to child order release level data record.
select shipment_gidfrom shipmentwhere shipment_gid in(select ssej.shipment_gidfrom S_SHIP_UNIT_LINE ssulej,S_SHIP_UNIT ssuej,S_EQUIPMENT_S_SHIP_UNIT_JOIN sessuj,ORDER_RELEASE orej,SHIPMENT_S_EQUIPMENT_JOIN ssej,shipment shpwhere ssulej.order_release_gid=orej.order_release_gidand ssuej.s_ship_unit_gid=ssulej.s_ship_unit_gidand sessuj.s_ship_unit_gid=ssuej.s_ship_unit_gidand orej.order_release_gid='?'and ssej.s_equipment_gid=sessuj.s_equipment_gid)
Now edit 'Bookings' Layout and from top right corner click 'Split Vertically'
This will add blank layout on bottom of the 'Bookings' Layout.
On this blank layout. go to top right corner and click 'Add Content' and enter below details:
- Component Type: Table
- Object Type: Buy Shipment
- Tab Name: Shipments
- Screen Set: BUY_SHIPMENT
- Detail Table: Check this option
- Associated Tables:
- Purchase Order Saved Search: Leave this as blank
- Bookings Saved Search: TEMP_SHIPMENT
- Note: Using this 'Associated Table' option - link is being establshed from Parent Order Release level data to child shipment level data record for this scenario
No comments:
Post a Comment