Code for Dynamically Fetching Item Attribute Information
Have one Requirement of Fetching Item Attribute Information from MTL_SYSTEM_ITEMS_B and concatenating them .
- Lookup WIll have lookup code as Attribute1,Attribute2,Attribute3 ..Attribute15
- DFF Attribute Information is stored in MTL_SYSTEM_ITEMS_B.
- Not all the Attributes will be enabled in Lookup (Enabled_Flag = N) and have values.
- Only Not Null Attribute Columns should be concatenated.
Here is the Sample
Attribute3 -> Serial Number :'Y'
Attribute5 -> Released Flag :'N'
End Result should Serial Number : 'Y'| Released Flag :'N'
With Dynamic SQL (Execute Immediate its easy).But its Strict 'NO' from client standards.
Ref Cursor will help this issue?