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: 

Re: Changes to screen field date was not updated

colin_cheong
Contributor
0 Kudos

Hi,

I had a dialog screen showing a valid from date as 10.10.2007. I changed it to 15.10.2007 and click on other details tab. when I returned, it is still showing the old values.

When I did a DEBUG, upon changing and hitting enter key, the new dates for the screen field is not changed. it is still showing the old date for the screen field.

why is it so?

I think this is the cause of why the old values is still displaying. How can I get the field updated to my internal table. It need to be filled with the new values before I can updated to my internal table and then re-displayed again.

How to get the new values into the screen field?

5 REPLIES 5

varma_narayana
Active Contributor
0 Kudos

Hi..

As i understatnd this field is in TABLE Control.

In that case you must Update the Internal table in the PAI .. Inside LOOP .. ENDLOOP.

Process After Input.

LOOP AT ITAB.

Module Update_itab. "Calling the module

ENDLOOP.

<b>In Module pool</b>

Module Update_itab INPUT.

modify itab from wa index TABCON-CURRENT_LINE.

ENDMODULE.

Note: Here WA is the work area of the Screen fields and TABCON is the Table control variable.

<b>Reward if Helpful.</b>

0 Kudos

hi,

I did a DEBUG.

Upon changing and values date to 10.10.2007 to 15.10.2007 and hitting the ENTER key, ti branches to PROCESS AFTER INPUT.

Before it entered into the module MODULE USER_COMMAND_1100, the screen field, WS-DETAIL-DATBI still showing the old values instead of the new values, is it correct?

if no, how do i get the new values to the screen field for update?

0 Kudos

Hi,

You need to do the modification of internal tabel in the PAI itself. After that when the PBO is triggered, the updated value will come in the screen.

Reward if helpful.

Thnx,

RSS.

0 Kudos

Hi,

The problem is the new values I changed is not in the screen field that is used for it.

The screen field is still showing the old values.

If the screen values is having the latest values, then I would be able to update it in PAI before PBO.

Is there any where wrong with my setting. The screeen field is also my internal table.

colin_cheong
Contributor
0 Kudos

New values will appeared after trapping the new values in PAI