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: 

Error Sign in we02 , After the Idoc Creation

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

I solved it with the same additional statement.

Thanks for the reply

Former Member
0 Kudos

Hi,

What is the status number & the message it is giving.

Thanks Naveen