on 05-13-2022 8:21 AM
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?
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
Dominik Tylczynski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.