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

Field value not updated in Dialog Programming

Former Member
0 Likes
692

Hi experts

My problem is when i change the field value in dialog programming, the text value is not updated, its showing the same value what exist in database.

I have done coding as follows, what i need to change in coding, Pls give me the suggestion.

PROCESS BEFORE OUTPUT.

MODULE STATUS_1200.

PROCESS AFTER INPUT.

CHAIN .

FIELD : zrecpt-zrno.

MODULE vali_zrno ON CHAIN-INPUT.

ENDCHAIN.

module header_data10.

MODULE STATUS_1200 OUTPUT.

SET PF-STATUS 'ZRECT'.

SET TITLEBAR 'ZRECT'.

ENDMODULE.

MODULE vali_zrno INPUT.

if zrecpt-zrno is not initial.

select single * from zrecpt

where zrno = zrecpt-zrno.

endif.

ENDMODULE.

MODULE header_data10 INPUT.

CLEAR : it_zrecpt.

REFRESH : it_zrecpt.

MOVE-CORRESPONDING zrecpt TO it_zrecpt.

APPEND it_zrecpt.

ENDMODULE.

Thanks in advance.

Regards

Rajaram

1 ACCEPTED SOLUTION
Read only

hymavathi_oruganti
Active Contributor
0 Likes
563

use the statement

UPDATE DBTAB FROM ITAB

Hi experts

My problem is when i change the field value in dialog programming, the text value is not updated, its showing the same value what exist in database.

I have done coding as follows, what i need to change in coding, Pls give me the suggestion.

PROCESS BEFORE OUTPUT.

MODULE STATUS_1200.

PROCESS AFTER INPUT.

CHAIN .

FIELD : zrecpt-zrno.

MODULE vali_zrno ON CHAIN-INPUT.

ENDCHAIN.

module header_data10.

MODULE STATUS_1200 OUTPUT.

SET PF-STATUS 'ZRECT'.

SET TITLEBAR 'ZRECT'.

ENDMODULE.

MODULE vali_zrno INPUT.

if zrecpt-zrno is not initial.

select single * from zrecpt

where zrno = zrecpt-zrno.

endif.

ENDMODULE.

MODULE header_data10 INPUT.

CLEAR : it_zrecpt.

REFRESH : it_zrecpt.

MOVE-CORRESPONDING zrecpt TO it_zrecpt.

APPEND it_zrecpt.

ENDMODULE.

Thanks in advance.

Regards

Rajaram

2 REPLIES 2
Read only

Former Member
0 Likes
563

Hello...

IN PAI,,

You were not updating into any database..

you were just appending to an internal table...

now either move the internal table values to the database ...

or you can simply move from the values entered...[text boxes ]

pls chk.....

Read only

hymavathi_oruganti
Active Contributor
0 Likes
564

use the statement

UPDATE DBTAB FROM ITAB