on 05-08-2008 2:13 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
Above blog has sample code
Thanks
Sunil Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rao,
Tell me exactly you want know how to write ABAP report..
Thanks,
Satya Kumar..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check class CL_SXIDAG_MULT_BOOKORD_CONFIRM in PI system.
It is part of the flight booking demo scenario.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.