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: 

Clear Parameter ID Problem...

former_member212713
Contributor
0 Kudos
279

Hi Gurus;

I write a screen program(dialog). I use structure on the screen because its very easy. My structure's some field's data element has parameterId. For example Matnr>MAT , Equipment>EQN.

Sometimes I want to clear my structure in runtime. I clear it. But it remember old values and fill fields. But I dont know.

I finded the some offer on internet and sdn. And I tried some offers (FREE MEMORY ID 'MAT', SET PARAMETER ID 'MAT' FIELD SPACE)

But not success.

Please help me.

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
128

DATA : w_matnr TYPE mara-matnr.

CLEAR w_matnr.

SET PARAMETER ID 'MAT' FIELD w_matnr.

Hope it helps.

Sujay

5 REPLIES 5

Former Member
0 Kudos
128

Hi,

I don't know if it will works but try to use the stament DELETE FROM MEMORY ID id.

Best regards,

Caíque Escaler

Former Member
0 Kudos
129

DATA : w_matnr TYPE mara-matnr.

CLEAR w_matnr.

SET PARAMETER ID 'MAT' FIELD w_matnr.

Hope it helps.

Sujay

0 Kudos
128

CLEAR w_matnr.

SET PARAMETER ID 'MAT' FIELD w_matnr.

That's the same thing as SET PARAMETER ID 'MAT' FIELD SPACE, which he has already tried.

To the poster, the space setting should work but you did not identify WHERE in your flow logic you put the statement. You can also track the value of the parameter ID using the debugger and find out where it's coming back.

kesavadas_thekkillath
Active Contributor
0 Kudos
128

Try unmarking the check box output field in the screen attributes. Only mark input field.

former_member212713
Contributor
0 Kudos
128

Hi;

I solved this problem.

I wrote new code at PBO for problem case.

I cleared only problem field. (matnr, euqi etc.)

Now I havent any problem.

Thanks for your answer, help, interest.