Application Development 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: 

CTU_PARAMS

Former Member
0 Kudos

Can any one explain the structure CTU_PARAMS where and how to use.

Mainly

WA_CTU_PARAMS-DISMODE = 'N'.

WA_CTU_PARAMS-UPDMODE = 'S'.

<b>WA_CTU_PARAMS-NOBINPT = 'X'.

WA_CTU_PARAMS-NOBIEND = 'X'.</b>

WA_CTU_PARAMS-DEFSIZE = 'X'.

7 REPLIES 7

Former Member
0 Kudos

while using call transaction we can make use of this as:

OPT-NOBINPT = 'X'.

OPT-DISMODE = 'N'.

OPT-UPDMODE = 'S'.

CALL TRANSACTION tcode USING bdcdata

MODE ctumode

UPDATE cupdate

OPTIONS FROM OPT

MESSAGES INTO messtab.

OPTIONS FROM opt

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)

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

No batch input mode, that s SY-BINPT = SPACE.

NOBIEND

No batch input mode after BDC data has been read

The components DEFSIZE , RACOMMIT, NOBINPT, NOBIEND always take the following values:

'X' Yes

' ' No

If the OPTIONS addition is omitted, the following settings are valid for the control parameters:

DISMODE from the MODE addition

UPDMODE

from the UPDATE addition

CATTMODE

No CATT procedure active

DEFSIZE

Do not use standard window size

RACOMMIT

COMMIT WORK ends procedure successfully

NOBINPT

Batch input mode, that is SY-BINPT =X.

NOBIEND

Batch input mode also active after BDC data has been read

reward points if it helps

regards

Gunjan

0 Kudos

Yes its give in the help, however am not still able to understand these statements.

<b>NOBINPT

No batch input mode, that s SY-BINPT = SPACE.

NOBIEND

No batch input mode after BDC data has been read</b>

0 Kudos

SY-BINPT

X while a batch input session is running and when an ABAP program is called using CALL TRANSACTION USING, otherwise space.

OPTIONS FROM in the CALL TRANSACTION USING statement can set SY-BINPT to space either for the entire duration of the program, or at the end of the BDC data ie SY-NOBIEND

.

SY-BINPT is always space during a CATT procedure.

Reward points if it helps

Regards

Gunjan

Message was edited by: Gunjan Kumar

0 Kudos

Hi

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.

Max

0 Kudos

Hi ,

I have a questions.

what is the significance of No Batch input in SHDB , does it affects the sqr of screen in PA40 transaction?

Thx

athavanraja
Active Contributor
0 Kudos

sorry double post. Gunjan has explained it well.

Regards

Raja

Message was edited by: Durairaj Athavan Raja

former_member188685
Active Contributor
0 Kudos

Hi,

CALL TRANSACTION 'VA01' USING it_bdcdata

OPTIONS FROM OPT

MESSAGES INTO it_mesg.

opt of type ctu_params.

WA_CTU_PARAMS-DISMODE = 'N'. "no screen mode

WA_CTU_PARAMS-UPDMODE = 'S'. "synchronus update

WA_CTU_PARAMS-NOBINPT = 'X'.

WA_CTU_PARAMS-NOBIEND = 'X'.

WA_CTU_PARAMS-DEFSIZE = 'X'. "Default size

Default size will play good role in terms of resoultion. in one system in table control you can see 10rows, but in others system it will show 20 records. it depends on resoultion. but when you set the default size then it will take same (default screen size) in all the systems when you run BDC.

Regards

vijay