‎2013 Sep 20 3:36 PM
Hello experts, i hope you can help me with a report has object oriented, this has the following input parameters:
Type of Material
Werks
Material
I created a Dynpro 500
In the materials input I have to enter a range of values or example:
Material: STC0001 A STC0010
I have created the first text box and has the name mapl-matnr (STC0001), my question is:
¿What name should I put him to another text box, as this should enter the other value (STC0010)?
Can orient please, i'll apreciate it.
Best regards
‎2013 Sep 21 5:52 AM
‎2013 Sep 21 5:52 AM
‎2013 Sep 21 6:45 AM
Why you want a module pool for this...
Create a normal selection screen and then call the screen.
Regards
‎2013 Sep 22 11:54 PM
SELECT-OPTIONS: s_matnr for mara-matnr.
This creates both input fields ont he screen, and allows you to enter a single value or a range.
I suggest that you look at some existing ABAP programs on your system. You'll get the idea pretty quickly then.
cheers
Paul
‎2013 Sep 24 6:48 PM
Sorry if I closed the subject, but I have not been able to solve the problem, i mean when run the report screen appears with its objects and container where the data is displayed, but when I put the SELECTION SCREEN, this screen appears first and then the container that do not.
Please can tell me how to implement this code.
Thank you very much
This code I used
SELECTION-SCREEN BEGIN OF BLOCK blck1 WITH FRAME TITLE text-000.
PARAMETERS: so_mtart TYPE mara-mtart.
SELECT-OPTIONS : so_werks FOR mapl-werks,
so_matnr FOR mapl-matnr.
SELECTION-SCREEN END OF BLOCK blck1.
MODULE create_objects OUTPUT.
* Create and control Docking dock on the right side of the screen
CHECK r_dock_container IS INITIAL.
CREATE OBJECT r_dock_container
EXPORTING
side = cl_gui_docking_container=>dock_at_top
extension = 780
caption = 'Materials'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*Create Instancia grid
CREATE OBJECT r_grid
EXPORTING
i_parent = r_dock_container
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* The table output is sent to Control
CALL METHOD r_grid->set_table_for_first_display
CHANGING
it_outtab = t_mapl
it_fieldcatalog = t_fieldcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. "
ENDMODULE.
* Search and update material data table
MODULE user_command_0500 INPUT.
CASE ok_code.
WHEN 'EXECUTE'.
SELECT………………………………….
WHERE mapl~werks EQ so_werks
AND mapl~matnr EQ so_matnr
AND mara~mtart EQ so_mtart.
‎2013 Sep 25 5:27 AM
Hii Brujo,
use the events
start-of-selection.
call method obj->fetch_data--------------to populate the internal table t_mapl.
if sy-subrc eq 0.
call screen 5000.
endif.
And in module
MODULE USER_COMMAND_5000 INPUT.
if sy-ucomm eq 'BACK' or sy-ucomm eq 'CANCEL' sy-sucomm eq 'EXIT'.
leave to screen 0.
endif.
regards
Syed
‎2013 Sep 25 5:56 AM
Hi,
SAP Docking container can be attached on or more areas of screen. To reattach the docking container to a different edge of the screen we use DOCK_AT method. To switch the status of the Docking Container between fixed (docking) and free (floating) we use the method FLOAT.
We can use docking container in web Dynpro and sub screen also
Moderator message - Removed the external link
Message was edited by: Suhas Saha
‎2013 Oct 07 9:40 PM
‎2013 Oct 08 6:49 AM
hi
if you you one parameter with multiple inputs. then you can use the selection-options with no interval where you can enter multiple vaues and in the prgram you use for all entries and take the apporpirate values.
with regards
Suneesh