SQVI Query using "Alias"
Can we use a table again in SQVI Transaction code?
What is “Alias” in SQVI Transaction Code?
One of my colleague came to me and said I don't know if we can use a table multiple times in SQVI query. I thought there should be something which can help us. We searched and find “Alias” functionality in SQVI. Let's create a SQVI Query using “Alias”.
Objective : Create a query to display Purchase Requisition Number with service details
Step 1: Execute transaction code SQVI and Enter.
Step 4: Now It will open the Screen where you can insert tables and create join between them. Purchase requisition data exist in EBAN table and Service Data Exists in ESLL table.
As there are more other tables as well which are linked with these table to fetch all data which is built by purchase requisition transactions but I will take only basic details.
System by default purpose the link based on foreign key relationship
Now the business problem is, Service details are stored with Sub Package of ESLL-PACKNO which is equal to EBAN-PACKNO.
Means to fetch Service details we have to pass EBAN-PACKNO to ESLL-PACKNO After fetching record we have to pass ESLL-SUB_PACKNO to ESLL-PACKNO again. So, we have to refer ESLL two times.
In SQVI we can't insert one table multiple time so here “Alias” functionality help us.
Step 6: Click Alias > Click Create Button, enter table name and it's Alias.
Step 7: Enter continue and Insert Alias table which is the replica of table ESLL. It is not necessary that join proposed by SAP will fulfil your expectation to generate required output. So delete purposed join and drag and drop field to create new join.
Step 8: Click Back and Create “Select Screen” and Select Output “List Fields”.
Step 11: After generating program, know your program name by
Menu > QuickView > Additional functions > Display Report Name


















Comments
Post a Comment