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

strange problem in module pool programming

Former Member
0 Likes
1,084

Hi all,

we have a module pool program which consists of screen 100 and 200 and 3 sub-screens 201,202 and 203.the problem is when we double click on any field we get a pop up message which should appear only when we press the 'SAVE' button for which ok_code is 'CHNG'.I have debugged the program for screen 100 pbo,pai,200 pbo but the value of ok_code is not equal to 'CHNG' then it takes me to screen 200 and when i double click then popup appears and and in 200 PAI the value of ok_code had already got changed to 'CHNG' without entering the change logic and I have not even pressed the SAVE button which has 'CHNG' code associated with it.Can any one help me solve this problem.I wish I could give a better explanation.

Thanks and Regards,

Sangram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
666

We might need to see some of the code.

Check the NEXT SCREEN values for each screen.

It is common to save the ok_code and then clear. The saved version is checked in the PAI modules.

Like...

MODULE USER_COMMAND_0100 INPUT.
  okcode_save = okcode.
  clear okcode.
  case okcode_save.
   ...
  endcase.

2 REPLIES 2
Read only

Former Member
0 Likes
667

We might need to see some of the code.

Check the NEXT SCREEN values for each screen.

It is common to save the ok_code and then clear. The saved version is checked in the PAI modules.

Like...

MODULE USER_COMMAND_0100 INPUT.
  okcode_save = okcode.
  clear okcode.
  case okcode_save.
   ...
  endcase.

Read only

Former Member
0 Likes
666

Hi,

This is because the Shortcut key assigned to SAVE button in PF-STATUS is "F2". F2 is for Double Click. Assign some other Function Key to SAVE or any Button. Try to avoid assigning F2 key.

This would solve the problem.

Best regards,

Prashant

PS : Please reward all helpful answers !