6
6
7
7
8
8
def my_stfc_structure (request_context = None , IMPORTSTRUCT = None , RFCTABLE = None ):
9
- """Server function my_stfc_structure with the signature of ABAP function module STFC_STRUCTURE."""
9
+ """Server function my_stfc_structure with the signature
10
+ of ABAP function module STFC_STRUCTURE."""
10
11
11
12
print ("stfc structure invoked" )
12
13
print ("request_context" , request_context )
@@ -40,14 +41,15 @@ def my_auth_check(func_name=False, request_context=None):
40
41
41
42
# create server
42
43
server = Server (
43
- {"dest" : "MME_GATEWAY" },
44
- {"dest" : "MME" },
45
- {"check_date" : False , "check_time" : False , "server_log" : True },
44
+ server_params = {"dest" : "MME_GATEWAY" },
45
+ client_params = {"dest" : "MME" },
46
+ config = {"check_date" : False , "check_time" : False , "server_log" : True },
46
47
)
47
48
48
49
print (server .options )
49
50
50
- # expose python function my_stfc_structure as ABAP function STFC_STRUCTURE, to be called by ABAP system
51
+ # expose python function my_stfc_structure as ABAP function STFC_STRUCTURE
52
+ # to be called from ABAP system
51
53
server .add_function ("STFC_STRUCTURE" , my_stfc_structure )
52
54
53
55
# start server
@@ -56,7 +58,7 @@ def my_auth_check(func_name=False, request_context=None):
56
58
# get server attributes
57
59
print (server .get_server_attributes ())
58
60
59
- input ("Press Enter to stop server..." ) # WPS110
61
+ input ("Press Enter to stop server..." )
60
62
61
63
# shutdown server
62
64
server .close ()
0 commit comments