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: 

Problem in duplicating selection screens...

Former Member
0 Kudos

Hi,

I have one selection screen defined in SE51. I want to create another one similar to that.

So, using SE38 I create an executable program called XXX. Then in SE51, I duplicated(using copy button) the former selection screen.

But when i opened it I could see only the following "screen types" displayed in enable mode..

Normal

Subscreen

Modal Dialog Box

The "selection screen" radio button is grayed and hence I cannot choose it. The radio button "Normal" is selected.

I think, bcos of this when I activate the program from where this selcection screen is invoked, I get the error message

"Generation Errors in program.

Source Code ?????????????????? Line 0

Error when generating the selection screen 1000 of report

xxx"

Am I correct ? How to resolve this problem ??

thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

It is not possible to create selection screens using the SE51. But just like reports we can define the selection screens in programs created using the SE51. So just check the source code of the original program you can find the selection-screen definition. Just copy that definition to your new program by opening it in SE38.

If you need further help let me know.

Thanks

Giridhar

5 REPLIES 5

Former Member
0 Kudos

Hi,

It is not possible to create selection screens using the SE51. But just like reports we can define the selection screens in programs created using the SE51. So just check the source code of the original program you can find the selection-screen definition. Just copy that definition to your new program by opening it in SE38.

If you need further help let me know.

Thanks

Giridhar

0 Kudos

Like what Giridhar said , you cant directly link se38 selection screen and se51 selection screen. You have to manually copy the code.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Just copy the selection screen code in the first program to the second program. Don't try coping the screen 1000.

Regards,

Rich Heilman

Former Member
0 Kudos

I think you are trying copy selection screen '1000' which is automatically created when you delcare a selection, but I doubt you can copy a selection screen. Using SE51 you can copy a screen

Normal

Subscreen

Modal Dialog Box

if you want to create two selection screens for the report program then you have declare inthe report with screen option which is of below and based on condition you can call each one.

SELECTION-SCREEN Begin Of Screen 1001.

selection-screen begin of block blk with frame title text-001.

select-options : s_werks for t001w-werks no intervals, " by CR 42129.

s_kunnr for knvv-kunnr, "Ship-to customer

s_date for vbkd-fkdat no-extension. "Date

select-options : s_vkorg for vbak-vkorg, "Sales Org

s_vtweg for vbak-vtweg, "Distribution Channel

s_spart for vbak-spart, "Division

s_auart for vbak-auart. "Order Type.

select-options : s_pstyv for vbap-pstyv no-display

no intervals, "DEFAULT 'ZAP*',

s_pstyv1 for lips-pstyv no-display

no intervals. "DEFAULT 'XAP*'.

select-options: s_fksak for vbuk-fksak no-display,

      • S_DATE FOR VBAK-VDATU NO-DISPLAY,

s_fkstk for vbuk-fkstk no-display.

selection-screen skip.

parameters: p_cdsys as checkbox

user-command pdatcal.

*

*

selection-screen skip.

*Report options

selection-screen comment /1(17) text-002.

selection-screen begin of line.

parameters : rb_order radiobutton group rad2. "Order relevant billing

selection-screen comment 5(22) text-006 for field rb_order.

selection-screen end of line.

selection-screen begin of line.

parameters : rb_deliv radiobutton group rad2. "Delivery relevant billing

selection-screen comment 5(25) text-007 for field rb_deliv.

selection-screen end of line.

selection-screen comment 1(59) text-051.

selection-screen begin of line.

parameters : rb_all radiobutton group rad3. "All Orders

selection-screen comment 5(27) text-052 for field rb_all.

selection-screen end of line.

selection-screen begin of line. "Orders that are invoiced

parameters : rb_bill radiobutton group rad3 default 'X'.

selection-screen comment 5(34) text-053 for field rb_bill.

selection-screen end of line.

selection-screen skip.

parameters : p_vari like disvariant-variant. "Variant for ALV

selection-screen end of block blk.

SELECTION-SCREEN End OF Screen 1001.

**************************

  • Subscreen 1002 *

**************************

SELECTION-SCREEN Begin Of Screen 1002.

selection-screen begin of block aa with frame title text-058.

parameters : rb_unix radiobutton group rad4 default 'X'

user-command unxloc.

parameters : rb_locl radiobutton group rad4.

*

selection-screen skip.

selection-screen end of block aa.

selection-screen begin of block bb with frame title text-060.

selection-screen comment /1(40) text-059.

parameters: p_psrvr like rlgrap-filename.

parameters: p_dirct like rlgrap-filename default '/'. "A24863-10.25.04

parameters p_xpath like filepath-pathintern

default 'ZARETESALESDEMAND' no-display.

parameters p_xfile like rlgrap-filename no-display.

selection-screen skip.

*

selection-screen comment /1(17) text-057.

parameters p_path like rlgrap-filename default 'C:\'.

parameters p_file like rlgrap-filename.

*

selection-screen end of block bb.

SELECTION-SCREEN End OF Screen 1002.

Former Member
0 Kudos

Thanks to all...Yes indeed I need not create a selection screen using SE51 ;-(

Its working fine now !!!