‎2009 Jan 02 9:43 AM
hi,
i am recording the transaction cfm2 with cont after commt and simulate background mode parameters.
following options are assingned in the prog by me.
data : l_option type ctu_params.
l_option-defsize = 'X'.
l_option-dismode = ctu_mode.
l_option-updmode = 'S'.
l_option-NOBINPT = 'X'.
l_option-NOBIEND = 'X'.
l_option-RACOMMIT = 'X'.
kindly help which additional option to be assigned in program to so that the BDC runs in simulate background mode .
Regards
Raksha Sharma.
‎2009 Jan 02 9:48 AM
l_option-defsize = 'X'.
l_option-dismode = ctu_mode.----->here pass as 'N' N means no screen (background)
l_option-updmode = 'S'.
l_option-NOBINPT = 'X'.
l_option-NOBIEND = 'X'.
l_option-RACOMMIT = 'X'.
‎2009 Jan 02 9:51 AM
hI,
Effect
This addition gives you control using the values of the components of the structure opt, which must be of the Dictionary type CTU_PARAMS. The components have the following meaning:
DISMODE
Processing mode (comparable with the MODE addition) N -No screen Mode
UPDMODE
Update mode (comparable with the UPDATE addition)
CATTMODE
CATT mode (controlling a CATT procedure)
The CATT mode can have the following values:
' ' No CATT procedure active
'N' CATT procedure without single screen control
'A' CATT procedure with single screen control
DEFSIZE
Use standard window size
RACOMMIT
COMMIT WORK does not end CATT procedure
NOBINPT = 'X' means the system variable SY-BINPT is space insead of 'X'.
In this way your BDC can skip the controls the program does if it works in B.I., i.e. controls like
if sy-binpt = 'X'.
.............
endif.
NOBIEND skip the errors occur when in a dynpro it calls a certain field, but this one isn't in the screen.
The components DEFSIZE , RACOMMIT, NOBINPT, NOBIEND always take the following values:
'X' Yes
' ' No
‎2009 Jan 02 9:54 AM
HI,
Put CTU-PARAM-mode as 'N' no screens.
After creating the bdc session process the values into the Program RSBDCSUB. THis will run the session in back Ground.
Regards,
Naresh.
‎2009 Jan 02 9:55 AM
Hi,
I was not able to understand what do you mean by 'simulate background'.
If you want to submit the BDC as a background job then you have to use session method. get the session ID and then you can submit the session for background job processing.
Santhosh
‎2009 Jan 02 11:24 AM
Hi,
Please put this logic into your code.
data : l_option type ctu_params.
l_option-defsize = 'X'.
l_option-dismode = ctu_mode. "Pass 'N' mode - Background
l_option-updmode = 'S'.
l_option-NOBINPT = 'X'.
l_option-NOBIEND = 'X'.
l_option-RACOMMIT = 'X'.
DISMODE
Processing mode (comparable with the MODE addition) N -No screen Mode
Regards,
Jyothi CH.