on 09-11-2007 10:38 AM
Hello,
I have made a scenario File to R/3 via Abap Proxy
My Inbound Async Message Interface has Message Type -Emp_Rac_Detail_MT.
Message Type has structure
EmpID
EmpName
Age
I have table in R/3 ZRACTABLE where I need to post data
Fields in ZRACTABLE are
EMPID
EMPNAME
AGE1
Pls send me the code that I need to write in Async Method of Proxy
that will put data
Regards
Hi herry ,
u need the code of Function Module right???
here it is...
TABLE : ZRACTABLE
DATA : gi_zractable TYPE standard table of ZRACTABLE.
DATA : gw_zractable TYPE zractable .
gw_zractable-empid = g_empid.
gw_zractable-empname = g_empname.
gw_zractable-age = g_age.
append gw_zractable into g_zractable.
update zractable from gw_zractable.
in the importing parameter give empid,empname and age....
no need to give anything in Export parameter and table in the FM.....
Regards
Biplab
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Biplab,
I need to write code in Async Method of Proxy.
My Inbound Async Message Interface has Message Type -Emp_Rac_Detail_MT.
Message Type has structure
EmpID
EmpName
Age
I have table in R/3 ZRACTABLE where I need to post data
Fields in ZRACTABLE are
EMPID
EMPNAME
AGE1
Pls send me the code that I need to write in Async Method of Proxy
that will put data
Regards
Hey,
DATA:
lv_ID type EmpID,
lv_NAME type EmpName,
lv_AGE type Age.
Convert Input Parameters
lv_ID = input-Emp_Rac_Detail_MT-EmpID.
lv_NAME = input-Emp_Rac_Detail_MT-EmpName.
lv_AGE = input-Emp_Rac_Detail_MT-Age.
call function 'ZEMPDETAILS'
EXPORTING
ID = lv_ID.
NAME = lv_NAME.
ROLE = lv_AGE.
endmethod.
Create a function module(ZEMPDETAILS) as biplab posted and create a proxy as i posted.
ok
Dont forget to reward point
Hi Herry,
First of all u have to write a Function module in R/3 ....for that i given u the code above.
Now in ur inbount proxy in the implementation class u have to write code right???
Here is the code...
**** INSERT IMPLEMENTATION HERE **** ***
DATA:
lv_EMPID type EMPID,
lv_EMPNAME type EMPNAME,
lv_AGE type AGE.
Convert Input Parameters
lv_EMPID = input-Emp_Rac_Detail_MT-EMPID.
lv_EMPNAME = input-Emp_Rac_Detail_MT-EMPNAME.
lv_AGE = input-Emp_Rac_Detail_MT-AGE.
call function 'ZEMP_RAC_FM' /** thats ur function module name **/
EXPORTING
EMPID = lv_EMPID .
EMPNAME = lv_EMPNAME.
AGE = lv_AGE.
endmethod.
Regards
biplab
<i>*** give points if it hepls you!!!</i>
Hello,
I have made this code
method ZII_EMP_DETAIL_ASYNC_IN_RAC_MI~EXECUTE_ASYNCHRONOUS.
data: wa type ZRACTABLE.
Convert Input Parameters
wa-EMPID = input-Emp_Rac_Detail_MT-EmpID.
wa-EMPNAME = input-Emp_Rac_Detail_MT-EmpName.
wa-AGE1 = input-Emp_Rac_Detail_MT-Age.
insert ZRACTABLE from wa.
endmethod.
But I am getting input-Emp_Rac_Detail_MT-EmpID is unknown error.
Pls suggest
Hello,
Code has been generated. Thanks
But now when I send data I am getting error on sxmb_moni
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIProtocol</SAP:Category>
<SAP:Code area="MESSAGE">NOT_AUTHORIZED_FOR_PROC</SAP:Code>
<SAP:P1>RACHIT</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>User herry has no authorization to process messages</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Pls suggest what authorization I need
Hello,
Code has been generated. Thanks
But now when I send data I am getting error on sxmb_moni
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIProtocol</SAP:Category>
<SAP:Code area="MESSAGE">NOT_AUTHORIZED_FOR_PROC</SAP:Code>
<SAP:P1>RACHIT</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>User herry has no authorization to process messages</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Pls suggest what authorization I need
Check out this blog,
/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 |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.