2007 Jul 05 11:59 AM
hi,
How idoc status records are filled when it comes to inbound side ?
Ganesh
2007 Jul 05 1:20 PM
HI,
These status records are filled in the inbound funciton module programatically.
But sap does not allow you to chagne the standard status like 51,53 to other purpose.In every fucnction module there is a export parameter WORKFLOW_RESULT.By using this 51 or 53 will be generated.
But we can add second line of message by using user-exit.
Thanks,
shyla
2007 Jul 05 12:05 PM
Hi ,
you can use following code fragment.
idoc_status-docnum = v_docnum.
idoc_status-status = '59'.
idoc_status-msgid = <msg_class>.
idoc_status-msgno = '16'.
idoc_status-msgty = 'E'.
APPEND idoc_status.
Regards,
Sumit
2007 Jul 05 12:18 PM
thanks sumit ,
but i dont know how am getting "company code " field, as a result i am getting status error 29.
Ganesh
2007 Jul 05 12:29 PM
Hi,
Please try to test using this FM to check whether your ALE distribution model has been setup correctly or not for the message type.
ALE_MODEL_INFO_GET
ALE_MODEL_AUTH_INFO_GET
If not, yo need to maintain distribution model (t/code BD64).
<b>Reward points</b>
Regards
2007 Jul 05 1:20 PM
HI,
These status records are filled in the inbound funciton module programatically.
But sap does not allow you to chagne the standard status like 51,53 to other purpose.In every fucnction module there is a export parameter WORKFLOW_RESULT.By using this 51 or 53 will be generated.
But we can add second line of message by using user-exit.
Thanks,
shyla