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

Derive subarea from position

Former Member
0 Likes
672

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'

3 REPLIES 3
Read only

Former Member
0 Likes
627

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.

Read only

tarangini_katta
Active Contributor
0 Likes
627

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

Read only

Former Member
0 Likes
627

Got it right Thanks