SAP Function Modules

EWW_TASK_CONTAINER_READ SAP Function module







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

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


Pattern for FM EWW_TASK_CONTAINER_READ - EWW TASK CONTAINER READ





CALL FUNCTION 'EWW_TASK_CONTAINER_READ' "
  EXPORTING
    x_plvar =                   " plog-plvar
    x_rhotype =                 " plog-otype
    x_rhobjid =                 " plog-objid
*   x_date = SY-DATUM           " plog-begda
*   x_langu = SY-LANGU          " sy-langu
*   x_appdend_defaults =        " ebagen-kennzx
  TABLES
    yt_contdef =                " swcontdef
*   yt_conttext =               " hrcont_txt
    .  "  EWW_TASK_CONTAINER_READ

ABAP code example for Function Module EWW_TASK_CONTAINER_READ





The ABAP code below is a full code listing to execute function module EWW_TASK_CONTAINER_READ 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:
it_yt_contdef  TYPE STANDARD TABLE OF SWCONTDEF,"TABLES PARAM
wa_yt_contdef  LIKE LINE OF it_yt_contdef ,
it_yt_conttext  TYPE STANDARD TABLE OF HRCONT_TXT,"TABLES PARAM
wa_yt_conttext  LIKE LINE OF it_yt_conttext .


SELECT single PLVAR
FROM PLOG
INTO @DATA(ld_x_plvar).


SELECT single OTYPE
FROM PLOG
INTO @DATA(ld_x_rhotype).


SELECT single OBJID
FROM PLOG
INTO @DATA(ld_x_rhobjid).


SELECT single BEGDA
FROM PLOG
INTO @DATA(ld_x_date).

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

DATA(ld_x_appdend_defaults) = some text here

"populate fields of struture and append to itab
append wa_yt_contdef to it_yt_contdef.

"populate fields of struture and append to itab
append wa_yt_conttext to it_yt_conttext. . CALL FUNCTION 'EWW_TASK_CONTAINER_READ' EXPORTING x_plvar = ld_x_plvar x_rhotype = ld_x_rhotype x_rhobjid = ld_x_rhobjid * x_date = ld_x_date * x_langu = ld_x_langu * x_appdend_defaults = ld_x_appdend_defaults TABLES yt_contdef = it_yt_contdef * yt_conttext = it_yt_conttext . " EWW_TASK_CONTAINER_READ
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_x_plvar  TYPE PLOG-PLVAR ,
it_yt_contdef  TYPE STANDARD TABLE OF SWCONTDEF ,
wa_yt_contdef  LIKE LINE OF it_yt_contdef,
ld_x_rhotype  TYPE PLOG-OTYPE ,
it_yt_conttext  TYPE STANDARD TABLE OF HRCONT_TXT ,
wa_yt_conttext  LIKE LINE OF it_yt_conttext,
ld_x_rhobjid  TYPE PLOG-OBJID ,
ld_x_date  TYPE PLOG-BEGDA ,
ld_x_langu  TYPE SY-LANGU ,
ld_x_appdend_defaults  TYPE EBAGEN-KENNZX .


SELECT single PLVAR
FROM PLOG
INTO ld_x_plvar.


"populate fields of struture and append to itab
append wa_yt_contdef to it_yt_contdef.

SELECT single OTYPE
FROM PLOG
INTO ld_x_rhotype.


"populate fields of struture and append to itab
append wa_yt_conttext to it_yt_conttext.

SELECT single OBJID
FROM PLOG
INTO ld_x_rhobjid.


SELECT single BEGDA
FROM PLOG
INTO ld_x_date.

ld_x_langu = 'Check type of data required'.

ld_x_appdend_defaults = 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 EWW_TASK_CONTAINER_READ or its description.