cancel
Showing results for 
Search instead for 
Did you mean: 

Updating a subtype from another subype

Former Member
0 Kudos

Hi all,

I need update the subtype of an infotype while transaction for other subtype is being run. We can't use bdc for this as the pernr would be locked for the previous subtype. Right now i am updating those fields using the update statement.

thanks,

madhu

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hey guys

Can't we do the same using a dynamic action? Looks like the easiest way to me. Comments welcome.

Regards

Lincoln

ChrisPaine
Active Contributor
0 Kudos

I reckon you could possibly use a dynamic action.

Guess, it would depend on how complex your selection logic would be... from the description above I'd not even be sure that we're talking about PA30/PA40!

However, I'd say, dynamic actions, however simple/useful quickly become a nightmare to maintain, and given the option of using something else, I'd use something else. That just my opinion, others are more than entitled to their own.

That said, it may be this is a just a case of if user creates subtype 02, change any subtype 03 to a subtype 04, all fields transfered, nothing else changed, no other logic required. In which case, go for a dynamic action.

(Table T588Z for dynamic action btw.)

ChrisPaine
Active Contributor
0 Kudos

Hi Madhu,

I'd suggest you use the infotype handler classes - CL_HRPA_INFTY_NNNN

instantiate an instance of this class and use its methods.

Otherwise there are plenty of function modules out there as well.

Hope this helps,

Chris

Former Member
0 Kudos

Use Function Module.......