cancel
Showing results for 
Search instead for 
Did you mean: 

SAP HCM P&F FPM: Issue in updating SUBTY field of Custom Infotype

former_member206394
Active Participant
0 Kudos

Dear Experts,

Greetings!

1.  I have created a (custom) Infotype with 4 Subtypes (all fields are common for all subtypes).  Infotype Characteristics, Technical Attributes are properly maintained to handle Subtypes for this Infotype.  Subtype Obligatory is checked.

2.  Also, I have created an HCM FPM based Form.  Designed Backend Generic Service to update the Infotype.

I could clearly see that the Backend Service is populating the field I9006_SUBTY field in the DO_OPERATIONS method of generic service.  But when the workflow updates the Infotype (Save Form after Approve form task), the SUBTY field is not updated and rest all fields are updated properly.

Please suggest, if i did something wrong.

In my HRASR_DT transaction, in the section to pick the service fields, i dont find it as part of the field.  I doubt if this could be the reason.

To avoid this, i have added the field manually.

With the above code in DO OPERATIONS method, i am able to fill it in the service datasets, but the issue is when it updates the database.

Please suggest.

Regards,

Shankar

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member206394
Active Participant
0 Kudos

Dear Experts,

Now, i have added all subtypes in SAP_PA backend service with operation CREATE.

I have also added all the fields for each subtype.

I have done necessary changes to populate the fields corresponding to the subtype.  (if subtype is 0001, I9006_PERNR_01; elseif subtype is 0002, then I9006_PERNR_02, etc.)

Now, when my form is saved, it is creating 4 entries (one each for each subtype) in the infotype though it should be for one infotype.


for one subtype (appropriate as per my logic) it updates the concerned values and for other infotypes, it is updating initial values.

In the above screenshot, only SUBTY 0003 is relevant record.  But, form is creating entries for other three subtypes also.

For now, i have used the operation CHANGE to avoid this unnecessary record creation in infotype. 

Please suggest the permanent solution.

Regards,

Shankar.

former_member206394
Active Participant
0 Kudos

Dear All,

Using RULEs for Operation, i am able to manage this issue.

Regards,

Shankar

ChrisSolomon
Active Contributor
0 Kudos

Don't complicate it.

If you put in a wildcard "*" (asterisk) in the subtype field, then you can do what you want (use any subtype).

former_member206394
Active Participant
0 Kudos

Dear Christopher,

Greetings!

Thanks for the reply.  But, how to update SUBTY field when '*' is maintained in subtype field for the infotype?

if i set the value (based on my logic) say I9006_SUBTY = 0001 in DO_OPERATIONS method, it is not updating.  How to achieve this?

Thanks in advance for your valuable suggestions.

Regards,

Shankar

ChrisSolomon
Active Contributor
0 Kudos

You can set the subtype field in your generic service.