|
Transaction IB01, Additional pushbutton “Search Catalog”
Product catalog is displayed
Materials are inserted with a mouse click in product catalog. Several materials can be clicked one after the other, or a whole list can be inserted with one click. It is possible to fill columns that are currently not displayed.
In order to insert more rows than are currently shown on the screen, the InputScript needs to press F5 from time to time (example in preparation).
GuiXT Script saplcsdi.e2150.txt:
Pushbutton (toolbar) “@13@Search Catalog” “Process=searchcatalog.txt”
InputScript searchcatalog.txt:
// Cursor in table row? View “product_catalog.html”
// Example of an asp file which receives the search term as parameter // Save line number Return
if V[_tabrow=0]
Set V[s_component] “*”
else
Set V[s_component] “&cell[Table,Component,&V[_tabrow]]”
endif
//View “https://ics.one.com/anonymous/ics/products.asp?term=&V[s_component]“
Set V[IB01_tabrow] “&V[_tabrow]“
InputScript catalogfeedback.txt:
Parameter comp1 // Cursor in table line? if U[comp1] if U[comp2] if U[comp3] Return
Parameter quan1 1
Parameter comp2
Parameter quan2 1
Parameter comp3
Parameter quan3 1
if not V[_tabrow=0]
Set V[IB01__tabrow] “&V[_tabrow]“
endif
Set cell[Table,Component,&[IB01__tabrow]] “&U[comp1]“
Set cell[Table,Quantity,&[IB01__tabrow]] “&U[quan1]“
Set V[IB01__tabrow] &[IB01__tabrow] + 1
endif
Set cell[Table,Component,&[IB01__tabrow]] “&U[comp2]“
Set cell[Table,Quantity,&[IB01__tabrow]] “&U[quan2]“
Set V[IB01__tabrow] &[IB01__tabrow] + 1
endif
Set cell[Table,Component,&[IB01__tabrow]] “&U[comp3]“
Set cell[Table,Quantity,&[IB01__tabrow]] “&U[quan3]“
Set V[IB01__tabrow] &[IB01__tabrow] + 1
endif
Product catalog with SAP-URLs:
<html>
<head> <body>
<p><font face=”Arial” size=”3″><b>Product catalog</b></font></p> </body>
</html>
<meta http-equiv=”Content-Language” content=”de”>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<meta name=”GENERATOR” content=”Microsoft FrontPage 4.0″>
<meta name=”ProgId” content=”FrontPage.Editor.Document”>
<title>Product catalog</title>
</head>
<p> </p>
<ul> <li><font face=”Arial” size=”3″><a href=”SAP://U[comp1]:M-01;OK:Process=CatalogFeedback.txt”>M-01</a></font></li> <li><font face=”Arial” size=”3″><a href=”SAP://U[comp1]:M-02;OK:Process=CatalogFeedback.txt”>M-02</a></font></li> <li><font face=”Arial” size=”3″><a href=”SAP://U[comp1]:M-03;OK:Process=CatalogFeedback.txt”>M-03</a></font></li> <li><font face=”Arial” size=”3″><a href=”SAP://U[comp1]:M-01;U[quan1]:4;U[comp2]:M-02;U[quan2]:7;
U[comp3]:M-03;U[quan3]:5;OK:Process=CatalogFeedback.txt”>All
three with various quantities</a></font></li>
</ul>