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

Delete 008 relation

Former Member
0 Likes
2,253

Dear expert

I have used FM 'RH_RELATION_MAINTAIN' to delete 0008 relation between position and person in advance generic service , but i get runtime error:

'Screen output without connection to user'

is there way to execute the FM without connection to user

please advise

Regards

Ghadeer

1 ACCEPTED SOLUTION
Read only

former_member226519
Active Contributor
0 Likes
1,917

you can't (or should not) delete a relation.

The correct way is to delimit an old relation and create the new one with BEGDA = delimit_date + 1.

Use fm RH_CUT_INFTY

Dear expert

I have used FM 'RH_RELATION_MAINTAIN' to delete 0008 relation between position and person in advance generic service , but i get runtime error:

'Screen output without connection to user'

is there way to execute the FM without connection to user

please advise

Regards

Ghadeer

7 REPLIES 7
Read only

former_member226519
Active Contributor
0 Likes
1,918

you can't (or should not) delete a relation.

The correct way is to delimit an old relation and create the new one with BEGDA = delimit_date + 1.

Use fm RH_CUT_INFTY

Read only

0 Likes
1,917

Thanks Volker

I have copied the FM 'RH_RELATION_MAINTAIN' and change the parameter 'SUPPRESS_DIALOG' to 2 , its working fine and delete the relation between the position and person (pp01) , but the problem when i check PA30 the position still there in IT0001!

Please advice

Read only

former_member226519
Active Contributor
0 Likes
1,917

You could use report RHINTE30 to transfer the changes you made in OM to PA infotypes.

Or extend your report to update infotype 0001 separately (HR_INFOTYPE_OPERATION, operation COP)

Read only

0 Likes
1,917

Thank you

I have tried to call RH_RELATION_MAINTAIN to 008 relation to position then i called 'HR_INFOTYPE_OPERATION' to copy new record in IT0001 for the same pernr ,but in PA30, new reocrd in IT0001 created but with old position even i also pass it in the record parameter of the FM !

So how can i copy IT0001 record with new position ?

Regards

Read only

former_member226519
Active Contributor
0 Likes
1,917

first cut relation between old position and pernr (e.g. 01/01/2016 to 12/31/2016)

than create relation between new position and pernr (01/01/2017 to 12/31/9999)

than copy P0001 with new position and BEGDA = 01/01/2017

Read only

0 Likes
1,917

Dear Volker

Thank you

all work fine , i cut the old position and create new relation , then i copy P0001 with new position and new begda , but when i copy the P0001 record i got error 'POSITION_NOT_FOUND' ! even i have checked in the backed its add to the pernr !

Regards

Read only

former_member226519
Active Contributor
0 Likes
1,917

check tables HRP1000 and HRP1001 if the new position/relation exist with the correct BEGDA/ENDDA

or try to copy P0001 manually and debug PAI modul what exactly causes the error