2008 Dec 15 8:02 AM
Hi guys;
I am trying to display the subarea of an HR position that is choosen from a screen field. I have selected from PA0001 but it seem not to give me the date every time. and also if I name my screen field pa0001-btrtl it will give the error that the entry is not find in t0001p,.
Please helpwith as solution. this is my Code
SELECT SINGLE BTRTL INTO pa0001-BTRTL from hrp1008
Where plvar = '01'
AND OBJID = PSPAR-PLANS
AND OTYPE = 'S'
AND BUKRS in ('BOC1', 'PIS1', 'BOC2', 'PAR1')
AND ISTAT = '1'
Hi guys;
I am trying to display the subarea of an HR position that is choosen from a screen field. I have selected from PA0001 but it seem not to give me the date every time. and also if I name my screen field pa0001-btrtl it will give the error that the entry is not find in t0001p,.
Please helpwith as solution. this is my Code
SELECT SINGLE BTRTL INTO pa0001-BTRTL from hrp1008
Where plvar = '01'
AND OBJID = PSPAR-PLANS
AND OTYPE = 'S'
AND BUKRS in ('BOC1', 'PIS1', 'BOC2', 'PAR1')
AND ISTAT = '1'
2008 Dec 15 8:21 AM
hi after using this query plz use sy-subrc ..
as
if sy-subrc eq 0.
then see ur field whether it is initial or filled.
endif.
2008 Dec 15 8:21 AM
Hi ,
If you create manually are you able to post persoonel sub area(P0001-BTRTL).
If not create the create one personnel in the spro.
Create one personnla sub area.
Assign you personnel area to u r company code.
Then it wil work for you.
Thanks
2009 Feb 04 7:03 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |