cancel
Showing results for 
Search instead for 
Did you mean: 

server proxy

Former Member
0 Kudos

Hi ,

am working on server proxy,i need to update data in an bapi.how should i proceed to writwe the code in class builder.

i.e. sequence oof steps to write a reprt...like declaration of ittables,structures......am new to abap.

Regards,

rao

Accepted Solutions (1)

Accepted Solutions (1)

sumesh_k2
Participant
0 Kudos

Hi Rao,

The purpose of Inbound proxy is to get data into SAP system via Proxy structures.

So inside the inbound proxy you should first read the data from the input proxy structure.

Now you have all the data available for manipulation (concatenation, etc) and then pass it to BAPI as required.

In your case you have to use certain business rules like concatenation of source fields from proxy input structure, hence you need to write this logic in your Inbound proxy and before you pass to the standard bapi.

Answers (8)

Answers (8)

Former Member
0 Kudos

hi Rao

declare the locale structure / Internal table as the data types of proxy structure.

Pass the data from inbound proxy to ur local structure / internal table. It can be achieved by passing data from INPUT-<Message type>-<structure>-<fields...> to ur target. remember both side should be of same type.

now u got the data in ur local structure.

you can use it in calling any BAPI or update any table, all u need is little bit knowledge of ABAP.

hope it helps u

Regards

Raj

Former Member
0 Kudos

Hi raj,

remember both side should be of same type. .?

am not bale to understand this,can u explain me clearly.

i wnat to update data in bapi,i hav some conditions like,

i want to concatenate two fileds at sorce to one field at target,

i want to replace some value in field with new value

i want to aggregate three filed in to one field,

where should i code all this logic.

can anyone let me know.

double points will be rewarded.

Regards,

Rao

Edited by: rao n on May 9, 2008 1:48 PM

Former Member
0 Kudos

Hi,

Check the following links:

/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

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

/people/michal.krawczyk2/blog/2005/09/07/xi-why-dont-start-searching-for-all-errors-from-one-place - all about the trace n log files !!!!

/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer

/people/amjad-ali.khoja/blog/2005/12/16/slaw-a-new-logging-tracing-framework-for-xi

/people/amjad-ali.khoja/blog/2006/02/07/using-dom4j-in-xi--a-more-sophisticated-option-for-xml-processing-than-sap-xml-toolkit

Also my be useful..

/people/community.user/blog/2007/01/09/enterprise-soa-explorations-reflections-on-database-integration

/people/anne.tarnoruder/blog/2006/10/26/reusing-code-with-pdk-for-net

/people/piers.harding/blog/2006/05/18/ruby-on-rails-with-ajax

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8314cb90-0201-0010-f586-915...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/402fae48-0601-0010-3088-85c...

Former Member
0 Kudos

Hi,

can anyone let me know sequence of stpes in server proxy in order to updatae a ztable.

Regards,

rao

Edited by: rao n on May 9, 2008 11:42 AM

former_member859847
Active Contributor
0 Kudos

Hi,

Inbound proxy is nothing but server proxy.

like file to proxy,xi will pick the file and populate that

dat to proxy structure in runtime.

once u generate proxy for inbound interface, it will generate class and method.

under system generated methos, u need to write sample

ABAP code to update that data into z-table.

please find the following link on server proxy.

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

regards

mahesh.

former_member556603
Active Contributor
0 Kudos

Rao.

1) First u declare Tables Eg: MARA, MARC Etc.....

2) You Declare Internal Tables....

3) Next You retrive data from database.

Wirting Select Query...

4) Next you have to display data.

By using Write Statement...

Hope your problem is solved if you want i will sent some sample code..

Thanks,

Satya Kumar

Reward if it is useful..

sunil_singh13
Active Contributor
0 Kudos

/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies

Above blog has sample code

Thanks

Sunil Singh

former_member556603
Active Contributor
0 Kudos

Rao,

Tell me exactly you want know how to write ABAP report..

Thanks,

Satya Kumar..

Former Member
0 Kudos

Hi satya,

i want to know how to wrire a reprt and declarations in the report in server proxy?

Regards,

rao

former_member556603
Active Contributor
0 Kudos

Rao,

Sample and Simple ABAP Report..

REPORT Z1_PR_SIMPLE_1.

Data decalration for field which need for select option

Select-options: matnr for mara-matnr.

Parameters: mtart type mara-matnr.

.

Internal Tables:

DATA: BEGIN OF IT_MAT OCCURS 0,

MATNR LIKE MARA-MATNR, "material number

ERSDA LIKE MARA-ERSDA, "net weight

MTART LIKE MARA-MTART, "units of weight

END OF IT_MAT.

  • Read data from marav to it_mat.

SELECT MATNR ERSDA MTART FROM MARA up to 10 rows INTO TABLE IT_MAT.

  • Write out the Internal Table IT_MAT records.

loop at it_mat.

write:/ it_mat-matnr, it_mat-ersda, it_mat-mtart.

endloop.

..................

Thanks,

Satya Kumar

reward if it is useful..

Edited by: SATYA KUMAR AKKARABOYANA on May 8, 2008 4:13 PM

Former Member
0 Kudos

Hi satya,

i think the code which u sent is for client proxy.please corrct me if am wrong.

Regards,

rao

Former Member
0 Kudos

Hi,

Check this blog.

/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy

Cheers,

Sunil.

former_member556603
Active Contributor
0 Kudos

Rao,

I said na that is sample program for how to write a report.

You have to fallow the same procedure while writing the reports.

Thanks,

Satya Kumar

sunil_singh13
Active Contributor
0 Kudos

Hi rao,

Following links may give you Some help

/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies

http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/content.htm

Reward Points If Helpful.

Thanks

Sunil Singh

stefan_grube
Active Contributor
0 Kudos

Check class CL_SXIDAG_MULT_BOOKORD_CONFIRM in PI system.

It is part of the flight booking demo scenario.

Regards

Stefan

Former Member
0 Kudos

To receive data into R/3 system we use INBOUND PROXY. In this case data is picked up by XI and send it to R/3 system via XI adapter into proxy class. Inside the inbound proxy we careate an internal table to take the data from XI and then simply by using the ABAP code we update the data inot R/3 table. BAPI can also be used inside the proxy to update the data into r/3.

Just go through these links:

How to create proxy.

http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm

ABAP Server Proxies (Inbound Proxy)

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