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

Clear does not clear historic data

former_member317781
Active Participant
0 Likes
1,851

Hi Good day,

i have screen where i display the data.

i change the location and display the relevant screen.

ex :

Now i Capture the data.

save and clear.

now i have changed the location to Terminal and input the value and save and cleared

again i go back to same incident and change location to Running line and when i select SECTION CODE and display the value on it the other 2 Between station and And Station displays the value without me doing anything.

i have cleared and done a through debug but i see no clue as to where it is getting it from.

your valuable input will be appreciated.

thank you,

j.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,809

Hi,

i dont know if you are using dynpro programming or if you use a simple selection screen.

(above comment was for selection-screen events)

this is just a blind guess - i think you did not clear a structure when select by "section code"  fails.

i think i cant help you much at this issue because i dont know your programm (and i dont want to go through 1000 code lines). you have to debug and find the bug yourself . if you got question how a technic works i can help you. But i cant find the bug for you.

As i worked alot with screens, not clearing variables was mostly the reason for effects like this.

regards

Stefan Seeburger

Hi Good day,

i have screen where i display the data.

i change the location and display the relevant screen.

ex :

Now i Capture the data.

save and clear.

now i have changed the location to Terminal and input the value and save and cleared

again i go back to same incident and change location to Running line and when i select SECTION CODE and display the value on it the other 2 Between station and And Station displays the value without me doing anything.

i have cleared and done a through debug but i see no clue as to where it is getting it from.

your valuable input will be appreciated.

thank you,

j.

5 REPLIES 5
Read only

Former Member
0 Likes
1,809

Hi,

hard to say whats the matter because i dont know your programm.

i think the fields "Between Station" and "And Station" are filled by screen event. such as "at selection screen output". When you now clear the screen-field "section-code" the event "at selection screen output" gets triggered and the select finds no data. But maybe your programm-intern Structure gets not cleared. so the output still gets displayed.

regards

Stefan Seeburger

Read only

0 Likes
1,809

hi Stefan,

thank you for the reply.

But maybe your programm-intern Structure gets not cleared. so the output still gets displayed.


at what time will i be able to know the programm-intern Structure when i debug?


i done the debug END-TO-END.

will you please advise as to how i need approch?


thank you,

J.

Read only

Former Member
0 Likes
1,810

Hi,

i dont know if you are using dynpro programming or if you use a simple selection screen.

(above comment was for selection-screen events)

this is just a blind guess - i think you did not clear a structure when select by "section code"  fails.

i think i cant help you much at this issue because i dont know your programm (and i dont want to go through 1000 code lines). you have to debug and find the bug yourself . if you got question how a technic works i can help you. But i cant find the bug for you.

As i worked alot with screens, not clearing variables was mostly the reason for effects like this.

regards

Stefan Seeburger

Read only

0 Likes
1,809

hi Stefan,

thank you for the Patience to respond back much appriciated.

i have found the issue.

the solution is   dynpfields = fields[] FIELDS is not been cleared as a result i had this issue.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

         EXPORTING

           dyname     = sy-repid

           dynumb     = sy-dynnr

         TABLES

           dynpfields = fields[].

much appriciated.

Read only

0 Likes
1,809

Hi Jacob Kata,

im happy you found the issue

regards

Stefan Seeburger