‎2008 Jul 23 8:37 AM
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
‎2008 Jul 23 8:42 AM
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.....
‎2008 Jul 23 8:44 AM
‎2008 Jul 23 8:48 AM
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
‎2008 Jul 23 8:46 AM
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.
‎2008 Jul 23 8:53 AM
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.
‎2008 Jul 23 9:25 AM
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