SAP Function Modules

IWB_KXF_PARSE_IO_SECTION SAP Function module







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

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


Pattern for FM IWB_KXF_PARSE_IO_SECTION - IWB KXF PARSE IO SECTION





CALL FUNCTION 'IWB_KXF_PARSE_IO_SECTION' "
  EXPORTING
    ionr =                      " sdok_fnumb
*   need_mdoc_seqnr1 = ' '      " c
*   need_level = ' '            " c
  IMPORTING
    tech_name =                 " sdok_propv
    kxfobj =                    " iwkxfobj
    style_templ =               " sdok_filnm
    ext_templ =                 " sdok_filnm
    error_msg =                 " iwerrormsg
  TABLES
    kxffile =                   " iwfile
    kxfsections =               " iwkxfline
    kxfcomps =                  " sdokcomprp
    .  "  IWB_KXF_PARSE_IO_SECTION

ABAP code example for Function Module IWB_KXF_PARSE_IO_SECTION





The ABAP code below is a full code listing to execute function module IWB_KXF_PARSE_IO_SECTION 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_tech_name  TYPE SDOK_PROPV ,
ld_kxfobj  TYPE IWKXFOBJ ,
ld_style_templ  TYPE SDOK_FILNM ,
ld_ext_templ  TYPE SDOK_FILNM ,
ld_error_msg  TYPE IWERRORMSG ,
it_kxffile  TYPE STANDARD TABLE OF IWFILE,"TABLES PARAM
wa_kxffile  LIKE LINE OF it_kxffile ,
it_kxfsections  TYPE STANDARD TABLE OF IWKXFLINE,"TABLES PARAM
wa_kxfsections  LIKE LINE OF it_kxfsections ,
it_kxfcomps  TYPE STANDARD TABLE OF SDOKCOMPRP,"TABLES PARAM
wa_kxfcomps  LIKE LINE OF it_kxfcomps .

DATA(ld_ionr) = 'Check type of data required'.
DATA(ld_need_mdoc_seqnr1) = 'Check type of data required'.
DATA(ld_need_level) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_kxffile to it_kxffile.

"populate fields of struture and append to itab
append wa_kxfsections to it_kxfsections.

"populate fields of struture and append to itab
append wa_kxfcomps to it_kxfcomps. . CALL FUNCTION 'IWB_KXF_PARSE_IO_SECTION' EXPORTING ionr = ld_ionr * need_mdoc_seqnr1 = ld_need_mdoc_seqnr1 * need_level = ld_need_level IMPORTING tech_name = ld_tech_name kxfobj = ld_kxfobj style_templ = ld_style_templ ext_templ = ld_ext_templ error_msg = ld_error_msg TABLES kxffile = it_kxffile kxfsections = it_kxfsections kxfcomps = it_kxfcomps . " IWB_KXF_PARSE_IO_SECTION
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_tech_name  TYPE SDOK_PROPV ,
ld_ionr  TYPE SDOK_FNUMB ,
it_kxffile  TYPE STANDARD TABLE OF IWFILE ,
wa_kxffile  LIKE LINE OF it_kxffile,
ld_kxfobj  TYPE IWKXFOBJ ,
ld_need_mdoc_seqnr1  TYPE C ,
it_kxfsections  TYPE STANDARD TABLE OF IWKXFLINE ,
wa_kxfsections  LIKE LINE OF it_kxfsections,
ld_style_templ  TYPE SDOK_FILNM ,
ld_need_level  TYPE C ,
it_kxfcomps  TYPE STANDARD TABLE OF SDOKCOMPRP ,
wa_kxfcomps  LIKE LINE OF it_kxfcomps,
ld_ext_templ  TYPE SDOK_FILNM ,
ld_error_msg  TYPE IWERRORMSG .

ld_ionr = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_kxffile to it_kxffile.
ld_need_mdoc_seqnr1 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_kxfsections to it_kxfsections.
ld_need_level = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_kxfcomps to it_kxfcomps.

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