Skip to Content

Type Conflict when calling FM BAPI_BUS2177_STAFFING_ADD

When I try to execute the FM in which I have called "BAPI_BUS2177_STAFFING_ADD"

It is throwing up a dump with the message - Type Conflict when calling Function Module

The function module interface allows you to specify only

fields of a particular type under "IS_STAFFINGLINK".

The field "LT_IS_STAFFINGLINK" specified here is a different

field type.

But i declared LT_IS_STAFFINGLINK as IS_STAFFINGLINK only as in importing parameter.

data : lt_is_staffinglink type  table of BAPI_TS_PRP_STAFFING ,
            ls_is_staffinglink type BAPI_TS_PRP_STAFFING .

ls_is_staffinglink-partner_guid = lv_partner_guid.
      ls_is_staffinglink-work_effort  = '1'.
      ls_is_staffinglink-work_unit    = 'H'.
*      ls_is_staffinglink-begin_date   = sy-datum.
      ls_is_staffinglink-begin_date   = '21092010' .
      ls_is_staffinglink-end_date     = '31122020'.
      ls_is_staffinglink-booking_type = '2'.
      ls_is_staffinglink-staffing_action = ' '.
      append ls_is_staffinglink to lt_is_staffinglink .

        lS_is_staffinglink_X-PARTNER_GUID = 'X'.
        lS_is_staffinglink_X-WORK_EFFORT = 'X'.
        lS_is_staffinglink_X-WORK_UNIT = 'X'.
*        lS_is_staffinglink_X-WORK_ISOCODE_UNIT = 'X'.
        lS_is_staffinglink_X-BEGIN_DATE = 'X'.
        lS_is_staffinglink_X-END_DATE = 'X'.
        lS_is_staffinglink_X-BOOKING_TYPE = 'X'.
*        lS_is_staffinglink_X-COMMENTARY = 'X'.
        lS_is_staffinglink_X-STAFFING_ACTION = 'X'.
        APPEND lS_is_staffinglink_X TO lt_is_staffinglink_X .

 CALL FUNCTION 'BAPI_BUS2177_STAFFING_ADD'
        EXPORTING
          PROJECTROLE_GUID           = lv_cgpl_role_guid
          IS_STAFFINGLINK            = lt_is_staffinglink
          IS_STAFFINGLINK_X          = lt_is_staffinglink_X
*         IV_IGNORE_WFMCORE          = CL_DPR_CO=>SC_FALSE
     IMPORTING
         EV_STAFFINGLINK_GUID       = lv_STAFFINGLINK_GUID
     TABLES
*         IT_COMMENT                 =
         RETURN                     = lt_staffing_return .

Please tell me what can be the reason for this.

Thanks

Chetan

Please use code tags

Edited by: Rob Burbank on Sep 21, 2010 1:36 PM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 21, 2010 at 05:46 PM

    You delcared it as a table. Try using the work area instead.

    Rob

    Add comment
    10|10000 characters needed characters exceeded