Skip to Content
0
Former Member
Jul 19, 2007 at 11:27 AM

Client Proxy

18 Views

Hi All,

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.

REPORT ZABAP_PROXY.

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.

TRY.

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

EXPORTING

OUTPUT = It.

COMMIT WORK.

ENDLOOP.

CATCH cx_ai_system_fault.

DATA fault TYPE REF TO cx_ai_system_fault.

CREATE OBJECT fault.

WRITE:/ fault->errortext.

ENDTRY.

Thanks in advance.

Regards,

Prem.S