05-11-2022 8:01 PM
Hi experts.
I want to know SY-SUBRC type when PARAMETERS have no input value(just implement without input on parameters.
I wanna print two different MESSAGE types with dividing conditions into two sorts that one is parameter have wrong input value and other is have no input value.
Best Regard.
05-11-2022 10:51 PM
HI There
What does your question mean
If you have 2 parameter check if a parameter is initial or not or check if parameter = X
Why do you need SY-SURBC to work for that?
Maybe share your code if this is not what you are looking for?
Regards
Vinita
05-11-2022 8:01 PM
Thank you for visiting SAP Community to get answers to your questions.
Since you're asking a question here for the first time, I'd like to recommend you with the following steps so you can get the most out of your community membership:
I also recommend that you include a profile picture. By personalizing your profile, you encourage readers to respond: https://developers.sap.com/tutorials/community-profile.html.
I hope you find this advice useful, and we're happy to have you as part of SAP Community!
All the best,
-Alex
05-11-2022 10:51 PM
HI There
What does your question mean
If you have 2 parameter check if a parameter is initial or not or check if parameter = X
Why do you need SY-SURBC to work for that?
Maybe share your code if this is not what you are looking for?
Regards
Vinita
05-15-2022 9:13 AM
HI
Thanks for your replying.
I think i set parameters condition with not ordinary method.
And i just solved the problem with your advice 'check if a parameter is initial or not or check if parameter = X'.
I set condition with " IF PARAMETER = ' ' " and it working.
Thank you Vinita
05-15-2022 9:17 AM
And please tell me advice against my syntax if have problem. I actually think this syntax is not practical.
05-12-2022 8:07 AM
I don't understand, why do you want to use SY-SUBRC, just to test values of a selection screen parameter?
It will be easier to answer if you also show your code.
05-15-2022 9:14 AM
Hi expert.
I just started studying ABAP with only myself..
So apolozize against my low quality question and please understand even if my question is little bit weird.
and this is my syntax for print error message. I actally think this syntax is not practical so if you have advices
against my syntax please tell me.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN.ENDIF.
05-15-2022 9:14 AM
05-15-2022 12:05 PM
Please select your code and press the button [CODE], which makes the code appear colored/indented, it will be easier for people to look at it. Thank you!
05-15-2022 12:26 PM
I think I can't help you about the logic you want to implement but I can advise about ABAP:
05-15-2022 2:39 PM
Hi expert!
I appreciate about your point out!
i would keep your advice in my mind and coding.
thank you very much.