12-03-2007 1:00 PM
Dear All,
I am getting error while calling RFC function Module through JCO for displaying some data. On checking ST22 transaction, it is showing the error like DYNPRO_SEND_IN_BACKGROUND.
While i execute the program from SAP GUI, getting the correct result .
The RFM is using the method cl_alv_table_create=>create_dynamic_table to build dynamic internal table for the table.
Pl.suggest some inputs.
with regards
Mahesh
12-04-2007 3:45 AM
Hi Mahesh,
SAP doesnt support any screens or pop-ups in background. Even custom container is not supported in background.
Ensure that you do the necessary validation in background & dont create a custom container in background processing.
eg.
If sy-batch ne X.
" create a custom container control for our ALV Control
" This code would be executed to create container only if executed in foreground
CREATE OBJECT gv_cntnr
EXPORTING
container_name = 'CC_ALV2'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
Endif.
Best regards,
Prashant