How to specify PACKAGE SIZE for to RFC_READ_TABLE from PyRFC?

I'm trying to use PyRFC to extract large tables via RFC_READ_TABLE (due to an uncooperative/unsupportive basis team).
I know that RFC_READ_TABLE supports calling it with PACKAGE SIZE since ERPConnect does it by default.
In Python for Basis (Part 1), I learned how to specify an Open SQL where clause using the OPTIONS:
result = connector.call('RFC_READ_TABLE',
                       QUERY_TABLE=tablename,
                       DELIMITER=delimiter,
                       OPTIONS = [{'TEXT':where_clause}])
Is there a way, and how to specify PACKAGE SIZE in this case?
Thanks

Hi,
the package size works, but you need to call the function module multiple times in a loop. Here's an excerpt of the attached script:
recordcounter = 1          #needs to be >0 to get the while loop going
iteration = 0              #the number of times the function module got called
while recordcounter > 0:  #as long as the function module calll returns rows...
    tempresult = self.call('RFC_READ_TABLE',             
                            ROWSKIPS=iteration*fetchsize,  #defines the number of rows to skip
                            **parameters)
    iteration=iteration+1  #increase the iteration
    data = tempresult['DATA']    #assign the returned rows to a variable
    if len(data) > 0:      #have there been any rows?
        for row in data:      #Do something with them
    else:
        recordcounter=0    #set recordcounter to 0 to end the while loop.
The script is far away from being perfect. It doesn't deal with RAW fields and the data types it returns are all strings. It does what I needed it to do but it may not be sufficient for what you may be trying to achieve.
Best regards
Lars

Similar Messages

  • How to set image size for importing photos from a digital camera

    I'm using Iphoto 6 and am a novice user of my new digital camera. The camera is set to HQ image quality. Initially when I imported photos from the camera into IPhoto, the images were very large (over 1 meg) and produced good quality 4X6 prints. Now when I import photos from the same camera still set to HQ image quality, the photos are very small (less than 100 kb) after being imported into IPhoto. I think I must have changed some kind of setting in IPhoto that affects the size of an imported image, but I can't find where that is or how to change it back so that the size is not changed when imported. Can someone please help me with this? Thanks!
    IMAC G5   Mac OS X (10.3.9)   my other computer is a Dell Dimension L500CX running Windows XP Pro

    Dave, thanks for clarifying Toad's response for me - I was just too ignorant to connect the dots from his responses. As you said, there were 2 versions - 1 in the original folder and 1 in data; the original folder had the photos that were 1 mb. We must have pulled from that folder previously to print photos not realizing they existed in 2 places. So when we found these thumbnail photos, we just thought they were the real thing. Where can you go to learn about the struction and hierarchy of the photos in terms of what Iphoto does to an image when you import it? Is it in Iphoto help somewhere? Thanks so much for your help with this, and you too Toad for leading me down the path.
    If you're getting the size from Finder, I think Old
    Toad's question makes a lot of sense. Is the file
    you're looking at, somewhere in a folder called
    "Data" in iPhoto Library? That 56k sounds about the
    right size for a thumbnail.
    If you do a search for the image name, both the
    actual photo and the small thumbnail are stored with
    the same image, e.g. abc.jpg
    IMAC G5   Mac OS X (10.3.9)   my other computer is a Dell Dimension L500CX running Windows XP Pro

  • Maximum package size for data packages was exceeded and Process terminated

    Hello Guru,
    When i am execute the process chain i got this message Maximum package size for data packages was exceeded and Process terminated,any body help to me in this case how can i proceed.
    Thanks & Regards,
    Suresh.

    Hi,
    When the load is not getiing processed due to huge volume of data, or more number of records per data packet, Please try the below option.
    1) Reduce the IDOC size to 8000 and number of data packets per IDOC as 10. This can be done in info package settings.
    2) Run the load only to PSA.
    3) Once the load is succesfull , then push the data to targets.
    In this way you can overcome this issue.
    You can also try RSCUSTV* where * is an integer to change data load settings.
    Change Datapackage size for extraction, use Transaction RSCUSTV6.
    Change Datapackage size when upload from an R/3 system, set this value in R/3 Customizing (SBIW -> General settings -> Control parameters for data transfer).
    IN R/3, T-Code SBIW --> Genaral settings --> Maintain Control Parameters for Data Transfer (source system specific)
    Hope this helps.
    Thanks,
    JituK

  • How to specify logfile size at the time of adding to a member.

    Hi All,
    I am in the process of upgrading Oracle 9.0 to 10.1.
    I am following manual upgrad process.As per the recomendation from the pre-upgrade information script,i need to recreate redo-log files.
    Logfiles: [make adjustments in the current environment]
    --> E:\ORACLE\ORADATA\PRODB229\REDO03.LOG
    .... status="INACTIVE", group#="1"
    .... current size="1024" KB
    .... suggested new size="10" MB
    --> E:\ORACLE\ORADATA\PRODB229\REDO02.LOG
    .... status="INACTIVE", group#="2"
    .... current size="1024" KB
    .... suggested new size="10" MB
    --> E:\ORACLE\ORADATA\PRODB229\REDO01.LOG
    .... status="CURRENT", group#="3"
    .... current size="1024" KB
    .... suggested new size="10" MB
    WARNING: one or more log files is less than 4MB.
    Create additional log files larger than 4MB, drop the smaller ones and then
    upgrade.i can add redo member by the below command,but not able to specicy the size as 10M.I did some googling but no luck with that..
    SQL> ALTER DATABASE ADD LOGFILE MEMBER 'E:\oracle\oradata\prodb229\REDO01.rdo' T
    O GROUP 1;
    but it fails
    ALTER DATABASE ADD LOGFILE MEMBER 'E:\oracle\oradata\prodb229\REDO01.rdo' TO GROUP 2 SIZE 10M;
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    ~Thnx

    If you add a logfile to an existing group, you cannot specify the size for that file.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_1004.htm#i2079942
    <quote>
    ADD [STANDBY] LOGFILE MEMBER Clause Use the ADD LOGFILE MEMBER clause to add new members to existing redo log file groups. Each new member is specified by 'filename'. If the file already exists, it must be the same size as the other group members, and you must specify REUSE. If the file does not exist, Oracle Database creates a file of the correct size. You cannot add a member to a group if all of the members of the group have been lost through media failure.
    <quote>

  • How to increase page size for balance file upload in Workspace.

    Hi All,
    Please suggest how to increase page size for balance file upload in shared Workspace pages.
    Thanks,

    A word of caution is in order regarding changing from facing to non-facing and back again. If you have overridden master page items, you'll get a second, non-overridden copy on all the even-number pages when that half of the master page is re-applied. This applies to master text frames which override automatically when text flows into them as well as to objects you manually override. I think you'll find this particular technique also only works for master text frames, whereas the Layout Adjustment should work in all situations where frames snap to guides.

  • How to allocate disk size for each user in iMac?

    Hi folks,
    I have iMac (Mac OS X, version 10.7.5) for Family, and each of my family member has account on it.
    Now, kids download many large files (several GB size files) and HD is getting full.
    So, I'd like to set maximum disk size for each user.
    Could you prvide instruction how to configure disk size for each user?
    Regards,
    Hiro

    I don't know of any way to do that by user.
    I used to partition my HD and that sets a hard limit by partition, but by user? I don't think it can be done.

  • How to set percentage size for layout? for example : VBox,HBox,AnchorPane,.

    how to set percentage size for layout? for example : VBox,HBox,AnchorPane,......
    like HTML
    &lt;div width=&quot;640px&quot; height=&quot;480px&quot;&gt;
    &lt;div widht=&quot;50%&quot; height=&quot;60%&quot;/&gt;
    &lt;div widht=&quot;30%&quot; height=&quot;60%&quot;/&gt;
    &lt;div widht=&quot;20%&quot; height=&quot;60%&quot;/&gt;
    &lt;/div&gt;
    -----

    This is not supported. You can file a feature request at http://javafx-jira.kenai.com

  • "Maximum package size for data packages was exceded".

    Hi,
    We are getting the below error.
    "Maximum package size for data packages was exceded".
    In our scenario we are loading the data product key wise (which is a semantic key as well) to the DSO thro’ a start routine.
    The logic in the start routine is such a way that it calculates the unique product counts , product key wise. Hence we are trying to
    group  the product key thro’ semantic groups.
    Ex: In this example the product counts should be A = 1,B=2 ,C = 1
      Product Key
      Products
      A
      1000100
      B
      2000100
      C
      3000100
      B
      2000300
      C
      3000100
    For some product keys the data is so huge that we could not load the data & we are getting the error.
    Please suggest any alternate way to  handle this thro’ code or introducing any other flow.
    Regards,
    Barla

    HI
    we can solve the issue by opening the system setting of data packer size
    like below we have create 2 programs, 1 for open the system settings,2 for
    close the settings .
    1 start program
    data: z_roidocprms like table of
    roidocprms.
    data: wa like line of z_roidocprms.
    wa-slogsys = 'system_client' . wa-maxsize = '50000'. wa-statfrqu = '10'.
    wa-maxprocs = '6'. wa-maxlines = '50000'.
    insert wa into table z_roidocprms.
    Modify roidocprms from table z_roidocprms .
    2 close program
    data: z_roidocprms like table of roidocprms.
    data: wa like line of z_roidocprms.
    wa-slogsys = 'syetm_client' . wa-maxsize = '50000'. wa-statfrqu = '10'.
    wa-maxprocs = '6'. wa-maxlines = '50000'.
    insert wa into table z_roidocprms.
    modify roidocprms from table z_roidocprms .
    data load infopakage settings we have to maintain like
    below
    we have create the process chain like as below
    1 start progarm
    data load infopakage
    2 close program.
    This might fix the problem.
    Regards,
    Polu.

  • Maximum package size for data packages was exceeded?

    Hi Experts,
    I am facing this problem "Maximum package size for data packages was exceeded". When I am trying to laod. I even tried to reduce data packet and change DTP settings in EXtraction to Get All New Data Request by Request but still same error is occuring. Can u Plz focus light on this.
    Thanks,
    Krishna

    You can refer to the below OSS note:
    Note 1144332 - Consulting note: Message RSBK 250: Package size exceeded
    And other related notes: 352038, 417307
    Hope this helps.
    Murali

  • How to caluculate buffer size for import/exports in oracle

    Hi DBAS,
    how to caluculate buffer size for import exports,here is the formula but how can we use if there is a 100 of tables and datatypes,is the any query to find out rows_in_array ,maximum_row_size total schema and datbase
    buffer_size = rows_in_array maximum_row_size*
    Thanks,
    tmadugula

    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch01.htm
    Search "buffer"

  • How to specify Host Server for Replicated Virtual Desktops within RDVH Collection

    My question about how to specify Host Server for Replicated Virtual Desktops within Collection.
    I know there is a aswered thread on this, but that solution (wait a week) didn't work for me.
    So i have 2 servers, RDS01 and RDS02 with both 15 Hyper-V VM's and replicating to eachother. That part works fine.
    Now I wanted to make it easy for my users I build a Connection Broker: RDCB
    All went fine in that setup, but when I want to add the existing VM's from RDS01 and RDS02 to the collection it just radomly adds running ones and replicated ones.
    So both RDS01 and RDS02 have 15 VM's running and 15 replica's in stopped state, but when I look in my collection, it says RDS01 has 23 and RDS02 has 7 VM's. When I add them all, I see he wants to add a lot of stopped states replica's from RDS01 instead of
    the running ones from RDS02.
    How can I specify which one he should use? Or need I disable replication first, setup the whole RDCB collection thing, and then turn replication back on? Or does Hyper-V replication not work at all when used in a collection?
    I hope someone can help out here. I'm googling and trying for 1,5 week now, but i can;t get it right.
    Thanks in advance.

    Hi Robin,
    Thanks for your patience.
    After you removed Replication from 1 machine on both RDS01 and RDS02, please restart that machine. After that, please add this machine to the RD collection again to test how the issue goes.
    As we know, Hyper-V Replica provides asynchronous replication of Hyper-V virtual machines between two hosting servers. It is simple to configure and does not require either shared storage or any particular storage hardware. Any server workload that can be
    virtualized in Hyper-V can be replicated. Replication works over any ordinary IP-based network, and the replicated data can be encrypted during transmission. Hyper-V Replica works with standalone servers, failover clusters, or a mixture of both. The servers
    can be physically co-located or widely separated geographically. The physical servers do not need to be in the same domain, or even joined to any domain at all.
    Currently, would you please add only running state VMs to the RD CB collection? And would you please capture some screenshots of the error message? Thanks very much for your cooperation.
    Best regards,
    Sophia Sun
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • HT4101 How is the photo size affected when importing from the SD card to ipad (2) ?

    How is the photo size affected when importing from the SD card to ipad (2) ?
    If they stay the same, any options I can have to "re-size" the photos so that I could use it for a photo storage when traveling?
    Thanks.

    To re-size, you can use:
    https://itunes.apple.com/sg/app/simple-resize/id327776379?mt=8

  • How can I get help for ADE downloads from the public library.   I am suddenly getting error messages

    How can I get help for ADE downloads from the public library.  It worked for years and now I am getting error messages.   I cannot find any practical help

    If you are trying to open the book on a device, try using the latest DL Reader on Android and iOS
    https://play.google.com/store/apps/details?id=com.datalogics.dlreader&hl=en

  • How to generate an Interupt for DMA transfer from Counter on NI-PCI-6602

    dear guys:
          how to generate an Interupt for DMA transfer from Counter on NI-PCI-6602,and I have set the DMA and DMA_INT, and also the global interrupt register.
    but there is no Interupt generated in the Interupt callback function.And when I have set the DMA_INT and global interrupt register ,and then read the relevant register,the relevant bit is also 0.
         I suspect there is an Interupt register contral, like the MITE, you must write the value to 0xc4 for opening .
         there is some codes In my enclosure .What can I do?
    Attachments:
    TEST.C ‏21 KB

    dear Steven_T:
            the registers are In my enclosure ,if you have some ideas,please reply me  first time.thank you !
    Attachments:
    PCI6602.pdf ‏818 KB

  • How to determine package size dynamically for select - endselect statement in ABAP

    Hi All,
    I was using select- edselect with package size but i have hard coding the package size. Can any one tell me the the process to determine dynamic package size so that i can use in parallel processing.

    Hi,
    If you are looking to determine or set the value of package size dynamically then use below code for reference.
    DATA: itab TYPE TABLE OF spfli,
           wa like LINE OF itab,
           n    TYPE i.
    n = 10.
    SELECT carrid connid
    FROM   spfli
    INTO   CORRESPONDING FIELDS OF TABLE itab
    PACKAGE SIZE n.
       LOOP AT itab INTO wa.
         WRITE: / wa-carrid, wa-connid.
       ENDLOOP.
    ENDSELECT.
    If you are concerned about the performance then either use SELECT with OPEN CURSOR and CLOSE CURSOR.
    Let me know if it helped?
    Regards,
    Zuber

Maybe you are looking for

  • Dynamic select statement

    I have this input field called IO_TABLE and a button. When the user key in the database name into IO_TABLE and press the button, the records/data in the database will be written out. Here is my codes: REPORT  ZA_FIELD. DATA IO_TABLE(30) TYPE C. FIELD

  • ABAP Query transport request

    Hi All, We created an ABAP Query report for Transfer order address and it is system generated report. When I am trying to find the version management but is it showing no version found. Even I have created TR manunally and imported to quality system,

  • Duplicated Invoices

    Hi, using this report "S_ALR_87012341 - Invoice Numbers Allocated Twice" I have analyzed the duplicated invoices. but I am not sure about  the accuracy of the data provided. in that list can there be any reversed  doc numbers?how to capture that info

  • Run VI Asynchronously

    There is a great procedure for creating steps to Run VI Asynchronously. https://decibel.ni.com/content/docs/DOC-21743 I tried calling this VI Asynchronously again later in my Sequence and it doesn't seem to be running. What I do is call this vi that

  • Quicktime 10 (or HDD) slow after TM restore, HDD fragmentation?

    Hi there, have a rather weird problem with Quicktime 10. I am producing timelapse videos on a QuadCore iMac and it always has been fast and smooth (and some files - prior to further postprocessing - can be rather big > 2-4 GB). recently I had to rest