Using a web based product catalog in BOM creation

Sap Guixt catalog1 Using a web based product catalog in BOM creation

Transaction IB01, Additional pushbutton “Search Catalog”

 

Sap Guixt catalog2 Using a web based product catalog in BOM creation

Product catalog is displayed

 

 

Sap Guixt catalog3 Using a web based product catalog in BOM creation

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?
if V[_tabrow=0]
Set V[s_component] “*”
else
Set V[s_component] “&cell[Table,Component,&V[_tabrow]]”
endif

View “product_catalog.html”

// Example of an asp file which receives the search term as parameter
//View “https://ics.one.com/anonymous/ics/products.asp?term=&V[s_component]“

// Save line number
Set V[IB01_tabrow] “&V[_tabrow]“

Return

 

InputScript catalogfeedback.txt:

Parameter comp1 
Parameter quan1 1 
Parameter comp2
Parameter quan2 1 
Parameter comp3
Parameter quan3 1 

// Cursor in table line?
if not V[_tabrow=0] 
Set V[IB01__tabrow] “&V[_tabrow]“
endif

if U[comp1]
Set cell[Table,Component,&[IB01__tabrow]] “&U[comp1]“
Set cell[Table,Quantity,&[IB01__tabrow]] “&U[quan1]“
Set V[IB01__tabrow] &[IB01__tabrow] + 1
endif

if U[comp2]
Set cell[Table,Component,&[IB01__tabrow]] “&U[comp2]“
Set cell[Table,Quantity,&[IB01__tabrow]] “&U[quan2]“
Set V[IB01__tabrow] &[IB01__tabrow] + 1
endif

if U[comp3]
Set cell[Table,Component,&[IB01__tabrow]] “&U[comp3]“
Set cell[Table,Quantity,&[IB01__tabrow]] “&U[quan3]“
Set V[IB01__tabrow] &[IB01__tabrow] + 1
endif

Return

 

Product catalog with SAP-URLs:

 

<html>

<head>
<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>

<body>

<p><font face=”Arial” size=”3″><b>Product catalog</b></font></p>
<p>&nbsp;</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>

</body>

</html>

Using a web based product catalog in BOM creation