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 in Simulate background mode

Former Member
0 Likes
3,204

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.

5 REPLIES 5
Read only

Former Member
0 Likes
1,707

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'.

Read only

Former Member
0 Likes
1,707

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

Read only

0 Likes
1,707

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.

Read only

Former Member
0 Likes
1,707

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

Read only

Former Member
0 Likes
1,707

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.