Add Selection Screen on splitter container
Hi All,
Can anyone help me how to add selection screen like select-options: matnr for mara-matnr etc..in custom container.
I have one custom container and i splitted into left panel and right panel. My left panel will be selection screen, Once user enters the selection in left panel right panel should be populated with data,
Your valuable answers will ge great and rewarded....
Thanks
Cris
Hi All,
Any other suggessions to acheive my requirement. For example create sub screen add my selection parameters into sub screen.
I have never used oops tech in ABAP, but know theoritically and how to use.
Finally is there any method which we can add subscreen to container.
Given below is my actual code and i need to add selection screen into w_child21.
REPORT ZTEST.
TYPE-POOLS: cndp,slis.
DATA init.
DATA ok_code TYPE sy-ucomm.
DATA: w_container TYPE REF TO cl_gui_custom_container,
w_splitter TYPE REF TO cl_gui_splitter_container,
w_child1 TYPE REF TO cl_gui_container,
w_child2 TYPE REF TO cl_gui_container,
w_splitter2 TYPE REF TO cl_gui_splitter_container,
w_child21 TYPE REF TO cl_gui_container,
w_child22 TYPE REF TO cl_gui_container.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'STATUS'.
IF init is initial.
create a container for the control
CREATE OBJECT w_container
EXPORTING
container_name = 'CUSTOM'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc <> 0.
MESSAGE a000(tree_control_msg).
ENDIF.
Instance of Splitter control - 2 columns
CREATE OBJECT w_splitter
EXPORTING
parent = w_container
rows = 1
columns = 2.
CALL METHOD W_SPLITTER->SET_COLUMN_WIDTH
EXPORTING
ID = 1
WIDTH = 30.
Assign first column to continer
CALL METHOD w_splitter->get_container
EXPORTING
row = 1
column = 2
RECEIVING
container = w_child1.
Assign 2nd child to holding container
CALL METHOD w_splitter->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = w_child2.
Instance of Splitter control - 2 rows
CREATE OBJECT w_splitter2
EXPORTING
parent = w_child2
rows = 2
columns = 1.
Assign first row of 2nd column to continer
CALL METHOD w_splitter2->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = w_child21.
Assign 2nd row 2nd column to continer
CALL METHOD w_splitter2->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = w_child22.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module EXIT INPUT
text
MODULE EXIT INPUT.
call method w_container->free.
LEAVE PROGRAM.
ENDMODULE. " EXIT INPUT
I appreciate your quick responses. Please suggest any other valuable solutions. Please let me know if you need any ohter inputs from my side.
Thanks
Cris
Similar Messages
-
Add selection-screen parameter in HUMO
Hi everybody,
I need to add selection-screen parameters in transaction HUMO.
I tried to create an new specific program with a subscreen. This subscreen is a copy of subscreen 2050 of program RHU_HELP and I had my news parameters to it.
But the problem is that I don't know how to call my subscreen instead of subscreen 2050.
I see in debug the structure ORDER_CRITERIA which contains the value of program and screen but there is no enhancement point in "AT-SELECTION-SCREEN OUTPUT" so I can't replace the program and screen values by my specifics.
I set it in the "INITIALIZATION PART" but it function only one time so it is not good.
Have you an idea to solve my problem or another way to add news selection-screen parameters in HUMO?
Thanks for your help.Hi Dixitha,
Use implicit enhancement option.
Desplay the report in se38.
In Menu, go to Edit > Enhancement Operations > Show Implicit Enhancement Options.
The system will show you lines (in color) where you can add your enhancement.
This function will allow you to add business rules, substitute fields, do extra calculations, and other unique, non-standard requirements.
Reddy -
Hello,
I want to add selection screen before standard sel screen of Logical DB screen.
I need 1 seperate selc screen for 1st. then it should open new window with standard select screen.
how to code this?
Thanks.Thanks Amit. I was thinking same that I can not add any line before LDB's standard selection screen.
Can u plz tell sample coding what u havesuggessed?
Thanks -
Dear all,
I wonder how to add a selection screen in order to display all the open item I selected for a given vendor in a different view mode. Currently if I choose from FBL1N (after having executed a select on open items for a given vendor for instance) "Environment" and then "Display document" I have in term of result one document per screeen and per item while I would like to have when choosing "Display document" a selection screen and then in term of result a list in one screen with item and details that I would have selected.
Do I have to work on the "PAI module" and "Screens" of the SAPMSSY0 program?
Regards.
Nozome.I think the 'filter' option already provides the functionality you want. Click on the filter icon and then choose the document number and after that enter the document numbers you want to operate on. This will reduce your list to these documents. Then when you use environment->display document it will limit you to the documents you have filtered on.
I think the option of modifying the standard program is a bit extreme. The program to change would be RFITEMAP but if you realy wanted to do this I believe you should at least clone it rather than change a sap standard abap. -
Add selection screen field in standard program
Hi Friends,
I have a requirement to add a language selection screen field in standard programs (RFSUSA00, RFITEMGL, RFIDPL11, RFBELJ10_NACC, RFIDPL06, RAGITT_ALV01 , RFASLD15 , S_PL0_86000028 , RFCASH00 , RFIDPL18).
This is such that when I select the appropriate language the output should get printed in that paticular language. Can someone help me with how to do this?
Regards,
DikshithaHi Dixitha,
Use implicit enhancement option.
Desplay the report in se38.
In Menu, go to Edit > Enhancement Operations > Show Implicit Enhancement Options.
The system will show you lines (in color) where you can add your enhancement.
This function will allow you to add business rules, substitute fields, do extra calculations, and other unique, non-standard requirements.
Reddy -
CAT2 ,Add Selection-screen RAUFNR
Dear all
CAT2 if I want to additional file RAUFNR (Receiver order) to Selection-screen
and When I click Enter .Its show only RAUFNR that selected.Hey guy.
Now I can add field "CATSDB-RUFNR" on initial screen (CAT2)
I used Exit "CATS0007 CATS: Subscreen on initial screen"
I know that I can manage PBO,PAI on Screen2000 (SAPLXCAT).
But i have no idea. How can I modify PBO PAI for show
only RAUFNR data into Data Entry View?
Best Regard.
Chutima -
Selection screen inside a custom container
hey guys,
I have a requirement to display a selection-screen inside a container,How can we solve this problem?
Hey guys Help me out.
Regards,
Midhun Abraham
Edited by: Midhun Abraham on Oct 7, 2008 7:08 AMyou can call a selection screen in sub screen area
declare selection screen as
begin of selection-screen 0100 as subscreen.
end of selection-screen...
then,
in flow logic of your module pool screen
PBO
call subscreen <sub_area> including sy-repid '0100'.
" at selection-screen output event is called
PAI.
call subscreen <sub_area>.
"at selection-screen is called -
Selection-screen in module program
Hi,
I have created a module pool prog.
Now the new regd. is that I want to create selection-screen before displying the actual screen.
But when I m trying to use selection screen then I m getting the message that it is not possible in type 'M' as my program is module pool.
I m using screen 9000 to display the records, now where to write selection screen in the program?
I think in PBO but getting some error, I have created one screen and in that defined a subscreen but it is giving some error.
So any body knows how to add selection screen in 'M' type program?
Thankx in advance.
UmeshHi,
You can create a selection-screen for a module pool program.
Create a new program with executable type. Create the selection screen as you would do in a normal program. Once you give data in the selection and press F8 button, based on the logics written, the O/P must appear in a table control. This is what your requirement is:
A example below for your understanding.
name of the prog : ZTEST
Type: Exectable report (I)
*----Selection Screen -
SELECTION-SCREEN BEGIN OF BLOCK IPDATA WITH FRAME TITLE TEXT-001.
PARAMETERS: PR_MONTH LIKE BOITEM-SPMON.
SELECT-OPTIONS: SO_VKGRP FOR KNVV-VKGRP.
SELECTION-SCREEN END OF BLOCK IPDATA.
SELECTION-SCREEN BEGIN OF BLOCK ORGDATA WITH FRAME TITLE TEXT-002.
SELECT-OPTIONS: SO_REGIO FOR KNA1-REGIO,
SO_KUNNR FOR KNA1-KUNNR,
SO_WERKS FOR T001W-WERKS.
SELECTION-SCREEN END OF BLOCK ORGDATA.
*--Selection Screen Events--
START-OF-SELECTION.
W_CURMFDAY = SY-DATUM.
W_CURMFDAY+6(2) = '01'.
PERFORM F001_GETDATA.
IF SY-DBCNT EQ 0.
MESSAGE S017(ZSFL).
EXIT.
ENDIF.
PERFORM F002_ADDITIONALDATA.
CALL SCREEN 100.
For this screen 100, both the PBO and PAI can be declared in this main program itself.
Regards,
JLN. -
Submit selection screen options of one report to another report
hi ,
My requirement is as follows . i have a report with a selection screen .The report fetches data from a ztable according to multiple parameters and select options in the selection screen. The mandatory parameters are two diffrent dates according to which the data is fetched. If one of the dates is the CURRENT date then the data to be fetched is not present in the Ztable as the data is updated daily at midnight. What is required if the user enters the current date in one of the dates then my report should save the selection screen parameters present in therest of the select options and submit these parameters to the second report which updates the data into the table so that my report can fetch it accordingly. If i am getting a bit confusing i am sorry . This is the best i could explain .If any clarififcations are required please ask. Please could u help me with this problem and guide me how to do this . Thanks in advances and helpful answers will be rewarded.Hi,
When you start an executable program, the standard selection screen normally appears, containing the selection criteria and parameters of both the logical database connected to the program and of the program itself. When you start an executable program using SUBMIT, there are various additions that you can use to fill the input fields on the selection screen:
SUBMIT... [VIA SELECTION-SCREEN]
[USING SELECTION-SET <var>]
[WITH <sel> <criterion>]
[WITH FREE SELECTIONS <freesel>]
[WITH SELECTION-TABLE <rspar>].
Ex.
The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
REPORT REP1.
DATA NUMBER TYPE I.
PARAMETERS PARAMET(14).
SELECT-OPTIONS SELECTO FOR NUMBER.
The program REP1 is called by the following program using various parameters:
REPORT REP2 NO STANDARD PAGE HEADING.
DATA: INT TYPE I,
RSPAR LIKE RSPARAMS OCCURS 10 WITH HEADER LINE.
RANGES SELTAB FOR INT.
WRITE: 'Select a Selection!',
SKIP.
FORMAT HOTSPOT COLOR 5 INVERSE ON.
WRITE: 'Selection 1',
/ 'Selection 2'.
AT LINE-SELECTION.
CASE SY-LILLI.
WHEN 4.
SELTAB-SIGN = 'I'. SELTAB-OPTION = 'BT'.
SELTAB-LOW = 1. SELTAB-HIGH = 5.
APPEND SELTAB.
SUBMIT REP1 VIA SELECTION-SCREEN
WITH PARAMET EQ 'Selection 1'
WITH SELECTO IN SELTAB
WITH SELECTO NE 3
AND RETURN.
WHEN 5.
RSPAR-SELNAME = 'SELECTO'. RSPAR-KIND = 'S'.
RSPAR-SIGN = 'E'. RSPAR-OPTION = 'BT'.
RSPAR-LOW = 14. RSPAR-HIGH = 17.
APPEND RSPAR.
RSPAR-SELNAME = 'PARAMET'. RSPAR-KIND = 'P'.
RSPAR-LOW = 'Selection 2'.
APPEND RSPAR.
RSPAR-SELNAME = 'SELECTO'. RSPAR-KIND = 'S'.
RSPAR-SIGN = 'I'. RSPAR-OPTION = 'GT'.
RSPAR-LOW = 10.
APPEND RSPAR.
SUBMIT REP1 VIA SELECTION-SCREEN
WITH SELECTION-TABLE RSPAR
AND RETURN.
ENDCASE.
Regards,
Bhaskar -
Hello,
In a screen I have a SELECTION-SCREEN line which contains a comment, followed by a PARAMETER, followed by another comment, followed by a PARAMETER.
Here is the example code:
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(14) text-s01 FOR FIELD p_1.
SELECTION-SCREEN POSITION 33.
PARAMETERS: p_1 LIKE sy-uzeit DEFAULT '000001'.
SELECTION-SCREEN COMMENT 52(3) text-s02 FOR FIELD p_2.
SELECTION-SCREEN POSITION 58.
PARAMETERS: p_2 LIKE sy-uzeit DEFUALT '240000'.
SELECTION-SCREEN END OF LINE.
For some reason the second COMMENT is showing with a different font. Can anyone help me understand why?
Thank you,
Nuno SilvaHi
I test it on my system and noticed the same behavior.
text-s01 = 'TOX'
text-s02 = 'TOX'
We can notice differences between the O and X.
No idea why.
That is SAP
If you found a solution, please post it.
Regards
DSTJ -
Using Web Dynpro to bypass a r/3 selection screen
Hello,
Very new to portal development and looking to see if there is a way to do this.
Overview: I created a WebDynpro to display R/3 information in a table via an iView. This information
contains R/3 report variants based on user security. The user can then select a line within the table and hit execute which will run a r/3 report using the information from the table without displaying the selection screen.
KEYNOTE: We do not want the user to be able see the report selection screen.
It contains secure information that the business does not want the user to be able to view.
Within the portal content I created two pages, The first page contains one iView with my WebDynpro. Which is filled and displays the table when selected. The second page contains two iView's WebDynpro and the window for viewing the R/3 report.
The problem is that when the execution button is hit on the first page, it then moves to the second page. However does not run the report. It displays the selection screen of the report. They can hit the execution button again and it worked fine.
Is there a way around this or is they a better way of doing this/
Thanks,
ChrisHi Walex,
You will first need a RFM that returns the file that you need.
Then you can create a Adaptive RFC model in Web Dynpro to access this RFM and store the file in the Web Dynpro context. Web Dynpro provides APIs to save files to the local system
You can check this article for downloading the file.
http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproJava-ExportingTableDataUsingOn-DemandStreams-SAPNW+7.0
Best Regards,
Supriya -
Hi Guys,
Im developing a dialog program that the first screen is the Selection screen, where it contains select options and parameters.
My question is how can i make my dialog's selection screen having the same functionality as normal SE38 program's selection screen? Basically in dialog's selection screen, i want to save the input as variant.
I did tried to copied standard status - Program RSSYSTDB, Status %_00 as my dialog selection screen's status. but the save button will not trigger the variant saving.
Pls comment.
Thanks in advance.Have you tried getting SAP to generate the selection screen for you?
For example :
selection-screen begin of screen 200.
selection-screen begin of block a with frame title text-t01.
select-options s_vendor for eina-lifnr obligatory no intervals.
select-options s_matnr for mara-matnr.
parameters p_werks type mard-werks default 'D100'.
parameters p_lgort type mard-lgort default '0002'.
selection-screen end of block a.
selection-screen end of screen 200.
You would need to call screen 200 from your main program, and after execute is hit the main program continues populated with the selection parameters -
How to Add a new fields in the selection screen of LDB.
Hi All,
I want to add a new fields in the selection screen of LDB & then i need to select the data for that fields.
So could you please tell me for that where i need to add the code for selecting the data.
Thanks
RoliHi
welcome to SDN forum
If you are designing your own LDB with your own tables you can define tree structure and then the selection screen for the tables
if you wants to modify the std LDB of SAp means take the access key and to modify that code
if you add the extra field you have to modify the where conditions in the code also
see the doc
A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
Less coding s required to retrieve data compared to normal internel tables.
Tables used LDB are in hierarchial structure.
Mainly we used LDBs in HR Abap Programming.
Where all tables are highly inter related so LDBs can optimize the performance there.
Check this Document. All abt LDB's
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
GO THROUGH LINKS -
http://www.sap-basis-abap.com/saptab.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Re: **LDB**
www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
www.sap-img.com/abap/abap-interview-question.htm
www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
Gothru the blog which provides info on LDB's:
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Sample code
TABLES: SPFLI,
SFLIGHT,
SBOOK,
SCARR.
START-OF-SELECTION.
GET SPFLI.
WRITE:/ SPFLI: , SPFLI-CARRID, SPFLI-CONNID,
SPFLI-AIRPFROM, SPFLI-AIRPTO.
GET SFLIGHT.
WRITE:/ SFLIGHT: , SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
GET SBOOK.
WRITE:/ SBOOK: , SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
GET SFLIGHT LATE.
WRITE:/ GET SFLIGHT LATE: , SFLIGHT-FLDATE.
Regards
anji -
Adding Container in the selection screen
Hi ,
I have a special requirement, I need to place a
long text editor in the selection screen. can any one explain it. this requirement is in HR report including PNP Logical database.
is it possible to add the Long text container ?
Thanks In Advance.
With Best Regards
NagI resloved the issue ..
Thanks
Nags -
Add fields in KOB2 & KSB2 report in selection screen as well as output
Dear All,
I have an issue in which i have to add fields in KOB2 & KSB2 report.
i need to add below fields to KSB2 report.
1) Internal order
2) Vendor
3) Purchasing group
I also need to add profit centre in selection screen for KSB2
Similarly for KOB2 i need to add below fields
1) Cost centre
2) Vendor
3) Purchasing group
I also need to add cost centre as input for KOB2 report.
I have gone through note 325546 "CO line item reports: Creating a user-defined field" which can be helpful.
However i am not sure as to how do i add fields in input screen as required.
Other alternative is to create a Z report however when i try and copy the report both KOB2 & KSB2 call same report "RKAEP000".
I am not able to get as to how do i differentiate the call of different screens when ZKOB2 is called or when ZKSB2 is called.
I could identify " c_item_group" field having different values however i couldnot get a proper logic as to how correct screen can be called based on input
Please suggest .
Thanks,
RonakHi Raymond,
The note 747588 is good as soon as you are adding fields from the same table only.
When I have added additional table into KAEP_SCOVP selection view below COVP (just because the extra fields I need are not in COVP) they will show up in KOB1 as selection criteria, but not getting saved.
Any idea if any ABAP should be regenerated or what extra steps are required when adding more tables into Selection View?
Thank you!
Maybe you are looking for
-
Error while running the autoconfig
Hi All, Im getting below error while running the autoconfig on apps tier.could someone help me on below issue. Application 11.5.10.2 DB :10.2.0.4.0 OS: HP UX AC-50480: Internal error occurred: java.lang.Exception: Error while generating listener.ora.
-
How to avoid OCM reinstall through OPatch when using EM Harvester?
Currently running OEM Grid Control 11g (11.1.0.1.1GC PSU) on an infrastructure repository database (11.2.0.1.2). Previously had OCM installed in every ORACLE_HOME in our environment. I removed all existing OCM installations and OCM Instrumentation in
-
I need to store Visio files in vdx format for Subversion compatibility. When I ask Firefox to open a vsd file on the network, it appropriately states the file is a Visio file and asks if I want to save it. I select yes and the file opens in Visio. Wh
-
Hi Everyone, I have a .jar file which contains some java packages. How can extract this file to view the package contents. Thanks a lot. Hung
-
Manually enter dates in prompt
Post Author: Scott CA Forum: General I created a parameter which prompts the user to enter a date range. The problem is.........I want to enter the dates rather than chose from a dropdown list. Any thoughts?