2009 Oct 12 9:46 AM
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
2009 Oct 12 12:47 PM
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.
2009 Oct 12 12:47 PM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |