2009 Aug 14 8:04 AM
Is there any way to avoid DUMP bcz of RAISE_EXCEPTION error. I am using one function module to create Material Master. when ever there is a problem with some data format it is giving me the DUMP with raise_exception. There is no guarantee that every time client enters correct data. Even he enters wrong data i need to give only ERROR MESSAGE instead of this DUMP.
Since there are lot fields, i cant write the code to check each and every feild before creating material master. I need to give error message when ever there is RAISE_EXCEPTION condition instead of creating entry i n ST22.. So i need to capture this RAISE _EXCEPTION with in my progem only to give a ERROR Message indicatig 'Wrong Data Enterd'.
Any ideas or suggesions. it's urgetn pls help.
Kumar.
2009 Aug 14 8:18 AM
Hi,
This can be feasible by using the below statement.
Use this statement immediately next to your function module by deleting the existing EXCEPTIONS to that function module.
RECEIVE RESULTS FROM FUNCTION 'GUI_UPLOAD'
EXCEPTIONS
sy-subrc = 1.
error1 = exception1
sy-subrc = 2.
error2 = exception2.
So Mention all your exceptions here by correlating to your error messages.
2009 Aug 14 8:08 AM
Hi Kumar,
Are you using CONVERSION_EXIT_ALPHA.xxxxxxxxxxxxxx?
After FM u can check sy-subrc & give the message.
Do u want to give different messages for exceptions?
regards,
pravin
2009 Aug 14 9:05 AM
Hi Pravin,
Yes. you r rite. i am using CONVERSION_EXIT_ALFA_INPUT module. will it give any problems. Please tell me how to avoid this. i need to use that function moduel. shall i check the data format before calling that function module. i need just one message like 'Wrong Data' if exception occure. but it shouldn't crate entry in ST22.
Kindly suggest.
Kumar.
2009 Aug 14 9:11 AM
Hello,
Can you please answer a couple of questions:
1. After execution of which func. module are you getting this runtime dump.
2. Are you handling the EXCEPTIONS of the func. module in your code. If yes, then you should not be getting this dump ( unless of course if you have used MESSAGE TYPE 'X' )
Please revert back.
BR,
Suhas
2009 Aug 14 9:25 AM
HI Suhas,
Actucally i am using Web Service to call my RFC. There is no chance of using exception conditions here. But i am using following function modules in my RFC.
CONVERSION_EXIT_ALFA_INPUT,
TEXT_SPLIT,
SAVE_TEXT, CREATE_TEXT, CONVERTION_EXIT_PDATE_OUTPUT.
Actually DUMP's are coming in Client Quality Syatem and i have no access to that system. i can't even see the DUMPS. but working fine in DEV server with no such errors.
Are these function modules causing any problems?
Kumar.
2009 Aug 14 9:32 AM
>
> Actucally i am using Web Service to call my RFC. There is no chance of using exception conditions here. But i am using following function modules in my RFC.
>
> CONVERSION_EXIT_ALFA_INPUT,
> TEXT_SPLIT,
> SAVE_TEXT, CREATE_TEXT, CONVERTION_EXIT_PDATE_OUTPUT.
>
> Actually DUMP's are coming in Client Quality Syatem and i have no access to that system. i can't even see the DUMPS. but working fine in DEV server with no such errors.
>
> Are these function modules causing any problems?
Just check that you have handled the EXCEPTIONS (if any) for these FMs. If so you have to see the dumps & analyse. No point in shooting arrows in the dark.
Ask for QA access ASAP.
BR,
Suhas
2009 Aug 14 8:09 AM
Hi Kumar,
There are 2 options.
1. Before supplying data to FM, you can have a validation check on the data. If the data is in expected data format then submit it to FM other wise throw an error. - this is better to implement
2. If you want to capture an exception. same validation check should be checked inside FM and then if it's wrong data format...then raise exception.
Though there are many fields, we have to have this validation as even a single field can cause DUMP due to it's incorrect format.
Thanks,
Raj
2009 Aug 14 8:18 AM
Hi,
This can be feasible by using the below statement.
Use this statement immediately next to your function module by deleting the existing EXCEPTIONS to that function module.
RECEIVE RESULTS FROM FUNCTION 'GUI_UPLOAD'
EXCEPTIONS
sy-subrc = 1.
error1 = exception1
sy-subrc = 2.
error2 = exception2.
So Mention all your exceptions here by correlating to your error messages.