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

Clear Parameter ID Problem...

former_member212713
Contributor
0 Likes
1,079

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
Read only

Former Member
0 Likes
928

DATA : w_matnr TYPE mara-matnr.

CLEAR w_matnr.

SET PARAMETER ID 'MAT' FIELD w_matnr.

Hope it helps.

Sujay

5 REPLIES 5
Read only

Former Member
0 Likes
928

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

Read only

Former Member
0 Likes
929

DATA : w_matnr TYPE mara-matnr.

CLEAR w_matnr.

SET PARAMETER ID 'MAT' FIELD w_matnr.

Hope it helps.

Sujay

Read only

0 Likes
928

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.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
928

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

Read only

former_member212713
Contributor
0 Likes
928

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.