Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>EmployeeFamilySG



Index

EmployeeFamilySG

EmployeeFamilySG


The business object Employee Family/Related Person - SG contains
details about an employee's family members and persons related to an employee.


Information about the family members and related persons is stored in the Family/Related Person infotype (0021).


More than one family member and related person can be assigned to an employee.


Structure


Employee Family/Related Person - SG contains the following
pieces of information about the family member or related person:


  • Type of family member/related person (for example, Spouse, Child, Legal Guardian and Related Persons)

  • Name (first name, last name)

  • Birth data (date of birth, place of birth, nationality)

  • Additional data (educational as well as occupational information)

  • 11-Dec-2005


    Methods

    Available Methods


    • Approve : Unlock family [ BAPI_FAMILY_APPROVE ]
    • Change : Family SG: Change record [ BAPI_FAMILYSG_CHANGE ]
    • Create : Family SG: Create record [ BAPI_FAMILYSG_CREATE ]
    • CreateSuccessor : Family SG: Create subsequent family record [ BAPI_FAMILYSG_CREATESUCCESSOR ]
    • Delete : Delete Family [ BAPI_FAMILY_DELETE ]
    • GetDetail : Family SG: Read Record [ BAPI_FAMILYSG_GETDETAIL ]
    • GetDetailedList : Family SG: Read instances with data [ BAPI_FAMILYSG_GETDETAILEDLIST ]
    • GetList : Read Instances [ BAPI_FAMILY_GETLIST ]
    • Request : Family SG: Create locked record [ BAPI_FAMILYSG_REQUEST ]
    • SimulateCreation : Family SG: Simulate record creation [ BAPI_FAMILYSG_SIMULATECREATION ]

    11-Dec-2005


    Approve

    Approve


    You can use this method to unlock a Family/Related Person record (0021).

    It enables you to implement the "double verification principle" inconjunction with the REQUEST method. According to this principle, atleast two users must take part in writing an active record to the
    database. One user creates a locked record using the REQUEST method.The other user unlocks or 'activates' this record using the APPROVE method.

    Notes

    Messages are transferred to the RETURN parameter. The relevantparameter documentation contains the return values and their meanings.


    The key fields used by the method are described in the parameter documentation.

    You can use this method only if you have called the ENQUEUE method of the business object EMPLOYEE beforehand. For more information on the ENQUEUE method, read the documentation on the function module BAPI_EMPLOYEE_ENQUEUE.


    For more information on the REQUEST method, read the documentation on the function module BAPI_FAMILY_REQUEST.


    11-Dec-2005


    Change

    Change


    You can use this method to change family/related-person records for SG employees (infotypes 0021/0412).

    Notes

    Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.


    The key fields used by the method are described in the parameter documentation.

    You can use this method only if you have called the ENQUEUEmethod of the business object EMPLOYEE beforehand. For more informationon the ENQUEUE method, read the documentation on the function module BAPI_EMPLOYEE_ENQUEUE.


    11-Dec-2005


    Create

    Create


    You can use this method to create family/related-person records for SG employees (infotypes 0021/0412).

    Notes

    Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.


    The key fields used by the method are described in the parameter documentation.

    You can use this method only if you have called the ENQUEUEmethod of the business object EMPLOYEE beforehand. For more informationon the ENQUEUE method, read the documentation on the function module BAPI_EMPLOYEE_ENQUEUE.


    11-Dec-2005


    CreateSuccessor

    CreateSuccessor


    You can use this method to create family/related-person records for SG employees (infotypes 0021/0412).

    Notes

    Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.


    The key fields used by the method are described in the parameter documentation.

    You can use this method only if you have called the ENQUEUEmethod of the business object EMPLOYEE beforehand. For more informationon the ENQUEUE method, read the documentation on the function module BAPI_EMPLOYEE_ENQUEUE.


    11-Dec-2005


    Delete

    Delete


    You can use this method to delete a Family/Related Person record (0021).

    Notes

    Messages are transferred to the RETURN parameter. The relevantparameter documentation contains the return values and their meanings.

    The key fields used by the method are described in the parameter documentation.


    You can use this method only if you have called the ENQUEUE method of the business object EMPLOYEE beforehand. For more information on the ENQUEUE method, read the documentation on the function module BAPI_EMPLOYEE_ENQUEUE.


    11-Dec-2005


    GetDetail

    GetDetail


    You can use this method to read family/related-person records for SG employees (infotypes 0021/0412).

    Notes

    Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.


    The key fields used by the method are described in the parameter documentation.


    11-Dec-2005


    GetDetailedList

    GetDetailedList


    You can use this method to read family/related-person records for SG employees (infotypes 0021/0412).

    Notes

    Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.


    The key fields used by the method are described in the parameter documentation.


    11-Dec-2005


    GetList

    GetList


    You can use this method to read the keys (instances) of Family/ Related Person records (0021) which are within the specified time interval.

    Notes

    Messages are transferred to the RETURN parameter. The relevantparameter documentation contains the return values and their meanings.


    The key fields used by the method are described in the parameter documentation.


    11-Dec-2005


    Request

    Request


    You can use this method to create locked family/related-person records for SG employees (infotypes 0021/0412).

    It enables you to implement the "double verification principle" inconjunction with the APPROVE method. According to this principle, atleast two users must take part in writing an active record to the database. One user creates a locked record using the
    REQUEST
    method. The other user unlocks or 'activates' this record using the APPROVE method.

    Notes

    Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.


    The key fields used by the method are described in the parameter documentation.

    You can use this method only if you have called the ENQUEUEmethod of the business object EMPLOYEE beforehand. For more informationon the ENQUEUE method, read the documentation on the function module BAPI_EMPLOYEE_ENQUEUE.


    For more information on the APPROVE method, read the documentation on the function module BAPI_FAMILY_APPROVE.


    11-Dec-2005


    SimulateCreation

    SimulateCreation


    You can use this method to simulate the creation of family/related-person records for SG employees (infotypes 0021/0412).

    During the simulation all necessary consistency checks are performed, but the record is not written to the database.

    Notes


    Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.

    The key fields used by the method are described in the parameter documentation.


    11-Dec-2005