cancel
Showing results for 
Search instead for 
Did you mean: 

Client Proxy

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi prem,

I think problem lies in the mapping side...

as prabhu said first check whether u given mt_material data type a t the source side is given as 0..unbounded..

also at the receiver side corresponding data type u mapped should be unbounded..

in graphical mapping editor .. give multiple input at source side,execute it ..check whether its coming at the receiver side...

If its working in graphical editor then it should work while executing report program..

u can send multiple records at a time by passing internal table...

hope this helpfyul..

Answers (3)

Answers (3)

prabhu_s2
Active Contributor
0 Kudos

and to anwser ur first question, yes u can send more that one data at the same time if the MT for sender is 0..unbounded

Former Member
0 Kudos

Try to send multiple records at a time instead of passing them indivdually.

Warm Regards,

Vijay

prabhu_s2
Active Contributor
0 Kudos

check ur file CC setting. is it append or create only in recv CC

Message was edited by:

Prabhu S