on 12-27-2007 12:28 PM
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...
Hi Jeevan,
COMMIT WORK will be outside the loop after passing the records.
Regards,
Pooja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
It will be outside the LOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.