2007 May 06 1:15 AM
Hi.
The following is my requirement:
On the selection screen, the user enters a plant number.
What I'd like to do is to retrieve the postal code (PSTLZ) for that plant number, into a data object/variable that will hold the postal code for the plant number that the user entered on the selection screen. I believe that the info is stored in table T001W.
What program code would I need to accomplish this?
Thanks,
John
Hi.
The following is my requirement:
On the selection screen, the user enters a plant number.
What I'd like to do is to retrieve the postal code (PSTLZ) for that plant number, into a data object/variable that will hold the postal code for the plant number that the user entered on the selection screen. I believe that the info is stored in table T001W.
What program code would I need to accomplish this?
Thanks,
John
2007 May 06 2:17 AM
unless Iam missing something, this is straighforward..
parameters:p_weks type werks,
w_pstlz typepstlz.
select single pstlz into w_psltz
from t001w
where werks = p_werks.
if sy-subrc eq 0.
write:/ w_pstlz.
else.
write:/ 'Postal code not found for :'(m01),p_werks.
endif.~Suresh
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |