SAP /BOFU/BOTC_WRITE_DOCUMENT Function Module for CHDO /BOFU/BOTC => Gen. by RSSCD000









/BOFU/BOTC_WRITE_DOCUMENT is a standard /bofu/botc write document SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CHDO /BOFU/BOTC => Gen. by RSSCD000 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 /bofu/botc write document FM, simply by entering the name /BOFU/BOTC_WRITE_DOCUMENT into the relevant SAP transaction such as SE37 or SE38.

Function Group: /BOFU/TEST_CUST_POST_CDO
Program Name: /BOFU/SAPLTEST_CUST_POST_CDO
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 2



Function /BOFU/BOTC_WRITE_DOCUMENT 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 '/BOFU/BOTC_WRITE_DOCUMENT'"CHDO /BOFU/BOTC => Gen. by RSSCD000
EXPORTING
OBJECTID = "
* UPD_BOFU_CDATF_DOT = ' ' "
* UPD_BOFU_CDATF_RTT = ' ' "
* UPD_BOFU_CDTCEXTID = ' ' "
* UPD_BOFU_CDTXCCONT = ' ' "
XBOFU_CDTXCCONT = "
YBOFU_CDTXCCONT = "
* UPD_BOFU_CDTXCROOTT = ' ' "
* UPD_BOFU_CDTXCTXTT = ' ' "
N_BOFU_DTSTCUST_H = "
O_BOFU_DTSTCUST_H = "
TCODE = "
* UPD_BOFU_DTSTCUST_H = ' ' "
* UPD_BOFU_DTSTCUST_T = ' ' "
UTIME = "
UDATE = "
USERNAME = "
* PLANNED_CHANGE_NUMBER = ' ' "
* OBJECT_CHANGE_INDICATOR = 'U' "
* PLANNED_OR_REAL_CHANGES = ' ' "
* NO_CHANGE_POINTERS = ' ' "

TABLES
XBOFU_CDATF_DOT = "
YBOFU_CDTXCTXTT = "
XBOFU_DTSTCUST_T = "
YBOFU_DTSTCUST_T = "
YBOFU_CDATF_DOT = "
XBOFU_CDATF_RTT = "
YBOFU_CDATF_RTT = "
XBOFU_CDTCEXTID = "
YBOFU_CDTCEXTID = "
XBOFU_CDTXCROOTT = "
YBOFU_CDTXCROOTT = "
XBOFU_CDTXCTXTT = "
.



IMPORTING Parameters details for /BOFU/BOTC_WRITE_DOCUMENT

OBJECTID -

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

UPD_BOFU_CDATF_DOT -

Data type: CDPOS-CHNGIND
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

UPD_BOFU_CDATF_RTT -

Data type: CDPOS-CHNGIND
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

UPD_BOFU_CDTCEXTID -

Data type: CDPOS-CHNGIND
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

UPD_BOFU_CDTXCCONT -

Data type: CDPOS-CHNGIND
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

XBOFU_CDTXCCONT -

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

YBOFU_CDTXCCONT -

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

UPD_BOFU_CDTXCROOTT -

Data type: CDPOS-CHNGIND
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

UPD_BOFU_CDTXCTXTT -

Data type: CDPOS-CHNGIND
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

N_BOFU_DTSTCUST_H -

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

O_BOFU_DTSTCUST_H -

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

TCODE -

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

UPD_BOFU_DTSTCUST_H -

Data type: CDPOS-CHNGIND
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

UPD_BOFU_DTSTCUST_T -

Data type: CDPOS-CHNGIND
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

UTIME -

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

UDATE -

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

USERNAME -

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

PLANNED_CHANGE_NUMBER -

Data type: CDHDR-PLANCHNGNR
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

OBJECT_CHANGE_INDICATOR -

Data type: CDHDR-CHANGE_IND
Default: 'U'
Optional: No
Call by Reference: No ( called with pass by value option)

PLANNED_OR_REAL_CHANGES -

Data type: CDHDR-CHANGE_IND
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

NO_CHANGE_POINTERS -

Data type: CDHDR-CHANGE_IND
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for /BOFU/BOTC_WRITE_DOCUMENT

XBOFU_CDATF_DOT -

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

YBOFU_CDTXCTXTT -

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

XBOFU_DTSTCUST_T -

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

YBOFU_DTSTCUST_T -

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

YBOFU_CDATF_DOT -

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

XBOFU_CDATF_RTT -

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

YBOFU_CDATF_RTT -

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

XBOFU_CDTCEXTID -

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

YBOFU_CDTCEXTID -

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

XBOFU_CDTXCROOTT -

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

YBOFU_CDTXCROOTT -

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

XBOFU_CDTXCTXTT -

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

Copy and paste ABAP code example for /BOFU/BOTC_WRITE_DOCUMENT 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_objectid  TYPE CDHDR-OBJECTID, "   
lt_xbofu_cdatf_dot  TYPE STANDARD TABLE OF /BOFU/VCDATF_DOT, "   
lt_ybofu_cdtxctxtt  TYPE STANDARD TABLE OF /BOFU/VCDTXCTXTT, "   
lv_upd_bofu_cdatf_dot  TYPE CDPOS-CHNGIND, "   SPACE
lt_xbofu_dtstcust_t  TYPE STANDARD TABLE OF /BOFU/VDTSTCUST_T, "   
lv_upd_bofu_cdatf_rtt  TYPE CDPOS-CHNGIND, "   SPACE
lt_ybofu_dtstcust_t  TYPE STANDARD TABLE OF /BOFU/VDTSTCUST_T, "   
lv_upd_bofu_cdtcextid  TYPE CDPOS-CHNGIND, "   SPACE
lv_upd_bofu_cdtxccont  TYPE CDPOS-CHNGIND, "   SPACE
lv_xbofu_cdtxccont  TYPE /BOFU/VCDTXCCONTS, "   
lv_ybofu_cdtxccont  TYPE /BOFU/VCDTXCCONTS, "   
lv_upd_bofu_cdtxcroott  TYPE CDPOS-CHNGIND, "   SPACE
lv_upd_bofu_cdtxctxtt  TYPE CDPOS-CHNGIND, "   SPACE
lv_n_bofu_dtstcust_h  TYPE /BOFU/DTSTCUST_H, "   
lv_o_bofu_dtstcust_h  TYPE /BOFU/DTSTCUST_H, "   
lv_tcode  TYPE CDHDR-TCODE, "   
lt_ybofu_cdatf_dot  TYPE STANDARD TABLE OF /BOFU/VCDATF_DOT, "   
lv_upd_bofu_dtstcust_h  TYPE CDPOS-CHNGIND, "   SPACE
lv_upd_bofu_dtstcust_t  TYPE CDPOS-CHNGIND, "   SPACE
lv_utime  TYPE CDHDR-UTIME, "   
lt_xbofu_cdatf_rtt  TYPE STANDARD TABLE OF /BOFU/VCDATF_RTT, "   
lv_udate  TYPE CDHDR-UDATE, "   
lt_ybofu_cdatf_rtt  TYPE STANDARD TABLE OF /BOFU/VCDATF_RTT, "   
lv_username  TYPE CDHDR-USERNAME, "   
lt_xbofu_cdtcextid  TYPE STANDARD TABLE OF /BOFU/VCDTCEXTID, "   
lt_ybofu_cdtcextid  TYPE STANDARD TABLE OF /BOFU/VCDTCEXTID, "   
lv_planned_change_number  TYPE CDHDR-PLANCHNGNR, "   SPACE
lt_xbofu_cdtxcroott  TYPE STANDARD TABLE OF /BOFU/VCDTXCROOTT, "   
lv_object_change_indicator  TYPE CDHDR-CHANGE_IND, "   'U'
lt_ybofu_cdtxcroott  TYPE STANDARD TABLE OF /BOFU/VCDTXCROOTT, "   
lv_planned_or_real_changes  TYPE CDHDR-CHANGE_IND, "   SPACE
lt_xbofu_cdtxctxtt  TYPE STANDARD TABLE OF /BOFU/VCDTXCTXTT, "   
lv_no_change_pointers  TYPE CDHDR-CHANGE_IND. "   SPACE

  CALL FUNCTION '/BOFU/BOTC_WRITE_DOCUMENT'  "CHDO /BOFU/BOTC => Gen. by RSSCD000
    EXPORTING
         OBJECTID = lv_objectid
         UPD_BOFU_CDATF_DOT = lv_upd_bofu_cdatf_dot
         UPD_BOFU_CDATF_RTT = lv_upd_bofu_cdatf_rtt
         UPD_BOFU_CDTCEXTID = lv_upd_bofu_cdtcextid
         UPD_BOFU_CDTXCCONT = lv_upd_bofu_cdtxccont
         XBOFU_CDTXCCONT = lv_xbofu_cdtxccont
         YBOFU_CDTXCCONT = lv_ybofu_cdtxccont
         UPD_BOFU_CDTXCROOTT = lv_upd_bofu_cdtxcroott
         UPD_BOFU_CDTXCTXTT = lv_upd_bofu_cdtxctxtt
         N_BOFU_DTSTCUST_H = lv_n_bofu_dtstcust_h
         O_BOFU_DTSTCUST_H = lv_o_bofu_dtstcust_h
         TCODE = lv_tcode
         UPD_BOFU_DTSTCUST_H = lv_upd_bofu_dtstcust_h
         UPD_BOFU_DTSTCUST_T = lv_upd_bofu_dtstcust_t
         UTIME = lv_utime
         UDATE = lv_udate
         USERNAME = lv_username
         PLANNED_CHANGE_NUMBER = lv_planned_change_number
         OBJECT_CHANGE_INDICATOR = lv_object_change_indicator
         PLANNED_OR_REAL_CHANGES = lv_planned_or_real_changes
         NO_CHANGE_POINTERS = lv_no_change_pointers
    TABLES
         XBOFU_CDATF_DOT = lt_xbofu_cdatf_dot
         YBOFU_CDTXCTXTT = lt_ybofu_cdtxctxtt
         XBOFU_DTSTCUST_T = lt_xbofu_dtstcust_t
         YBOFU_DTSTCUST_T = lt_ybofu_dtstcust_t
         YBOFU_CDATF_DOT = lt_ybofu_cdatf_dot
         XBOFU_CDATF_RTT = lt_xbofu_cdatf_rtt
         YBOFU_CDATF_RTT = lt_ybofu_cdatf_rtt
         XBOFU_CDTCEXTID = lt_xbofu_cdtcextid
         YBOFU_CDTCEXTID = lt_ybofu_cdtcextid
         XBOFU_CDTXCROOTT = lt_xbofu_cdtxcroott
         YBOFU_CDTXCROOTT = lt_ybofu_cdtxcroott
         XBOFU_CDTXCTXTT = lt_xbofu_cdtxctxtt
. " /BOFU/BOTC_WRITE_DOCUMENT




ABAP code using 7.40 inline data declarations to call FM /BOFU/BOTC_WRITE_DOCUMENT

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 OBJECTID FROM CDHDR INTO @DATA(ld_objectid).
 
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_bofu_cdatf_dot).
DATA(ld_upd_bofu_cdatf_dot) = ' '.
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_bofu_cdatf_rtt).
DATA(ld_upd_bofu_cdatf_rtt) = ' '.
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_bofu_cdtcextid).
DATA(ld_upd_bofu_cdtcextid) = ' '.
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_bofu_cdtxccont).
DATA(ld_upd_bofu_cdtxccont) = ' '.
 
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_bofu_cdtxcroott).
DATA(ld_upd_bofu_cdtxcroott) = ' '.
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_bofu_cdtxctxtt).
DATA(ld_upd_bofu_cdtxctxtt) = ' '.
 
 
 
"SELECT single TCODE FROM CDHDR INTO @DATA(ld_tcode).
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_bofu_dtstcust_h).
DATA(ld_upd_bofu_dtstcust_h) = ' '.
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_bofu_dtstcust_t).
DATA(ld_upd_bofu_dtstcust_t) = ' '.
 
"SELECT single UTIME FROM CDHDR INTO @DATA(ld_utime).
 
 
"SELECT single UDATE FROM CDHDR INTO @DATA(ld_udate).
 
 
"SELECT single USERNAME FROM CDHDR INTO @DATA(ld_username).
 
 
 
"SELECT single PLANCHNGNR FROM CDHDR INTO @DATA(ld_planned_change_number).
DATA(ld_planned_change_number) = ' '.
 
 
"SELECT single CHANGE_IND FROM CDHDR INTO @DATA(ld_object_change_indicator).
DATA(ld_object_change_indicator) = 'U'.
 
 
"SELECT single CHANGE_IND FROM CDHDR INTO @DATA(ld_planned_or_real_changes).
DATA(ld_planned_or_real_changes) = ' '.
 
 
"SELECT single CHANGE_IND FROM CDHDR INTO @DATA(ld_no_change_pointers).
DATA(ld_no_change_pointers) = ' '.
 


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!