SAP Function Modules

RSAQ_COMPUTE_CODING_ORDERS_SEG SAP Function module







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

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


Pattern for FM RSAQ_COMPUTE_CODING_ORDERS_SEG - RSAQ COMPUTE CODING ORDERS SEG





CALL FUNCTION 'RSAQ_COMPUTE_CODING_ORDERS_SEG' "
  EXPORTING
    update_flag =               " aqs_flag
    i_sgna =                    " aqs_tname
  IMPORTING
    error_count =               " aqadef-error_cnt
    error_found =               " aqadef-flag
  TABLES
    clogsg_input =              " aqclsg
    dbsg_input =                " aqdbsg        Logical database structure
    dbsf_input =                " aqdbsf
    dbzt_input =                " aqdbzt        Additional tables
    dbzc_input =                " aqdbzc
    dbzl_input =                " aqdbzl
    dbdp_input =                " aqdbdp
    dbsa_input =                " aqdbsa
    dbjt_input =                " aqdbjt
    dbjc_input =                " aqdbjc
    dban_input =                " aqdban
    dbpa_input =                " aqdbpa
    dbwr_input =                " aqdbwr        Currency/Units References
    dbar_input =                " aqdbar        Access References
    dbft_input =                " aqdbft
    dbob_input =                " aqdbob
    dbos_input =                " aqdbos
    dbif_input =                " aqdbif
    sgtext_input =              " aqtxsg
*   error =                     " aqerror
  CHANGING
    headsg_input =              " aqhdsg
    maxsg_tindx_input =         " aqadef-tindx  Max. Text Index
    .  "  RSAQ_COMPUTE_CODING_ORDERS_SEG

ABAP code example for Function Module RSAQ_COMPUTE_CODING_ORDERS_SEG





The ABAP code below is a full code listing to execute function module RSAQ_COMPUTE_CODING_ORDERS_SEG 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_error_count  TYPE AQADEF-ERROR_CNT ,
ld_error_found  TYPE AQADEF-FLAG ,
it_clogsg_input  TYPE STANDARD TABLE OF AQCLSG,"TABLES PARAM
wa_clogsg_input  LIKE LINE OF it_clogsg_input ,
it_dbsg_input  TYPE STANDARD TABLE OF AQDBSG,"TABLES PARAM
wa_dbsg_input  LIKE LINE OF it_dbsg_input ,
it_dbsf_input  TYPE STANDARD TABLE OF AQDBSF,"TABLES PARAM
wa_dbsf_input  LIKE LINE OF it_dbsf_input ,
it_dbzt_input  TYPE STANDARD TABLE OF AQDBZT,"TABLES PARAM
wa_dbzt_input  LIKE LINE OF it_dbzt_input ,
it_dbzc_input  TYPE STANDARD TABLE OF AQDBZC,"TABLES PARAM
wa_dbzc_input  LIKE LINE OF it_dbzc_input ,
it_dbzl_input  TYPE STANDARD TABLE OF AQDBZL,"TABLES PARAM
wa_dbzl_input  LIKE LINE OF it_dbzl_input ,
it_dbdp_input  TYPE STANDARD TABLE OF AQDBDP,"TABLES PARAM
wa_dbdp_input  LIKE LINE OF it_dbdp_input ,
it_dbsa_input  TYPE STANDARD TABLE OF AQDBSA,"TABLES PARAM
wa_dbsa_input  LIKE LINE OF it_dbsa_input ,
it_dbjt_input  TYPE STANDARD TABLE OF AQDBJT,"TABLES PARAM
wa_dbjt_input  LIKE LINE OF it_dbjt_input ,
it_dbjc_input  TYPE STANDARD TABLE OF AQDBJC,"TABLES PARAM
wa_dbjc_input  LIKE LINE OF it_dbjc_input ,
it_dban_input  TYPE STANDARD TABLE OF AQDBAN,"TABLES PARAM
wa_dban_input  LIKE LINE OF it_dban_input ,
it_dbpa_input  TYPE STANDARD TABLE OF AQDBPA,"TABLES PARAM
wa_dbpa_input  LIKE LINE OF it_dbpa_input ,
it_dbwr_input  TYPE STANDARD TABLE OF AQDBWR,"TABLES PARAM
wa_dbwr_input  LIKE LINE OF it_dbwr_input ,
it_dbar_input  TYPE STANDARD TABLE OF AQDBAR,"TABLES PARAM
wa_dbar_input  LIKE LINE OF it_dbar_input ,
it_dbft_input  TYPE STANDARD TABLE OF AQDBFT,"TABLES PARAM
wa_dbft_input  LIKE LINE OF it_dbft_input ,
it_dbob_input  TYPE STANDARD TABLE OF AQDBOB,"TABLES PARAM
wa_dbob_input  LIKE LINE OF it_dbob_input ,
it_dbos_input  TYPE STANDARD TABLE OF AQDBOS,"TABLES PARAM
wa_dbos_input  LIKE LINE OF it_dbos_input ,
it_dbif_input  TYPE STANDARD TABLE OF AQDBIF,"TABLES PARAM
wa_dbif_input  LIKE LINE OF it_dbif_input ,
it_sgtext_input  TYPE STANDARD TABLE OF AQTXSG,"TABLES PARAM
wa_sgtext_input  LIKE LINE OF it_sgtext_input ,
it_error  TYPE STANDARD TABLE OF AQERROR,"TABLES PARAM
wa_error  LIKE LINE OF it_error .

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

DATA(ld_maxsg_tindx_input) = Check type of data required
DATA(ld_update_flag) = 'Check type of data required'.
DATA(ld_i_sgna) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_clogsg_input to it_clogsg_input.

"populate fields of struture and append to itab
append wa_dbsg_input to it_dbsg_input.

"populate fields of struture and append to itab
append wa_dbsf_input to it_dbsf_input.

"populate fields of struture and append to itab
append wa_dbzt_input to it_dbzt_input.

"populate fields of struture and append to itab
append wa_dbzc_input to it_dbzc_input.

"populate fields of struture and append to itab
append wa_dbzl_input to it_dbzl_input.

"populate fields of struture and append to itab
append wa_dbdp_input to it_dbdp_input.

"populate fields of struture and append to itab
append wa_dbsa_input to it_dbsa_input.

"populate fields of struture and append to itab
append wa_dbjt_input to it_dbjt_input.

"populate fields of struture and append to itab
append wa_dbjc_input to it_dbjc_input.

"populate fields of struture and append to itab
append wa_dban_input to it_dban_input.

"populate fields of struture and append to itab
append wa_dbpa_input to it_dbpa_input.

"populate fields of struture and append to itab
append wa_dbwr_input to it_dbwr_input.

"populate fields of struture and append to itab
append wa_dbar_input to it_dbar_input.

"populate fields of struture and append to itab
append wa_dbft_input to it_dbft_input.

"populate fields of struture and append to itab
append wa_dbob_input to it_dbob_input.

"populate fields of struture and append to itab
append wa_dbos_input to it_dbos_input.

"populate fields of struture and append to itab
append wa_dbif_input to it_dbif_input.

"populate fields of struture and append to itab
append wa_sgtext_input to it_sgtext_input.

"populate fields of struture and append to itab
append wa_error to it_error. . CALL FUNCTION 'RSAQ_COMPUTE_CODING_ORDERS_SEG' EXPORTING update_flag = ld_update_flag i_sgna = ld_i_sgna IMPORTING error_count = ld_error_count error_found = ld_error_found TABLES clogsg_input = it_clogsg_input dbsg_input = it_dbsg_input dbsf_input = it_dbsf_input dbzt_input = it_dbzt_input dbzc_input = it_dbzc_input dbzl_input = it_dbzl_input dbdp_input = it_dbdp_input dbsa_input = it_dbsa_input dbjt_input = it_dbjt_input dbjc_input = it_dbjc_input dban_input = it_dban_input dbpa_input = it_dbpa_input dbwr_input = it_dbwr_input dbar_input = it_dbar_input dbft_input = it_dbft_input dbob_input = it_dbob_input dbos_input = it_dbos_input dbif_input = it_dbif_input sgtext_input = it_sgtext_input * error = it_error CHANGING headsg_input = ld_headsg_input maxsg_tindx_input = ld_maxsg_tindx_input . " RSAQ_COMPUTE_CODING_ORDERS_SEG
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_headsg_input  TYPE AQHDSG ,
ld_error_count  TYPE AQADEF-ERROR_CNT ,
ld_update_flag  TYPE AQS_FLAG ,
it_clogsg_input  TYPE STANDARD TABLE OF AQCLSG ,
wa_clogsg_input  LIKE LINE OF it_clogsg_input,
ld_maxsg_tindx_input  TYPE AQADEF-TINDX ,
ld_error_found  TYPE AQADEF-FLAG ,
ld_i_sgna  TYPE AQS_TNAME ,
it_dbsg_input  TYPE STANDARD TABLE OF AQDBSG ,
wa_dbsg_input  LIKE LINE OF it_dbsg_input,
it_dbsf_input  TYPE STANDARD TABLE OF AQDBSF ,
wa_dbsf_input  LIKE LINE OF it_dbsf_input,
it_dbzt_input  TYPE STANDARD TABLE OF AQDBZT ,
wa_dbzt_input  LIKE LINE OF it_dbzt_input,
it_dbzc_input  TYPE STANDARD TABLE OF AQDBZC ,
wa_dbzc_input  LIKE LINE OF it_dbzc_input,
it_dbzl_input  TYPE STANDARD TABLE OF AQDBZL ,
wa_dbzl_input  LIKE LINE OF it_dbzl_input,
it_dbdp_input  TYPE STANDARD TABLE OF AQDBDP ,
wa_dbdp_input  LIKE LINE OF it_dbdp_input,
it_dbsa_input  TYPE STANDARD TABLE OF AQDBSA ,
wa_dbsa_input  LIKE LINE OF it_dbsa_input,
it_dbjt_input  TYPE STANDARD TABLE OF AQDBJT ,
wa_dbjt_input  LIKE LINE OF it_dbjt_input,
it_dbjc_input  TYPE STANDARD TABLE OF AQDBJC ,
wa_dbjc_input  LIKE LINE OF it_dbjc_input,
it_dban_input  TYPE STANDARD TABLE OF AQDBAN ,
wa_dban_input  LIKE LINE OF it_dban_input,
it_dbpa_input  TYPE STANDARD TABLE OF AQDBPA ,
wa_dbpa_input  LIKE LINE OF it_dbpa_input,
it_dbwr_input  TYPE STANDARD TABLE OF AQDBWR ,
wa_dbwr_input  LIKE LINE OF it_dbwr_input,
it_dbar_input  TYPE STANDARD TABLE OF AQDBAR ,
wa_dbar_input  LIKE LINE OF it_dbar_input,
it_dbft_input  TYPE STANDARD TABLE OF AQDBFT ,
wa_dbft_input  LIKE LINE OF it_dbft_input,
it_dbob_input  TYPE STANDARD TABLE OF AQDBOB ,
wa_dbob_input  LIKE LINE OF it_dbob_input,
it_dbos_input  TYPE STANDARD TABLE OF AQDBOS ,
wa_dbos_input  LIKE LINE OF it_dbos_input,
it_dbif_input  TYPE STANDARD TABLE OF AQDBIF ,
wa_dbif_input  LIKE LINE OF it_dbif_input,
it_sgtext_input  TYPE STANDARD TABLE OF AQTXSG ,
wa_sgtext_input  LIKE LINE OF it_sgtext_input,
it_error  TYPE STANDARD TABLE OF AQERROR ,
wa_error  LIKE LINE OF it_error.

ld_headsg_input = 'Check type of data required'.
ld_update_flag = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_clogsg_input to it_clogsg_input.

ld_maxsg_tindx_input = Check type of data required
ld_i_sgna = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dbsg_input to it_dbsg_input.

"populate fields of struture and append to itab
append wa_dbsf_input to it_dbsf_input.

"populate fields of struture and append to itab
append wa_dbzt_input to it_dbzt_input.

"populate fields of struture and append to itab
append wa_dbzc_input to it_dbzc_input.

"populate fields of struture and append to itab
append wa_dbzl_input to it_dbzl_input.

"populate fields of struture and append to itab
append wa_dbdp_input to it_dbdp_input.

"populate fields of struture and append to itab
append wa_dbsa_input to it_dbsa_input.

"populate fields of struture and append to itab
append wa_dbjt_input to it_dbjt_input.

"populate fields of struture and append to itab
append wa_dbjc_input to it_dbjc_input.

"populate fields of struture and append to itab
append wa_dban_input to it_dban_input.

"populate fields of struture and append to itab
append wa_dbpa_input to it_dbpa_input.

"populate fields of struture and append to itab
append wa_dbwr_input to it_dbwr_input.

"populate fields of struture and append to itab
append wa_dbar_input to it_dbar_input.

"populate fields of struture and append to itab
append wa_dbft_input to it_dbft_input.

"populate fields of struture and append to itab
append wa_dbob_input to it_dbob_input.

"populate fields of struture and append to itab
append wa_dbos_input to it_dbos_input.

"populate fields of struture and append to itab
append wa_dbif_input to it_dbif_input.

"populate fields of struture and append to itab
append wa_sgtext_input to it_sgtext_input.

"populate fields of struture and append to itab
append wa_error to it_error.

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