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

Dynamic selection screen

Former Member
0 Likes
977

Hi Experts,

I have created a Z program where user has to enter storage bin, storage area and material ( All of them are parameters ).And Inventory document gets created automatically. They do this for bundle of Materials using barcode.

Now Business wants me to check by using transaction LS03 if the second material has same storage bin as first . The Storage bin parameter should be disabled for second material .

That means Dynamically changing the selection Screen. Is this Possible?

Please help me.

Thanks,

Neha Kapoor

6 REPLIES 6
Read only

Former Member
0 Likes
939

Yes based on u r requirement simply suprees the wanted fileds in the selection screen oupt event. u can make modifications to the selection screen by making modifications to the screen internal table.

regards,

Sunil Kumar Mutyala.....

Read only

0 Likes
939

Hi.....Neha

Read only

0 Likes
939

Hi Sunil,

Thanks for the help. I know we can change the Screen internal table in At selection -output event .

But here the case is bit different.

I have to first select data (All material for that storage bin) from LQUA table using Storage bin parameter. Then after inventory document is created for first material. I have to compare storage bin of second material with storage bin parameter . If they are same, storage bin parameter should be disabled.

Thanks ,

Neha

Read only

Former Member
0 Likes
939

Hi Neha,

In your code, use the AT SELECTION-SCREEN OUTPUT event. In this Loop at screen....Endloop. Make use of Invisible and Active fields for your requirement. This will resolve the issue.

Regards,

Swapna.

Read only

Former Member
0 Likes
939

Hi neha kapoor,

It is possible. In your requirment you need to know the previous value or the sorage bin and you can get it by using the parameter id LGP ( I got this pressing F1 and then F9 in the field storage bin of LS03 tcode).

( I thing you are creating the documents by using call transaction method)

Do the followng thinks in your program..

1. Get the value of parameter id LGP by using get parameter concept

syndax : GET PARAMETER ID pid FIELD dobj.

2. Compare the value to the present value

3. If both are equal then disable the field in PBO of your program.

Regards,

Mahi.

Read only

0 Likes
939

Hi Mahi,

Thanks it is very helpful.

Now only problem is I can get the previous value using get parameter . But I have to obtain storage bin from LQUA comparing the warehouse number, storage type and material for next material.

Compare this storage bin with Get parameter id one. This will be done in start-of-selection event.

Thanks and Regards

Neha