Skip to Content
avatar image
Former Member

Client Proxy Urgent

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...

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 27, 2007 at 12:32 PM

    Hi Jeevan,

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

    Regards,

    Pooja

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Dec 27, 2007 at 12:37 PM

    It will be outside the LOOP.

    Add comment
    10|10000 characters needed characters exceeded