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: 

Save in VT02N .

Former Member
0 Kudos

Hello experts,

I was write this code in include 'ZXV56U18' :

READ TABLE i_xvttk_tab INTO ls_xvttk INDEX 1.

IMPORT ls_voyage-voyage FROM MEMORY ID 'SIG'.

MOVE ls_voyage-voyage TO ls_xvttk-signi.

MODIFY i_xvttk_tab FROM ls_xvttk INDEX 1 TRANSPORTING signi .

When i push my custom button in VT02N and go to my transaction , i transfer value to fields "VTTK-SIGNI"

with export command, and after this , in user exit "EXIT_SAPMV56A_001" i was update this value with import command

like i show below.

When i return to vt02n i see the new value on the screen ( vttk-signi(old) = 'AAA'

vttk-signi(new) = 'BBB' ) , but when i push on 'SAVE' button i get this message:

"Saving not necessary: no changes were made".

Why this is happend which i change the value of this fields ?

Thanks for the help.

Avi.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

if no changes were made by th euser, UPDKZ is inital.

=> set i_xvttk_tab-UPDKZ to 'U'

2 REPLIES 2

Former Member
0 Kudos

if no changes were made by th euser, UPDKZ is inital.

=> set i_xvttk_tab-UPDKZ to 'U'

0 Kudos

Hello,

Thanks for the help, i do this and when i click on save button , i was get DUMP with this details:

110 * read corresponding daten from XVTTk YVTTk to i_xvttk i_yv

111 LOOP AT VTTK_CHANGE.

112 * build i_xvttk and i_yvttk

113 UPD_VTTK = VTTK_CHANGE-UPDKZ.

114 * deleted lines of n_687615

115 * v_n_687615

116 CASE vttk_change-updkz.

117 WHEN updkz_update.

118 READ TABLE xvttk

119 WITH KEY tknum = vttk_change-tknum

120 INTO i_xvttk

121 BINARY SEARCH.

122 IF sy-subrc NE 0.

123 MESSAGE X002

124 WITH 'READ TABLE' 'xvttk'

125 vttk_change-tknum SPACE.

126 ENDIF.

127 READ TABLE yvttk

128 WITH KEY tknum = vttk_change-tknum

129 INTO i_yvttk

130 BINARY SEARCH.

131 IF sy-subrc NE 0.

>>>> MESSAGE X002

133 WITH 'READ TABLE' 'yvttk' vttk_change-tkn

134 ENDIF.

135 IF i_xvttk-tknum NE i_yvttk-tknum OR

Can help me with this problem ?

Thanks for the help,

Avi.