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

BDC-Process session in back ground

Former Member
0 Likes
930

HI to all,

Is there any FM to call session in back ground

i am using RSBDCSUB apart form this if there is any FM please tell me.

regarda

raadha

6 REPLIES 6
Read only

Former Member
0 Likes
877

Hi,

I think we can only use these program to process session in backgorund

Submitting batch input from ABAP

You have two possibilities (Submit of both programs) :

=> RSBDCSUB which launch btci with btci name

=> RSBDCBTC which launch btci with internal batch number and waits for the end of the batch-input.

Regards

Krishna

Edited by: Krishna Gowrneni on Apr 22, 2009 6:34 PM

Read only

Former Member
0 Likes
877

Hello,

Check out JOB_OPEN

JOB_SUBMIT

JOB_CLOSE

Regards,

Vijay

Read only

0 Likes
877

Hi,

Use this sample code

DATA: RUNTIME TYPE I. "Runtime

DATA: GROUP LIKE APQI-GROUPID, " Mappenname

BDCIMMED LIKE RFIPI-BDCIMMED, " nur BDC: sof. Abspielen

BDCSTRTDT LIKE TBTCJOB-SDLSTRTDT, "nur BDC: Startdatum

BDCSTRTTM LIKE TBTCJOB-SDLSTRTTM. "nur BDC: Startzeit

  • form mappe_abspielen_im_batch.

GET RUN TIME FIELD RUNTIME.

JOBNAME = 'RFEBFD00-FIEB'.

JOBNAME+14 = RUNTIME.

  • eak-point.

CALL FUNCTION 'JOB_OPEN'

EXPORTING

JOBNAME = JOBNAME

JOBGROUP = 'FIEB'

IMPORTING

JOBCOUNT = JOBCOUNT

EXCEPTIONS

CANT_CREATE_JOB = 01

INVALID_JOB_DATA = 02

JOBNAME_MISSING = 03.

IF SY-SUBRC NE 0.

MESSAGE E015 RAISING SESSION_NOT_PROCESSABLE.

ENDIF.

SUBMIT RSBDCSUB AND RETURN

USER SY-UNAME

VIA JOB JOBNAME NUMBER JOBCOUNT

  • with mappe = group

WITH MAPPE = BI-NAME

WITH VON = SY-DATUM

WITH BIS = SY-DATUM

WITH Z_VERARB = 'X'.

BDCSTRTDT = SY-DATUM.

BDCSTRTDT = SPACE.

BDCSTRTTM = SPACE.

BDCIMMED = 'X'.

  • bdcstrttm = runtime.

CALL FUNCTION 'JOB_CLOSE'

EXPORTING

JOBNAME = JOBNAME

JOBCOUNT = JOBCOUNT

STRTIMMED = BDCIMMED

SDLSTRTDT = BDCSTRTDT

SDLSTRTTM = BDCSTRTTM

EXCEPTIONS

CANT_START_IMMEDIATE = 01

JOBNAME_MISSING = 02

JOB_CLOSE_FAILED = 03

JOB_NOSTEPS = 04

JOB_NOTEX = 05

LOCK_FAILED = 06.

IF SY-SUBRC NE 0.

MESSAGE E015 RAISING SESSION_NOT_PROCESSABLE.

ENDIF.

CLEAR BDCIMMED.

BDCSTRTDT = SPACE.

BDCSTRTTM = SPACE.

Regards

Krishna

Read only

former_member156446
Active Contributor
0 Likes
877

using FM's :

1.BDC_OPEN_GROUP

2.BDC_INSERT

3.BDC_CLOSE

Read only

Former Member
0 Likes
877

hi,

JOB_OPEN,

JOB_SUBMIT

JOB_CLOSE.

whith this FM u careat in back ground.

Read only

0 Likes
877

its solved