cancel
Showing results for 
Search instead for 
Did you mean: 

Inbound Proxy - Timing Out

Former Member
0 Kudos

We have quite a few interfaces that use an inbound proxy, but we're running into a problem we haven't seen before.

We have an inbound interface that requires quite a bit of processing time, and it is now timing out.

Is there any way to force the proxy to use a background process, instead of a dialog process, to avoid the dialog process time out?

I had always assumed that these proxies used background processes, and just discovered today this isn't the case.

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

You can do something like this.

This is more of a ABAP solution.

write the actual code in a separate report program and call that program in background mode.

submit <report> in background...

Regards,

Ravi

Former Member
0 Kudos

This is a great suggestion.

Do you by any chance know the syntax for submitting in the background, and with an internal table of data as a parameter?

former_member181962
Active Contributor
0 Kudos

you can do like this:

CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME          = JOB_NAME "Some name
IMPORTING
JOBCOUNT         = JOB_NR
EXCEPTIONS
CANT_CREATE_JOB  = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING  = 3
OTHERS           = 4.
IF SY-SUBRC NE 0.
MESSAGE I162(00) WITH
'An error occured while creating the background job.'.
STOP.
ENDIF.

EXPORT itab
  TO MEMORY ID 'table'.

SUBMIT <Report name> USER SY-UNAME
VIA JOB JOB_NAME NUMBER JOB_NR
AND RETURN.
*Inside the report program import the internal table using the code:*
*IMPORT itab TO jtab FROM MEMORY ID 'table'.*

*close the job...
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT             = JOB_NR
JOBNAME              = JOB_NAME
STRTIMMED            = 'X' 
IMPORTING
JOB_WAS_RELEASED     = JOB_RELEASED
EXCEPTIONS
CANT_START_IMMEDIATE = 1
INVALID_STARTDATE    = 2
JOBNAME_MISSING      = 3
JOB_CLOSE_FAILED     = 4
JOB_NOSTEPS          = 5
JOB_NOTEX            = 6
LOCK_FAILED          = 7
OTHERS               = 8.
IF SY-SUBRC <> 0.
MESSAGE I162(00) WITH
'An error occured while closing the background job.'.
STOP.
ENDIF.

Answers (0)