Displaying a Material BOM 

You can use this function to display a material BOM in the SAP System.

Module name:

RFC_DISPLAY_BILL_OF_MATERIAL

C prototype:

int CadRfcBomDisplay(CadRfcExportField *, CadRfcImportField *,ITAB_H **, ITAB_H **)

The following display functions are supported:

All parameters of the initial screen that were transferred with the function call are entered on the initial screen. There is a parameter for defining whether the initial screen is skipped or not.

Possible Transfer Parameters

Table of possible transfer parameters

RFC Parameter name

Format

Length

Description

Import parameters:

MATERIAL

BOM_ACTION

BOM_APPLICATION

PLANT

BOM_ALTERNATIVE

CHANGE_NUMBER

VALID_FROM

BOM_TYPE

REVISION_LEVEL

SKIP_FIRST_SCREEN

 

 

CHAR

CHAR

CHAR

CHAR

CHAR

CHAR

CHAR

CHAR

CHAR

CHAR

 

18

1

4

4

2

12

10

1

2

1

 

Material number

Display function.

Application

Plant

Alternative

Change number

Valid-from date

BOM usage

Revision level

Skip initial screen

Export parameters:

FUNCTION_CODE

 

CHAR

 

14

 

Function code

Tables:

SAP_FIELD_DATA

DMS_CLASS_DATA

 

Structure

Structure

 

RFCDMSDATA

CLS_CHARAC

 

Not currently in use

Not currently in use

Import parameters

MATERIAL

Material number of the BOM.

BOM_ACTiON

Display function.

Display functions for BOMs

Value

Description

1

Explode BOM level by level (online transaction CS11 - single-level)

2

Explode BOM level by level (online transaction CS11 - multi-level)

3

Explode multi-level BOM (online transaction CS12)

4

Display summarized BOM (online transaction CS13)

5

Display single-level BOM (online transaction CS03)

BOM_APPLICATION

BOM application

Required for determining the appropriate alternative in display functions 1-4.

PLANT

Plant for which you want to explode the BOM.

BOM_ALTERNATIVE

Alternative BOM

Can only be entered for display functions 1-4.

CHANGE_NUMBER

Change number

The BOM is displayed on the valid-from date of the change number you enter.

VALID_FROM

Valid-from date

The BOM becomes effective on the valid-from date of the change number you enter.

BOM_TYPE

BOM usage

The usage shows the area within the company for which the BOM is effective. You can only enter this parameter for display function 5.

REVISION_LEVEL

Revision level

SKIP_FIRST_SCREEN

Space

You can select additional selection options by making entries on the initial screen of the display transaction.

X

Unless a warning message or error message is triggered, the initial screen is processed in the background, and you go directly to the exploded BOM.

Export parameters

FUNCTION_CODE

Transfer parameter FUNCTION_CODE can have the following values:

DOC_INSERT

Request to insert a document

DOC_CO

Document changed and checked out

Space

Other

Before you can process original application data with function code DOC_INSERT and DOC_CO, you need to call function module RFC_INSERT_DRAWING.