Liquid UI - WS Reference Library

Scenario 2 - Viewing Sales Order Items


Purpose

A simplified view of items of a Sales Order.

To view the list of items of a Sales Order in SAP, you will need to perform the steps, as shown in the process diagram:

SAP Process

 

User Interface

Sales Order items - SAP

 

Apart from the list of items of an order, the Sales Order screen display's all the details of an order.

Using Liquid UI WS commands, you can design a simplified Sales Order screen that shows "only the list of items in an order".

 

To view the sales order items, after simplifying the process, you have to perform few steps, as shown in the process diagram:

Liquid UI Process

 

Sales Order Items - Liquid UI 


 

The screen shows only the sales order items, instead of the entire Sales Order data.

Liquid UI Script

title ("View Sales Order Items");
del("P[Sales]");
del("P[Item overview]");
del("P[Ordering party]");
del("P[Orders]");
pos("F[Order]", [5,13]);
pushbutton([5,90], "@2S@View Items",{ "process":Get_Table_Data}); del("G[Search Criteria]");
row=7; 
if(row_max>0){
  table([8,2],[10,95],{"name":"va02_all_items","title":"Sales Order Items","rows":row_max,"rowselection":true,"columnselection":true}); 
  column('Item',{"table":"[Sales Order Items]","size":5,"name":"va02_item","position":1}); column('Material',{"table":"[Sales Order Items]","size":8,"name":"va02_material","position":2});
  column('Material Desc.',{"table":"[Sales Order Items]","size":5,"name":"z_testcol","position":9, "searchhelp":true,
  "searchhelp":"S_MAT1", "shname":"MATNR","shname1":"VBAB_MATNR", "shdest1":"V[z_testcol_desc]" });
  column('Order Quantity',{"table":"[Sales Order Items]","size":20,"name":"va02_quantity","position":3});
  column('SU',{"table":"[Sales Order Items]","size":5,"name":"va02_su","position":4});
  column('Details',{"table":"[Sales Order Items]","size":5,"name":"va02_description","position":5});
  column('Urgent',{"table":"[Sales Order Items]","size":7,"name":"va02_urgt","position":7, "checkbox":true, "default":"X"});
  column('Tax',{"table":"[Sales Order Items]","size":5,"name":"va02_tax","position":6,"checkbox":true});
  column('Plant',{"table":"[Sales Order Items]","size":5,"name":"va02_plnt","position":8});
  column('Discount',{"table":"[Sales Order Items]","size":5,"name":"va02_disc","position":10,"checkbox":true,"readonly":true});
} 
for(idx=1,i=0;idx<row_max;idx++,i++){
  va02_all_items.va02_item[i]=z_va02_item[i]; 
  va02_all_items.va02_material[i]=z_va02_material[i]; 
  va02_all_items.va02_quantity[i]=z_va02_quantity[i]; 
  va02_all_items.va02_su[i]=z_va02_su[i]; 
  va02_all_items.va02_description[i]=z_va02_description[i];   
  va02_all_items.va02_plnt[i]=z_va02_plant[i]; 
  va02_all_items.va02_tax[i]=z_va02_s[i];
}

Attached files: sapmv54a.e0102.sjs.sjs