Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Former Member
replied

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'.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question