Introduction

Electronic forms as the word suggests are the paperless forms that can be accessed online and are further integrated into core applications for end-to-end business processes. In B2B world, electronic forms are used as ordering forms in procurement applications like SAP SRM. There are two methods of E-forms deployment in SRM:

  • Web service: Called by user (same as catalog web service) while creating shopping carts. User then completes the E-form and transfers the information to the shopping cart.

Eform_WebService.jpg

  • Configurable Catalog Items: These E-forms can be attached to a catalog item. User need to access the embedded link within catalog item to complete the form. The completed form information is then sent to catalog item and further transferred to SRM shopping cart.

eForm_CatalogURL.jpg

This whitepaper will focus on Web service type of deployment of electronics forms in SRM. The supplementary information provided by user via E-forms can be added to shopping cart texts areas like “vendor text” or as file attachments. The necessary infrastructure is available in SRM as enhancement (BADI “BBP_BUSINESSCARDS”). Following is an Example of the “vendor text” populated from business cards E-form.

TIP: E-forms are popularly known in SRM world as Special Requests, as they cater to special procurement needs.

Business Need for E-forms

Catalog solutions provided with SRM e.g. SRM-MDM provide opportunity to store standard catalog content e.g. item description, product images, price info etc. Though such information is good enough for normal procurement items there will be specific details required to be covered for special procurement items.

E-forms can be used for such special procurement items e.g. procurement of business cards, procurement of printer accessories, procurement of work wear. Three sample business scenarios and respective possible customer requirements could be as follows:

Scenario 1: Business Card E-form

With this E-form users can provide information that needs to be printed on to the business card. Hence, requirements typically would be as follows:

User should be able to buy business cards in fixed quantities of 50,100,250,500 and 1000.

  • The E-form should allow the user to select  style\layout of the business card
  • E-form for Business Card should have fields for Name, Job Title, Company name, postal address and communication details.
  • User should be able to display the preview of the business card in selected style
  • Details from business card E-form should be sent as part of the Purchase order

Scenario 2: Procurement of company work wear\uniforms

With this E-form users can provide information like type of work wear they are ordering and the required sizes. Hence, requirements typically would be as follows:

The E-form should cover all work-wear items procured for example Uniforms, Shoes etc.

  • There should be provision to select gender Male\Female where relevant
  • As per selection of gender, the sizes relevant to the gender to be made available as drop down for the user to select.
  • The relevant sizing details e.g. leg length, waist size should be made available for trousers and standard sizes for the shoes.

Scenario 3: Procurement of printer consumables

With this E-form users can provide information like type of printer consumable they are ordering and the required attributes. Hence, requirements typically would be as follows:

This form should allow user to first select printer type for which consumables being ordered.

  • Depending on the printer type selected, user should be able to select consumables for that printer name.
  • Form should display further options for selected consumable if applicable. For example, if printer cartridges are selected then there should be another drop-down field to select color options.

Sample E-form: Business Cards

SAP SRM3.0 onwards, SAP provides a sample dynamic E-form “freeform.asp” (developed in ASP.net and available in SRM server as internet service “BBP_FREEFORM”) as shown in Figure below.

BBP_FREEFORM.jpgDownload and save the zip folder in your local drive. Unzip the folder and explore the content. There are two subfolders and a ASP file:

  1. MIMES: This folder contains the images used in the standard form. If you want to change images to your own company images then replace them keeping the image name same as standard one.
  2. Style: The background of web page uses CSS (Cascading style sheet), as such no need to change this file for demo purposes. We can continue using the provided style sheet.
  3. Freeform.asp: This is the Active Server Page program holding the application together. It contains the details of fields and location on the web page and also the OCI information that is required to be sent to SRM server. This file needs to be deployed on the web server like IIS7.

Figure below is the deployed sample E-from on IIS server to demonstrate the look and feel.

E-form_demo_2.png

Enable Sample E-form as Web Service in SRM

Create an E-form type web service in SRM with outbound parameters as shown below:

While defining Web service select type as “E-Form”

E-form_Setup_1.png

Web service outbound parameters to be defined as below:

E-form_Setup_2.png

Integration of Sample E-from into SAP SRM

Sample business card E-form is integrated with SAP SRM using SAP OCI mapping.

There are two major OCI mappings:

  1. Mappings to shopping cart basic data fields e.g. Item Description, quantity, price etc.
  2. Mappings of address fields and style field to shopping cart item text area.

In Sample business card OCI field “NEW_ITEM_DESCRIPTION” is hardcoded to distinguish the item added from the E-form. Also field “NEW_ITEM-MATGROUP” is hardcoded to value ‘BIZCARD’.

Mappings to shopping cart basic data fields can be seen in the following figure (Captured from View Source option while transfer of E-from item to SRM)

E-form_Setup_3.png
Within freeform.asp, details for the address fields are mapped to OCI field “NEW_ITEM-LONGTEXT_1”. This field is mapped to vendor text through BADI “BBP_BUSINESSCARDS”.

E-form_Setup_4.png
SRM BADI “BBP_BUSINESSCARDS” comes as activated in standard delivery. The sample code provided in this BADI populates the E-form data in in “Vendor Text” area of shopping cart.
 
  E-form_Setup_5.png
Once you click on add to shopping cart button on the E-form. Item gets added to the shopping cart and address and style
information gets populated in the item text area.

BBP_FREEFORM_VendorText1.jpg

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. Gaurav Gautam

    Hello Manoj,

         Nice document and useful information. Can you please tell me whether this is possible for ECS SAP SRM 7.0 Ehp2.

    Thanks

    Gaurav Gautam

    (0) 
    1. Manoj Surve Post author

      Hello Gaurav,

      Yes E-forms are possible to deploy in all deployment scenarios (ECS\Classic\Standalone) of all SRM versions starting from SRM 2.0 SP2 to the current SRM 7.0 Ehp3.

      The point to note though that the E-forms need to be developed while what SAP provides for is only the OCI framework to integrate.

      Best Regards

      Manoj Surve

      (0) 
  2. Heinz Georg Hepp

    Hello Manoj,

    very nice document and useful information.

     

    Do you have further information on how to “Configure Catalog Items with SAP SRM-MDM catalogue?

     

    Thank you in advance.

     

    Best regards

    Heinz-Georg

     

    (0) 

Leave a Reply