SAP Function Modules

EUP_GENERATE_IFORM_WITH_FIELDS SAP Function module - Generate interactive form with fields.







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

Associated Function Group: GP_PROCESS_RUNTIME
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM EUP_GENERATE_IFORM_WITH_FIELDS - EUP GENERATE IFORM WITH FIELDS





CALL FUNCTION 'EUP_GENERATE_IFORM_WITH_FIELDS' "Generate interactive form with fields.
  EXPORTING
    iv_template_id =            " guid_32       GUID in 'CHAR' Format in Uppercase
    iv_global_version =         " int4          Natural number
    iv_local_version =          " int4          Natural number
    iv_executor =               " sy-uname      User Name
    iv_accept_by =              " dats          Field of type DATS
    iv_anonymos =               " char1         Single-Character Flag
*   iv_delivery_channel =       " string
*   iv_recipient_address =      " string
*   iv_message_form_file_name =   " string
*   iv_message_attachment_one =   " eup_form_attachment  Hold an attachment to be sent along with an Interactive Form
*   iv_message_attachment_two =   " eup_form_attachment  Hold an attachment to be sent along with an Interactive Form
    iv_system_id =              " sy-sysid      Name of SAP R/3 System
  IMPORTING
    ev_mime_type =              " string
    ev_form_data =              " xstring
    ev_task_id =                " guid_32       GUID in 'CHAR' Format in Uppercase
* TABLES
*   it_fields =                 " eup_st_co_field_table  Callable object fields table.
*   it_message_template_fields =   " eup_message_template_fields  Name, value pairs used for generating interactive forms.
  EXCEPTIONS
    ENGINE_EXCEPTION = 1        "
    INVOCATION_EXCEPTION = 2    "
    .  "  EUP_GENERATE_IFORM_WITH_FIELDS

ABAP code example for Function Module EUP_GENERATE_IFORM_WITH_FIELDS





The ABAP code below is a full code listing to execute function module EUP_GENERATE_IFORM_WITH_FIELDS 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_ev_mime_type  TYPE STRING ,
ld_ev_form_data  TYPE XSTRING ,
ld_ev_task_id  TYPE GUID_32 ,
it_it_fields  TYPE STANDARD TABLE OF EUP_ST_CO_FIELD_TABLE,"TABLES PARAM
wa_it_fields  LIKE LINE OF it_it_fields ,
it_it_message_template_fields  TYPE STANDARD TABLE OF EUP_MESSAGE_TEMPLATE_FIELDS,"TABLES PARAM
wa_it_message_template_fields  LIKE LINE OF it_it_message_template_fields .

DATA(ld_iv_template_id) = 'Check type of data required'.
DATA(ld_iv_global_version) = 'Check type of data required'.
DATA(ld_iv_local_version) = 'Check type of data required'.
DATA(ld_iv_executor) = 'some text here'.
DATA(ld_iv_accept_by) = 'some text here'.
DATA(ld_iv_anonymos) = 'some text here'.
DATA(ld_iv_delivery_channel) = 'some text here'.
DATA(ld_iv_recipient_address) = 'some text here'.
DATA(ld_iv_message_form_file_name) = 'some text here'.
DATA(ld_iv_message_attachment_one) = 'some text here'.
DATA(ld_iv_message_attachment_two) = 'some text here'.
DATA(ld_iv_system_id) = 'some text here'.

"populate fields of struture and append to itab
append wa_it_fields to it_it_fields.

"populate fields of struture and append to itab
append wa_it_message_template_fields to it_it_message_template_fields. . CALL FUNCTION 'EUP_GENERATE_IFORM_WITH_FIELDS' EXPORTING iv_template_id = ld_iv_template_id iv_global_version = ld_iv_global_version iv_local_version = ld_iv_local_version iv_executor = ld_iv_executor iv_accept_by = ld_iv_accept_by iv_anonymos = ld_iv_anonymos * iv_delivery_channel = ld_iv_delivery_channel * iv_recipient_address = ld_iv_recipient_address * iv_message_form_file_name = ld_iv_message_form_file_name * iv_message_attachment_one = ld_iv_message_attachment_one * iv_message_attachment_two = ld_iv_message_attachment_two iv_system_id = ld_iv_system_id IMPORTING ev_mime_type = ld_ev_mime_type ev_form_data = ld_ev_form_data ev_task_id = ld_ev_task_id * TABLES * it_fields = it_it_fields * it_message_template_fields = it_it_message_template_fields EXCEPTIONS ENGINE_EXCEPTION = 1 INVOCATION_EXCEPTION = 2 . " EUP_GENERATE_IFORM_WITH_FIELDS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_ev_mime_type  TYPE STRING ,
ld_iv_template_id  TYPE GUID_32 ,
it_it_fields  TYPE STANDARD TABLE OF EUP_ST_CO_FIELD_TABLE ,
wa_it_fields  LIKE LINE OF it_it_fields,
ld_ev_form_data  TYPE XSTRING ,
ld_iv_global_version  TYPE INT4 ,
it_it_message_template_fields  TYPE STANDARD TABLE OF EUP_MESSAGE_TEMPLATE_FIELDS ,
wa_it_message_template_fields  LIKE LINE OF it_it_message_template_fields,
ld_ev_task_id  TYPE GUID_32 ,
ld_iv_local_version  TYPE INT4 ,
ld_iv_executor  TYPE SY-UNAME ,
ld_iv_accept_by  TYPE DATS ,
ld_iv_anonymos  TYPE CHAR1 ,
ld_iv_delivery_channel  TYPE STRING ,
ld_iv_recipient_address  TYPE STRING ,
ld_iv_message_form_file_name  TYPE STRING ,
ld_iv_message_attachment_one  TYPE EUP_FORM_ATTACHMENT ,
ld_iv_message_attachment_two  TYPE EUP_FORM_ATTACHMENT ,
ld_iv_system_id  TYPE SY-SYSID .

ld_iv_template_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_fields to it_it_fields.
ld_iv_global_version = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_message_template_fields to it_it_message_template_fields.
ld_iv_local_version = 'Check type of data required'.
ld_iv_executor = 'some text here'.
ld_iv_accept_by = 'some text here'.
ld_iv_anonymos = 'some text here'.
ld_iv_delivery_channel = 'some text here'.
ld_iv_recipient_address = 'some text here'.
ld_iv_message_form_file_name = 'some text here'.
ld_iv_message_attachment_one = 'some text here'.
ld_iv_message_attachment_two = 'some text here'.
ld_iv_system_id = '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 EUP_GENERATE_IFORM_WITH_FIELDS or its description.