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

Abap screen : Inputbox getting cleared when pushing ENTER key

Former Member
0 Likes
434

Hi guys,

I have a problem with inputbox created with screen-painter.

If I don't attach a MemoryID and activate SET/GET parameter to them, they get cleared when i push the enter key.

I'am also unable to fill them in my code.

exemple: S_MATNR is my inputbox for my material number. if i do S_MATNR = 'ABCD' in my 'PROCESS BEFORE OUTPUT' event, the inputbox remains empty.

Any idea?

Thank you,

Olivier.

2 REPLIES 2
Read only

bbalci
Contributor
0 Likes
400

Hello Joskin,

As I understand S_MATNR is a select-option here,

you should use

S_MATNR-LOW = '1234'

APPEND S_MATNR.

Because a select-option is an internal table at original.

if S_MATNR is not a select-option than

maybe you have a name conflict, check the names of the input field on the screen painter

and your variable S_MATNR are identical

or some code after your value assignment

is clearing the variable

put a watchpoint on variable S_MATNR in the debugger and see what happens.

I hope it helps.

Read only

Former Member
0 Likes
400

Hi Oliver,

Declare S_MATNR in your TOP Include.

Data: S_MATNR type MATNR.

Regards

Sajid