SAP Function CARD_CHAR_READ_DEP -

Parameter Reference Type Length Default Optional Text
CHANGE_NO CAPIPARMS-CHANGE_NO C 12 SPACE X with change number
CHARACTERISTIC CAPIPARMS-CHARACT C 30 X Characteristic
DATE CAPIPARMS-DATE C 10 SY-DATUM X from
GET_NEXT_DEPENDENCY CAPIPARMS-GET_NEXT C 1 SPACE X Flag: read next object dependency, otherwise: first

Parameter Reference Type Length Text
DEPENDENCY_DATA DEPDAT u 20 Basic data of dependency
DEPENDENCY_ORDER CAPIPARMS-PROC_ORDER N 4 Procedure order_
RETURN BAPIRETURN u 452 Return code

Parameter Reference Length Optional Text
DEP_ASSIGN GLDEP_ALL 34 X List of assigned global object dependencies_
DESCRIPTION DEPDESCR 34 X Object dependency description
DOCUMENTATION DOC_LANG 141 X Object dependency documentation
SOURCE DEPSOURCE 76 X Object dependency source text

Functionality
You can use this function module to read the dependencies for acharacteristic. The first time you call this module, you see a list ofthe names of global dependencies. Each time you call this module, yousee a local dependency with source code, description, and anydocumentation.

Example
*=======================================================================
* Characteristic: Read dependency
*=======================================================================
data: basic like depdat,
descr like depdescr occurs 0 with header line,
docu like doc_lang occurs 0 with header line,
source like depsource occurs 0 with header line.
data: get_next(1) type c value ' '.
* Initialize API calls
call function 'CALO_INIT_API' ...
do.
call function 'CARD_CHAR_READ_DEP'
exporting
characteristic = 'CHAR1'
get_next_dependency = get_next
importing
basic_data = basic
tables
description = descr
documentation = docu
source = source
dep_assign = alloc
exceptions
error = 1
warning = 2
others = 3.
if sy-subrc <> 0.
if sy-subrc > 1.
"error handling...
endif.
exit.
endif.
loop at source.
"...
endloop.
get_next = 'X'.
enddo.
*=======================================================================