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: 

XTOB Equipament - last sy-ucomm repeating when press enter

glauco
Active Contributor
0 Kudos

Hi friends.

In function group XTOB has a custom screen for aditional data for Equipament master data IE01.

When I press a YYButton on the screen, it's ok.

But, after that, when I press ENTER button, the sy-ucomm given in user command is repeating for YYbuton.

But I need to know the user pressed ENTER instead. right ?

Any idea to solve this ?

best regards.

Glauco

2 REPLIES 2

Former Member
0 Kudos

Hi

Probably you should assign SY-UCOMM or a new varuable (like OK-CODE) to your screen, have you done it?

Max

0 Kudos

HI.

Usually we create a status gui with ENTER sy-ucomm. But my case we are working with subscreen. This won't work.

But in XTOB function group (exit/screen-exit) usualy we configure buttons in another transaction (vfbs) that points to a YYFORM to be executed. So we create this YYFORM in the PAI include in this function group.

The call of this form is automatic by the configuration of the button in vfbs.

It's not to be used in USER_COMMAND module like other buttons although you can use user_command too but not to intercept this YYBUTTON.

This configurations indicates we use this new configured YYFORM to treat this specific sy-ucomm.

OBS.: New screens are subscreens type. So we can not use status gui with buttons.

OBS.2: So we put this YYBUTON directly on the subscreen but ENTER ucomm does not exists.

So how to treat this repeated sy-ucomm ?

best regards.

Glauco