|
An example of Changing an existing IACProcess FlowWe are going to walk through stripping out the basket processing portion of the product catalog \ online store IAC. 1. The user browses the web to choose the products which are added to his basket. The basket need to be passed to SAP with the following details: 1.1. Basket ID: Uniquely identifies the items relevant for the order 1.2. SAP SKU #: Refers to the SAP material number uniquely identifying the item 2. Quantity required: Must match with SAP’s unit of measurements. I.E. If we talk inches on the backend then we must talk inches on the front-end. 3. The basket can be transferred to SAP as follows: 3.1. When the user clicks on “Proceed to checkout” the SQL table on the web server is copied on to SAP as table ZBASKET which has the identical fields in it. 4. Once the user clicks on “Proceed to Checkout” the A-GATE is called with transaction ZWW20, which initiates the first screen for customer logon. The parameter ~BASKET_ID should be passed to the SAP transaction in order to obtain the details of the line items in the basket. 4.1. New users are registered using BAPI_CUSTOMER_CREATEFROMDATA 4.2. They can change their passwords which uses BAPI_CUSTOMER_INITPASSWORD 5. Once the user has logged on the following occurs: 5.1. Read table ZBASKET using the BASKET_ID 5.2. If the item is a configurable item. I.E. Parent ID <> 0, then: 5.2.1. Collect all items for the configurable item. I.E. All items with the same parent ID AND the parent ID itself. 5.2.2. Call a function module to create a material BOM with the above-mentioned items. This is the item that is then displayed on the item list for the order 5.3. Populate line items in the order detail screen for display purposes only 6. Display the order detail screen: 6.1. Display shipping, relevant taxes and total. 6.2. Allow user to change Ship To address 6.3. Allow user to change Bill To address 6.4. User must enter credit card type, credit card number and expiration date 6.5. Enter the name of the customer that appears on the credit card. This is important when you are doing automatic credit card approval. 7. User clicks on order 7.1. The BAPI called BAPI_SALESORDER_CREATEFROMDAT2 is called to create the sales order. 8. The order number is returned and displayed to the customer. Notes As far as possible you need to follow the standard SAP code in order to take advantage of the configuration options mentioned on the configuration page. To call the modified transaction: http://web_dev/scripts/wgate/zww20/!?~language=en&ostore=CO&basket=1&~OkCode=ENTE Change the standard program to read the store and enable it to pick up the defaults based on this store that is passed via the web page. An example of creating a new IAC | |||||||||||||||
|