cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt in Client Proxies Report Pragram

Former Member
0 Kudos

Hi all,

Now i came upto Generation & Activation of the ABAP Proxies

Now its the time to write the Report to initiate the proxy.

1) In my ABAP data Dictionary(SE11) i have the Standard table and from there i have to access the data & Push it to XI using Proxies

2) Now My doubt is In the Report where i have to provide the details of the Standard table & it's Field names to pull the data into the Report.

Regards

Suman

Accepted Solutions (1)

Accepted Solutions (1)

former_member240483
Contributor
0 Kudos

Hi there,

Create a report program and select the data and push that data to the XI through proxy( call the proxy inside the program)..

Regards

Rao

Former Member
0 Kudos

Hi PT,

The Whole Process i know,

but the thing is how can we call the data into Report which is there in Standard tables.

I have seen in report, here they have showed as they are reffering the Proxy Class & Message Type.

They are not reffering the Table names & its fields.

regards

former_member240483
Contributor
0 Kudos

Hi Suman,

Normally what we do we create a report like normal one i e ..selecting data and according to the requirment ,process the data . finally we call the proxy and push this data into the XI thorugh proxy communication..

the structure of the data must be like the structure we created in IR.

Hope it is clear ....let know anything else required.

Regards

Rao

Former Member
0 Kudos

Hi Suman,

Define an internal table with the same structure as ur standard table.

And write a SELECT query to get the data from that table.

Suppose you have mara table and you want to pass that to ABAP proxy class,

Data: itab type standard table of MARA.

Select * from mara into table itab.

and pass itab structure to your proxy class.

If this is your question, I Hope this would help.

Thanks,

Vijaya.

Former Member
0 Kudos

Hi Vijaya,

You are exactly close to my Q.

Assume that i have the standard table MARA and needs to be get the records like MATNR & MEINS from that.

Assume that I created my DT & MT with these two fields in XI.( Not used Exactly same Names as in Table) cretaed as Material No & Unit Of Measure

my Proxy class is ZCO_MI_POS_MOBILE_SERIAL_NUMBE

& my MT is ZMT_POS_MOBILE_SERIAL_NUMBERS

Now Can you please tell me how to write the report program for this???( Sample code)

Regards

Edited by: Suman gupta on May 23, 2008 3:16 PM

former_member240483
Contributor
0 Kudos

HI there,

i am providing asample code..

hope it willl help u

tables: Mara.

data: begin of itab_mara occurs 0,

matnr like mara-matnr

end of Itab_mara.

Slect matnr from MARA into corrosponding fields of itab_mara.

CALL METHOD ZCO_MI_POS_MOBILE_SERIAL_NUMBE =>execute_asynchronous

exporting

output = itab_mara.

Just a simple code do the modifications according to u r structure..

Reagrds

Rao

Former Member
0 Kudos

Hi Suman,

So now ur class will have a structure with these 2 fields matnr and meins.

So Ur report will be

data: begin of itab occurs 0,

matnr type mara-matnr,

meins type mara-meins,

end of itab.

Select matnr meins from mara into table itab.

now call that class and pass this itab table.

Please reward points if this helps.

Thanks,

Vijaya.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

While creating the sproxy for the otbound interface a client proxy class get created .populate the data in the internal table .The internal table structure should be same as the outbound message type.

Pass the internal table populated as the Export parameter tothe method EXECUTE_ASYNCHRONOUS

OF THE CLASS CREATED IN PROXY.

see Ex:

data:prxy TYPE REF TO your_proxy_class_created.

CALL METHOD PRXY->EXECUTE_ASYNCHRONOUS

EXPORTING

OUTPUT = 'Your filled table'.

COMMIT WORK

Former Member
0 Kudos

Hi All,

Any updates??

Former Member
0 Kudos

Suman,

Create a report program with your selections etc..

Instead of displaying result you can pass the data to the proxy class.

Even you can display the data using the report select some line items and you can push this data to proxy.

There are lot of sample Client proxies in SDN.

Regards,

Naveen