SAP Diag

The following subsections show a graphical representation of the main protocol packets and how to generate them.

First we need to perform some setup to import the packet classes:


In [1]:
from pysap.SAPDiag import *
from pysap.SAPDiagItems import *
from IPython.display import display

SAP Diag DP Header packet


In [2]:
p = SAPDiagDP()
p.canvas_dump()


Out[2]:

SAP Diag packet


In [3]:
p = SAPDiag()
p.canvas_dump()


Out[3]:

SAP Diag Items


In [4]:
for item_type in diag_item_types:
    p = SAPDiagItem(item_type=item_type)
    p.item_value = ""
    print(diag_item_types[item_type])
    display(p.canvas_dump())


SES
ICO
TIT
DiagMessage
OKC
CHL
SFE
SBA
EOM
APPL
DIAG_XMLBLOB
APPL4
SLC
SBA2

SAP Diag APPL/APPL4 Items


In [5]:
for appl_id in diag_appl_ids:
    for appl_sid in diag_appl_sids[appl_id]:
        p = SAPDiagItem(item_type="APPL", item_id=appl_id, item_sid=appl_sid)
        cls = diag_item_get_class(p, "APPL", appl_id, appl_sid)
        print("SAP Diag APPL Item ID={}, SID={}".format(diag_appl_ids[appl_id], diag_appl_sids[appl_id][appl_sid]))
        if cls:
            p.item_value = cls()
            display(p.canvas_dump())
            display(p.item_value.canvas_dump())


SAP Diag APPL Item ID=SCRIPT, SID=SCRIPT_OTF
SAP Diag APPL Item ID=SCRIPT, SID=SCRIPT_SCREEN
SAP Diag APPL Item ID=SCRIPT, SID=SCRIPT_POSTSCRIPT
SAP Diag APPL Item ID=SCRIPT, SID=SCRIPT_ITF
SAP Diag APPL Item ID=GRAPH, SID=GRAPH RELEASE 3
SAP Diag APPL Item ID=GRAPH, SID=GRAPH RELEASE 5
SAP Diag APPL Item ID=IXOS, SID=ABLAGE
SAP Diag APPL Item ID=IXOS, SID=ANZEIGE
SAP Diag APPL Item ID=IXOS, SID=IXOS_COMMAND
SAP Diag APPL Item ID=ST_USER, SID=V1
SAP Diag APPL Item ID=ST_USER, SID=CONNECT
SAP Diag APPL Item ID=ST_USER, SID=SELECTEDRECT
SAP Diag APPL Item ID=ST_USER, SID=FONTMETRIC
SAP Diag APPL Item ID=ST_USER, SID=TABLEMETRIC
SAP Diag APPL Item ID=ST_USER, SID=GUITIME
SAP Diag APPL Item ID=ST_USER, SID=GUITIMEZONE
SAP Diag APPL Item ID=ST_USER, SID=TURNTIME
SAP Diag APPL Item ID=ST_USER, SID=GUIVERSION
SAP Diag APPL Item ID=ST_USER, SID=SUPPORTDATA
SAP Diag APPL Item ID=ST_USER, SID=RFC_CONNECT
SAP Diag APPL Item ID=ST_USER, SID=WSIZE
SAP Diag APPL Item ID=ST_USER, SID=V2
SAP Diag APPL Item ID=ST_USER, SID=TURNTIME2
SAP Diag APPL Item ID=ST_USER, SID=RFC_PARENT_UUID
SAP Diag APPL Item ID=ST_USER, SID=RFC_NEW_UUID
SAP Diag APPL Item ID=ST_USER, SID=RFC_UUIDS
SAP Diag APPL Item ID=ST_USER, SID=RFC_UUIDS2
SAP Diag APPL Item ID=ST_USER, SID=XML_LOGIN
SAP Diag APPL Item ID=ST_USER, SID=XML_TRANSACTION
SAP Diag APPL Item ID=ST_USER, SID=SCROLLBAR_WIDTH
SAP Diag APPL Item ID=ST_USER, SID=TOOLBAR_HEIGHT
SAP Diag APPL Item ID=ST_USER, SID=PASSPORT_DATA
SAP Diag APPL Item ID=ST_USER, SID=GUI_STATE
SAP Diag APPL Item ID=ST_USER, SID=DECIMALPOINT
SAP Diag APPL Item ID=ST_USER, SID=LANGUAGE
SAP Diag APPL Item ID=ST_USER, SID=USERNAME
SAP Diag APPL Item ID=ST_USER, SID=GUIPATCHLEVEL
SAP Diag APPL Item ID=ST_USER, SID=WSIZE_PIXEL
SAP Diag APPL Item ID=ST_USER, SID=GUI_OS_VERSION
SAP Diag APPL Item ID=ST_USER, SID=BROWSER_VERSION
SAP Diag APPL Item ID=ST_USER, SID=OFFICE_VERSION
SAP Diag APPL Item ID=ST_USER, SID=JDK_VERSION
SAP Diag APPL Item ID=ST_USER, SID=GUIXT_VERSION
SAP Diag APPL Item ID=ST_USER, SID=DISPLAY_SIZE
SAP Diag APPL Item ID=ST_USER, SID=GUI_TYPE
SAP Diag APPL Item ID=ST_USER, SID=DIALOG_STEP_NUMBER
SAP Diag APPL Item ID=DYNN, SID=CHL
SAP Diag APPL Item ID=DYNN, SID=XMLPROP DYNPRO
SAP Diag APPL Item ID=ST_R3INFO, SID=MODENUMBER
SAP Diag APPL Item ID=ST_R3INFO, SID=DBNAME
SAP Diag APPL Item ID=ST_R3INFO, SID=CPUNAME
SAP Diag APPL Item ID=ST_R3INFO, SID=RFC_TRIGGER
SAP Diag APPL Item ID=ST_R3INFO, SID=GUI_LABEL
SAP Diag APPL Item ID=ST_R3INFO, SID=DIAGVERSION
SAP Diag APPL Item ID=ST_R3INFO, SID=TCODE
SAP Diag APPL Item ID=ST_R3INFO, SID=RFC_WAITING
SAP Diag APPL Item ID=ST_R3INFO, SID=RFC_REFRESH
SAP Diag APPL Item ID=ST_R3INFO, SID=IMODENUMBER
SAP Diag APPL Item ID=ST_R3INFO, SID=MESSAGE
SAP Diag APPL Item ID=ST_R3INFO, SID=CLIENT
SAP Diag APPL Item ID=ST_R3INFO, SID=DYNPRONAME
SAP Diag APPL Item ID=ST_R3INFO, SID=DYNPRONUMBER
SAP Diag APPL Item ID=ST_R3INFO, SID=CUANAME
SAP Diag APPL Item ID=ST_R3INFO, SID=CUASTATUS
SAP Diag APPL Item ID=ST_R3INFO, SID=SUPPORTDATA
SAP Diag APPL Item ID=ST_R3INFO, SID=RFC_CONNECT_OK
SAP Diag APPL Item ID=ST_R3INFO, SID=GUI_FKEY
SAP Diag APPL Item ID=ST_R3INFO, SID=GUI_FKEYT
SAP Diag APPL Item ID=ST_R3INFO, SID=STOP_TRANS
SAP Diag APPL Item ID=ST_R3INFO, SID=RFC_DIAG_BLOCK_SIZE
SAP Diag APPL Item ID=ST_R3INFO, SID=USER_CHECKED
SAP Diag APPL Item ID=ST_R3INFO, SID=FLAGS
SAP Diag APPL Item ID=ST_R3INFO, SID=USERID
SAP Diag APPL Item ID=ST_R3INFO, SID=ROLLCOUNT
SAP Diag APPL Item ID=ST_R3INFO, SID=GUI_XT_VAR
SAP Diag APPL Item ID=ST_R3INFO, SID=IMODEUUID
SAP Diag APPL Item ID=ST_R3INFO, SID=IMODEUUID_INVALIDATE
SAP Diag APPL Item ID=ST_R3INFO, SID=IMODEUUIDS
SAP Diag APPL Item ID=ST_R3INFO, SID=IMODEUUIDS2
SAP Diag APPL Item ID=ST_R3INFO, SID=CODEPAGE
SAP Diag APPL Item ID=ST_R3INFO, SID=CONTEXTID
SAP Diag APPL Item ID=ST_R3INFO, SID=AUTOLOGOUT_TIME
SAP Diag APPL Item ID=ST_R3INFO, SID=CODEPAGE_DIAG_GUI
SAP Diag APPL Item ID=ST_R3INFO, SID=CODEPAGE_APP_SERVER
SAP Diag APPL Item ID=ST_R3INFO, SID=GUI_THEME
SAP Diag APPL Item ID=ST_R3INFO, SID=GUI_USER_SCRIPTING
SAP Diag APPL Item ID=ST_R3INFO, SID=CODEPAGE_APP_SERVER_1
SAP Diag APPL Item ID=ST_R3INFO, SID=TICKET4GUI
SAP Diag APPL Item ID=ST_R3INFO, SID=KERNEL_VERSION
SAP Diag APPL Item ID=ST_R3INFO, SID=STD_TOOLBAR_ITEMS
SAP Diag APPL Item ID=POPU, SID=DEST
SAP Diag APPL Item ID=RFC_TR, SID=RFC_TR_REQ
SAP Diag APPL Item ID=RFC_TR, SID=RFC_TR_RET
SAP Diag APPL Item ID=RFC_TR, SID=RFC_TR_ERR
SAP Diag APPL Item ID=RFC_TR, SID=RFC_TR_RQT
SAP Diag APPL Item ID=RFC_TR, SID=RFC_TR_MOR
SAP Diag APPL Item ID=RFC_TR, SID=RFC_TR_MOB
SAP Diag APPL Item ID=RFC_TR, SID=RFC_TR_RNB
SAP Diag APPL Item ID=RFC_TR, SID=RFC_TR_RNT
SAP Diag APPL Item ID=RFC_TR, SID=RFC_TR_DIS
SAP Diag APPL Item ID=RFC_TR, SID=RFC_TR_CALL
SAP Diag APPL Item ID=RFC_TR, SID=RFC_TR_CALL_END
SAP Diag APPL Item ID=RFC_TR, SID=RFC_TR_RES
SAP Diag APPL Item ID=DYNT, SID=DYNT_FOCUS
SAP Diag APPL Item ID=DYNT, SID=DYNT_ATOM
SAP Diag APPL Item ID=DYNT, SID=DYNT_EVENT_UNUSED
SAP Diag APPL Item ID=DYNT, SID=TABLE_ROW_REFERENCE
SAP Diag APPL Item ID=DYNT, SID=TABLE_ROW_DAT_INPUT_DUMMY
SAP Diag APPL Item ID=DYNT, SID=TABLE_INPUT_HEADER
SAP Diag APPL Item ID=DYNT, SID=TABLE_OUTPUT_HEADER
SAP Diag APPL Item ID=DYNT, SID=TABLE_ROW_DATA_INPUT
SAP Diag APPL Item ID=DYNT, SID=TABLE_ROW_DATA_OUTPUT
SAP Diag APPL Item ID=DYNT, SID=DYNT_NOFOCUS
SAP Diag APPL Item ID=DYNT, SID=DYNT_FOCUS_1
SAP Diag APPL Item ID=DYNT, SID=TABLE_ROW_REFERENCE_1
SAP Diag APPL Item ID=DYNT, SID=TABLE_FIELD_NAMES
SAP Diag APPL Item ID=DYNT, SID=TABLE_HEADER
SAP Diag APPL Item ID=DYNT, SID=DYNT_TABSTRIP_HEADER
SAP Diag APPL Item ID=DYNT, SID=DYNT_TABSTRIP_BUTTONS
SAP Diag APPL Item ID=DYNT, SID=TABLE_ROW_REFERENCE_2
SAP Diag APPL Item ID=DYNT, SID=DYNT_CONTROL_FOCUS
SAP Diag APPL Item ID=DYNT, SID=DYNT_TC_COLUMN_TITLE_XMLP
SAP Diag APPL Item ID=DYNT, SID=DYNT_TC_ROW_SELECTOR_NAME
SAP Diag APPL Item ID=DYNT, SID=DYNT_FOCUS_FRAME
SAP Diag APPL Item ID=CONTAINER, SID=RESET
SAP Diag APPL Item ID=CONTAINER, SID=DEFAULT
SAP Diag APPL Item ID=CONTAINER, SID=SUBSCREEN
SAP Diag APPL Item ID=CONTAINER, SID=LOOP
SAP Diag APPL Item ID=CONTAINER, SID=TABLE
SAP Diag APPL Item ID=CONTAINER, SID=NAME
SAP Diag APPL Item ID=CONTAINER, SID=TABSTRIP
SAP Diag APPL Item ID=CONTAINER, SID=TABSTRIP_PAGE
SAP Diag APPL Item ID=CONTAINER, SID=CONTROL
SAP Diag APPL Item ID=CONTAINER, SID=XMLPROP
SAP Diag APPL Item ID=CONTAINER, SID=SPLITTER
SAP Diag APPL Item ID=CONTAINER, SID=SPLITTER_CELL
SAP Diag APPL Item ID=MNUENTRY, SID=MENU_ACT
SAP Diag APPL Item ID=MNUENTRY, SID=MENU_MNU
SAP Diag APPL Item ID=MNUENTRY, SID=MENU_PFK
SAP Diag APPL Item ID=MNUENTRY, SID=MENU_KYB
SAP Diag APPL Item ID=VARINFO, SID=MESTYPE
SAP Diag APPL Item ID=VARINFO, SID=SCROLL_INFOS
SAP Diag APPL Item ID=VARINFO, SID=MESTYPE2
SAP Diag APPL Item ID=VARINFO, SID=OKCODE
SAP Diag APPL Item ID=VARINFO, SID=CONTAINER
SAP Diag APPL Item ID=VARINFO, SID=SCROLL_INFOS2
SAP Diag APPL Item ID=VARINFO, SID=AREASIZE
SAP Diag APPL Item ID=VARINFO, SID=AREA_PIXELSIZE
SAP Diag APPL Item ID=VARINFO, SID=SESSION_TITLE
SAP Diag APPL Item ID=VARINFO, SID=SESSION_ICON
SAP Diag APPL Item ID=VARINFO, SID=LIST_CELL_TEXT
SAP Diag APPL Item ID=VARINFO, SID=CONTAINER_LOOP
SAP Diag APPL Item ID=VARINFO, SID=LIST_FOCUS
SAP Diag APPL Item ID=VARINFO, SID=MAINAREA_PIXELSIZE
SAP Diag APPL Item ID=VARINFO, SID=SERVICE_REQUEST
SAP Diag APPL Item ID=CONTROL, SID=CONTROL_PROPERTIES
SAP Diag APPL Item ID=UI_EVENT, SID=UI_EVENT_SOURCE
SAP Diag APPL Item ID=ACC_LIST, SID=ACC_LIST_INFO4FIELD
SAP Diag APPL Item ID=ACC_LIST, SID=ACC_LIST_CONTAINER
SAP Diag APPL Item ID=RCUI, SID=RCUI_STREAM
SAP Diag APPL Item ID=RCUI, SID=RCUI_SYSTEM_ERROR
SAP Diag APPL Item ID=RCUI, SID=RCUI_SPAGPA
SAP Diag APPL Item ID=RCUI, SID=RCUI_MEMORYID
SAP Diag APPL Item ID=RCUI, SID=RCUI_TXOPTION
SAP Diag APPL Item ID=RCUI, SID=RCUI_VALUE
SAP Diag APPL Item ID=RCUI, SID=RCUI_COMMAND
SAP Diag APPL Item ID=RCUI, SID=RCUI_BDCMSG
SAP Diag APPL Item ID=RCUI, SID=RCUI_CONNECT_DATA
SAP Diag APPL Item ID=GUI_PACKET, SID=GUI_PACKET_STATE
SAP Diag APPL Item ID=GUI_PACKET, SID=GUI_PACKET_DATA

SAP Diag Error packet


In [6]:
p = SAPDiagError()
p.canvas_dump()


Out[6]: