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 Program for table control

vikash_pathak
Participant
0 Likes
529

Hi Friends,

I have an issue i am stuck here,

i have to create BDC Program for XK01 tcode,

and my requirement is that,

i have three users first user want only three colum and second user want four column

and third user want five column in table control,

so how could i achieve it,

please hekp me out.

Thanks

Vikash

3 REPLIES 3
Read only

Former Member
0 Likes
505

Hi Vikash,

FORM bdc_dynpro  USING  p_program p_dynpro.

IF user-one.

FORM bdc_field  USING  fnam1 fval.

FORM bdc_field  USING  fnam2 fval.

FORM bdc_field  USING  fnam3 fval.

ELSEIF user-two.

FORM bdc_field  USING  fnam1 fval.

FORM bdc_field  USING  fnam2 fval.

FORM bdc_field  USING  fnam3 fval.

FORM bdc_field  USING  fnam4 fval.

ELSEIF user-three.

FORM bdc_field  USING  fnam1 fval.

FORM bdc_field  USING  fnam2 fval.

FORM bdc_field  USING  fnam3 fval.

FORM bdc_field  USING  fnam4 fval.

FORM bdc_field  USING  fnam5 fval.

ENDIF.

Does this make sense?

regards,

Archer.

Read only

former_member201275
Active Contributor
0 Likes
505

I'm not sure exactly what you are trying to achieve, but sounds to me like the answer from Dengyong is correct. Please close question if his answer is correct.

Read only

Former Member
0 Likes
505

Hi Vikash,

I am not sure if my understanding is correct, here you mean user can give user can give any number of rows but table control will have different row number as per the screen resolution.So during BDC recording you can make use of CTU parameters on call transaction syntax.

Regards,

Pravin