Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use SMQ1 with SE37

Former Member
0 Kudos

Dear all:

I'm trying to use T-CODE SMQ1 to record exceptions of a RFC.

But I can't find a way to put the result of a RFC  to SMQ1.

Is there someone knows the way can help me finish it.

What I only know for now is I need to write some code in SE37,but I don't know how to do it correctly.

If you get some idea,please let me know.

Thank you and best wishes.

5 REPLIES 5

former_member192023
Active Participant
0 Kudos

Hello liu,

Try call your RFC in like this.

CALL FUNCTION 'you rfc name' IN BACKGROUND TASK  AS SEPARATE UNIT DESTINATION 'NONE'.

COMMIT WORK.

0 Kudos

Thank you  very much,I'll try.

karthikeyan_p3
Contributor
0 Kudos

Hi Liu,

Go through the program RSTRFCT0 to understand how q-rfc works. Also go through the below documentation about q-rfc.

http://help.sap.com/saphelp_nwpi71/helpdata/EN/7d/5b5f3ca0dd9770e10000000a114084/content.htm?framese...

Regards,

Karthikeyan

0 Kudos

This message was moderated.

raymond_giuseppi
Active Contributor
0 Kudos

Perform some search on QRFC in online help.


call function ’rfc_function’ destination rfcdest in background task [as separate unit].

Ref: Queued Remote Function Call (qRFC) then samples like qRFC Programming: Introductory Example.

Regards,

Raymond