‎2006 Apr 25 5:47 AM
Hi,
I am receiving an IDOC from Biztalk and have to process it using the customized funtion module. This function module is the customized copy of IDOC_INPUT_ORDERS.
while processing it now i am getting the Error 51- No status record was passed to ALE by the application.
can anyone help me to fix it ?
Thanks & Regards,
Joseph
‎2006 Apr 25 5:50 AM
Hi joseph,
1. in that FM
in tables parameters,
there is
IDOC_STATUS
2. fill that table with
one record,
which means the STATUS
after processing has been done.
(it can be successsul or error or waring or anything,
depending upon the status of idoc we want to give)
regards,
amit m.
‎2006 Apr 25 5:55 AM
declare an internal table of type EDIDS or BDIDOCSTAT
and pass to the IDOC_STATUS field ,
the fn module returns the status records into the table and u can loop the table and find out the messages if any
‎2006 Apr 25 6:04 AM
Hai Joseph
Firstly attach your idoc to a process code.
In the process cod eyou can tell the system that the specified program should be triggered whenever an idoc of that type comes to the system.
Then you can test in we19 transaction.
Enter your idoc type and enter all the values in the subsequent screen.
YOu can press the inbound processing button after you fill all the test data for the idoc.
Thanks & regards
Sreenivasulu P
‎2006 Apr 25 6:15 AM
Hi Joseph,
It should be noted that every time an Inbound Idoc is posted, we need to populate the status record. A sample is given below ::
IF (no error in processing)
idoc_status-docnum = idoc no.
idoc_status-status = OK STATUS.
idoc_status-msgty = Status msg.
idoc_status-msgid = MSG ID of the msg you want to attach to the status.
idoc_status-msgno = MSG no of the msg.
idoc_status-uname = sy-uname.
APPEND idoc_status.
CLEAR idoc_status.
ELSEIF (error in processing)
idoc_status-status = Error Status.
idoc_status-msgty = Error Message.
idoc_status-msgno = MSG no of the msg.
idoc_status-msgid = MSG ID of the msg you want to attach to the status.
idoc_status-msgv1 = syst-msgv1.
idoc_status-msgv2 = syst-msgv2.
idoc_status-msgv3 = syst-msgv3.
idoc_status-msgv4 = syst-msgv4.
idoc_status-docnum = idoc no.
APPEND idoc_status.
If this is done then your error would be taken care of.
‎2006 Apr 25 6:37 AM
Joseph,
As you are using the standard function module, it should change the IDOC status properly by itself, and you should not do anything there. However, for whatever reasons as it is not doing, just check if there is a OSS note pertaining to the version you are working on?
Which version you are on?
Regards,
Ravi