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: 

making default on selection screen

Former Member
0 Kudos

Hi all,

I am working on an IDOC process that will list the idocs in error which are ready for reprocessing. when I execute this custom transaction it will give me the list of all the idoc numbers with status E i.e. error, when i fix the error and want to reprocess the error it shows me a screen which says

Reprocess Idoc's

and it says "Call Transaction processing" with following radio buttons:

1. In background

2. In foreground

3. In foreground after error.

My functional folk wants to set this radio button as default to In the foreground, so can you please tell me how I can acheive this.

Thanks,

Rajeev

10 REPLIES 10

Former Member
0 Kudos

note the DEFAULT


PARAMETERS:
  cbpers   RADIOBUTTON GROUP gr10 DEFAULT 'X',
  cbmodi   RADIOBUTTON GROUP gr10,
  cbact    RADIOBUTTON GROUP gr10,
  cbfol    RADIOBUTTON GROUP gr10,
  cbstath  RADIOBUTTON GROUP gr10.

0 Kudos

Thanks for the reply....But I don't know where do I need to write this code.

0 Kudos

Hello,

You need to put it between the command SELECTION-SCREEN BEGIN OF SCREEN and SELECTION-SCREEN END OF SCREEN


SELECTION-SCREEN BEGIN OF SCREEN 100.
PARAMETERS:
  cbpers   RADIOBUTTON GROUP gr10 DEFAULT 'X',
  cbmodi   RADIOBUTTON GROUP gr10,
  cbact    RADIOBUTTON GROUP gr10,
  cbfol    RADIOBUTTON GROUP gr10,
  cbstath  RADIOBUTTON GROUP gr10.
SELECTION-SCREEN END OF SCREEN 100.

Regards,

0 Kudos

if you're coding a REPORT program, those lines are in your screen definition.

If you are coding a MODULE program, you simply need to set the radio button you want to 'X' where you defined the field for the button.

Like this


DATA:
  rb_rt_prev        TYPE c,
  rb_rt_customer    TYPE c,
  rb_rt_partner     TYPE c,
  rb_rt_realtor     TYPE c,
  rb_rt_none        TYPE c VALUE 'X'.

0 Kudos

Hi All,

I mean to say I couldn't see anyplace where they have define this screen for call transaction. when I am executing a particular program it shows me a screen and when I enter values into that then an another screen comes up and then finally when I hit reprocess idoc, this screen of call transaction comes up where it asks me to select the way of executing the transaction i.e.. in foreground or background.

Thanks,

Rajeev

0 Kudos

You can take a note of the Tran code that the last CALL TRANSACTION is executing. Use SE93 to find the program name AND the screen number to execute. Go to SE80 enter the program name, find the screen mentioned the SE93. Find the radio buttons on the screen and find the name of the one you want to set as default. Ensure that it is the ONLY one X'd as have 2 X'd will cause a Program Exception and Dump nicely for you.

Former Member
0 Kudos

Hi,

You can write like this, you will get it,

As per my understand your requirement is you are declared 3 radiobuttons

by default it will selects the 1st radio button, but your requirement is other than

1st button should select by default if it is correct see below code

See below Example.

I am creating 2 radio buttons like this by default it will selects radiobutton on which is r1 but I have given the devault for 2nd radio button i.e. r2.

parameters: r1 radiobutton group g1,

r2 radiobutton group g1 default 'X'.

or you can write like this also. In Initialization event also you can give

parameters: r1 radiobutton group g1,

r2 radiobutton group g .

initialization.

r2 = 'X'.

Thanks

Ganesh

Former Member
0 Kudos

Guys...I know how to set this thing default but the problem is I don't know where I need to code this...I mean the program which is hitting behind the scene.

Thanks,

Rajeev

Former Member
0 Kudos

Hi All,

I mean to say I couldn't see anyplace where they have define this screen for call transaction. when I am executing a particular program it shows me a screen and when I enter values into that then an another screen comes up and then finally when I hit reprocess idoc, this screen of call transaction comes up where it asks me to select the way of executing the transaction i.e.. in foreground or background.

Thanks,

Rajeev

Former Member
0 Kudos

didn't get the answer I was looking for !!!