01-02-2014 2:53 PM
Hi,
i have a custom idoc for FI posting. Im executing inbound program and getting few errors with status code 51. i can see data and status records in we05 but no segment is in red color. I have 100 segments now how could i check which segment data has error. For other custom Idoc i can see segments in red color if any error. Could anybody please suggest what im missing here.
Thank you
01-03-2014 1:29 PM
Hi,
Since your saying this is custom idoc you need to check the assigned process code (Function Module) and check whether they have handled the exceptions.
Regards,
Srikanth Reddy.
01-03-2014 9:51 AM
01-03-2014 9:53 AM
01-03-2014 10:01 AM
01-03-2014 11:51 AM
Hello Kiran,
Here is the screen shot of WE02. marked Segment is showing in red in one of the message type. but not in message type that im dealing with. my question is : is there any setting in message type or segment type level that would change the segment color depend on whether there is any error or not?
01-03-2014 1:05 PM
Hi,
We never check the errors based on the segment level! You have to check the application log! for example double click on the 51, you will see the error log! based on this you can trace the error!
01-03-2014 1:23 PM
Hello Kiran,
If we have few 51 status it is ok but what if i have 100s of errors with status 51. i want to check where exactly error is. i can do some debugging or some hit n trial to get correct place but what if user wants to know exact segment. moreover as i showed in screen shot those two segments are in red color so it can be easily identified but in some of the message types im not getting those red colors. Any idea behind those red colors segment? please let me know.
01-03-2014 1:29 PM
Hi,
Since your saying this is custom idoc you need to check the assigned process code (Function Module) and check whether they have handled the exceptions.
Regards,
Srikanth Reddy.
01-03-2014 1:50 PM
Hello Srikanth,
As the status is 51 so Idoc has created successfully and function module will always return 0. function module is calling a BAPI for FB01 transaction and there we have sy-subrc ne 0 but how could i associate this sy-subrc with segment being processed. Anyway, you made a good point and i can see if there is anything inside function module. I will update the thread accordingly.
Thanks for your time.