2023 Apr 25 9:23 PM
method IF_EX_VENDOR_ADD_DATA~CHECK_ALL_DATA.
Data: file(40).
CONCATENATE 'SY-HOST' '/usr/sap/DPK/DVEBMGS96/data/DEMO.txt' into file.
data: itab TYPE TABLE OF LFA1.
data:wa LIKE LINE OF itab.
open DATASET file for APPENDING in TEXT MODE ENCODING DEFAULT.
if SY-SUBRC = 0.
LOOP at itab into wa.
transfer wa to FILE.
ENDLOOP.
endif.
close DATASET file.
endmethod.
2023 Apr 26 6:37 AM
Please edit your question, select your code and click the button CODE so that it's nicely displayed and people can read it easily.
2023 Apr 26 6:39 AM
Why did you put the SY-HOST at the beggining of a file path ?
2023 Apr 26 6:39 AM
So, you're talking about BAdI VENDOR_ADD_DATA.
Your code appends some text to a file.
Please detail your question "how upload created vendor"? What do you want to do exactly?
2023 Apr 26 10:13 AM
What exactly do you want to do, append every updated vendor to a file on server, how will this data be later processed, etc.