Closed shakh85 closed 8 months ago
To my understanding if 10k rows returned in first call, then it is probably not the "end of data" and result['E_T_END_OF_DATA']
is empty.
The block:
if 'E_T_END_OF_DATA' in result:
l_end_of_data = result['E_T_END_OF_DATA']
will then set the l_end_data
to empty and exit the while loop.
The while loop should probably look like
l_end_of_data == "" # no end of data
while l_end_of_data != "X": # wait for end of data
...
# you can also check if values returned for end of data are what is expected by your Python script
# print (result['E_T_END_OF_DATA'])
To my understanding if 10k rows returned in first call, then it is probably not the "end of data" and
result['E_T_END_OF_DATA']
is empty.The block:
if 'E_T_END_OF_DATA' in result: l_end_of_data = result['E_T_END_OF_DATA']
will then set the
l_end_data
to empty and exit the while loop.The while loop should probably look like
l_end_of_data == "" # no end of data while l_end_of_data != "X": # wait for end of data ... # you can also check if values returned for end of data are what is expected by your Python script # print (result['E_T_END_OF_DATA'])
thank you to looking into it:
something maybe is different with first call that is being pointed out as X and not transformed into call method while trying to perform the second call?:
i am trying to change this changing param but it is not changed after the first call been made
If you have access to ABAP system, the external breakpoint in ZRSDRI_HA*READ_RFC function module can be set as described here: troubleshooting.md#remote-abap-debugging. Then it can be tested in ABAP debugger what exactly does not work as expected.
It is custom function module but in general the parameter like 'E_T_END_OF_DATA' is always returned in result, not sure why. result.get() used for this and other parameters. Perhaps also to check if ABAP domain of C_FIRST_CALL and E_T_END_OF_DATA is " " and "X" or maybe "Y" and "N" ?
Without checking the system and both the Python and ABAP logic, I can't help more. I would suggest to set the breakpoint in ABAP and investigate or request support via SAP customer message and refer to this issue.
conn.get_function_description('ZRSDRI_HA01M0002_READ_RFC').parameters give me the following picture.
aiming at retrieving data call by call by 10K rows at a time i got stuck with the issue that first call is being processed only returning my 10k rows and then it stops as if it never saw that i tried to make adjustments to changing parameter. The code is as follows:
Please can you shine any light on how to get data call by call in proper manner?