Application Development and Automation 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: 
Read only

rfc in background

Former Member
0 Likes
870

Hi all,

i hve to call a rfc in background for this firstlly i call my rfc in background process

CALL FUNCTION 'Y_DYNTABLE1_AJ' IN BACKGROUND task

DESTINATION 'rfc_destination_aj' " AS SEPARATE UNITthen

CALL FUNCTION 'ID_OF_BACKGROUNDTASK' for determined transaction ID

then

CALL FUNCTION 'START_OF_BACKGROUNDTASK' for scheduling background task time

then

CALL FUNCTION 'STATUS_OF_BACKGROUNDTASK' for known background task status

every thing is wkg fine n task is showing scheduled n finished in sm37 but i 'm not getting their data nor sp01 nor anyone n it also show duration 0 n dealy 0 in sm37 also nothing in sm58 and also without background rfc is wkg fine.

suggest me how to get data

regards,

Anuj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
765

Are all the parameters in the FM "Pass by value". Also the variables and internal tables declarations have to be in top include.

Hi all,

i hve to call a rfc in background for this firstlly i call my rfc in background process

CALL FUNCTION 'Y_DYNTABLE1_AJ' IN BACKGROUND task

DESTINATION 'rfc_destination_aj' " AS SEPARATE UNITthen

CALL FUNCTION 'ID_OF_BACKGROUNDTASK' for determined transaction ID

then

CALL FUNCTION 'START_OF_BACKGROUNDTASK' for scheduling background task time

then

CALL FUNCTION 'STATUS_OF_BACKGROUNDTASK' for known background task status

every thing is wkg fine n task is showing scheduled n finished in sm37 but i 'm not getting their data nor sp01 nor anyone n it also show duration 0 n dealy 0 in sm37 also nothing in sm58 and also without background rfc is wkg fine.

suggest me how to get data

regards,

Anuj

4 REPLIES 4
Read only

Former Member
0 Likes
766

Are all the parameters in the FM "Pass by value". Also the variables and internal tables declarations have to be in top include.

Read only

Former Member
0 Likes
765

Thanx sourav,

all the parameters in fm is passed by exporting n tables parameters n declarations is also on top.

regards,

Anuj

Read only

0 Likes
765

Have you checked the RFC call log through SM58.If the RFC fails its log will be stored over there.

Read only

Former Member
0 Likes
765

thanks all.