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: 

New Selection screen

Former Member
0 Kudos

Hi ,

I wannna create one selection screen as starting screen(1000).

I already have a selection screen 1000.BUt i want new one as starting screen.

If i rename the already existing screen I am getting some generation errors.

How to proceed?

Regards,

Mythili

14 REPLIES 14

Former Member
0 Kudos

Hi,

Just delete the previously written code for your selection screen, and write your new code. this will create a new selection screen for you. Simple

Former Member
0 Kudos

Hi Saravanan,

I want the old screen as second screen.So I dont want to delete it.

Regards,

Mythili

0 Kudos

Hi,

Create a selection screen as 500.

now call the screen 1000 from screen 500 using call selection-screen '1000'.

Check this link-

http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba83d35c111d1829f0000e829fbfe/content.htm

Former Member
0 Kudos

HI,

step 1. Change your existing screen no to say 2000

step2. create a new screen 1000 with your new logic.

step3 . set screen 2000 as nextscreen to screen 1000

Regards,

Anirban

Former Member
0 Kudos

Hi,

which error?

If i rename the selection-screen to another number, I get no error.

Former Member
0 Kudos

hi,

If i rename the existing screen(1000) to say 2000,getting generation errors.

0 Kudos

Hi,

I hope you are talking about creating screen in Dialog programming.

Create another Screen as say 110 as normal screen.

Now in the screen attributes give the Next screen number as the previously created Screen '1000'.

Former Member
0 Kudos

I could create the new screen.

But the problem is I want the new screen to be displayed first when i execute the program.

getting generation error ,If i run the program after renaming the existing screen no.

0 Kudos

Same question, then before.

Which error did you get??

Former Member
0 Kudos

Hi All,

I explain my scenario .

I have a selection screen 1000 .

I wanna create one new screen may be modal dialog/selectionscreen.

I have to make the new screen as starting screen.

so i have renamed the existing screen no 1000 to 2000 and created the new screen

as 1000.When I activate the program I am getting Generation error.

How do i proceed?

Regards,

Mythili

0 Kudos

Okay,

you don´t want to write which error you get, but how should we help you, without knowing which error the system tell you, if you try to activate and rename.

Former Member
0 Kudos

HI check it s work for u

SELECT-OPTIONS: r_matnr FOR wa_mseg-matnr NO-DISPLAY,

r_sel FOR w_stlnr NO-DISPLAY.

SELECT-OPTIONS: s_lgort FOR wa_mseg-lgort NO-DISPLAY.

SELECTION-SCREEN : BEGIN OF BLOCK req1 WITH FRAME TITLE text-001.

SELECT-OPTIONS: s_matnr FOR marc-matnr MODIF ID m5,

s_cmatnr FOR marc-matnr MODIF ID m6,

s_werks FOR marc-werks,

s_ekgrp FOR marc-ekgrp,

s_dispo FOR marc-dispo,

s_beskz FOR marc-beskz,

s_sobsl FOR marc-sobsl,

  • s_rsnum FOR resb-rsnum,

  • s_xloek FOR resb-xloek,

  • s_xwaok FOR resb-xwaok,

  • s_kzear FOR resb-kzear,

s_bdter FOR resb-bdter,

s_rmst FOR wa_mseg-lgort NO INTERVALS .

SELECTION-SCREEN : END OF BLOCK req1.

SELECTION-SCREEN BEGIN OF BLOCK blk3 WITH FRAME TITLE text-101.

PARAMETERS : chk_pmat TYPE checkbox MODIF ID m4 USER-COMMAND def.

SELECTION-SCREEN END OF BLOCK blk3.

SELECTION-SCREEN BEGIN OF BLOCK alv1 WITH FRAME TITLE text-006 NO INTERVALS .

PARAMETERS: alv_def LIKE disvariant-variant.

SELECTION-SCREEN END OF BLOCK alv1.

AT SELECTION-SCREEN OUTPUT.

PERFORM hide_fields.

&----


*& Form hide_fields

&----


  • text

----


FORM hide_fields.

LOOP AT SCREEN.

IF chk_pmat NE 'X'.

IF screen-group1 = 'M6'.

screen-active = 0.

MODIFY SCREEN.

ENDIF.

ENDIF.

IF chk_pmat = 'X'.

IF screen-group1 = 'M5'.

screen-active = 0.

MODIFY SCREEN.

ENDIF.

IF screen-group1 = 'M6'.

screen-active = 1.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDLOOP.

ENDFORM. "hide_fields

Former Member
0 Kudos

See if there is any detailed explanation I could tell.

Its showing just generation errors in program.

"Error when generating the selection screen 2000 of report"

2000 is the name I have given for the selection screen which was 1000 before.

Former Member
0 Kudos

Hi Mythili,

Normally wheneevr we rename any screen it works without any error. Dont know why the system is giving you error.

Anyways, you can create a transaction for your module pool program and in this you can give the screen number of the screen that should come first whenevr you execute the tcode, say 1000. Then in screen definition of screen no. 1000 you can give the next screen as 2000. (anyway u want 1000 first and thn 2000 or 2000 first and then 1000).

Hope this solves your query!!!

Regards,

Saba