11-08-2011 5:04 AM
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
11-08-2011 5:18 AM
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
11-08-2011 5:18 AM
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
10-20-2021 2:32 PM
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".