Ansicht
Dokumentation

EDI_VIEW_READ - Read attributes and syntax for view

EDI_VIEW_READ - Read attributes and syntax for view

RFUMSV00 - Advance Return for Tax on Sales/Purchases   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module can be used to read the attributes and syntax of an IDoc view. The attributes of the IDoc view contain the description of the IDoc view, as well as the assigned basic type, the assigned extension and the assigned logical message. In addition, parameters can be used to control whether the development class is also read and whether authorization checks take place. The syntax table PT_SYNTAX is maintained with the IDoc segments contained in the view (positive logic).

Example

Scenario: using IDoc views in outbound processing:

data: l_ediview like edview-ediview,
l_edk13 like edk13,
l_edp13 like edp13,
lt_viewsyntax like viewsyn occurs 0 with header line.

* Fill edk13 structure to read the partner profile
perform fill_edk13 using l_edk13.

* Read the partner profile
call function 'EDI_PARTNER_APPL_READ_OUT'
exporting
rec_edk13 = l_edk13
importing
rec_edp13 = l_edp13
exceptions
others = 1.

* Determine the IDoc view which is used
l_edview = l_edp13-ediview.

* Fill the IDoc segments with application data
if l_ediview is initial.
* If no IDoc view is used, fill all segments
...
else.
* An IDoc view is used
* Read the syntax of the IDoc view
call function 'EDI_VIEW_READ'
exporting
pi_view = l_ediview
pi_check_authority = 'X'
pi_read_devc = ' '
tables
pt_syntax = lt_viewsyntax
exceptions
others = 1.
* Only fill segments from table lt_viewsyn
....
endif.

Notes

Further information





Parameters

PE_ATTRIBUTES
PI_CHECK_AUTHORITY
PI_READ_DEVC
PI_VIEW
PT_SYNTAX

Exceptions

DB_ERROR
NO_AUTHORITY
OBJECT_NOT_FOUND

Function Group

EDIM

PERFORM Short Reference   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 2748 Date: 20240523 Time: 094127     sap01-206 ( 35 ms )