Application Development and Automation 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: 
Read only

Abap selection-screen

Former Member
0 Likes
1,181

Hi friends,

Is it possible in abap reporting, from the first selection-screen input can we design the next screen where we can provide the details for first screen inputs.

note: this should be done in abap report not module pool.

Advance Thanks,

Purna Chandra.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,137

Hello Purna Chandra Bhoga,

We can call the other selection-screen from calling program selection screen through submit program.It is working fine i tested it.

Example

SELECTION-SCREEN : BEGIN OF BLOCK b4 WITH FRAME TITLE text-t04.

PARAMETER: s_matnr TYPE mara-matnr.

SELECTION-SCREEN : END OF BLOCK b4.

AT SELECTION-SCREEN OUTPUT.

s_matnr = '94000000001'.

START-OF-SELECTION.

IF s_matnr EQ '94000000001'.

SUBMIT ytest_test1 VIA SELECTION-SCREEN.

ENDIF.

9 REPLIES 9
Read only

Former Member
0 Likes
1,137

Hi,

you need to work with

AT SELECTION_SCREEN

regards

Nicole

Read only

Former Member
0 Likes
1,137

Hi Purna,

Check out this link.

[http://saptechnical.com/Tutorials/ABAP/DynamicSScreen/Create.htm]

Regards,

Amit.

Read only

naveen_inuganti2
Active Contributor
0 Likes
1,137

That is what we are doing in Classical and Interactive and ALV reports with selection screen.

For other validations we can take help of:

Intialization

At selection screen

At selection screen on field

At selection on output

At selection screen on value requset for parameter

At selection screen on block..etc;

Thanks,

Naveen.I

Read only

Former Member
0 Likes
1,137

Hi Purna Chandra B... ,

Yes you can do this . There are lot of AT SELECTION-SCREEN Event by using this you can do this.

Thanks '

Tarak

Read only

rainer_hbenthal
Active Contributor
0 Likes
1,137

Another way of doing this is the use of tabstrips.

Read only

0 Likes
1,137

Hi Rain..

>Q: note: this should be done in abap report not module pool.

>A: Another way of doing this is the use of tabstrips.

My Q: How?

--Naveen Inuganti.

Read only

Former Member
0 Likes
1,137

Hi Chandra,

I think we can capture the values of selection screen through FM DYNP_VALUES_READ.

by these you can capture the selection screen values and pass to other screen in the reports.

Regards

Kumar M

Read only

Former Member
0 Likes
1,138

Hello Purna Chandra Bhoga,

We can call the other selection-screen from calling program selection screen through submit program.It is working fine i tested it.

Example

SELECTION-SCREEN : BEGIN OF BLOCK b4 WITH FRAME TITLE text-t04.

PARAMETER: s_matnr TYPE mara-matnr.

SELECTION-SCREEN : END OF BLOCK b4.

AT SELECTION-SCREEN OUTPUT.

s_matnr = '94000000001'.

START-OF-SELECTION.

IF s_matnr EQ '94000000001'.

SUBMIT ytest_test1 VIA SELECTION-SCREEN.

ENDIF.

Read only

former_member755502
Participant
0 Likes
1,137

Go through this small example -

parameters : p_so type vbak-vbeln.

types: begin of w_itab_ty,

vbeln type vbeln,

vkorg type vkorg,

end of w_itab_ty.

data : itab type standard table of w_itab_ty,

wa_itab type w_itab_ty.

DATA it_dynfield TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.

AT SELECTION-SCREEN.

if p_so is not initial.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = sy-repid

dynumb = sy-dynnr

request = 'A'

translate_to_upper = 'X'

TABLES

dynpfields = it_dynfield

EXCEPTIONS

invalid_abapworkarea = 1

invalid_dynprofield = 2

invalid_dynproname = 3

invalid_dynpronummer = 4

invalid_request = 5

no_fielddescription = 6

invalid_parameter = 7

undefind_error = 8

double_conversion = 9

stepl_not_found = 10

OTHERS = 11.

READ TABLE it_dynfield WITH KEY fieldname = 'P_SO'.

IF it_dynfield-fieldvalue IS NOT INITIAL.

p_so = it_dynfield-fieldvalue.

ENDIF.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = p_so

IMPORTING

OUTPUT = p_so.

select vbeln

vkorg

from vbak

into table itab

where vbeln = p_so.

endif.

start-of-selection.

if itab is not initial.

loop at itab into wa_itab.

write 😕 wa_itab-vbeln,

wa_itab-vkorg.

endloop.

endif.