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

Re: Outbound IDOC to same system and same client

$
0
0

Hi Raj,

 

Thanks for your reply..:)

Actually I have tried that too  by passing the same sender and reciever parameters.

 

But the fm gives error as  Receiver of IDoc is its own logical system

 

part of the code :

 

    DATA : lv_rcvpor(10)      TYPE c VALUE 'ERC200',"'A000000011',
         lv_rcvprt(2)       TYPE c VALUE 'LS',
         lv_mestyp(19)      TYPE c VALUE 'ZPOS_ADJUST_MSG_TYP',
         lv_idoctp(16)      TYPE c VALUE 'ZPOS_SC_ADJUST_1',
         lv_rcvprn(10)      TYPE c VALUE 'ERCCLNT200',
         lv_segnam_head(14) TYPE c VALUE 'ZPOS_SC_QMFE_1',
         lv_segnam_item(15) TYPE c VALUE 'ZPOS_SC_QMSM_01'.

 

 

    lw_idoc_cntrl-rcvpor = lv_rcvpor.

  lw_idoc_cntrl-rcvprt = lv_rcvprt.

   lw_idoc_cntrl-mestyp = lv_mestyp.

   lw_idoc_cntrl-idoctp = lv_idoctp.

   lw_idoc_cntrl-rcvprn = lv_rcvprn.

  lw_idoc_cntrl-SNDPOR = lv_rcvpor.
lw_idoc_cntrl-SNDPRT   = lv_rcvprt.
lw_idoc_cntrl-SNDPRN  lv_rcvprn.

 

 

    CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
    EXPORTING
      master_idoc_control            = lw_idoc_cntrl
    TABLES
      communication_idoc_control     = lt_master_cntrl_data
      master_idoc_data               = lt_idoc_edidd
    EXCEPTIONS
      error_in_idoc_control          = 1
      error_writing_idoc_status      = 2
      error_in_idoc_data             = 3
      sending_logical_system_unknown = 4
      OTHERS                         = 5.

 

Regards,

DUttad


Viewing all articles
Browse latest Browse all 3125

Trending Articles



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