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

Search idocs using status message EDIDS

Former Member
0 Likes
1,108

Hi,

Is it possible to find out the idocs using status message?

For example, I need the idocs example in test system which has error message "Vendor & is not defined in company code &"

How to search idocs using error message?

Thanks for your help.

Regards,

Yogita

Hi,

Is it possible to find out the idocs using status message?

For example, I need the idocs example in test system which has error message "Vendor & is not defined in company code &"

How to search idocs using error message?

Thanks for your help.

Regards,

Yogita

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
801

Hello Yogita

You have to select within table EDIDS directly:


Example:
STATXT = Item &: Only &2 &3 from material &4 are available
STAPA1 = syst-MSGV1
STAPA2 = syst-MSGV2
STAPA3 = syst-MSGV3
STAPA4 = syst-MSGV4
STATYP = syst-msgty (E, W, I, S, A)
STAMID = syst-msgid
STAMNO = syst-msgno

Regards

Uwe

Read only

Former Member
0 Likes
801

Try this

select <required fields> from edids 
where statxt = "Vendor & is not defined in company code &"
and <additional conditions>

Regards

Vinod

Read only

Former Member
0 Likes
801

Hi Yogita,

The fields STATP, STAMID and STAMNO contains the message type, message id and message number of the error message in STATXT. Go to SE16 and give the error message in STATXT and get the values in fields STATP, STAMID and STAMNO.

Then, from your program SELECT DOCNUM ...FROM EDIDS WHERE STATP EQ... AND STAMID EQ... AND STAMNO EQ...and get the IDoc numbers.

Regards,

Santosh Kacham