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

Relation between these two

Former Member
0 Likes
402

Hi,

How to link these two tables in HRP1001-SOBID and pa0001 which field is related to pa0001 field.Can yo plz give me what is the field name in pa0001. but the Otype is 'O'.Can you please let me know

Regards,

Raj.

3 REPLIES 3
Read only

Former Member
0 Likes
370

orgeh in pa0001

and objid in hrp1000/hrp1001 with otype = 'O'

select single sobid from hrp1001 into v_orgeh where objid = p_objid and sclas = 'O' and relat = '003'.

if sy-subrc = 0.

select single pernr from pa0001 into v_pernr

where orgeh = v_orgeh.

endif.

Read only

Former Member
0 Likes
370

Hi raj,

look here:

Regards, Dieter

the simplest way is to use SQVI wit both tables.

Regards, Dieter

Message was edited by:

Dieter Gröhn

Read only

Former Member
0 Likes
370

Hi

OBJID of PA001 is related to HRP1001-SOBID

<b>reward if usefull</b>