BUPA_BUP_WRITE_DOCUMENT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name BUPA_BUP_WRITE_DOCUMENT into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
BUDC
Released Date:
Not Released
Processing type: Start of update delayed (Start Delayed)
CALL FUNCTION 'BUPA_BUP_WRITE_DOCUMENT' "CHDO BUPA_BUP => Gen. by RSSCD000
EXPORTING
objectid = " cdhdr-objectid
tcode = " cdhdr-tcode
utime = " cdhdr-utime
udate = " cdhdr-udate
username = " cdhdr-username
planned_change_number = SPACE " cdhdr-planchngnr
object_change_indicator = 'U' " cdhdr-change_ind
planned_or_real_changes = SPACE " cdhdr-change_ind
no_change_pointers = SPACE " cdhdr-change_ind
upd_icdtxt_bupa_bup = SPACE " cdpos-chngind
n_but000 = " but000
o_ybut000 = " but000
upd_but000 = SPACE " cdpos-chngind
upd_but000_td = SPACE " cdpos-chngind
n_but001 = " but001
o_ybut001 = " but001
upd_but001 = SPACE " cdpos-chngind
upd_but0bk = SPACE " cdpos-chngind
upd_but0cc = SPACE " cdpos-chngind
upd_but0id = SPACE " cdpos-chngind
upd_but0is = SPACE " cdpos-chngind
upd_but100 = SPACE " cdpos-chngind
TABLES
icdtxt_bupa_bup = " cdtxt
xbut000_td = " vbut000_td
ybut000_td = " vbut000_td
xbut0bk = " vbut0bk
ybut0bk = " vbut0bk
xbut0cc = " vbut0cc
ybut0cc = " vbut0cc
xbut0id = " vbut0id
ybut0id = " vbut0id
xbut0is = " vbut0is
ybut0is = " vbut0is
xbut100 = " vbut100
ybut100 = " vbut100
. " BUPA_BUP_WRITE_DOCUMENT
The ABAP code below is a full code listing to execute function module BUPA_BUP_WRITE_DOCUMENT including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| it_icdtxt_bupa_bup | TYPE STANDARD TABLE OF CDTXT,"TABLES PARAM |
| wa_icdtxt_bupa_bup | LIKE LINE OF it_icdtxt_bupa_bup , |
| it_xbut000_td | TYPE STANDARD TABLE OF VBUT000_TD,"TABLES PARAM |
| wa_xbut000_td | LIKE LINE OF it_xbut000_td , |
| it_ybut000_td | TYPE STANDARD TABLE OF VBUT000_TD,"TABLES PARAM |
| wa_ybut000_td | LIKE LINE OF it_ybut000_td , |
| it_xbut0bk | TYPE STANDARD TABLE OF VBUT0BK,"TABLES PARAM |
| wa_xbut0bk | LIKE LINE OF it_xbut0bk , |
| it_ybut0bk | TYPE STANDARD TABLE OF VBUT0BK,"TABLES PARAM |
| wa_ybut0bk | LIKE LINE OF it_ybut0bk , |
| it_xbut0cc | TYPE STANDARD TABLE OF VBUT0CC,"TABLES PARAM |
| wa_xbut0cc | LIKE LINE OF it_xbut0cc , |
| it_ybut0cc | TYPE STANDARD TABLE OF VBUT0CC,"TABLES PARAM |
| wa_ybut0cc | LIKE LINE OF it_ybut0cc , |
| it_xbut0id | TYPE STANDARD TABLE OF VBUT0ID,"TABLES PARAM |
| wa_xbut0id | LIKE LINE OF it_xbut0id , |
| it_ybut0id | TYPE STANDARD TABLE OF VBUT0ID,"TABLES PARAM |
| wa_ybut0id | LIKE LINE OF it_ybut0id , |
| it_xbut0is | TYPE STANDARD TABLE OF VBUT0IS,"TABLES PARAM |
| wa_xbut0is | LIKE LINE OF it_xbut0is , |
| it_ybut0is | TYPE STANDARD TABLE OF VBUT0IS,"TABLES PARAM |
| wa_ybut0is | LIKE LINE OF it_ybut0is , |
| it_xbut100 | TYPE STANDARD TABLE OF VBUT100,"TABLES PARAM |
| wa_xbut100 | LIKE LINE OF it_xbut100 , |
| it_ybut100 | TYPE STANDARD TABLE OF VBUT100,"TABLES PARAM |
| wa_ybut100 | LIKE LINE OF it_ybut100 . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_objectid | TYPE CDHDR-OBJECTID , |
| it_icdtxt_bupa_bup | TYPE STANDARD TABLE OF CDTXT , |
| wa_icdtxt_bupa_bup | LIKE LINE OF it_icdtxt_bupa_bup, |
| ld_tcode | TYPE CDHDR-TCODE , |
| it_xbut000_td | TYPE STANDARD TABLE OF VBUT000_TD , |
| wa_xbut000_td | LIKE LINE OF it_xbut000_td, |
| ld_utime | TYPE CDHDR-UTIME , |
| it_ybut000_td | TYPE STANDARD TABLE OF VBUT000_TD , |
| wa_ybut000_td | LIKE LINE OF it_ybut000_td, |
| ld_udate | TYPE CDHDR-UDATE , |
| it_xbut0bk | TYPE STANDARD TABLE OF VBUT0BK , |
| wa_xbut0bk | LIKE LINE OF it_xbut0bk, |
| ld_username | TYPE CDHDR-USERNAME , |
| it_ybut0bk | TYPE STANDARD TABLE OF VBUT0BK , |
| wa_ybut0bk | LIKE LINE OF it_ybut0bk, |
| ld_planned_change_number | TYPE CDHDR-PLANCHNGNR , |
| it_xbut0cc | TYPE STANDARD TABLE OF VBUT0CC , |
| wa_xbut0cc | LIKE LINE OF it_xbut0cc, |
| ld_object_change_indicator | TYPE CDHDR-CHANGE_IND , |
| it_ybut0cc | TYPE STANDARD TABLE OF VBUT0CC , |
| wa_ybut0cc | LIKE LINE OF it_ybut0cc, |
| ld_planned_or_real_changes | TYPE CDHDR-CHANGE_IND , |
| it_xbut0id | TYPE STANDARD TABLE OF VBUT0ID , |
| wa_xbut0id | LIKE LINE OF it_xbut0id, |
| ld_no_change_pointers | TYPE CDHDR-CHANGE_IND , |
| it_ybut0id | TYPE STANDARD TABLE OF VBUT0ID , |
| wa_ybut0id | LIKE LINE OF it_ybut0id, |
| ld_upd_icdtxt_bupa_bup | TYPE CDPOS-CHNGIND , |
| it_xbut0is | TYPE STANDARD TABLE OF VBUT0IS , |
| wa_xbut0is | LIKE LINE OF it_xbut0is, |
| it_ybut0is | TYPE STANDARD TABLE OF VBUT0IS , |
| wa_ybut0is | LIKE LINE OF it_ybut0is, |
| ld_n_but000 | TYPE BUT000 , |
| it_xbut100 | TYPE STANDARD TABLE OF VBUT100 , |
| wa_xbut100 | LIKE LINE OF it_xbut100, |
| ld_o_ybut000 | TYPE BUT000 , |
| it_ybut100 | TYPE STANDARD TABLE OF VBUT100 , |
| wa_ybut100 | LIKE LINE OF it_ybut100, |
| ld_upd_but000 | TYPE CDPOS-CHNGIND , |
| ld_upd_but000_td | TYPE CDPOS-CHNGIND , |
| ld_n_but001 | TYPE BUT001 , |
| ld_o_ybut001 | TYPE BUT001 , |
| ld_upd_but001 | TYPE CDPOS-CHNGIND , |
| ld_upd_but0bk | TYPE CDPOS-CHNGIND , |
| ld_upd_but0cc | TYPE CDPOS-CHNGIND , |
| ld_upd_but0id | TYPE CDPOS-CHNGIND , |
| ld_upd_but0is | TYPE CDPOS-CHNGIND , |
| ld_upd_but100 | TYPE CDPOS-CHNGIND . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BUPA_BUP_WRITE_DOCUMENT or its description.