Application Development 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: 

Data getting cleared in BDCDATA

Former Member
0 Kudos

Hi I am using a BDC in an exit but the data is getting cleared in the Exit and after every perform bdcdata the values of the bdc data gets cleared . Pls advise on how to use BDCDATA in an exit

6 REPLIES 6

Former Member
0 Kudos

You can try by IMPORT and EXPORT BDCDATA using memory id .

Former Member
0 Kudos

Hi,

Debug the entire coding part. Find is there any commands like Refresh or Clear in Code.

Former Member
0 Kudos

Hi ,

look whether BDCDATA is there in export parameter is in exit..

else try to use the Export BDC data to memory in exit..

and IMPORT BDC data from memory in where you want to use the BDC data..


export BDCDATA to memory id 'BDCDATA'.

Import BDCDATA from memory id 'BDCDATA'.

ot

EXPORT messtab FROM messtab TO MEMORY ID para.
 
IMPORT messtab TO messtab FROM MEMORY ID para.


Regards,

Prabhudas

0 Kudos

it is just updating the value of the last perform in the memory id i.e its overwriting the othervalues in the memory id

0 Kudos

it will overwrite the values in the memory id with these statements... instead you will have to append the entries in the table first and then export the internal table to the memory id.....

or in the form where you are exporting the bdc data to the memory id...... write this code....

" populate values in bdcdata...
import BDCDATA[] from memory ID 'BDCDATA'.
append bdcdata.
export BDCDATA[] to memory id 'BDCDATA'.

Regards,

Siddarth

Former Member
0 Kudos

Import and Export solved the issue and I can get the data now in BDCDATA table