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

how to set the screen resolution in bdc program

Former Member
0 Likes
4,424

Hi Experts,

Can any body tell how to set the screen resolution in bdc program with an example.

Thanks,

Satish.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,140

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 option

Hope 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

Hi Experts,

Can any body tell how to set the screen resolution in bdc program with an example.

Thanks,

Satish.

5 REPLIES 5
Read only

former_member632991
Active Contributor
0 Likes
2,140

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

Read only

Former Member
0 Likes
2,140

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

Read only

Former Member
0 Likes
2,141

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 option

Hope 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

Read only

former_member223446
Active Participant
0 Likes
2,140

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

Read only

former_member196280
Active Contributor
0 Likes
2,140

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