Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all articles
Browse latest Browse all 8768

IDOC EXIT_SAPLBD11_001breakpoint not reached for MATMAS

$
0
0

Hi Guru,

 

I activated the user exit EXIT_SAPLBD11_001 for changing some fields in MATMAS  and DOCMAS Idoc in oubound processing. The problem is than the user exit work fine with DOCMAS only idoc and not with MATMAS.

I tried to set a breakpoint and I discovery  breakpoint is reached only with DOCMAS and not for MATMAS.

 

*&---------------------------------------------------------------------*

*&  Include           ZXSBDU01

*&---------------------------------------------------------------------*

*&

*"       IMPORTING

*"             VALUE(IDOC_CONTROL_IN) LIKE  EDIDC STRUCTURE  EDIDC

*"             VALUE(TARGET_IDOC_TYPE) LIKE  EDIDC-IDOCTP

*"             VALUE(TARGET_CIM_TYPE) LIKE  EDIDC-CIMTYP

*"       EXPORTING

*"             VALUE(IDOC_CONTROL_OUT) LIKE  EDIDC STRUCTURE  EDIDC

*"       TABLES

*"              IDOC_DATA STRUCTURE  EDIDD

*"              IDOC_STATUS STRUCTURE  BDIDOCSTAT

*"----------------------------------------------------------------------

 

 

BREAK-POINT.

 

  <----------------- FOR DOCMAS the break point is reached >

 

 

  <----------------- FOR MATMAS the break point is NOT reached >

 

IF    WA_EDIDC-DIRECT ='1' AND

       WA_EDIDC-RCVPOR ='A000000001' AND

       WA_EDIDC-RCVPRT ='LS' AND

       WA_EDIDC-RCVPRN ='KMR110' AND

       WA_EDIDC-SNDPRT ='LS' AND

       WA_EDIDC-SNDPRN ='KMR200' AND

       WA_EDIDC-MESTYP ='MATMAS' AND

       WA_EDIDC-IDOCTP = 'MATMAS05'.

 

do something

 

ENDIF

 

 

IF    WA_EDIDC-DIRECT ='1' AND

       WA_EDIDC-RCVPOR ='FMT200' AND

       WA_EDIDC-RCVPRT ='LS' AND

       WA_EDIDC-RCVPRN ='KMR200' AND

       WA_EDIDC-SNDPRT ='LS' AND

       WA_EDIDC-SNDPRN ='KMR110' AND

       WA_EDIDC-MESTYP ='DOCMAS' AND

       WA_EDIDC-IDOCTP = 'DOCMAS04'.

 

do something


ENDIF.


THANK YOU IN ADVANCE FOR ANY ANSWEARS.

Best Regards,

Antonio


Viewing all articles
Browse latest Browse all 8768

Trending Articles