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

IDOC Inbound Processing

Former Member
0 Likes
751

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

5 REPLIES 5
Read only

Former Member
0 Likes
696

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.

Read only

hymavathi_oruganti
Active Contributor
0 Likes
696

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

Read only

Former Member
0 Likes
696

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

Read only

Former Member
0 Likes
696

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.

Read only

Former Member
0 Likes
696

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