Show TOC

its_import_context FunctionLocate this document in the navigation structure

Use

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.

its_import_context
context   (out, ITAB)
         

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:

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.