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

Data getting cleared in BDCDATA

Former Member
0 Likes
944

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
Read only

Former Member
0 Likes
883

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

Read only

Former Member
0 Likes
883

Hi,

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

Read only

Former Member
0 Likes
883

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

Read only

0 Likes
883

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

Read only

0 Likes
883

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

Read only

Former Member
0 Likes
883

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