Skip to Content
0
May 13 at 07:21 AM

DEBMAS IDoc filtering with customizing table

58 Views

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:

image.png

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?

Attachments

image.png (21.3 kB)
image.png (22.2 kB)