Application Development and Automation 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: 
Read only

Selection-screen issue

Former Member
0 Likes
944

HI All,

I have to call a F4 value request at the selection screen by choosing one of the two radio buttons in the selection screen.I know that for calling f4 value request I have to use SELECTION-SCREEN VALUE-REQUEST on <FIELD>.

but the problem is that i am not able to get the value of the radio button i.e. it is cheked or not.

<b><u>actual scenario:</u>

I have to upload a file using the function module.

I can upload the file either from pc or application server of sap.

so for pc upload i am using a function module which will open the browser, this will only happen when pc named radiobutton is checked.

but in case of application server the user have to manually enter the file path when the app radio button is clicked but in case of application server the browser should not popup.</b>

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
898

Use DYNP_VALUES_READ in your AT SELECTION-SCREEN ON VALUE-REQUEST block to get the values of other screen parameters.

9 REPLIES 9
Read only

Former Member
0 Likes
899

Use DYNP_VALUES_READ in your AT SELECTION-SCREEN ON VALUE-REQUEST block to get the values of other screen parameters.

Read only

0 Likes
898

can you explain it properly.

thanks for your input.

Read only

0 Likes
898

    MOVE: 'P_RPRT'   TO T_DYNFIELDTAB-FIELDNAME.
    APPEND T_DYNFIELDTAB.

    CALL FUNCTION 'DYNP_VALUES_READ'
      EXPORTING
        DYNAME                         = SY-REPID
        DYNUMB                         = SY-DYNNR
      TABLES
        DYNPFIELDS                     = T_DYNFIELDTAB
      EXCEPTIONS
        INVALID_ABAPWORKAREA           = 1
        INVALID_DYNPROFIELD            = 2
        INVALID_DYNPRONAME             = 3
        INVALID_DYNPRONUMMER           = 4
        INVALID_REQUEST                = 5
        NO_FIELDDESCRIPTION            = 6
        INVALID_PARAMETER              = 7
        UNDEFIND_ERROR                 = 8
        DOUBLE_CONVERSION              = 9
        STEPL_NOT_FOUND                = 10
        OTHERS                         = 11
              .
    IF SY-SUBRC = 0.
      READ TABLE T_DYNFIELDTAB INDEX 1.
      IF SY-SUBRC = 0.
        MOVE T_DYNFIELDTAB-FIELDVALUE TO P_RPRT.
      ENDIF.
    ENDIF.
Read only

Former Member
0 Likes
898

Hi guru,

1. there are two radio buttons, A and B

2. A is for front-end

B is for application server.

3. User choose B.

4. Then if he presses F4 on the filename,

he should not get any F4 help.

5. So, here u must get the value

IF B = 'X'.

regards,

amit m.

Read only

0 Likes
898

My dear friend Amit Mital,

I have to Modify it in the POV eevnt.

The solution proposed by you can only happen in PAI event.

Read only

Former Member
0 Likes
898

Did you try AT SELECTION-SCREEN event?

Tamá

Read only

0 Likes
898

at selection-screen is a pai event so no use.

Read only

Former Member
0 Likes
898

Hello,

Did u use the following EVENT,

AT-SELECTION SCREEN ON RADIOBUTTON GROUP ABC.

Regs,

Venkat Ramanan N

Read only

0 Likes
898

it is a pai event. I have to track the vlues in pov event.