cancel
Showing results for 
Search instead for 
Did you mean: 

hrp1001

Former Member
0 Kudos

hi

I have one value for the "objid" and "rsign = B",

I should get all the "sobid" values for that corresponding objid from HRP1001.

ALSO i should use the sobid as objid again to get the values in repetitive manner ,

Is there any function module which does this job???

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Tamilsevank!

Unfortunately I cannot give you the FM whit that you can reach the result, but I can give you the workaround with 3 more "click"s

HRP1001 -> your "objid" and "rsign" -> F8

Now you have the list to these parameters. Here you have to option to download the list into Excel, or into a txt file for further processing.

I think this can be a benefical way to analyse.

Best regards,

Zsolt

Former Member
0 Kudos

hi zsolt

Thanks for your reply..

i know how to check manually as you told But i want the code sample to get that values to write a program

Former Member
0 Kudos

Hello,

Data: begin of itab occurs 0,

objid type objid,

sobid type sobid,

...............

................

objid_copy type objid,

end of itab.

select objid sobid from HRP1001 where../......

Loop at itab.

itab-objid_copy = itab-sobid.

modify itab transporting objid_copy..

endloop.

You can use this again for the next select statment

selec objid sobid from hrp1001 into Jtab for all entries in itab

where objid = itab-objid_copy

This way you can get the valus.

Hope this helps you.

Regards,

Kiran I

Former Member
0 Kudos

hi kiran

your code will fetch values upto two level but i want the values until there is no sobid values for objid.

Former Member
0 Kudos

Hi,

Can you tell me what exactly requirement is.

Regards,

Kiran I