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

Error Message in Purchase Order Message Log

Former Member
0 Likes
6,191


Hi All,

I am creating one PO ,

When i shaw its message it will display me

With Status Green But when i Click on Processing Log it will shaw me

Red mark in Error During Send Process ,now my requirment is it will show a red mark at time of Message display

means in Second Image the status should be with Red Mark.

How can i salve this issue my Print Program is Z_MM_Pur_ord

Thanks,

Mahipalsinh

13 REPLIES 13
Read only

Former Member
0 Likes
4,483

Hi,

If any error, you need to call function module 'NAST_PROTOCOL_UPDATE' in the driver program providing the message type i.e 'E. in your case along with other variables like message number, id, msgv1 ( text part1 ), msgv2 (text part2), msgv3 ( text part3) , msgv4 ( text part4).

Regards,

Ashish

Read only

0 Likes
4,483

Can you give me some more idea about it ..because i have changed it at time of Debugging but it is remaining as it is?

Read only

0 Likes
4,483

The FM which I told updates the output record for the document, thus when given error type it will update it and the indicator will show red.

Read only

Former Member
0 Likes
4,483

How can i get this Nats Protocol for Sending Email?

Because my requirment is i have to find a way to catch this error somehow in

my print program and set status of the output message is

RED..

Thanks

Read only

0 Likes
4,483

Hi,

After you call the smartform using CALL FUNCTION, check the sy-subrc

If not = 0

CALL FUNCTION 'NAST_PROTOCOL_UPDATE'

with exporting parameters what you need.

Read only

0 Likes
4,483

it will give me only Errors which is related to Smartforms Like in our Screen shot you can see with yello Mark but not Send Error with RED Status...

Read only

0 Likes
4,483

Hi,

You will have to update the NAST structure in the driver program.

NAST-VSTAT = '2'.

It will set the status of the output as Incorrectly Processed and hence it will appear RED.

Regards,

Ashish

Read only

0 Likes
4,483

How can i get this error (NAST Protocol messages) in My print Program and then update it because i have set nast-vstat = '2' but it will not change the status.

Read only

0 Likes
4,483

After setting NAST-VSTAT = '2'.

Call FM RV_MESSAGE_UPDATE_SINGLE

exporting msg_nast = nast.

This will update the nast entry in the table and will reflect in the PO output screen.

Read only

0 Likes
4,483

It is working but my requirment is get the message table for output message and if one of them is with red mark then i have set this status in my case Error dusring send process is with red mark ,

so how can i get this message text and check it?

Read only

0 Likes
4,483

Hi,

Use FM SSF_READ_ERRORS to fetch the message log.

The FM will return a table for the messages generated in log.

Check the table for message type 'E'.

If found then change the icon to red by changing VSTAT = '2'.

Regards,

Ashish

Read only

0 Likes
4,483

That i have already used but it will not give me error for Send Process you can see in my coading

and for Getting messages  i have used

But it will not give me error for sending

Read only

0 Likes
4,483

Smartform has an exporting structure ( importing from driver program ) JOB_OUTPUT_INFO which has a field OUTPUTJOBDONE. You can check this field to know whether the output was generated successfully or not.