Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

User exit not called in IDOC_INPUT_DEBITOR FM for Debmas

former_member474221
Participant
0 Kudos

hi

I have written a userexit EXIT_SAPLVV02_001 and created project etc for inbound DEBMAS Idoc....however it does not stop at breakpoint when I debug with we19

what must be the problem

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Did you activate the project in CMOD?

Also user EXIT_SAPLVV02_001 is only called if you added custom / z segment to your DEBMAS IDoc by creating extension.

As you can see below, from the logic where this user exit is called.

IDOC_INPUT_DEBITOR -> ERP_IDOC_INPUT_DEBITOR -> PERFORM FILL_APPL_STRUCTURES -> CALL CUSTOMER-FUNCTION '001'

* customer exit
  IF other_segment = c_x.

    CALL CUSTOMER-FUNCTION '001'
         EXPORTING
              idoc_control     = f_idoc_control
              input_method     = input_method
         IMPORTING
              workflow_result  = v_workflow_result
         TABLES
              idoc_data        = t_idoc_data
              idoc_status      = t_idoc_status
              return_variables = t_return_variables.

  ENDIF.

You can search the variable other_segment and find out for yourself that it is set to 'X' only when there are custom segments

2 REPLIES 2

Former Member
0 Kudos

Did you activate the project in CMOD?

Also user EXIT_SAPLVV02_001 is only called if you added custom / z segment to your DEBMAS IDoc by creating extension.

As you can see below, from the logic where this user exit is called.

IDOC_INPUT_DEBITOR -> ERP_IDOC_INPUT_DEBITOR -> PERFORM FILL_APPL_STRUCTURES -> CALL CUSTOMER-FUNCTION '001'

* customer exit
  IF other_segment = c_x.

    CALL CUSTOMER-FUNCTION '001'
         EXPORTING
              idoc_control     = f_idoc_control
              input_method     = input_method
         IMPORTING
              workflow_result  = v_workflow_result
         TABLES
              idoc_data        = t_idoc_data
              idoc_status      = t_idoc_status
              return_variables = t_return_variables.

  ENDIF.

You can search the variable other_segment and find out for yourself that it is set to 'X' only when there are custom segments

fitz97
Explorer
0 Kudos

At 30.01.2017 SAP has changed Function Module ERP_IDOC_INPUT_DEBITOR.

There is a new form FILL_APPL_STRUCTURES2 with no Customer-Function.

It seems that you could use BAdI "CUSTOMER_ADD_DATA_BI".