cancel
Showing results for 
Search instead for 
Did you mean: 

DEBMAS IDoc filtering with customizing table

arnita_z
Discoverer
0 Kudos

I need to filter DEBMAS IDoc creation based on Sales Organization with Values that are coming from customizing table. I have created table itself and a simple method to compare IDocs Sales Organization with the ones in customizing table.

Table looks like this:

And here is the method:

  METHOD bp_salesorg_check_for_send.
    DATA: ls_fsm_salesorg TYPE zfsm_salesorg.

* Check customizing
    SELECT SINGLE * FROM zfsm_salesorg INTO ls_fsm_salesorg
      WHERE vkorg = iv_vkorg.

    IF sy-subrc = 0.
      rv_result = 'X'.
    ENDIF.

  ENDMETHOD.<br>

I plan to call it like this :

CHECK zcl_fsm_util=>bp_salesorg_check_for_send( ls_e1knvvm-vkorg ).

Question is, where should I add check with this method? Do I need to create custom program or I can somehow enhance the existing one?

Accepted Solutions (1)

Accepted Solutions (1)

DominikTylczyn
Active Contributor

Hello arnita_z

You can implement such a filtering with the IDOC_CREATION_CHECK BAdI enhancement - see the note 822929 - ALE: Option to not send a communication IDoc

Best regards

Dominik Tylczynski

Answers (0)