Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3184

Outbound Idoc Error in ALE Service

$
0
0

Hi All,

 

I have seen many post regrading Error in ALE service (Entry in outbound table not found), but I did n't succeeded.

 

My scenario : I am sending  vendor confirmation info details to SAP PI system , using standard Message type ( ORDCHG) , but creating ZReport program using to trigger this IDOC .

 

I MY CODE is :

 

DATA: gt_edidc   TYPE STANDARD TABLE OF edidc, " Idoc control records
       it_edidc   TYPE STANDARD TABLE OF edidc, " Idoc control records
       it_edidd   TYPE STANDARD TABLE OF edidd, " Idoc data records
       wa_edidc   TYPE edidc,
       wa_edidd   TYPE edidd.


* Idoc Structure populate
data : it_ekpo type STANDARD TABLE OF ekpo,
        lt_ekes type STANDARD TABLE OF ekes,
        ls_ekpo type ekpo,
        ls_ekes type ekes.


* Data selection
  select *
    FROM ekpo
    WHERE ebeln = 'xxxxx'.
  ENDSELECT.

    if sy-subrc eq 0 .
    ENDIF.


* Idoc generation and send

     DATA : it_edp13   TYPE STANDARD TABLE OF edp13,
            wa_edp13   TYPE edp13.

* create idoc
     IF ls_ekpo IS NOT INITIAL.
   wa_edidd-segnam = 'E1EDK01'.
          wa_edidd-sdata = ls_ekpo-ebeln.(* EXAMPLE)
         APPEND wa_edidd TO it_edidd.
*      ENDLOOP.
     ENDIF


Set control data for the idoc


     wa_edidc-idoctp = 'ORDERS05'.
     wa_edidc-mestyp = 'ORDCHG'.
     wa_edidc-CIMTYP = 'YORDCHG05'.

     IF it_edidd IS NOT INITIAL.


*fill control data


       SELECT * FROM edp13 INTO TABLE it_edp13
         WHERE mestyp EQ wa_edidc-mestyp AND
               ( outmod EQ '2' OR
               outmod EQ '4' ).


       LOOP AT it_edp13 INTO wa_edp13.
         wa_edidc-rcvprn = wa_edp13-rcvprn.
         wa_edidc-rcvprt = wa_edp13-rcvprt.
       

*distribute idoc
         CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
           EXPORTING
             master_idoc_control            = wa_edidc
*           OBJ_TYPE                       = ''
*           CHNUM                          = ''
           TABLES
             communication_idoc_control     = it_edidc
             master_idoc_data               = it_edidd
           EXCEPTIONS
             error_in_idoc_control          = 1
             error_writing_idoc_status      = 2
             error_in_idoc_data             = 3
             sending_logical_system_unknown = 4
             OTHERS                         = 5.
         IF sy-subrc <> 0.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
         ELSE.
           COMMIT WORK.
         ENDIF.

         CALL FUNCTION 'DEQUEUE_ALL'
           EXCEPTIONS
             OTHERS = 0.
       ENDLOOP.
     ENDIF.
* Collect the sent idocs control records
     LOOP AT it_edidc INTO wa_edidc.
       APPEND wa_edidc TO gt_edidc.
     ENDLOOP.
     CLEAR: wa_edidc, it_edidd[], it_edidc[].


I got Below error , screen shot .



 

 

Here I have one doubt , Because of standard message(ORDCHG) using I got this error OR is there any another reason ? ????.

 

I also refereed Re: Parner Profile not available , not helped.

 

Thanks in advance,

Jay


Viewing all articles
Browse latest Browse all 3184

Trending Articles



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