04-07-2011 11:47 AM
Hi Gurus,
I have generated an IDoc, where i'm facing some problem with the Status sign. It shows Warning. But i need it to show as Success one. Please provide the solution.
All the data are available in the Idoc. But i face only this status message.
Thanks in Advance
John
04-07-2011 11:52 AM
Hi
Please use the following code after the successful execution of the function module 'ZHUT_INTERFACE_CREATE_IDOC.
CALL FUNCTION 'ZHUT_INTERFACE_CREATE_IDOC' " To Create IDoc.
EXPORTING
i_mestyp = c_mestyp " Message Type.
it_edidd = pt_edidd " IDoc Internal Table.
i_mesfct = c_mesfct " Message Function.
IMPORTING
ev_docnum = pv_docnum " IDoc Number.
EXCEPTIONS
error = 1
OTHERS = 2.
CHECK sy-subrc EQ 0.
CALL FUNCTION 'DB_COMMIT'. " Commit.
CALL FUNCTION 'DEQUEUE_ALL'. " Dequeue All.
COMMIT WORK.
it will work. I did it.
Moderator message: points gaming using clone ID, points removed, do not repeat, or your user ID will be deleted!.
Edited by: Thomas Zloch on Apr 7, 2011 3:20 PM
04-07-2011 11:57 AM
I solved it with the same additional statement.
Thanks for the reply
04-07-2011 11:56 AM
Hi,
What is the status number & the message it is giving.
Thanks Naveen