2007 May 21 6:25 AM
Hi Experts,
Can any body tell how to set the screen resolution in bdc program with an example.
Thanks,
Satish.
2007 May 21 10:08 AM
Hi Satish,
There are options available in <i><b>CALL TRANSACTION</b></i> method of BDC, which takes care of the screen resolution at runtime.
* Structure for Screen Resolution option in BDC
DATA WA_OPT TYPE CTU_PARAMS.
* Selection as to whether the screens of the called transaction are displayed in the standard screen size.
* Values "X" (standard size), " " (current size).
WA_OPT-DEFSIZE = 'X'.
CALL TRANSACTION 'MM01' " Transaction Name
USING IN_TAB " Internal Table
OPTION FROM WA_OPT. " Work Area with screen resolution optionHope this helps.
PS If the answer solved your query, plz close the thread by marking it <i><b>Solved</b></i> & rewarding each reply.
Regards
Message was edited by:
Sapna Modi
2007 May 21 6:45 AM
Hi,
For screen resolution use <b>ctu_params</b>, with default size
Data : f_option type ctu_params,
f_option-updmode = 'S'.
<b> f_option-defsize = 'X'.</b>
f_option-dismode = 'N'.
call transaction 'VA01' using bdcdata <b>options from f_option </b> messages into bdcerror.
Hope it helps.
Regards,
Sonika
2007 May 21 8:28 AM
Hi,
Use the below syntax...
CALL TRANSACTION tcode... OPTIONS FROM opt
... OPTIONS FROM opt
Effect
Allows you to control processing using the values of the componetns of the structure opt, which must have the ABAP Dictionary type CTU_PARAMS. The components have the following meanings:
DISMODE
Display mode (like the MODE addition)
UPDMODE
Update mode (like the UPDATE addition)
CATTMODE
CATT mode (controls a CATT)
CATT mode can have the following values:
' ' No CATT active
'N' CATT without single-screen control
'A' CATT with single-screen control
DEFSIZE
Use default window size
RACOMMIT
Do not end transaction at COMMIT WORK
NOBINPT
No batch input mode (that is, SY-BINPT = SPACE)
NOBIEND
No batch input mode after the end of BDC data.
The components DEFSIZE , RACOMMIT, NOBINPT, and NOBIEND always take the following values:
'X' Yes
' ' No
If you do not use the OPTIONS FROM addition, the following control parameter settings apply:
DISMODE
From addition MODE
UPDMODE
From addition UPDATE
CATTMODE
No CATT active
DEFSIZE
Do not use default window size
RACOMMIT
Successful end on COMMIT WORK
NOBINPT
Batch input mode active ( SY-BINPT = X
NOBIEND
Batch input mode remains active after the BDC data
Jogdand M B
2007 May 21 10:08 AM
Hi Satish,
There are options available in <i><b>CALL TRANSACTION</b></i> method of BDC, which takes care of the screen resolution at runtime.
* Structure for Screen Resolution option in BDC
DATA WA_OPT TYPE CTU_PARAMS.
* Selection as to whether the screens of the called transaction are displayed in the standard screen size.
* Values "X" (standard size), " " (current size).
WA_OPT-DEFSIZE = 'X'.
CALL TRANSACTION 'MM01' " Transaction Name
USING IN_TAB " Internal Table
OPTION FROM WA_OPT. " Work Area with screen resolution optionHope this helps.
PS If the answer solved your query, plz close the thread by marking it <i><b>Solved</b></i> & rewarding each reply.
Regards
Message was edited by:
Sapna Modi
2007 May 21 10:20 AM
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.
reward points if help ful
kiran
2007 May 23 10:37 AM
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.
I guess it will solve your problem.
Rewards points to all useful answers.
Regards,
SaiRam