‎2013 Apr 08 3:08 PM
Hello Experts,
I am using following Statement for passing data between two BSP pages,
DATA: xcookie TYPE xstring.
EXPORT it_item FROM it_item TO DATA BUFFER xcookie.
and importing same data using
IMPORT it_item = it_item FROM DATA BUFFER xcookie.
My problem is next time this import statement gets the old data i want to delete data from data buffer.
can anybody tell me how to delete data ftom data buffer.
Thanks in advance.
‎2013 Apr 08 3:23 PM
Hi Paresh,
You can use on of those lines:
Best regards,
Jonathan
‎2013 Apr 09 6:23 AM
Hi Jonathan,
As Xcookie is of type string it is giving me error as id should be of type C
‎2013 Apr 09 9:42 AM
Hi Paresh,
You can take a look at the include "RHESS00REP01" where they store a xstring into memory.
If your system is unicode this have an impact.
If you want to clear you xstring, you can also update an initial one...
Best regards,
Jonathan
‎2013 Apr 09 10:09 AM
Hi Jonathan,
I am storing internal table to data buffer xcookie.
xcookie is of type string.
i want to clear data buffer after each import. Other Wise it takes data which has been stored last time.
EXPORT it_item FROM it_item TO DATA BUFFER xcookie.
IMPORT it_item = it_item FROM DATA BUFFER xcookie.
i want to clear data in data buffer xcookie.
Regards,
Paresh G
‎2013 Apr 09 10:23 AM
‎2013 Apr 08 5:06 PM
Hi,
you can use free or delete.
CLEAR dobj [ {WITH val [IN {CHARACTER|BYTE} MODE] }
| {WITH NULL} ].
DELETE FROM MEMORY ID id.