cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi All,

Is there any way to update custom infotype in HCM Forms. I am working on Create Position form where i need to update some custom infotypes. The standard service SAP_PD is updating only standard infotypes. Is it possible to update by implementing the basic BADI : HRASR00GEN_SERVICE_BASIC or Do i have to implement HRASR00GEN_SERVICE_ADVANCED.

I have seen a method called FLUSH in HRASR00GEN_SERVICE_ADVANCED but i dont know how to call the method.

Any input on this is highly appreciated.

Thanks

VJ

0 Likes
View Entire Topic
Former Member
0 Likes

Hello Vijay,

Yes, we've been able to update a custom infotype (9004) via HCM forms, via a generic service.

More info below.

Good luck,

Kristene Vaughn

In config for Generic services, each fieldon the infotype is defined in field group UPDINFY, operation UPD_INFY_9004.

In Get Operation:

CLEAR OPERATION.

OPERATION-OPERATION = C_READ_INFY_9004.

OPERATION-FIELDNAMES = FIELDNAMES.

APPEND OPERATION TO OPERATIONS.

  • For Update Infotype 9004

APPEND 'ADD_PENSION' TO FIELDNAMES.

APPEND 'CHANGE_PENSION' TO FIELDNAMES.

APPEND 'MODIFY_PENSION' TO FIELDNAMES.

....

In the do operation,

WHEN c_upd_infy_9004.

LOOP AT special_fields INTO special_field_wa WHERE fieldname = 'PERNR'.

g_pernr = special_field_wa-fieldvalue.

pa9004-pernr = special_field_wa-fieldvalue.

g_9004_key-PERNR = special_field_wa-fieldvalue.

ENDLOOP.

LOOP AT service_datasets INTO service_dataset_wa WHERE fieldname = 'SUBTYPE_9004'.

pa9004-subty = service_dataset_wa-fieldvalue.

ENDLOOP

....

LOOP AT service_datasets INTO service_dataset_wa WHERE fieldname = 'ADD_PENSION'.

IF service_dataset_wa-fieldvalue EQ '1'.

g_oper = 'INS'.

ENDIF.

ENDLOOP.

Former Member
0 Likes

Hi Kristene,

Thanks for your reply!! I would like to know when are you calling this operation : UPD_INFY_9004.

Is it called from Form or is it called when the form is approved? Only the form is approved then only we need to

update the infotype. So how do u know that the form is approved.

Thanks

VJ