My scenario is proxy to file it is working fine i am getting material related data from R/3 and passing it to file, what my doubt is whether can i send only one record at a time or can i send multiple records at a time. Today i have created two materials, i am fetching material data based on system date, but when i check at destination only the record which is created recently is appearing. please find the code which i have written in abap editor in R/3. And provide some solution.
DATA : Proxy TYPE REF TO ZDEV1CO_MI_MATERIAL_OB.
DATA : It TYPE ZDEV1MT_MATERIAL.
DATA : It_mara like mara occurs 0 with header line.
CREATE OBJECT proxy.
SELECT * from MARA into table It_mara where ersda eq sy-datum."Wa where ersda eq sy-datum.
loop at it_mara.
move-corresponding : it_mara to it-Mt_Material.
CALL METHOD PROXY->EXECUTE_ASYNCHRONOUS
OUTPUT = It.
DATA fault TYPE REF TO cx_ai_system_fault.
CREATE OBJECT fault.
Thanks in advance.