Skip to Content
avatar image
Former Member

How to set radio button value in submit statement

Hi All,

I am trying to submit RHALEINI from my custom program .In RHALEINI by default All reporting period will be selected but from custom program i am trying to set Today radio button under reporting period .i am using the following code

SUBMIT rhaleini VIA SELECTION-SCREEN

WITH SELECTION-TABLE rspar_tab

WITH pchotype = 'P'

WITH pchobjid IN range_tab

WITH pchztr_a EQ ' '

WITH pchztr_z EQ ' '

WITH pchztr_m EQ ' '

WITH pchztr_p EQ ' '

WITH pchztr_y EQ ' '

WITH pchztr_d EQ 'X'

but always the All radio button is getting selected.Please let me know how can i select Today radio button using submit

Thanks

Bala Duvvuri

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jun 22, 2010 at 08:58 AM

    Hi Bala,

    Just place a breakpoint in subroutine pbo in include DBPCHF00 and execute your program.

    Initialization event in LDB pch

    There is a code

    IF pchtimed NE space.   "This must be satisfied
    CASE pchtimed.
      WHEN 'D'.
        pchztr_d = 'X'.
      WHEN 'M'.
        pchztr_m = 'X'.
      WHEN 'Y'.
        pchztr_y = 'X'.
      WHEN 'P'.
        pchztr_p = 'X'.
      WHEN 'F'.
        pchztr_f = 'X'.
    ENDCASE.
    else.
              pchztr_a = 'X'.  "In your code this part executes always
    endif.
    

    So for solution pass PCHTIMED = D in your submit.

    SUBMIT rhaleini VIA SELECTION-SCREEN
    WITH SELECTION-TABLE rspar_tab
    WITH pchotype = 'P'
    WITH rcvprn = 'DX1CLNT500'
    WITH pchobjid IN range_tab
    with PCHTIMED = 'D'
    WITH pchztr_d eq 'X'.
    

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 19, 2010 at 08:20 AM

    Hi ,

    Pass the radiobutton in the SELECTION-TABLE

    CLEAR i_select.

    i_select-selname = 'LGBST'.

    i_select-kind = 'P'.

    i_select-low = 'X'.

    APPEND i_select.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I created a variant and submitted report using variant and it got solved

      SUBMIT rhaleini VIA SELECTION-SCREEN

      WITH SELECTION-TABLE rspar_tab

      USING SELECTION-SET 'ZRADIO'

      WITH pchobjid IN range_tab

      .

      Thanks

      Bala Duvvuri