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

HRP1001 Table Update

Former Member
0 Likes
2,723

Hey all,

Is there anyway to update a record in table HRP1001 through ABAP to enable/disable a relationship temporarily? I tried using the FM RH_UPDATE_INFTY_1001_EXT, but it doesn't allow me to make changes to the dates or istat.

Any help would be appreciated.

Thanks,

Suman

Hey all,

Is there anyway to update a record in table HRP1001 through ABAP to enable/disable a relationship temporarily? I tried using the FM RH_UPDATE_INFTY_1001_EXT, but it doesn't allow me to make changes to the dates or istat.

Any help would be appreciated.

Thanks,

Suman

6 REPLIES 6
Read only

Former Member
0 Likes
1,675

fm RH_RELATION_MAINTAIN

Read only

rainer_hbenthal
Active Contributor
0 Likes
1,675

Of course you cannot update the fields istar and date filed because they are key fields. What sense does it make to disable a relationship temporarily?

Read only

0 Likes
1,675

The client created a custom relationship between 2 positions and they had a requirement to disable this relationship via a FM, but then re-enable it even within the same hour if needed. So I'm trying to come up with some type of solution for this.

Read only

0 Likes
1,675

You could set the field PROZT - Percentage to 0....

Or ....

Delete the relationship and created a new planning status ... TD - Temporarily disable!

This would mean the relationship will not be displayed... and still existing in another planning status

Read only

0 Likes
1,675

Strange requirement. You can copy the realtionship to another plan variant and delete the original. Or you use an own table.

Read only

0 Likes
1,675

To update any key of the table HRP1001, firstly collect the record which you want to update in one internal table and then delete it from HRP1001 using FM RH_DELETE_INFTY_1001_EXT and create the new entry in the table by changing required key fields value of the internal table record using FM RH_INSERT_INFTY_1001_EXT.

Reward if useful.

Pankaj P

SAP ABAP CONSULTANT