Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

Re: IDoc receiver system

$
0
0

Hello Roberts,

 

The esiest way would be to submit receiver partner number (that is derived from the value of the receiver system which has been chosen on the selection screen) when calling the function module MASTER_IDOC_DISTRIBUTE. The logic of MASTER_IDOC_DISTRIBUTE checks if receiver partner is specified (namely, if fields RCVPRT or RCVPRN if the import structure MASTER_IDOC_CONTROL are filled):

  • If receiver partner is specified, the communication IDoc will be generated for the specified partner;
  • If receiver partner is not specified, communication IDoc(s) will be generated for all receiver partners based on configuration of the distribution model.

 

A more advanced technique would be to implement BAdI IDOC_CREATION_CHECK (precisely, method IDOC_DATA_CHECK of it) that is called from MASTER_IDOC_DISTRIBUTE, and decide if the communication IDoc should be generated for each found receiver partner from there by setting corresponding value of the export parameter CREATE_IDOC: by default, this flag is assigned the value 'true' (which means the communication IDoc will be generated), but based on needed verifications and conditions, this flag can be assigned the value 'false' (which means the corresponding communication IDoc will not be generated).

 

Regards,

Vadim


Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>