SAP CS_BI_BOM_CREATE_WITH_LONGTEXT Function Module for NOTRANSL: Stückliste anlegen über Batch Input mit allen Langtexten









CS_BI_BOM_CREATE_WITH_LONGTEXT is a standard cs bi bom create with longtext SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Stückliste anlegen über Batch Input mit allen Langtexten processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for cs bi bom create with longtext FM, simply by entering the name CS_BI_BOM_CREATE_WITH_LONGTEXT into the relevant SAP transaction such as SE37 or SE38.

Function Group: CSBI
Program Name: SAPLCSBI
Main Program: SAPLCSBI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CS_BI_BOM_CREATE_WITH_LONGTEXT pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'CS_BI_BOM_CREATE_WITH_LONGTEXT'"NOTRANSL: Stückliste anlegen über Batch Input mit allen Langtexten
EXPORTING
* BDC_FLAG = ' ' "Checkbox
BOM_HEADER = "Batch Input Structure for BOM Header Data
* CLOSE_GROUP = ' ' "Checkbox
GROUP_DATA = "Batch Input Structure for Session Data
* NEW_GROUP = ' ' "Checkbox
* TCODE_MODE = 'A' "Checkbox
* TCODE_UPDATE = 'N' "Checkbox

IMPORTING
MSGID = "Application Area
MSGNO = "Message number
MSGTY = "ABAP System Field: Message Type
MSGV1 = "ABAP System Field: Message Variable
MSGV2 = "ABAP System Field: Message Variable
MSGV3 = "ABAP System Field: Message Variable
MSGV4 = "ABAP System Field: Message Variable

TABLES
BOM_ALTERNATIVE_TEXT = "
BOM_HEADER_TEXT = "
BOM_ITEMS = "Batch Input Structure for BOM Item Data
BOM_ITEMS_TEXTS = "
BOM_SUB_ITEMS = "Batch Input Structure for BOM Sub-Item Data
.



IMPORTING Parameters details for CS_BI_BOM_CREATE_WITH_LONGTEXT

BDC_FLAG - Checkbox

Data type: CSDATA-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

BOM_HEADER - Batch Input Structure for BOM Header Data

Data type: BICSK
Optional: No
Call by Reference: No ( called with pass by value option)

CLOSE_GROUP - Checkbox

Data type: CSDATA-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

GROUP_DATA - Batch Input Structure for Session Data

Data type: BGR00
Optional: No
Call by Reference: No ( called with pass by value option)

NEW_GROUP - Checkbox

Data type: CSDATA-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TCODE_MODE - Checkbox

Data type: CSDATA-XFELD
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TCODE_UPDATE - Checkbox

Data type: CSDATA-XFELD
Default: 'N'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CS_BI_BOM_CREATE_WITH_LONGTEXT

MSGID - Application Area

Data type: T100-ARBGB
Optional: No
Call by Reference: No ( called with pass by value option)

MSGNO - Message number

Data type: T100-MSGNR
Optional: No
Call by Reference: No ( called with pass by value option)

MSGTY - ABAP System Field: Message Type

Data type: SY-MSGTY
Optional: No
Call by Reference: No ( called with pass by value option)

MSGV1 - ABAP System Field: Message Variable

Data type: SY-MSGV1
Optional: No
Call by Reference: No ( called with pass by value option)

MSGV2 - ABAP System Field: Message Variable

Data type: SY-MSGV2
Optional: No
Call by Reference: No ( called with pass by value option)

MSGV3 - ABAP System Field: Message Variable

Data type: SY-MSGV3
Optional: No
Call by Reference: No ( called with pass by value option)

MSGV4 - ABAP System Field: Message Variable

Data type: SY-MSGV4
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CS_BI_BOM_CREATE_WITH_LONGTEXT

BOM_ALTERNATIVE_TEXT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BOM_HEADER_TEXT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BOM_ITEMS - Batch Input Structure for BOM Item Data

Data type: BICSP
Optional: No
Call by Reference: No ( called with pass by value option)

BOM_ITEMS_TEXTS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BOM_SUB_ITEMS - Batch Input Structure for BOM Sub-Item Data

Data type: BICSU
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CS_BI_BOM_CREATE_WITH_LONGTEXT Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_msgid  TYPE T100-ARBGB, "   
lv_bdc_flag  TYPE CSDATA-XFELD, "   SPACE
lt_bom_alternative_text  TYPE STANDARD TABLE OF CSDATA, "   
lv_msgno  TYPE T100-MSGNR, "   
lv_bom_header  TYPE BICSK, "   
lt_bom_header_text  TYPE STANDARD TABLE OF BICSK, "   
lv_msgty  TYPE SY-MSGTY, "   
lt_bom_items  TYPE STANDARD TABLE OF BICSP, "   
lv_close_group  TYPE CSDATA-XFELD, "   SPACE
lv_msgv1  TYPE SY-MSGV1, "   
lv_group_data  TYPE BGR00, "   
lt_bom_items_texts  TYPE STANDARD TABLE OF BGR00, "   
lv_msgv2  TYPE SY-MSGV2, "   
lv_new_group  TYPE CSDATA-XFELD, "   SPACE
lt_bom_sub_items  TYPE STANDARD TABLE OF BICSU, "   
lv_msgv3  TYPE SY-MSGV3, "   
lv_tcode_mode  TYPE CSDATA-XFELD, "   'A'
lv_msgv4  TYPE SY-MSGV4, "   
lv_tcode_update  TYPE CSDATA-XFELD. "   'N'

  CALL FUNCTION 'CS_BI_BOM_CREATE_WITH_LONGTEXT'  "NOTRANSL: Stückliste anlegen über Batch Input mit allen Langtexten
    EXPORTING
         BDC_FLAG = lv_bdc_flag
         BOM_HEADER = lv_bom_header
         CLOSE_GROUP = lv_close_group
         GROUP_DATA = lv_group_data
         NEW_GROUP = lv_new_group
         TCODE_MODE = lv_tcode_mode
         TCODE_UPDATE = lv_tcode_update
    IMPORTING
         MSGID = lv_msgid
         MSGNO = lv_msgno
         MSGTY = lv_msgty
         MSGV1 = lv_msgv1
         MSGV2 = lv_msgv2
         MSGV3 = lv_msgv3
         MSGV4 = lv_msgv4
    TABLES
         BOM_ALTERNATIVE_TEXT = lt_bom_alternative_text
         BOM_HEADER_TEXT = lt_bom_header_text
         BOM_ITEMS = lt_bom_items
         BOM_ITEMS_TEXTS = lt_bom_items_texts
         BOM_SUB_ITEMS = lt_bom_sub_items
. " CS_BI_BOM_CREATE_WITH_LONGTEXT




ABAP code using 7.40 inline data declarations to call FM CS_BI_BOM_CREATE_WITH_LONGTEXT

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single ARBGB FROM T100 INTO @DATA(ld_msgid).
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_bdc_flag).
DATA(ld_bdc_flag) = ' '.
 
 
"SELECT single MSGNR FROM T100 INTO @DATA(ld_msgno).
 
 
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_msgty).
 
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_close_group).
DATA(ld_close_group) = ' '.
 
"SELECT single MSGV1 FROM SY INTO @DATA(ld_msgv1).
 
 
 
"SELECT single MSGV2 FROM SY INTO @DATA(ld_msgv2).
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_new_group).
DATA(ld_new_group) = ' '.
 
 
"SELECT single MSGV3 FROM SY INTO @DATA(ld_msgv3).
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_tcode_mode).
DATA(ld_tcode_mode) = 'A'.
 
"SELECT single MSGV4 FROM SY INTO @DATA(ld_msgv4).
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_tcode_update).
DATA(ld_tcode_update) = 'N'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!