Quantcast
Channel: SCN : Discussion List - Scripting Languages
Viewing all articles
Browse latest Browse all 325

Trouble with PyRFC Table Parameter

$
0
0

When I run this program:

 

from pyrfc import Connection

import sys

 

def main():

    conn = Connection(user='AUSER', passwd='VerySecure', ashost='10.1.2.3', sysnr='00', client='110')

    result = conn.call('RFC_READ_TEXT', TEXT_LINES=[dict( MANDT=u'110',TDOBJECT=u'VBBK', \

                                                                              TDNAME=u'0000110028',TDID=u'0001',TDSPRAS=u'E', \

                                                                              COUNTER=u'000',TDFORMAT=u'*',TDLINE=u'')])

    lines = result['TEXT_LINES']

       

if __name__ == '__main__':

    main()

 

I expect to see 5 lines of text in the TDLINE field (just like in SE37), I only see the one line I am passing with blank TDLINE

 

What am I doing wrong ?

 

Thanks, Ron


Viewing all articles
Browse latest Browse all 325

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>