Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in IDOC processing

Former Member
0 Likes
452

Hi, all

Sometimes when i try to create an IDOC from a mesage of an inbound delivery, the system trigger the error "El destinatario LS DIARIOS LS no es válido en este IDOC" (B1 120), I've checked the configuration and I can see no problem, if i try to repeat the message the idoc then ends succesfully... Could someone tell me where can be the problem... ???

Anyone knows about a buffer problem in idoc's generation???

Thanks

1 REPLY 1
Read only

former_member194669
Active Contributor
0 Likes
358

Hi,

If you check the message B1 and message 120 has been used in 3 function modules

here all are pointing to RCVPRT and partner type LS


1. COMMUNICATION_IDOC_CREATE
  
  if idoc_created is initial and
   idoc_control-rcvprt = partner_type_ls_c.
    message a120(b1) with idoc_control-rcvprt
                    idoc_control-rcvprn
                    idoc_control-rcvpfc
                    idoc_control-mestyp
       raising receiver_not_authorized.
  endif.

2. MASTER_IDOC_DISTRIBUTE
    elseif communication_idoc_control-rcvprt = partner_type_ls_c.
      message a120(b1) with communication_idoc_control-rcvprt
                      communication_idoc_control-rcvprn
                      communication_idoc_control-rcvpfc
                      communication_idoc_control-mestyp
        raising error_in_idoc_control.
    endif.

3. ALE_IDOC_PROCESS_ERROR_OUT
    elseif resulting_idoc_control-rcvprt = partner_type_ls_c.
      message a120(b1) with resulting_idoc_control-rcvprt
                      resulting_idoc_control-rcvprn
                      resulting_idoc_control-rcvpfc
                      resulting_idoc_control-mestyp.
    endif.

aRs