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: 

RFC function module with call transaction and Import memory ID

Former Member
0 Kudos

Hi,

I am calling RFC function module from R/3 which exists in BW.

In BW stand alone function module works fine.

When I am Calling from R/3 it is not working,

Can you tell me is it because of the below code, And suggest if any corrections required.

I am calling the call transaction and using EXPORT memory iD inside the program

and IMPORT in after that.

And populating RFC table's table " p_i_tcode_user" finally.

*************************************************************************************

set parameter id 'TCD' field p_tcode.

call transaction 'Z_BW_RSUSR002' AND SKIP FIRST SCREEN.

ENDIF.

  • get the final user data from submitted program

import gt_users_complete from memory id tcode_userid.

LOOP AT gt_users_complete.

lwa_tcode_user-tcode = p_tcode.

lwa_tcode_user-uname = gt_users_complete-Bname.

APPEND lwa_tcode_user TO p_i_tcode_user.

ENDLOOP.

Thanks,

Veerendra.

1 REPLY 1

Former Member
0 Kudos

HI,

Can you just exaplin it clearly plz..

Thanks

Mahesh