2014 Nov 29 10:50 AM
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
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
2014 Nov 29 11:10 AM
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
2014 Dec 01 6:04 AM
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?
2014 Dec 01 6:40 AM
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.
2014 Dec 01 9:24 AM
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
2014 Dec 01 9:37 AM
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.
2014 Dec 01 10:30 AM
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...
2014 Dec 01 10:48 AM
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
2014 Dec 02 5:17 AM
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.
2014 Dec 02 6:24 AM
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.
2014 Dec 02 7:17 AM
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?
2014 Dec 02 7:36 AM
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
2014 Dec 02 10:38 AM
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
2014 Dec 02 11:40 AM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |