0% found this document useful (0 votes)
301 views

BAPI Filling The Configuration Structures

This document provides instructions on how to fill the configuration structures in BAPIs for sales order creation and change, noting that the configuration tables CFGS_REF, CFGS_INST, CFGS_PART_OF, and CFGS_VALUE must be populated with the complete configuration data for the item, including defining the link between order items and configurations in CFGS_REF and providing attribute values in CFGS_VALUE.

Uploaded by

Bora Gür
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
301 views

BAPI Filling The Configuration Structures

This document provides instructions on how to fill the configuration structures in BAPIs for sales order creation and change, noting that the configuration tables CFGS_REF, CFGS_INST, CFGS_PART_OF, and CFGS_VALUE must be populated with the complete configuration data for the item, including defining the link between order items and configurations in CFGS_REF and providing attribute values in CFGS_VALUE.

Uploaded by

Bora Gür
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

SAP Note No. 549563 16.05.

2003 Page 1
________________________________________________________________________

Number 549563
Version 1 from 27.08.2002
Status Released for Customer
Set on 15.10.2002

Language EN
Master language DE
Short text BAPI: Filling the configuration structures

Responsible SAP AG
Component SD-SLS-GF-VA
SD BOM, Variant processing
________________________________________________________________________

Long text

Symptom
Question: How do the configuration structures in the BAPI have to be
filled?
Additional key words
BAPI_SALESORDER_CREATEFROMDAT2 BAPI_SALESORDER_CHANGE
BAPISDORDER_GETDETAILEDLIST
Cause and preconditions

Solution
Answer:

o The link between sales order item and configuration must be


defined via field POSEX (PO_ITM_NO). ( ORDER_ITEMS_IN-PO_ITM_NO =
ORDER_CFGS_REF-POSEX )

o Configuration tables CFGS_REF, CFGS_INST, CFGS_PART_OF and


CFGS_VALUE must be filled during the creation and change that is,
the complete configuration data of the item to be changed must be
specified.

This example is based on the following model:

Pos10 Configurable main items Pos30


/ \
/ \
Pos20 Configurable subitems Pos40

Item 10 and 30 are independent of each other.

1. Structure: CFGS_REF

POSEX CONFIG_ID ROOT_ID

000010 000001 00000001

000030 000002 00000003


Page 2
- only for the configurable main items

- In the case of an external configuration (SCE), the SCE flag


must be set and the KBNAME and the KBVERSION must be filled as
well:

Structure: CFGS_REF

POSEX CONFIG_ID ROOT_ID SCE KBNAME KBVERSION

000010 000001 00000001 1 PROD111 001

000030 000002 00000003 1 PROD121 001

2. Structure: CFGS_INST

CONFIG_ID INST_ID OBJECT_TYPE CLASS_TYPE OBJ_KEY

000001 00000001 MARA 300 PROD111

000001 00000002 MARA 300 PROD112

000002 00000003 MARA 300 PROD121

000002 00000004 MARA 300 PROD122

- All configurable items receive a separate INST_ID

- CONFIG_ID for a multi-level configuration remains the same

3. Structure: CFGS_PART_OF

CONFIG_ID PARENT_ID INST_ID PART_OF_NO OBJ_KEY

000001 00000001 00000002 0010 PROD112

000002 00000003 00000004 0010 PROD122

- Only for configurable subitems

- PART_OF_NO is the item number from the BOM

- In the case of a class node, the class name is included in the


OBJ_KEY in the 'part of' table and the class type (CLASS_TYPE)
is filled.

4. Structure: CFGS_VALUE
Page 3

CONFIG_ID INST_ID CHARC VALUE

000001 00000001 MERK1 01

000001 00000002 MERK2 A

000002 00000003 MERK3 300

000002 00000004 MERK4 XY

- Characteristics with valuation per configurable item

/
________________________________________________________________________

Note is release independent


Further components

SD-SLS-GF-IF
Sales Documents BAPI's
________________________________________________________________________

Reference to related Notes

Number Short text


____________________________________________________________
93091 Information on BAPIs in sales and distribution

________________________________________________________________________

You might also like