Sei sulla pagina 1di 13

Contents

Introduction ................................................................................................................................................... 2
Add fields to VAS Communication Structure ............................................................................................. 2
Add fields to VAS field catalog ................................................................................................................... 2
Create custom VAS table ........................................................................................................................... 4
Create / add the custom VAS table to Access Sequence ........................................................................... 6
Create maintenance Group ....................................................................................................................... 7
Maintain Mapping Table for Field Catalog ................................................................................................ 8
Write ABAP Coding to populate VAS Communication Structure .............................................................. 9
Create VAS master data ...........................................................................................................................10
Sales Order creation ................................................................................................................................11
Relates SAP notes ....................................................................................................................................12
Introduction
Value Added Services (VAS) is a functionality that was delivered in SAP to handle services like packaging,
monogramming, label printing, etc. VAS functionality also uses condition technique similar to pricing
conditions, output conditions. You can create a VAS condition in the sales order and it can be
transferred to delivery as well as to purchase orders.

In order to achieve this, we need to create condition tables, access sequence, condition types and
condition records. In order to create condition tables, we can use standard SAP delivered condition
tables, or can create custom VAS tables using VAS field catalog. Since we only have limited fields
available to VAS field catalog, SAP has provide a method to add new fields and use them in VAS
functionality.

Let’s look at an example of adding “Material Group 1” (MVKE-MVGR1) to VAS field catalog and use it in
the OTC sales cycle.

Add fields to VAS Communication Structure


First we need to add these fields to the relevant communication structure.

• Header data - FSH_HCOM


• Item data - FSH_ICOM

Since “Material Group 1” is an item value, we need to add it to the FSH_ICOM structure. Please get a
developer help to add this field to the VAS communication structure as shown below.

Add fields to VAS field catalog


Now you can add that field to the VAS field catalog using standard SAP IMG path.
IMG Path:

Since it is a item field, we need to add it to the item tab.

Make sure to mark the “Implementation Type” as BLANK – BAdi Implimentation


Create custom VAS table
IMG Path:
Once you add this field to VAS field catalog, you can use it to create a custom table. Please make sure to
use a table name starting with “CUS” for these custom tables.

Once you have created this table, make sure to “Activate” it as well.
Create / add the custom VAS table to Access Sequence
If you already have an access sequence, go to below IMG path and add it to the same in the relevant
step.

IMG Path:
Once you add the new table, make sure to select it and double click on the Fields node. You should be
able to see a screen similar to below.

Create maintenance Group


IMG Path:

Select the maintenance group “VAS_SD” and add your VAS condition table as shown below in the node
“Condition Maintenance Group Details”
Maintain Mapping Table for Field Catalog
IMG Path:
Add your custom field here.

Write ABAP Coding to populate VAS Communication Structure


Once above configuration setup is completed, you need to write ABAP coding to populate these fields to
the VAS communication structure.

SAP has given below 3 BAdi’s to populate custom fields to VAS communication structures.

• Sales order: BADI_VAS_FIELD_MAP_SD.


• Deliveries: BADI_VAS_FIELD_MAP_DELV.
• Purchase order / Stock Transport order: BADI_VAS_FIELD_MAP_MM.

Below is a sample ABAP coding that was written to pass the material group 1 (MVGR1) from sales order
line item table to FSH_ICOM communication structure.

Once this is ready, you can test your custom fields in the sales order creation.

Create VAS master data


Go to transaction - FSH_VAS_SD

Easy Access Menu Path:

Now you can add a VAS condition master record using Material Group 1.
I have added below VAS service types to this condition records. As you can see above, I am determining
VAS condition records based on sales area / customer and material group 1.

Sales Order creation


In the sales order creation, now VAS condition automatically determined.

VAS Determination Analysis shows that it was determined based on my new access level – Sales area /
Customer / Material Group 1.
In the delivery creation also, you can see same VAS get copied.

You can view it using menu option shown below;

Relates SAP notes


Please below SAP note for more information on same!

• 2039186 - BAdIs to handle user specific fields during Value Added Service determination
Author: Anupa Wijesinghe

E-Mail: anupaw@gmail.com / anupaw@learnsaptips.com

Website: www.learnsaptips.com

View my profile in LinkedIn

Follow me on Twitter

Disclaimer

This article is done based on my research and readings, unless otherwise stated. The views expressed
are my own and not of anyone else.
Author accepts no liability for the content of the articles in this website or for the consequences of any
actions taken on the basis of the information provided. Using this information is at the users own
discretion and responsibility.

Potrebbero piacerti anche