Skip to Content
0
Former Member
Jul 22, 2008 at 09:00 AM

Custom error in outbound idoc FIDCC1

553 Views

Hi all,

I am generating outbounds idocs for FI documents and i need to put some of them in error. I need the FI Document created and the idoc in error so that i can reprocess it later. To do that i am using the User Exit EXIT_SAPLF050_007

Enhancement - F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send

""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(MESSAGE_TYPE) LIKE EDMSG-MSGTYP

*" TABLES

*" IDOC_DATA STRUCTURE EDIDD

*" CHANGING

*" VALUE(IDOC_CONTROL) LIKE EDIDC STRUCTURE EDIDC

*" VALUE(DISTRIBUTION) LIKE BOOLE STRUCTURE BOOLE

*" OPTIONAL

*"----


IDOC_CONTROL-status = '26'.

The problem is that in the UserExit i set the Idoc Status to some value diferent than 3 (Data passed to port OK) but finally the idoc is created with the status 3.

Does anybody know how to change the idoc status in the creation from 3 to for example 26 or 27? ( an error idoc status ).

thanks!!