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 values are not cleared

Former Member
0 Likes
745

hi BDC Masters,

i have a scree vith 2 fields VAR1 AND VAR2.

in VAR1 = 05 and VAR2 = AM and i get the values...into my internal table I-CREATE

i am using BDC and passing all my INTERNAL TABLE VALUES to the BDC where it displays all the values that are their in the INTERNAL TABLE which is fine.

when the user comes and changes the screen values for ex VAR1 = 00 and VAR2 = HL.

NOW the am able to get values of 00 and HL into INTERNAL TABLE WHERE VAR1 = 00, VAR2 = HL.

BUT when i pass this values to BDC am not able to get these values of the internal table that am passing but PREVIOUS VALUES are been displayed instead of the values that am passing now to BDC.

I am clearing my internal table befor it fills the internal table second time and and reading it.

when i debug i can see the values fo the second time given values and those values am passing still the OLD VALUES are displayed.

how can i clear the BDC VALUES?

can anyone help me pls?

thank you,

pasala.

hi BDC Masters,

i have a scree vith 2 fields VAR1 AND VAR2.

in VAR1 = 05 and VAR2 = AM and i get the values...into my internal table I-CREATE

i am using BDC and passing all my INTERNAL TABLE VALUES to the BDC where it displays all the values that are their in the INTERNAL TABLE which is fine.

when the user comes and changes the screen values for ex VAR1 = 00 and VAR2 = HL.

NOW the am able to get values of 00 and HL into INTERNAL TABLE WHERE VAR1 = 00, VAR2 = HL.

BUT when i pass this values to BDC am not able to get these values of the internal table that am passing but PREVIOUS VALUES are been displayed instead of the values that am passing now to BDC.

I am clearing my internal table befor it fills the internal table second time and and reading it.

when i debug i can see the values fo the second time given values and those values am passing still the OLD VALUES are displayed.

how can i clear the BDC VALUES?

can anyone help me pls?

thank you,

pasala.

4 REPLIES 4
Read only

Former Member
0 Likes
657

Hi Pasala,

Use *Refrsh BDCTAB* before you pass the values to BDC 

clear wa_bdctab " if it is separately declared
refresh BDCTab.
" Note: Whenever you append an Internal table make sure you refresh internal table unless you require the
" Old values as well other wise refresh it 

now buitld it again.

Regards

Ram

Read only

0 Likes
657

thank you ramachandra.... it works...

thank you for your valuble answers.

Read only

Former Member
0 Likes
657

data : gwa_bdcdata TYPE bdcdata.

gwa_bdcdata-fnam = fnam.

gwa_bdcdata-fval = fval.

APPEND gwa_bdcdata TO gi_bdcdata.

CLEAR gwa_bdcdata.

CLEAR gwa_bdcdata.

gwa_bdcdata-program = prog_name. "Program Name

gwa_bdcdata-dynpro = screen_no. "Screen Number

gwa_bdcdata-dynbegin = gc_x.

  • Append bdc table and clear work area

APPEND gwa_bdcdata TO gi_bdcdata.

CLEAR gwa_bdcdata.

Read only

Former Member
0 Likes
657

thank you answered.