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

'SKIP' Functionality in SM30

Former Member
0 Likes
659

Hello Experts,

In 'SM30', While maintaining the data into a table, if a record is already existing in table we get an error message 'A Key already existing' and we see 'SKIP' Functionality also.

I want to use this 'SKIP' functionality in a custom program. Can anybody please let me know how this functionality works/achieved?

I greately appreciate your help. Thanks.

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
603

Try this way

Create a PF status and activate during runtime (according to your error condition occurs) then call the following method with DUMMY okcode so this simply not executing anything in PAI it simply calls PBO


    call method cl_gui_cfw=>set_new_ok_code
             exporting
                 new_code = 'DUMMY'.

and clear the line inserted with duplicate record key

a®

Read only

0 Likes
603

Thanks a lot for the reply. But I am not really familiar with the OO ABAP - So I dont understand the 'Methods'. Can you please let me know any other way than creating the methods. I am using 46c.

Thanks again.

Read only

0 Likes
603

You can use fm SAPGUI_SET_FUNCTIONCODE in place of set_new_ok_code

a®

Read only

0 Likes
603

Hi,

Do I have to write this code in my user "include" program? But It has no PAI or PBO in that?

Thanks again.

Sorry, I did not give you the full information. But my requirement is: While the users maintaining the data on SM30 into the user table, If they do not fill in the whole row I am giving an error message writing logic in the include progarm. And this kicks them out that screen. But now they want to go back to that screen to modify that fields.

Hope this makes sense.

Edited by: SAM K on Mar 14, 2008 2:49 PM

Read only

0 Likes
603

Hi Sam,

Error message will not allow them to make further changes. have you tried with Information message?

Regards,

Atish