Symptom
In SAP Reference IMG nodes SAP Gateway and/or SAP Gateway Service Enablement are missing under node SAP NetWeaver.
The affected IMG structure is R/3 Basis Implementation Guide.
Read more...
Environment
This KBA applies to all SAP Products based on NetWeaver and S4H
Keywords
Reference IMG
R/3 Einführungsleitfaden Basis
Gateway-Service-Aktivierung
Backend OData Channel
SAP Gateway
OData Channel
Verbindungseinstellungen zu SAP Gateway
*&---------------------------------------------------------------------*
*& Report ZSLA_CREATE_MISSING_GATEWAY_02
*&
*&---------------------------------------------------------------------*
*& Creates missing entries in table TTREE and TTREES for Gateway and
*& Gateway Service Enablement
*&---------------------------------------------------------------------*
REPORT ZSLA_CREATE_MISSING_GATEWAY_03.
DATA R LIKE TTREE.
DATA T LIKE TTREES.
DATA TTREE_TABLE TYPE STANDARD TABLE OF TTREE.
DATA TTREES_TABLE TYPE STANDARD TABLE OF TTREES.
DATA ls_e071 TYPE ko200.
DATA lt_e071k_row TYPE e071k.
DATA lt_e071k TYPE STANDARD TABLE OF e071k.
FREE R.
R-ID = '005056B434C51DDFBAFC85CA57F477C4'.
R-TYPE = 'IMG'.
R-NODE_ID = '005056B434C51DDFBAFC85CA57F497C4'.
R-MASTERLANG = 'EN'.
R-RESPONSIBL = 'SAP'.
R-SUBTREEONL = 'X'.
R-FUSER = 'SAP'.
R-FDATE = '20101109'.
R-FTIME = '103432'.
R-FRELEASE = '702'.
R-LUSER = 'SAP'.
R-LDATE = '20150106'.
R-LTIME = '113019'.
R-LRELEASE = '740'.
APPEND R TO TTREE_TABLE.
FREE R.
R-ID = 'E04EDC5DCC938AF18B83005056B44E75'.
R-TYPE = 'IMG'.
R-NODE_ID = 'E04EDC5DCC938BF18B83005056B44E75'.
R-MASTERLANG = 'EN'.
R-RESPONSIBL = 'SAP'.
R-SUBTREEONL = 'X'.
R-FUSER = 'SAP'.
R-FDATE = '20110315'.
R-FTIME = '091547'.
R-FRELEASE = '700'.
R-LUSER = 'SAP'.
R-LDATE = '20141128'.
R-LTIME = '154015'.
R-LRELEASE = '740'.
APPEND R TO TTREE_TABLE.
FREE T.
T-ID = '4D3AC7DDB399D21197ED0060B0672A3C'.
T-EXTENSION = '/IWBEP/OPU-BSE'.
T-SEQUENCE = '1'.
APPEND T TO TTREES_TABLE.
FREE T.
T-ID = '4D3AC7DDB399D21197ED0060B0672A3C'.
T-EXTENSION = '/IWFND/OPU-GW'.
T-SEQUENCE = '1'.
APPEND T TO TTREES_TABLE.
FREE ls_e071.
FREE lt_e071k.
ls_e071-pgmid = 'R3TR'.
ls_e071-object = 'TABU'.
ls_e071-obj_name = 'TTREE'.
ls_e071-objfunc = 'K'.
LOOP AT TTREE_TABLE INTO R.
lt_e071k_row-pgmid = 'R3TR'.
lt_e071k_row-object = 'TABU'.
lt_e071k_row-objname = 'TTREE'.
lt_e071k_row-mastertype = 'TABU'.
lt_e071k_row-mastername = 'TTREE'.
lt_e071k_row-tabkey = R-ID.
APPEND lt_e071k_row TO lt_e071k.
ENDLOOP.
CALL FUNCTION 'TR_OBJECT_CHECK'
EXPORTING
wi_ko200 = ls_e071
TABLES
wt_e071k = lt_e071k
EXCEPTIONS
cancel_edit_other_error = 1
show_only_other_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 DISPLAY LIKE sy-msgty.
RETURN.
ENDIF.
CALL FUNCTION 'TR_OBJECT_INSERT'
EXPORTING
wi_ko200 = ls_e071
TABLES
wt_e071k = lt_e071k
EXCEPTIONS
cancel_edit_other_error = 1
show_only_other_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 DISPLAY LIKE sy-msgty.
RETURN.
ENDIF.
FREE ls_e071.
FREE lt_e071k.
ls_e071-pgmid = 'R3TR'.
ls_e071-object = 'TABU'.
ls_e071-obj_name = 'TTREES'.
ls_e071-objfunc = 'K'.
LOOP AT TTREES_TABLE INTO T.
lt_e071k_row-pgmid = 'R3TR'.
lt_e071k_row-object = 'TABU'.
lt_e071k_row-objname = 'TTREES'.
lt_e071k_row-mastertype = 'TABU'.
lt_e071k_row-mastername = 'TTREES'.
CONCATENATE
T-ID
T-EXTENSION
INTO lt_e071k_row-tabkey
RESPECTING BLANKS.
APPEND lt_e071k_row TO lt_e071k.
ENDLOOP.
CALL FUNCTION 'TR_OBJECT_CHECK'
EXPORTING
wi_ko200 = ls_e071
TABLES
wt_e071k = lt_e071k
EXCEPTIONS
cancel_edit_other_error = 1
show_only_other_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 DISPLAY LIKE sy-msgty.
RETURN.
ENDIF.
CALL FUNCTION 'TR_OBJECT_INSERT'
EXPORTING
wi_ko200 = ls_e071
TABLES
wt_e071k = lt_e071k
EXCEPTIONS
cancel_edit_other_error = 1
show_only_other_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 DISPLAY LIKE sy-msgty.
RETURN.
ENDIF.
INSERT TTREE FROM TABLE TTREE_TABLE ACCEPTING DUPLICATE KEYS.
MODIFY TTREE FROM TABLE TTREE_TABLE.
INSERT TTREES FROM TABLE TTREES_TABLE ACCEPTING DUPLICATE KEYS.
FREE R.
FREE T.
FREE TTREE_TABLE.
FREE TTREES_TABLE.
FREE ls_e071.
FREE lt_e071k. , KBA , spro , sap gateway customizing , OPU-GW-COR , Framework , BC-CUS-TOL-TME , View Maintenance Tool , BC-CUS-TOL-IMG , Implementation Guide , BC-CUS-TOL-PAD , Project Administration (IMG) , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.