Validate input criteria on Bex and prompt for relevant information

Source: Internet
Author: User

Enhanced RSR00001:

I_step =3.
CLEAR: ls_msg, lt_msg.

IF i_s_rkb1d-compid=' zm_bcs01_q001 '.
READTABLE I_t_var_rangeTransportingNOFields
WithKEY iobjnm=' 0comp_code '.
IF Sy-subrc=0.
READTABLE I_t_var_rangeTransportingNOFields
WithKEY iobjnm=' 0cs_group '.
IF Sy-subrc=0.
Ls_msg-msgty=E.
Ls_msg-msgid=' Rsar '.
Ls_msg-msgno=' 051 '.
Ls_msg-msgv1=' Merge hierarchy and company code cannot be entered at the same time '.
APPEND ls_msgTo Lt_msg.
ENDIF.
ELSE.
READTABLE I_t_var_rangeTransportingNOFields
WithKEY iobjnm=' 0cs_group '.
IF Sy-subrcNE0.
Ls_msg-msgty=E.
Ls_msg-msgid=' Rsar '.
Ls_msg-msgno=' 051 '.
Ls_msg-msgv1=' Merge level and company code must enter at least one '.
APPEND ls_msgTo Lt_msg.
ENDIF.
ENDIF.

IF lt_msgIsNotINITIAL.
 PagerFUNCTION' rrms_messages_input ' focus on using this function to throw a message out
        Exporting
i_t_msg= Lt_msg
        EXCEPTIONS
Dummy=  1
           Span class= "l0s52" >OTHERS   =  2
      RAISE  Span class= "L0s32" >1
     Endif   endif

Validate input criteria on Bex and prompt for relevant information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.