06-25-2006 1:04 PM
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'.
06-25-2006 1:21 PM
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
06-25-2006 1:32 PM
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>
06-25-2006 2:03 PM
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
06-25-2006 2:51 PM
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
06-26-2006 12:07 PM
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
06-25-2006 1:25 PM
sorry double post. Gunjan has explained it well.
Regards
Raja
Message was edited by: Durairaj Athavan Raja
06-26-2006 12:27 PM
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