cancel
Showing results for 
Search instead for 
Did you mean: 

how do we push a complete table with multiple entries via outbound abap pro

Former Member
0 Kudos

Hi

I have to push entire table consists of multiple records in a single call of

excute_asynchronous method.

Thanks in avdvance

Babu

Accepted Solutions (0)

Answers (1)

Answers (1)

turmoll
Active Contributor
0 Kudos

Hi,

Create message type with element that has the maximum occurrence equals unbounded and then when you generate proxy you will be able to send an array

Regards,

Jakub

former_member181955
Contributor
0 Kudos

Hi

Thanks for your reply.I have done the same.

But in the program (se38) how the OUTPUT should be assigned?.

My message type as follows:

MT_EMP_RPMSAPR3

-


>EMPREC 0 .. Unbounded

-


> EMPID

-


> EMPNAME

-


> EMPADDRESS

-


> SALARY

-


> HRA

Now tell me how we can assign OUTPUT.

Thanks

Babu

Former Member
0 Kudos

Hi,

Here is an example for the sample code

/people/siva.maranani/blog/2005/04/03/abap-server-proxies

Regards

Vijaya

former_member181955
Contributor
0 Kudos

Hi

It is server proxy and morever it is single record.Here I would like to push entire table instead of single record.

thanks

Babu

turmoll
Active Contributor
0 Kudos

Hi,

Certanly, everything depends on the business case ...

but let's assume that you have data that you want to send via proxy in <tab> then it should look sth like:

LOOP AT <tab> into <workarea>.

<workarea2>-EMPREC = <workarea>-EMPREC

<workarea2>-EMPID = <workarea>-EMPID.

<workarea2>-EMPNAME = <workarea>-EMPNAME.

...

APPEND <workarea2> TO output-<response>-<tab2>-<workarea2>.

ENDLOOP.