on 05-01-2007 11:25 PM
Hi,
I am using a program wher ei call RFC.
as shown below
in XI under sxmb_moni only inout values are available in payload. details are not aavilable. could you advice on it.
and in sxmb_moni there are no errors.
CALL FUNCTION 'Z_BANK_RECONCILIATION' IN BACKGROUND TASK
STARTING NEW TASK 'TEST'
DESTINATION 'RD7TOXD1'
EXPORTING
comp_code = cmp_code
house_bank = hse_bank
account_id = acc_id
TABLES
chqdetails = itab.
COMMIT WORK.
Hey
>>in XI under sxmb_moni only inout values are available in payload.
yes,u will see only input payload coz u dont have import parameter in RFC therefore ur not getting any response back from RFC.
to get a response from RFC,u shud have import parameter too in RFC
thanx
ahmad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey
>>under the tables = itab i am passing a structure that hsa the details....that will be passed as output values.
yes,ur exporting those values,means going into the function module but no values are comin into FM ,den how will u see values in MONI?
see RFC makes a call to function,now the way u have coded,it means values from ur itab are being sent the FM but ur not getting any values back coz u dont have import parameter.
in simple programming terms
Export:values ur passing to the function
Import:Values ur getting back from function.
ur only passing values,not getting one
thanx
ahmad
Hey
see the syntax to call async RFC is
CALL FUNCTION Remotefunction STARTING NEW TASK Taskname
DESTINATION ...
EXPORTING...
TABLES ...
EXCEPTIONS...
and syntax to call sync RFC is
CALL FUNCTION func DESTINATION dest parameter list.
.. [EXPORTING p1 = a1 ... pn = an]
[IMPORTING p1 = a1 p2 = a2 ...]
[CHANGING p1 = a1 p2 = a2 ...]
[TABLES t1 = itab1 t2 = itab2 ...]
[EXCEPTIONS exc1 = n1 exc2 = n2 ... [MESSAGE mess]
[OTHERS = n_others]].
now in ur case u have syntax of sync RFC but u want to call it async.how is that possible?
thanx
ahmad
HI,
CALL FUNCTION 'Z_BANK_RECONCILIATION' IN BACKGROUND TASK
when i use in background task it treats as async
even i can see in XI the sxmb_moni as Async
if i remove in background task it shows sync.
i cant use NEW TASK taskname
as it is not compatible with rfc destination type T, TCP/IP
and we need to register the program in sm59 using TCP/IP to connec to XI
Pls comment if i am wrong
Jeff
hey
>>when i use in background task it treats as async
even i can see in XI the sxmb_moni as Async
yes,ur right
>>if i remove in background task it shows sync.
yes ur right but make sure u add import parameter too(coz thats how u get values back)
>>i cant use NEW TASK taskname
yeah thats fine,i actually copied the text from SAP help for ABAP so it didnt take XI into consideration.
thanx
ahmad
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.