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

Former Member
0 Likes
655

Hi Friends,

can any one pls tell me about CTUPARAMS in BDC ... how to use this

4 REPLIES 4
Read only

Former Member
0 Likes
635

Check the links below:

http://www.sap-img.com/abap/bdc-program-for-purchase-info-records.htm

Reward points if useful.

Read only

Former Member
0 Likes
635

Hi Sekhar,

Actually some unwanted screen are displayed in the bdc program while inserting data into

database table in order skip those screens we have to use CTU_PARAMS

we have to add the below code in ur bdc program at the begin of ur code.

SYNTAX AND CODE:

----


  • For Elimination Of Illegal Screens

----


DATA: opt TYPE ctu_params.

START-OF-SELECTION.

opt-nobinpt = 'X'.

opt-defsize = 'X'.

opt-updmode = 'A'.

Award points if helpful.

Kiran Kumar.G.A

Have a Nice Day..

Read only

Former Member
0 Likes
635

Hi Please find the details below.

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 .

Please reward points if useful

Regards,

sasi

Read only

Former Member
0 Likes
635

Hi,

In bdc we can set the screen resolution by using ctu_params structure.

data : opt like ctu_params occurs 0 with header line,

bdcdata like itbdcdata occurs 0 with header line.

opt-updmode = 's'.

opt-dismode = 'a'.

opt--defsize = 'x'.

call transaction 'xk01' using itbdcdata options from opt.

Data : s_res type CTU_PARAMS,

s_res-updmode = 'S'. " Update S/A

s_res-defsize = 'X'. " it shows default table control line

s_res-dismode = 'N'. " Screen display mode = A/E/N

call transaction <Tcode> using <bdcdata> options from s_res.