{"action":"created","issue":{"url":"https://api.github.com/repos/CoreSecurity/pysap/issues/1","labels_url":"https://api.github.com/repos/CoreSecurity/pysap/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/CoreSecurity/pysap/issues/1/comments","events_url":"https://api.github.com/repos/CoreSecurity/pysap/issues/1/events","html_url":"https://github.com/CoreSecurity/pysap/issues/1","id":64014817,"number":1,"title":"how send RFC request","user":{"login":"vah13","id":7976421,"avatar_url":"https://avatars.githubusercontent.com/u/7976421?v=3","gravatar_id":"","url":"https://api.github.com/users/vah13","html_url":"https://github.com/vah13","followers_url":"https://api.github.com/users/vah13/followers","following_url":"https://api.github.com/users/vah13/following{/other_user}","gists_url":"https://api.github.com/users/vah13/gists{/gist_id}","starred_url":"https://api.github.com/users/vah13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vah13/subscriptions","organizations_url":"https://api.github.com/users/vah13/orgs","repos_url":"https://api.github.com/users/vah13/repos","events_url":"https://api.github.com/users/vah13/events{/privacy}","received_events_url":"https://api.github.com/users/vah13/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-24T14:44:15Z","updated_at":"2015-03-26T13:01:36Z","closed_at":"2015-03-26T13:01:36Z","body":"Hi.\r\nI want to simulate RFC request with pysap but have some issue.\r\nI was saw SAPRFC.py and SAPRFC class, init it, but how I can send request to remote gateway. \r\n\r\n****\r\ndef main():\r\n    SAPRFC(version=3,req_type=0,address=\"172.16.10.63\",padd1=0,service=\"\",codepage=\"1100\",padd2=\"\\x00\" * 6,appc_header_version=6,accept_info=1,\r\n          echo_data=\"AAA\",cmd=\"ACT_EXTPGM_TRACE\" )\r\n****"},"comment":{"url":"https://api.github.com/repos/CoreSecurity/pysap/issues/comments/86504346","html_url":"https://github.com/CoreSecurity/pysap/issues/1#issuecomment-86504346","issue_url":"https://api.github.com/repos/CoreSecurity/pysap/issues/1","id":86504346,"user":{"login":"martingalloar","id":3941628,"avatar_url":"https://avatars.githubusercontent.com/u/3941628?v=3","gravatar_id":"","url":"https://api.github.com/users/martingalloar","html_url":"https://github.com/martingalloar","followers_url":"https://api.github.com/users/martingalloar/followers","following_url":"https://api.github.com/users/martingalloar/following{/other_user}","gists_url":"https://api.github.com/users/martingalloar/gists{/gist_id}","starred_url":"https://api.github.com/users/martingalloar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martingalloar/subscriptions","organizations_url":"https://api.github.com/users/martingalloar/orgs","repos_url":"https://api.github.com/users/martingalloar/repos","events_url":"https://api.github.com/users/martingalloar/events{/privacy}","received_events_url":"https://api.github.com/users/martingalloar/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T13:01:36Z","updated_at":"2015-03-26T13:01:36Z","body":"No problem. Anyway, if you want to interact and send packets to the gateway service you can use something like:\r\n\r\n```python\r\nfrom pysap.SAPRFC import SAPRFC\r\nfrom pysap.SAPNI import SAPNIStreamSocket\r\n\r\nconn = SAPNIStreamSocket.get_nisocket(remote_host, remote_port)\r\np = SAPRFC(version=2, req_type=3, lu=client, tp=tp)\r\nresponse = conn.sr(p)[SAPRFC]\r\nresponse.show()\r\n```"}}