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 Background job

Former Member
0 Likes
392

T.code FI01

My requirement is to create a BDC session for a input file using RFBIBL00.

I am executing the job in background mode. is it possible for run the program background .

Previous code:

SUBMIT rfbibl00

WITH ds_name = ds_file_path

AND RETURN.

Now i want change the code using RSBDCSUB.How wili i do it..How will find out session name in the rfbibl00 program.Knly provide sample code Please help me..

Edited by: Raj_mdu_sap on Oct 12, 2009 1:29 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
340

Hi Raj,

I think you dont need to find out the session name using the RFBIBL00. You need to submit the program and then if sy-subrc eq 0, then you can submit the program RSBDCSUB. Sample code given below.


SUBMIT RFBIBL00 WITH DS_NAME INCL OUT_PATH
                  WITH CALLMODE INCL 'B'
                  WITH MAX_COMM INCL '1000'
* Passed XNONUNIC Parameter with value 'X' to RFBIBL00 Program
                  WITH  XNONUNIC  =   'X'              "+BKNK908169
                  AND RETURN.

  IF SY-SUBRC EQ 0.
    SUBMIT RSBDCSUB WITH  MAPPE = BGR00-GROUP
                    WITH Z_VERARB = 'X'
                    WITH FEHLER  = ' '
                    AND RETURN.
    BDC_SUB_FLG = 'Y'.
  ELSE.
    MESSAGE I131 WITH 'Could not create Batch Session'.
    CLEAR BDC_SUB_FLG.
  ENDIF. 

Best Regards,

Ram.

T.code FI01

My requirement is to create a BDC session for a input file using RFBIBL00.

I am executing the job in background mode. is it possible for run the program background .

Previous code:

SUBMIT rfbibl00

WITH ds_name = ds_file_path

AND RETURN.

Now i want change the code using RSBDCSUB.How wili i do it..How will find out session name in the rfbibl00 program.Knly provide sample code Please help me..

Edited by: Raj_mdu_sap on Oct 12, 2009 1:29 PM

1 REPLY 1
Read only

Former Member
0 Likes
341

Hi Raj,

I think you dont need to find out the session name using the RFBIBL00. You need to submit the program and then if sy-subrc eq 0, then you can submit the program RSBDCSUB. Sample code given below.


SUBMIT RFBIBL00 WITH DS_NAME INCL OUT_PATH
                  WITH CALLMODE INCL 'B'
                  WITH MAX_COMM INCL '1000'
* Passed XNONUNIC Parameter with value 'X' to RFBIBL00 Program
                  WITH  XNONUNIC  =   'X'              "+BKNK908169
                  AND RETURN.

  IF SY-SUBRC EQ 0.
    SUBMIT RSBDCSUB WITH  MAPPE = BGR00-GROUP
                    WITH Z_VERARB = 'X'
                    WITH FEHLER  = ' '
                    AND RETURN.
    BDC_SUB_FLG = 'Y'.
  ELSE.
    MESSAGE I131 WITH 'Could not create Batch Session'.
    CLEAR BDC_SUB_FLG.
  ENDIF. 

Best Regards,

Ram.