Application Development 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: 

Status for IDOC

Former Member
0 Kudos

Hello Everyone,

after inbound processing through test tool (we19) the idoc is in error (rather warning) state. The error being

"No status has been passed to/by ale layer".

What exactly is the problem which gives this type of error.

regards

Rahul.

5 REPLIES 5

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Rahul!

It's just a guess: is this IDOC processed with a custom program (no standard input) and no one programmed the 'success' (or error) in the end?

Regards,

Christian

Former Member
0 Kudos

Hi Rahul,

Can you elaborate on your problem.Like which program did you use for distribution, Custom Idoc/Standard idoc etc...

Thanks & Regards,

Vanita

Former Member
0 Kudos

Hi Kesi,

Incase of the inbound, we must update the idoc status. Please refer a sample code that is updating the idoc status,

  • FM to create the notification items

CALL FUNCTION 'ALM_PM_NOTIFICATION_ADD_DATA'

EXPORTING

number = v_notification

  • IMPORTING

  • NOTIFHEADER =

  • NOTIFHDTEXT =

TABLES

  • NOTFULLTXT =

notitem = i_noitem

  • NOTIFCAUS =

  • NOTIFACTV =

  • NOTIFTASK =

  • NOTIFPARTNR =

  • KEY_RELATIONSHIPS =

return = i_return_add.

READ TABLE i_return_add WITH KEY type = 'E'.

IF sy-subrc EQ 0.

v_noti_error = 'X'.

idoc_status-docnum = v_docnum.

idoc_status-status = '51'.

idoc_status-msgid = 'IM'.

idoc_status-msgno = '147'.

APPEND idoc_status.

ELSE.

LOOP AT i_noitem.

idoc_status-docnum = v_docnum.

idoc_status-status = '53'.

idoc_status-msgid = 'IM'.

idoc_status-msgno = '654'.

idoc_status-msgv1 = i_noitem-item_key.

APPEND idoc_status.

ENDLOOP.

ENDIF.

Hope this will solve your problem.

Thanks

Kathirvel

Former Member
0 Kudos

Hello everyone,

Thak you for your responces. The issue is iam using a Test tranction (we19) with standard FM(Inbound FM) IDOC_INPUT_DESADV01. I am till in testing phase & the error it causes is " No status is passed to/by ale".

Some one help me.

Regards

Rahul

0 Kudos

Hi Rahul!

Then it's something different. Maybe you have an abort. Please look for shortdumps (ST22) or hanging update tasks (SM13), perhaps there an additional hint for the reason of this problem can be found.

Regards,

Christian