2010 Jan 20 7:01 AM
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.
2010 Jan 20 7:20 AM
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
2010 Jan 20 8:09 AM
thank you ramachandra.... it works...
thank you for your valuble answers.
2010 Jan 20 7:23 AM
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.
2010 Jan 20 8:10 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |