Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Pop Up with Radio Buttons

Former Member
0 Kudos
1,612

Hi,

I need a pop up just similar to the POPUP_TO_CONFIRM,

but the required pop up should contain radio buttons to choose one option out of two.

Is any such popup is available by use of any function module.

4 REPLIES 4

Former Member
0 Kudos
220

hi,

use this FM : POPUP_TO_DECIDE_LIST.

bpawanchand
Active Contributor
0 Kudos
220

Hi

POPUP_TO_DECIDE_INFO

HR_99S_POPUP_TO_DECIDE_LIST

Regards

Pavan

Former Member
0 Kudos
220

Hi,

Plz try this way.

A centered Popup allowing the choice of up to two of three possible answers is to be created (Creditor, Material, Account). The third option is to be chosen by default.

DATA: BEGIN OF SPOPLIST OCCURS 15.
          INCLUDE STRUCTURE SPOPLI.
  DATA: END   OF SPOPLIST.
  DATA: ANTWORT TYPE C.

  SPOPLIST-VAROPTION = 'Creditor'(001).
  APPEND SPOPLIST.
  SPOPLIST-VAROPTION = 'Material'(002).
  APPEND SPOPLIST.
  SPOPLIST-VAROPTION = 'Account '(003).
  SPOPLIST-SELFLAG   = 'X'.

  CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
     EXPORTING  TITEL            = 'Possible entra: Order'(a01)
               TEXTLINE1        = 'By which criteria'(b01)
               TEXTLINE2        = 'should orders'(b02)
               TEXTLINE3        = 'be selected?'(b03)
               MARK_MAX         = 2
               MARK_FLAG        = 'X'
    IMPORTING  ANSWER           = ANTWORT
    TABLES     T_SPOPLI         = SPOPLIST
    EXCEPTIONS TOO_MUCH_ANSWERS = 1
               TOO_MUCH_MARKS   = 2.

  IF SY-SUBRC = 2.
    WRITE: 'Too many answers chosen.'.
  ENDIF.
  IF ANTWORT = 'A'.
    WRITE: 'Popup canceled.'.
  ELSE.
    WRITE: 'Options chosen:'.
    LOOP AT SPOPLI WHERE SELFLAG = 'X'.
      WRITE /SPOPLI-VAROPTION.
    ENDLOOP.
  ENDIF.

Hope this helps you.

plz reward if useful.

thanks,

dhanashri

Former Member
0 Kudos
220

Hello,

Even i have a similar requirement of getting a radio button against a particular value in a pop-up.

Is your query solved,if so kindly share it.

Thanks in advance.

Regards

Rithwika