on 05-23-2008 1:03 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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
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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Any updates??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.