SAP Function Modules

RSOSC_APPEND_DIALOG_OPEN SAP Function module - Open dialog for appends







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

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


Pattern for FM RSOSC_APPEND_DIALOG_OPEN - RSOSC APPEND DIALOG OPEN





CALL FUNCTION 'RSOSC_APPEND_DIALOG_OPEN' "Open dialog for appends
  EXPORTING
    i_s_main =                  " rso_s_main    Main object of the append (only A Verison)
    i_display_only = RS_C_FALSE  " rs_bool      'X'-Display main object only
*   i_current_append =          " rsappendnm    If it is filled, 'Work on Append' is selected by default in the popup
  IMPORTING
    e_cancelled =               " rs_bool       True: User cancelled dialog
    e_edit_append =             " rs_bool       User chose to edit append(True) OR main object (False)
    e_appendnm =                " rsappendnm    Name of append (an enhancement)
    e_append_txtlg =            " string        Long text of append
    e_wrkmod =                  " rswrkmod      Working mode(Maintain/Delete/etc.)
    e_s_main =                  " rso_s_main    Main object of an append
  EXCEPTIONS
    OBJECT_NOT_FOUND = 1        "               The main object was not found
    .  "  RSOSC_APPEND_DIALOG_OPEN

ABAP code example for Function Module RSOSC_APPEND_DIALOG_OPEN





The ABAP code below is a full code listing to execute function module RSOSC_APPEND_DIALOG_OPEN 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_cancelled  TYPE RS_BOOL ,
ld_e_edit_append  TYPE RS_BOOL ,
ld_e_appendnm  TYPE RSAPPENDNM ,
ld_e_append_txtlg  TYPE STRING ,
ld_e_wrkmod  TYPE RSWRKMOD ,
ld_e_s_main  TYPE RSO_S_MAIN .

DATA(ld_i_s_main) = 'Check type of data required'.
DATA(ld_i_display_only) = 'Check type of data required'.
DATA(ld_i_current_append) = 'Check type of data required'. . CALL FUNCTION 'RSOSC_APPEND_DIALOG_OPEN' EXPORTING i_s_main = ld_i_s_main i_display_only = ld_i_display_only * i_current_append = ld_i_current_append IMPORTING e_cancelled = ld_e_cancelled e_edit_append = ld_e_edit_append e_appendnm = ld_e_appendnm e_append_txtlg = ld_e_append_txtlg e_wrkmod = ld_e_wrkmod e_s_main = ld_e_s_main EXCEPTIONS OBJECT_NOT_FOUND = 1 . " RSOSC_APPEND_DIALOG_OPEN
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_e_cancelled  TYPE RS_BOOL ,
ld_i_s_main  TYPE RSO_S_MAIN ,
ld_e_edit_append  TYPE RS_BOOL ,
ld_i_display_only  TYPE RS_BOOL ,
ld_e_appendnm  TYPE RSAPPENDNM ,
ld_i_current_append  TYPE RSAPPENDNM ,
ld_e_append_txtlg  TYPE STRING ,
ld_e_wrkmod  TYPE RSWRKMOD ,
ld_e_s_main  TYPE RSO_S_MAIN .

ld_i_s_main = 'Check type of data required'.
ld_i_display_only = 'Check type of data required'.
ld_i_current_append = 'Check type of data required'.

SAP Documentation for FM RSOSC_APPEND_DIALOG_OPEN


This function module calls the open dialog for appends for a given main object. ...See here for full SAP fm documentation




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