cancel
Showing results for 
Search instead for 
Did you mean: 

Changes will cause... Message when Form is in OK Mode

Former Member
0 Kudos

Hi,

Form is in OK mode.

But, when pressing Move Next/Previous I get the message "Changes will cause the data to be deleted".

I'm doing the following:

I'm adding a combobox to Item master screen.

I'm selecting a particular index according to user specification.

'----


oForm.items.item("X").affectsformmode = false

Dim cmbTmp as sapboui.combobox

cmbTmp = oForm.items.item("X").specific

cmbTmp.Select(...)

oForm.items.item("X").affectsformmode = true

'----


I saw in the event logger.

Form's mode remains to be in OK mode, but still I'm getting this message.

Please help me with this.

Thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hai Geetha,

By default, in predefined screen if u navigate it will show that message...

For Ex:

U dont run the program simply go to SAP and Open some predefined Screen and navigate.

Tell me exactly wht help u want..

Regards,

Anitha

Former Member
0 Kudos

Hi Anitha,

Thanks for your reply.

This did not happen when the Add-on was not running.

Now, I got the problem solved.

I'm explicitly assigning the form mode to OK mode, even though it's already in OK mode.

Thanks and Regards,

Geetha

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Geetha!

I don't know if this helps but if your form is in Ok Mode or not, try to set your Form.Mode to Ok by coding...for sure..

hopeithelps

Matthias

Former Member
0 Kudos

Hi Matthias,

Thanks for your reply.

I tried your suggestion and it works!

Thanks and Regards,

Geetha

Former Member
0 Kudos

thx for points..

Matthias

Former Member
0 Kudos

You are welcome:)