Ansicht
Dokumentation

/PM0/ABT_SVC_IO_FIND - Find Insurable Objects

/PM0/ABT_SVC_IO_FIND - Find Insurable Objects

General Data in Customer Master   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this function module to find insurable objects. You can enter the object type, object category, effective date, object number, object name, or external object number to restrict the search result. If no entry is made, the system displays a maximum of 100 records.

You can restrict the search result by specifying the maximum number of records to be displayed (IV_MAXRECORDS) and the number of rows to be skipped (IV_SKIP_ROWS). For example, if you restrict the maximum number of records to 50 and the number of rows to be skipped to 30, then the system returns 50 records, starting with row 31. The default value for the maximum number of records is 100. If you set the maximum number of records to 0, then the restriction is removed.

The system returns the following data:

  • List of insurable objects (parameter ET_RESULT)
  • List of error and status messages (parameter ET_MESSAGE)
The system executes the same checks as for the execution of the business transaction in dialog mode.

Example

The following sample coding demonstrates the search for an insurable object of the "Home Contents" type (object type 1 of object category 10004) with effective date January 1, 2013.

DATA:

  ls_insobj_input TYPE /pm0/abt_svc_io_find_in,

  lt_result       TYPE /pm0/abt_svc_io_find_out_t,

  lt_messages    TYPE bapiret2_t,

  lv_max          TYPE i.

CLEAR ls_insobj_input.

ls_insobj_input-effectivity_dt      = '20130101'.

ls_insobj_input-objcat_cd           = 00001.

ls_insobj_input-objtyp_cd           = 10004.

lv_max = 100.

CALL FUNCTION '/PM0/ABT_SVC_IO_FIND'

  EXPORTING

    is_insobj_input = ls_insobj_input

    iv_maxrecords   = lv_max

  IMPORTING

    et_result       = lt_result

    et_messages     = lt_messages.

Notes

  • The function module saves the data to the database (COMMIT).
  • The function module can only be called synchronously. It does not return any error messages.

  • If a runtime error occurs, you can use the Retrieve service to check whether the system has updated the changes. You can call the application log with transaction SLG1.

Further information

Enhancements

To process further data from the calling system, use the Business Add-In (BAdI) BAdI: Find Insurable Object (Extension In/Out) (/PM0/ABT_SVC_IO_FIND_BADI). You can use this BAdI to execute your own mapping and to fill the EXTENSIONOUT parameter.

Insurable Object -> BAdI: Find Insurable Object (Extension In/Out).





Parameters

ET_EXTENSIONOUT
ET_MESSAGES
ET_RESULT
IS_INSOBJ_INPUT
IT_EXTENSIONIN
IV_MAXRECORDS
IV_SKIP_ROWS

Exceptions

Function Group

/SAPLABT_SVC_INSURABLE_OBJ

rdisp/max_wprun_time - Maximum work process run time   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 4032 Date: 20240425 Time: 154456     sap01-206 ( 45 ms )