Abap Gui_download Append

0 views
Skip to first unread message

Vallie Kleinert

unread,
Jan 21, 2024, 1:38:22 AM1/21/24
to fellenagon

I am trying to loop at object numberss. The data for the given object number gets fetched and then using GUI_DOWNLOAD it gets downloaded in flat file. Then for subsequent object numbers in the loop, the data gets appended in the same flat file because I am using Append = 'X' in GUI_Download. This is fine.

abap gui_download append


DOWNLOAD https://t.co/IkKpglB7QX



But the issue is when I run the code second time, the data aga get appended in the same flat files as it did when I ran the program for first time. This is what I don't want to happen. I want that if the progm runs second time or at subsequent times, the data in initial flat files (during previous run) should get overwritten and not appended.

I seem to have a bit of a strange problem. My report uses GUI_DOWNLOAD to download some data. Then it uses GUI_DOWNLOAD again to append one more line to the downloaded file. The problem is, I have changed my PC and appending stopped working. The target file is just overwritten and not appended(as topic states, I have used APPEND='X' ). Looks like it has something to do with operating system. How can I solve this ?

Big advantage of your solution is that for bigger tables it is faster as mine goes through FM RFC_READ_TABLE. I wonder whether there is a way to instruct SAP from within a windows PC to trigger your abap (not using SAP GUI script as here we are Fiori only).

df19127ead
Reply all
Reply to author
Forward
0 new messages