Show TOC

Background documentationits_import_context Function Locate this document in the navigation structure

 

You use the its_import_context function to return all context fields from the ITS as an internal table.This is useful if the number of fields to be returned from the Web browser is too large or unknown.

Syntax Syntax

  1. its_import_context
    context   (out, ITAB)
End of the code.
Parameters

Parameter

Description

context

Table of structure SAVWCTXT.

context has the following members:

Member

Description

fieldname

Context field name.

fieldindex

Context field index, starting from 1.

fieldcont

Context field content.

Since the size fieldcont is limited to 255 bytes, long context fields may be truncated. If you need to transfer larger amounts of data, use field-get instead.

Example

The following example shows how you can return all context fields from the ITS:

Syntax Syntax

  1. data: context like savwctxt occurs 0 with header line.
    call function ‘its_import_context’
       tables 
          context = context
       exceptions
          its_not_available = 1
          others            = 2.
    if sy-subrc <> 0.
       exit.
    endif.
    loop at context.
       …
    endloop.
    
End of the code.