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 session method

Former Member
0 Likes
740

Hi all ,

where BDC_OK fields will store in which table .

and also how to reslove the screen resolution in bdc session method .

Regards ,

Kiran .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
665

hi

to maintain Screen Resolution just try this

in the BDC Program source code u will find

include BDCRECX1 just double click on it,u can see the selection screen of BDC

and form definitions for Open_Group ,BdcTransaction & CloseGroup,since it is a std include program

u cannot change it so copy this to a Z include and use that Z include instead of BDCRECX1

Then go to form BDCTRANSACTION using TCODE

in that form Declare a workarea(eg: opt) of structure type CTU_PARAMS

data: messtab like bdcmsgcoll occurs 0 with header line.

data : opt type ctu_params.

pass the values to it

dismode-> Processing mode (A,E,N,P)

updmode-> Update mode (L,S,A)

defsize-> Default Screen Size (X) to maintain Screen Resolution

opt-dismode = ctumode.

opt-updmode = cupdate.

opt-defsize = 'X'.

if session = 'X'.

call function 'BDC_INSERT'

exporting

tcode = tcode

ctuparams = 'OPT'

tables

dynprotab = bdcdata.

else.

refresh messtab.

call transaction tcode using bdcdata options from opt messages into messtab.

endif.

Regards

4 REPLIES 4
Read only

Former Member
0 Likes
665

Hi,

While doing the recording from the SHDB..you need to check the Default Size check box in the Popup window. This will take care of the screen Resoluiton.

Read only

dhirendra_pandit
Active Participant
0 Likes
665

The database table for BDC_OKCODE is WDKSCRIPTBDC under the field name FVALBDC.

Check it out.

Read only

Former Member
0 Likes
665

hi,

There is a parameter called CTUPARAMS in BDC_INSERT function module. so u need to populate

CTUPARAMS-DEFSIZE = 'X'. then it will take the default size for table control for all the systems with different resolutions.

Regards,

Vineel.

Read only

Former Member
0 Likes
666

hi

to maintain Screen Resolution just try this

in the BDC Program source code u will find

include BDCRECX1 just double click on it,u can see the selection screen of BDC

and form definitions for Open_Group ,BdcTransaction & CloseGroup,since it is a std include program

u cannot change it so copy this to a Z include and use that Z include instead of BDCRECX1

Then go to form BDCTRANSACTION using TCODE

in that form Declare a workarea(eg: opt) of structure type CTU_PARAMS

data: messtab like bdcmsgcoll occurs 0 with header line.

data : opt type ctu_params.

pass the values to it

dismode-> Processing mode (A,E,N,P)

updmode-> Update mode (L,S,A)

defsize-> Default Screen Size (X) to maintain Screen Resolution

opt-dismode = ctumode.

opt-updmode = cupdate.

opt-defsize = 'X'.

if session = 'X'.

call function 'BDC_INSERT'

exporting

tcode = tcode

ctuparams = 'OPT'

tables

dynprotab = bdcdata.

else.

refresh messtab.

call transaction tcode using bdcdata options from opt messages into messtab.

endif.

Regards