Ansicht
Dokumentation

BAPICCCONDITIONKEY - BAPI Condition Contract: Condition Structure Fields

BAPICCCONDITIONKEY - BAPI Condition Contract: Condition Structure Fields

Addresses (Business Address Services)   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Use

To support additional levels in the product hierarchy structure (PRODHS), a special handling is implemented for field PROD_HIER.

If only PROD_HIER is filled and not PROD_HIER1, then PROD_HIER is mapped to KOMG-PRODH.

If PROD_HIER1 is filled and PROD_HIER, then PROD_HIER is converted to structure PRODHS. PRODHS is then transferred to the corresponding fields in KOMG. Therefore PRODH_HIER1 / PRODH_HIER2 / PROD_HIER3 have to be identical to PRODHS-PRODH1 / PRODHS-PRODH2 / PRODHS-PRODH3.

In BAPICCCONDITIONKEYX the change flags for PROD_HIER1 / PROD_HIER2 / PROD_HIER3 need to be set in the normal way, change flags for additional fields in the product hierarchy are set automatically if PROD_HIER is filled in BAPICCCONDITIONKEY in addition to PROD_HIER1.

Example for PRODHS with the following definition:

PRODH1: CHAR 5

PRODH2: CHAR 4

PRODH3: CHAR 4

ZPRODH4: CHAR 3

ZPRODH5: CHAR 2

This is how the structure needs to be filled:

CONDITIONKEYDATAIN-PROD_HIER = 123456789012345678

CONDITIONKEYDATAIN-PROD_HIER1 = 12345

CONDITIONKEYDATAIN-PROD_HIER2 = 6789

CONDITIONKEYDATAIN-PROD_HIER3 = 0123

CONDITIONKEYDATAINX-PROD_HIER = blank

CONDITIONKEYDATAINX-PRODH_HIER1 = X

CONDITIONKEYDATAINX-PRODH_HIER2 = X

CONDITIONKEYDATAINX-PRODH_HIER3 = X

This is then converted to

KOMG-PRODH: (blank)

KOMG-PRODH1: 12345

KOMG-PRODH2: 6789

KOMG-PRODH3: 0123

KOMG-ZPRODH4: 456

KOMG-ZPRODH5: 78

Maintenance






General Material Data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 1798 Date: 20240425 Time: 134523     sap01-206 ( 29 ms )