‎2008 Jan 09 9:33 AM
Hi Friends,
can any one pls tell me about CTUPARAMS in BDC ... how to use this
‎2008 Jan 09 9:35 AM
Check the links below:
http://www.sap-img.com/abap/bdc-program-for-purchase-info-records.htm
Reward points if useful.
‎2008 Jan 09 9:58 AM
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..
‎2008 Jan 09 12:05 PM
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
‎2008 Jan 09 3:00 PM
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.