‎2008 Oct 21 11:06 AM
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.
‎2008 Oct 21 11:19 AM
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.
‎2008 Oct 21 11:07 AM
‎2008 Oct 21 11:11 AM
Hi Purna,
Check out this link.
[http://saptechnical.com/Tutorials/ABAP/DynamicSScreen/Create.htm]
Regards,
Amit.
‎2008 Oct 21 11:13 AM
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
‎2008 Oct 21 11:14 AM
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
‎2008 Oct 21 11:15 AM
‎2008 Oct 21 11:18 AM
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.
‎2008 Oct 21 11:17 AM
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
‎2008 Oct 21 11:19 AM
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.
‎2008 Oct 21 11:34 AM
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.