/OPT/BAPIRET2 SAP (Table to log ICC <-> SAP process errors) Table details

Dictionary Type: Table
Description: Table to log ICC <-> SAP process errors




ABAP Code to SELECT data from /OPT/BAPIRET2
Related tables to /OPT/BAPIRET2
Access table /OPT/BAPIRET2




Table field list including key, data, relationships and ABAP select examples

/OPT/BAPIRET2 is a standard SAP Table which is used to store Table to log ICC <-> SAP process errors data and is available within R/3 SAP systems depending on the version and release level.

The /OPT/BAPIRET2 table consists of various fields, each holding specific information or linking keys about Table to log ICC <-> SAP process errors data available in SAP. These include DOCID (Document Ledger Number), STEPID (Step ID for ICC & SAP Integration), COUNTER (Counter), MSGTY (Message Type).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .

Delivery Class: A - Application table (master and transaction data)
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified


SAP /OPT/BAPIRET2 table fields - Full list of fields found in SAP data dictionary

Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
MANDTClient MANDTCLNT3Assigned to domainMANDT
DOCIDDocument Ledger Number /OPT/DOCIDNUMC12Assigned to domain/OPT/DOCID/OPT/DOCID/OPT/DOCID
STEPIDStep ID for ICC & SAP Integration /OPT/ICC_STEPIDNUMC2/OPT/ICC_STEPID
COUNTERCounter /OPT/VIM_COUNTERNUMC2
MSGTYMessage Type SYMSGTYCHAR1SYCHAR01
MSGIDMessage Class SYMSGIDCHAR20Assigned to domainARBGB
MSGNOMessage Number SYMSGNONUMC3SYMSGNO
MESSAGEMessage Text BAPI_MSGCHAR220TEXT220
LOG_NOApplication log: log number BALOGNRCHAR20Assigned to domainBALOGNR
LOG_MSG_NOApplication log: Internal message serial number BALMNRNUMC6Assigned to domainBALMNR
MESSAGE_V1Message Variable SYMSGVCHAR50SYCHAR50
MESSAGE_V2Message Variable SYMSGVCHAR50SYCHAR50
MESSAGE_V3Message Variable SYMSGVCHAR50SYCHAR50
MESSAGE_V4Message Variable SYMSGVCHAR50SYCHAR50

Key field Non-key field



How do I retrieve data from SAP table /OPT/BAPIRET2 using ABAP code

The following ABAP code Example will allow you to do a basic selection on /OPT/BAPIRET2 to SELECT all data from the table
DATA: WA_/OPT/BAPIRET2 TYPE /OPT/BAPIRET2.

SELECT SINGLE *
FROM /OPT/BAPIRET2
INTO CORRESPONDING FIELDS OF WA_/OPT/BAPIRET2
WHERE...

How to access SAP table /OPT/BAPIRET2

Within an ECC or HANA version of SAP you can also view further information about /OPT/BAPIRET2 and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!