cancel
Showing results for 
Search instead for 
Did you mean: 

Client Proxy Urgent

Former Member
0 Kudos

Hi ALL,

I am working with Proxy to File

In this scenario I have to collect data from an Internal table which has around 25 fields with around 50 records.

I planned to collect the data into the Internal table and then pass to the structure.

My main doubt is where to place the command

COMMIT WORK whether inside the loop or out side the loop after passing all records into the structure.

Pls help ...

Very urgent...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jeevan,

COMMIT WORK will be outside the loop after passing the records.

Regards,

Pooja

Former Member
0 Kudos

I am sending the sample code can you check pls and give the apprropriate answer.

Parameters : P_date type -


.

data : proxy_output type Zprefix_MT.

Defined Itab with WA.

Defined respective classes for Message Interface and Fault messages.

Select statement to populate data into Itab.

Loop at Itab into wa.

Proxy_output-MT-s1 = wa-s1.

Proxy_output-MT-s2 = wa-s2.

Proxy_output-MT-s3 = wa-s3.

Proxy_output-MT-s4 = wa-s4.

create object client_proxy().

Try

Call method client_proxy -> execute_asynchronous

Exporting

output = proxy_output.

Catch

return.

Catch

return

Endtry.

end loop.

COMMIT WORK.

Answers (1)

Answers (1)

Former Member
0 Kudos

It will be outside the LOOP.