07-10-2012 2:56 PM
Hi Experts,
i need your suggestion to manage hr master data infotypes in order to create and update them no passing through screens (it means with no batch-input).
I need to create a FM that update infotypes, go through their validations but doesn't bring back screen configuration error ('Fill in all required fields').
All screens can have different attributes for each field (mandatory, hidden, etc.) and also can be retrieved by customizing V_T588M.
Do you know any BAPI or FM which makes all checks and then saves data with no batch input process?
Thanks
Nicola
07-10-2012 9:44 PM
Use function HR_INFOTYPE_OPERATION or HR_MAINTAIN_MASTERDATA. This does all the validations without screens.
- Puneet
07-10-2012 9:44 PM
Use function HR_INFOTYPE_OPERATION or HR_MAINTAIN_MASTERDATA. This does all the validations without screens.
- Puneet
07-10-2012 9:59 PM
Hi Puneet,
you are right they check validations, but both of them are using Call Dialog, that's batch input. Batch input, even though in background, checks screen fields as required, not input, etc.
Cheers
07-11-2012 12:23 AM
Hi Nicola,
Why do you want to bypass the screen field validations? This may lead to data inconsistencies.
Try the methods of class CL_HRPA_INFOTYPE_NNNN to see if they help.
-Puneet
07-11-2012 6:14 PM
I am not using SAP frontend and I have created something like V_T588M for our frontend.
I am gonna check this class.
I'll let you know
Thanks
07-13-2012 8:30 PM
I have to create a custom class inheriting CL_HRPA_INFOTYPE_NNNN ('cause it's an abstract class), anyway a correct solution.
Thanks