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

Clearing buffers in Scripts.

Former Member
0 Likes
964

Hi,

I am working on SAP scripts. I am saving some data in the standard text created through transaction SO10 which is being printed.

This works well when I execute the script for first time. But when i execute it for second time for diffrent data , it displays data from previous execution also.

I believe this is due to the problem of buffer not getting refreshed. Please let me know how to refresh the

buffers. Please have a look at the below code which i am using to save data in the standard text.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

header = w_header

insert = 'X'

savemode_direct = 'X'

owner_specified = ' '

TABLES

lines = i_text

EXCEPTIONS

id = 1

language = 2

name = 3

object = 4

OTHERS = 5.

IF sy-subrc <> 0.

ENDIF.

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
727

HI

Their is problem in the clearing of the tables in the driver program

deberg once u will be get to know .

in order to chek put the break point in the start of selection

Regards,

Naresh

Read only

0 Likes
727

Hi ,

I have tried the above option also, But it doesn't work.

The standard text is being populated with req data in second go, but the data is not being printed in the Script.

Any ideas.