SAP Function Modules

BILLING_SCHEDULE_DIALOG SAP Function module - Maintain billing plan







BILLING_SCHEDULE_DIALOG 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 BILLING_SCHEDULE_DIALOG into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: V60F
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BILLING_SCHEDULE_DIALOG - BILLING SCHEDULE DIALOG





CALL FUNCTION 'BILLING_SCHEDULE_DIALOG' "Maintain billing plan
* EXPORTING
*   i_t185 =                    " t185
*   i_t185f =                   " t185f
*   i_t185v =                   " t185v
*   i_fplnr = SPACE             " fpla-fplnr
*   i_waers = SPACE             " fplt-waers
*   i_fpart = SPACE             " tfpla-fpart
*   i_veda =                    " vedavb
*   i_fkdat =                   " vbkd-fkdat
*   i_fplaa =                   " fplaa
*   i_standard = SPACE          "
*   i_upd_fpla = SPACE          "
*   i_upd_fplt = SPACE          "
*   i_komk =                    " komk
*   i_komp =                    " komp
*   i_kompax =                  " kompax
*   i_bezei = SPACE             "
*   i_fpltr =                   " vbrp-fpltr    Call billing document with date
*   i_fkrel = SPACE             " vbap-fkrel
*   i_veda_kopf =               " vedavb
*   i_kfplan = SPACE            " rv60f-kfplan
*   i_kfplnr = SPACE            " fpla-fplnr
*   i_absagen = SPACE           "
*   i_anzeigen = SPACE          "
*   i_berechtigung_block = SPACE  "
*   i_berechtigung_unblock = SPACE  "
*   i_taxi_tabstrip_captions =   " taxi_tabstrip_captions
*   i_taxi_program =            " sy-repid
*   i_taxi_header_subscreen =   " taxi_params-dynpronr
*   i_taxi_gui_program =        " sy-repid
*   i_taxi_gui_status =         " taxi_params-gui_status
*   i_taxi_gui_title =          " taxi_params-gui_title
  IMPORTING
    e_t185 =                    " t185
    e_t185f =                   " t185f
    e_t185v =                   " t185v
    e_fplnr =                   " fpla-fplnr
    e_dataloss =                " r185d-dataloss
    e_upd_fpla =                "
    e_upd_fplt =                "
    e_kompax =                  " kompax
    e_upd_posfakt =             "
  TABLES
    fpla_new =                  " fplavb
    fpla_old =                  " fplavb
    fplt_new =                  " fpltvb
    fplt_old =                  " fpltvb
*   i_fplts =                   " fplts
*   i_fpltnp =                  " fpltnp
*   i_komv =                    " komv
*   i_tkomk =                   " komk
*   i_svbap =                   " vbapu         Stucture-info item / Higher-level item
* CHANGING
*   c_taxi_tabstrip =           "
    .  "  BILLING_SCHEDULE_DIALOG

ABAP code example for Function Module BILLING_SCHEDULE_DIALOG





The ABAP code below is a full code listing to execute function module BILLING_SCHEDULE_DIALOG 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).

DATA:
ld_e_t185  TYPE T185 ,
ld_e_t185f  TYPE T185F ,
ld_e_t185v  TYPE T185V ,
ld_e_fplnr  TYPE FPLA-FPLNR ,
ld_e_dataloss  TYPE R185D-DATALOSS ,
ld_e_upd_fpla  TYPE STRING ,
ld_e_upd_fplt  TYPE STRING ,
ld_e_kompax  TYPE KOMPAX ,
ld_e_upd_posfakt  TYPE STRING ,
it_fpla_new  TYPE STANDARD TABLE OF FPLAVB,"TABLES PARAM
wa_fpla_new  LIKE LINE OF it_fpla_new ,
it_fpla_old  TYPE STANDARD TABLE OF FPLAVB,"TABLES PARAM
wa_fpla_old  LIKE LINE OF it_fpla_old ,
it_fplt_new  TYPE STANDARD TABLE OF FPLTVB,"TABLES PARAM
wa_fplt_new  LIKE LINE OF it_fplt_new ,
it_fplt_old  TYPE STANDARD TABLE OF FPLTVB,"TABLES PARAM
wa_fplt_old  LIKE LINE OF it_fplt_old ,
it_i_fplts  TYPE STANDARD TABLE OF FPLTS,"TABLES PARAM
wa_i_fplts  LIKE LINE OF it_i_fplts ,
it_i_fpltnp  TYPE STANDARD TABLE OF FPLTNP,"TABLES PARAM
wa_i_fpltnp  LIKE LINE OF it_i_fpltnp ,
it_i_komv  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_i_komv  LIKE LINE OF it_i_komv ,
it_i_tkomk  TYPE STANDARD TABLE OF KOMK,"TABLES PARAM
wa_i_tkomk  LIKE LINE OF it_i_tkomk ,
it_i_svbap  TYPE STANDARD TABLE OF VBAPU,"TABLES PARAM
wa_i_svbap  LIKE LINE OF it_i_svbap .

DATA(ld_c_taxi_tabstrip) = 'some text here'.
DATA(ld_i_t185) = 'Check type of data required'.
DATA(ld_i_t185f) = 'Check type of data required'.
DATA(ld_i_t185v) = 'Check type of data required'.

SELECT single FPLNR
FROM FPLA
INTO @DATA(ld_i_fplnr).


SELECT single WAERS
FROM FPLT
INTO @DATA(ld_i_waers).


SELECT single FPART
FROM TFPLA
INTO @DATA(ld_i_fpart).

DATA(ld_i_veda) = 'Check type of data required'.

SELECT single FKDAT
FROM VBKD
INTO @DATA(ld_i_fkdat).

DATA(ld_i_fplaa) = 'Check type of data required'.
DATA(ld_i_standard) = 'some text here'.
DATA(ld_i_upd_fpla) = 'some text here'.
DATA(ld_i_upd_fplt) = 'some text here'.
DATA(ld_i_komk) = 'Check type of data required'.
DATA(ld_i_komp) = 'Check type of data required'.
DATA(ld_i_kompax) = 'Check type of data required'.
DATA(ld_i_bezei) = 'some text here'.

SELECT single FPLTR
FROM VBRP
INTO @DATA(ld_i_fpltr).


SELECT single FKREL
FROM VBAP
INTO @DATA(ld_i_fkrel).

DATA(ld_i_veda_kopf) = 'Check type of data required'.

DATA(ld_i_kfplan) = some text here

SELECT single FPLNR
FROM FPLA
INTO @DATA(ld_i_kfplnr).

DATA(ld_i_absagen) = 'some text here'.
DATA(ld_i_anzeigen) = 'some text here'.
DATA(ld_i_berechtigung_block) = 'some text here'.
DATA(ld_i_berechtigung_unblock) = 'some text here'.
DATA(ld_i_taxi_tabstrip_captions) = 'Check type of data required'.
DATA(ld_i_taxi_program) = 'some text here'.

DATA(ld_i_taxi_header_subscreen) = Check type of data required
DATA(ld_i_taxi_gui_program) = 'some text here'.

DATA(ld_i_taxi_gui_status) = some text here

DATA(ld_i_taxi_gui_title) = some text here

"populate fields of struture and append to itab
append wa_fpla_new to it_fpla_new.

"populate fields of struture and append to itab
append wa_fpla_old to it_fpla_old.

"populate fields of struture and append to itab
append wa_fplt_new to it_fplt_new.

"populate fields of struture and append to itab
append wa_fplt_old to it_fplt_old.

"populate fields of struture and append to itab
append wa_i_fplts to it_i_fplts.

"populate fields of struture and append to itab
append wa_i_fpltnp to it_i_fpltnp.

"populate fields of struture and append to itab
append wa_i_komv to it_i_komv.

"populate fields of struture and append to itab
append wa_i_tkomk to it_i_tkomk.

"populate fields of struture and append to itab
append wa_i_svbap to it_i_svbap. . CALL FUNCTION 'BILLING_SCHEDULE_DIALOG' * EXPORTING * i_t185 = ld_i_t185 * i_t185f = ld_i_t185f * i_t185v = ld_i_t185v * i_fplnr = ld_i_fplnr * i_waers = ld_i_waers * i_fpart = ld_i_fpart * i_veda = ld_i_veda * i_fkdat = ld_i_fkdat * i_fplaa = ld_i_fplaa * i_standard = ld_i_standard * i_upd_fpla = ld_i_upd_fpla * i_upd_fplt = ld_i_upd_fplt * i_komk = ld_i_komk * i_komp = ld_i_komp * i_kompax = ld_i_kompax * i_bezei = ld_i_bezei * i_fpltr = ld_i_fpltr * i_fkrel = ld_i_fkrel * i_veda_kopf = ld_i_veda_kopf * i_kfplan = ld_i_kfplan * i_kfplnr = ld_i_kfplnr * i_absagen = ld_i_absagen * i_anzeigen = ld_i_anzeigen * i_berechtigung_block = ld_i_berechtigung_block * i_berechtigung_unblock = ld_i_berechtigung_unblock * i_taxi_tabstrip_captions = ld_i_taxi_tabstrip_captions * i_taxi_program = ld_i_taxi_program * i_taxi_header_subscreen = ld_i_taxi_header_subscreen * i_taxi_gui_program = ld_i_taxi_gui_program * i_taxi_gui_status = ld_i_taxi_gui_status * i_taxi_gui_title = ld_i_taxi_gui_title IMPORTING e_t185 = ld_e_t185 e_t185f = ld_e_t185f e_t185v = ld_e_t185v e_fplnr = ld_e_fplnr e_dataloss = ld_e_dataloss e_upd_fpla = ld_e_upd_fpla e_upd_fplt = ld_e_upd_fplt e_kompax = ld_e_kompax e_upd_posfakt = ld_e_upd_posfakt TABLES fpla_new = it_fpla_new fpla_old = it_fpla_old fplt_new = it_fplt_new fplt_old = it_fplt_old * i_fplts = it_i_fplts * i_fpltnp = it_i_fpltnp * i_komv = it_i_komv * i_tkomk = it_i_tkomk * i_svbap = it_i_svbap * CHANGING * c_taxi_tabstrip = ld_c_taxi_tabstrip . " BILLING_SCHEDULE_DIALOG
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_c_taxi_tabstrip  TYPE STRING ,
ld_e_t185  TYPE T185 ,
it_fpla_new  TYPE STANDARD TABLE OF FPLAVB ,
wa_fpla_new  LIKE LINE OF it_fpla_new,
ld_i_t185  TYPE T185 ,
ld_e_t185f  TYPE T185F ,
it_fpla_old  TYPE STANDARD TABLE OF FPLAVB ,
wa_fpla_old  LIKE LINE OF it_fpla_old,
ld_i_t185f  TYPE T185F ,
ld_e_t185v  TYPE T185V ,
it_fplt_new  TYPE STANDARD TABLE OF FPLTVB ,
wa_fplt_new  LIKE LINE OF it_fplt_new,
ld_i_t185v  TYPE T185V ,
ld_e_fplnr  TYPE FPLA-FPLNR ,
ld_i_fplnr  TYPE FPLA-FPLNR ,
it_fplt_old  TYPE STANDARD TABLE OF FPLTVB ,
wa_fplt_old  LIKE LINE OF it_fplt_old,
ld_e_dataloss  TYPE R185D-DATALOSS ,
ld_i_waers  TYPE FPLT-WAERS ,
it_i_fplts  TYPE STANDARD TABLE OF FPLTS ,
wa_i_fplts  LIKE LINE OF it_i_fplts,
ld_e_upd_fpla  TYPE STRING ,
ld_i_fpart  TYPE TFPLA-FPART ,
it_i_fpltnp  TYPE STANDARD TABLE OF FPLTNP ,
wa_i_fpltnp  LIKE LINE OF it_i_fpltnp,
it_i_komv  TYPE STANDARD TABLE OF KOMV ,
wa_i_komv  LIKE LINE OF it_i_komv,
ld_i_veda  TYPE VEDAVB ,
ld_e_upd_fplt  TYPE STRING ,
it_i_tkomk  TYPE STANDARD TABLE OF KOMK ,
wa_i_tkomk  LIKE LINE OF it_i_tkomk,
ld_i_fkdat  TYPE VBKD-FKDAT ,
ld_e_kompax  TYPE KOMPAX ,
it_i_svbap  TYPE STANDARD TABLE OF VBAPU ,
wa_i_svbap  LIKE LINE OF it_i_svbap,
ld_i_fplaa  TYPE FPLAA ,
ld_e_upd_posfakt  TYPE STRING ,
ld_i_standard  TYPE STRING ,
ld_i_upd_fpla  TYPE STRING ,
ld_i_upd_fplt  TYPE STRING ,
ld_i_komk  TYPE KOMK ,
ld_i_komp  TYPE KOMP ,
ld_i_kompax  TYPE KOMPAX ,
ld_i_bezei  TYPE STRING ,
ld_i_fpltr  TYPE VBRP-FPLTR ,
ld_i_fkrel  TYPE VBAP-FKREL ,
ld_i_veda_kopf  TYPE VEDAVB ,
ld_i_kfplan  TYPE RV60F-KFPLAN ,
ld_i_kfplnr  TYPE FPLA-FPLNR ,
ld_i_absagen  TYPE STRING ,
ld_i_anzeigen  TYPE STRING ,
ld_i_berechtigung_block  TYPE STRING ,
ld_i_berechtigung_unblock  TYPE STRING ,
ld_i_taxi_tabstrip_captions  TYPE TAXI_TABSTRIP_CAPTIONS ,
ld_i_taxi_program  TYPE SY-REPID ,
ld_i_taxi_header_subscreen  TYPE TAXI_PARAMS-DYNPRONR ,
ld_i_taxi_gui_program  TYPE SY-REPID ,
ld_i_taxi_gui_status  TYPE TAXI_PARAMS-GUI_STATUS ,
ld_i_taxi_gui_title  TYPE TAXI_PARAMS-GUI_TITLE .

ld_c_taxi_tabstrip = 'some text here'.

"populate fields of struture and append to itab
append wa_fpla_new to it_fpla_new.
ld_i_t185 = 'some text here'.

"populate fields of struture and append to itab
append wa_fpla_old to it_fpla_old.
ld_i_t185f = 'some text here'.

"populate fields of struture and append to itab
append wa_fplt_new to it_fplt_new.
ld_i_t185v = 'some text here'.

SELECT single FPLNR
FROM FPLA
INTO ld_i_fplnr.


"populate fields of struture and append to itab
append wa_fplt_old to it_fplt_old.

SELECT single WAERS
FROM FPLT
INTO ld_i_waers.


"populate fields of struture and append to itab
append wa_i_fplts to it_i_fplts.

SELECT single FPART
FROM TFPLA
INTO ld_i_fpart.


"populate fields of struture and append to itab
append wa_i_fpltnp to it_i_fpltnp.

"populate fields of struture and append to itab
append wa_i_komv to it_i_komv.
ld_i_veda = 'some text here'.

"populate fields of struture and append to itab
append wa_i_tkomk to it_i_tkomk.

SELECT single FKDAT
FROM VBKD
INTO ld_i_fkdat.


"populate fields of struture and append to itab
append wa_i_svbap to it_i_svbap.
ld_i_fplaa = 'some text here'.
ld_i_standard = 'some text here'.
ld_i_upd_fpla = 'some text here'.
ld_i_upd_fplt = 'some text here'.
ld_i_komk = 'some text here'.
ld_i_komp = 'some text here'.
ld_i_kompax = 'some text here'.
ld_i_bezei = 'some text here'.

SELECT single FPLTR
FROM VBRP
INTO ld_i_fpltr.


SELECT single FKREL
FROM VBAP
INTO ld_i_fkrel.

ld_i_veda_kopf = 'some text here'.

ld_i_kfplan = some text here

SELECT single FPLNR
FROM FPLA
INTO ld_i_kfplnr.

ld_i_absagen = 'some text here'.
ld_i_anzeigen = 'some text here'.
ld_i_berechtigung_block = 'some text here'.
ld_i_berechtigung_unblock = 'some text here'.
ld_i_taxi_tabstrip_captions = 'some text here'.
ld_i_taxi_program = 'some text here'.

ld_i_taxi_header_subscreen = Check type of data required
ld_i_taxi_gui_program = 'some text here'.

ld_i_taxi_gui_status = some text here

ld_i_taxi_gui_title = some text here

Contribute (Add Comments)

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 BILLING_SCHEDULE_DIALOG or its description.