Displaying DYNPROs/ SUBSCREENs within GUI controls
Does anyone know how (or even if it is possible) to include either a dynpro or a subscreen within the container of a splitter control (ie a CL_GUI_CONTAINER)?
I have an application with a couple of splitter controls which fill the whole screen and I would like to include a few input fields within one of the panes.
I know I could achieve this by using an ALV grid but it doesnt really give me the same formatting options.
Many thanks,
Robin.
Hi Robin
This question should be asked at ABAP Development.
As an answer, this was discussed there before, it is not possible to insert a subscreen or classical dynpro elements in those containers.
*--Serdar
Similar Messages
-
Display dynpro in splitter control area
Hi everybody!
Is it possible to create a splitter control with two areas and then display an "ordinary" dynpro with buttons, input areas etc. in one of those areas?
Regards, JoergHi everyone!
Thanx for the replies so far. As usual with SAP programming, I think the answer to my original question is: "Can't be done. We do it like this..."
Although I had not actually thought of SE80 when I posted the question, I think that this transaction is a pretty good example of what I had in mind.
By analyzing and doing some debugging I think SAP uses a combination of several techniques to achieve the SE80 look&feel. There are different "modi" of the program, with at least one dynpro each.
But the general setup seems to be that the area on the left hand side is actually presented as a docking control. I think the area on the right is then usually is a "simple" dynpro with a container control for ABAP source etc...
However, if I try to "copy" this setup, I have two problems, which are closely related to each other:
1.) If the left hand area is resized, I would have to resize the display area on the right hand side. That would have to happen in the SIZE_CONTROL event of the docking control. However, I don't really know how to resize controls dynamically. I always paint them in dynpro painter and they have a fixed size and position, then.
2.) To start with a nice layout one would have to know the size of the screen in order to calculate the size of the left and the right hand side of the didplay. I don't know how to do that either. The same is true for the resizing event.
Any suggestions?
Regards, Joerg -
How to change the attributes of GUI CONTROLS in my own program.
hi all,
i just want to change the attributes of GUI CONTROLS in my own program.
for example `
How to set an ICON on my GUI BUTTON in the program?
so what's the mapping between CONTROL in the SCREEN PAINTER and variable in the program?Hi Chao Liu,
Ya , u first find out the PF-STATUS of the screen and goto that status and now u can modify the ICON u want .
Finding the GUI status of the screen
Goto that TRANSACTION CODE or SCREEN
On the Standard Menu bar Goto ( Menu path) System --> Status
Now u get a pop-up System :status in that in SAP Data block u can find GUI Status. Now Double Click on that Status. It takes u to the Status of that screen.
Now click on the Display --> Change Button on the application tool bar.
If it is a standard GUI-status then it asks for the ACCESS KEY.
if it is a custom defined GUI Status then u can change the status .
reward if helpful
raam -
Component integration: Control framework / create your own gui controls
Hi,
Does anyone know where to find documentation about creating your own gui controls, like cl_gui_picture.
For example we would like to make a zcl_gui_movie !!!
Kind regards
Keld GregersenHi Keld,
Check out /people/thomas.jung3/blog/2004/09/01/using-net-windows-controls-in-the-abap-control-framework
And
/people/thomas.jung3/blog/2005/05/11/using-classic-activex-controls-in-the-abap-control-framework
I have been able to create and use my own control in the SAP GUI - but I'm still trying to figure out how to handle any events raised by that control.
If all you need to do is use the control to display something (like a movie!) it should work...
If you can get some form of event processing working PLEASE let me know!!!
Cheers,
N -
Find out Mode (DISPLAY OR EDIT) within SRM 7.0
Hi,
I am within a Method (WDDOMODIFYVIEW--> for contracts) and want to find out the current action mode
Display or Edit Mode (to control a customer field)
Which Class/method could I use for that?
Thanks and regards
AndreasHi,
Please check if SAP Note 1334202-"How to get current action ID and transaction group" can help.
Regards,
Chandu -
I am using a Macbook Pro with OS X Yosemite 10.10.2. I am unable to open encrypted emails using webmail. I have verified my certificates are loaded in the keychain for my military common access card while using a CAC reader. When I try to view the message it gives me the error saying "content can't be displayed because the S/MIME control isn't available."
I am using a Macbook Pro with OS X Yosemite 10.10.2. I am unable to open encrypted emails using webmail. I have verified my certificates are loaded in the keychain for my military common access card while using a CAC reader. When I try to view the message it gives me the error saying "content can't be displayed because the S/MIME control isn't available."
-
How to display check box in atable control
hi
here is my requirement
how can i display check box in table control and also when i check that check box it has to dispaly one pop up screen with the records of table control row
points will be rewarded
Thanks&Regards
Nagesh.ParuchuriHi,
See this code for how to display check box in atable control
*---- Table declaration.
TABLES: KNA1.
CONTROLS TC1 TYPE TABLEVIEW USING SCREEN 200.
CONTROLS TC2 TYPE TABLEVIEW USING SCREEN 300.
*---- Data declaration.
DATA:OKCODE LIKE SY-UCOMM.
DATA:V_KNA1 LIKE KNA1.
*DATA:ERROR TYPE C.
*---- Internal Table declaration.
DATA:BEGIN OF IT_TAB OCCURS 0,
CHK,
VBELN TYPE VBELN_VA,
KUNNR TYPE KUNAG,
ERDAT TYPE ERDAT,
AUDAT TYPE AUDAT,
VBTYP TYPE VBTYP,
END OF IT_TAB.
DATA:BEGIN OF IT_TAB1 OCCURS 0,
VBELN TYPE VBELN_VA,
POSNR TYPE POSNR_VA,
MATNR TYPE MATNR,
MATWA TYPE MATWA,
PMATN TYPE PMATN,
END OF IT_TAB1.
*& Module USER_COMMAND_0100 INPUT
MODULE USER_COMMAND_0100 INPUT.
OKCODE = SY-UCOMM.
CASE OKCODE.
WHEN 'DISP' OR SPACE.
SELECT *
FROM VBAK
INTO CORRESPONDING FIELDS OF TABLE IT_TAB
WHERE KUNNR = KNA1-KUNNR.
IF SY-SUBRC <> 0.
MESSAGE 'No sales document exists'(001) TYPE 'I'.
ENDIF.
LEAVE TO SCREEN 200.
CLEAR OKCODE.
*--- To leave Transaction
WHEN 'BACK' .
LEAVE PROGRAM.
CLEAR OKCODE.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module validate_kunnr INPUT
MODULE VALIDATE_KUNNR INPUT.
V_KNA1 = KNA1.
SELECT SINGLE *
FROM KNA1
WHERE KUNNR = KNA1-KUNNR.
*-----Process error condition
IF SY-SUBRC <> 0.
CLEAR KNA1.
KNA1-KUNNR = V_KNA1-KUNNR.
CASE OKCODE..
WHEN 'BACK' OR 'EXIT' .
LEAVE PROGRAM.
ENDCASE.
MESSAGE 'Customer Does Not Exist'(002) TYPE 'I'.
LEAVE TO SCREEN 100.
ENDIF.
ENDMODULE. " validate_kunnr INPUT
*& Module STATUS_0100 OUTPUT
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'PF'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0200 INPUT
MODULE USER_COMMAND_0200 INPUT.
CASE OKCODE.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
LEAVE TO SCREEN 100.
CLEAR OKCODE.
CLEAR IT_TAB1.
WHEN 'DISP' .
CLEAR OKCODE.
READ TABLE IT_TAB WITH KEY CHK = 'X'.
IF SY-SUBRC = 0.
SELECT VBELN POSNR MATNR MATWA PMATN
FROM VBAP
INTO TABLE IT_TAB1
WHERE VBELN = IT_TAB-VBELN.
IF SY-SUBRC = 0.
SORT IT_TAB.
DESCRIBE TABLE IT_TAB LINES TC1-LINES.
LEAVE TO SCREEN 300.
ELSE.
MESSAGE E016(YBHV).
ENDIF.
ELSE.
MESSAGE 'Please select one record' TYPE 'I'.
ENDIF.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
*& Module STATUS_0200 OUTPUT
MODULE STATUS_0200 OUTPUT.
SET PF-STATUS 'PF3'.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module USER_C.OMMAND_0300 INPUT
text
MODULE USER_COMMAND_0300 INPUT.
SET PF-STATUS 'PF3'.
CASE OKCODE.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
CLEAR OKCODE.
LEAVE TO SCREEN 200.
ENDCASE.
ENDMODULE. " USER_COMMAND_0300 INPUT
*& Module modify INPUT
MODULE MODIFY INPUT.
MODIFY IT_TAB INDEX TC1-CURRENT_LINE.
ENDMODULE. " modify INPUT
*& Module okcode OUTPUT
text
MODULE OKCODE OUTPUT.
CLEAR OKCODE.
ENDMODULE. " okcode OUTPUT
Reward Pointsa If usefull
Regards
Fareedas -
Need help in displaying a feed within my flex app
Hello guys,
I was hoping that someone can push me in the right direction. I am looking to display our feed within our Flex Application. I am using some of the sample from tour de flex
This is what I have so far:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="960" height="850">
<fx:Script>
<![CDATA[
import flashx.textLayout.conversion.TextConverter;
import flashx.textLayout.elements.TextFlow;
import spark.utils.TextFlowUtil;
XML.ignoreWhitespace = false;
]]>
</fx:Script>
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@namespace components "components.*";
s|WindowedApplication {
background-color:#000000;
background-alpha:"0.9";
s|ButtonBar s|ButtonBarButton:upAndSelected,
s|ButtonBar s|ButtonBarButton:overAndSelected,
s|ButtonBar s|ButtonBarButton:downAndSelected,
s|ButtonBar s|ButtonBarButton:disabledAndSelected {
chromeColor: #00529c;
color: #FFFFFF;
s|ButtonBar {
chromeColor: #053867;
color: #FFFFFF;
</fx:Style>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<!--<s:HTTPService id="srv" url="http://feeds.feedburner.com/standforisrael/iWIn?format=xml" />-->
<fx:XML id="srv" source="http://feeds.feedburner.com/standforisrael/iWIn?format=xml" />
</fx:Declarations>
<s:ButtonBar dataProvider="{myViewStack}" y="175" height="35" width="700" />
<mx:ViewStack id="myViewStack" borderStyle="none" x="0" y="209" width="700" height="500">
<s:NavigatorContent id="home" label="Home">
</s:NavigatorContent>
<s:NavigatorContent id="about" label="About Us">
</s:NavigatorContent>
<s:NavigatorContent id="rabbi" label="Rabbi Eckstein">
</s:NavigatorContent>
<s:NavigatorContent id="rabbiCom" label="Rabbi's Commentary">
</s:NavigatorContent>
<s:NavigatorContent id="programs" label="Our Blog">
<s:RichText id="rt5" width="280"
textFlow="{TextFlowUtil.importFromXML(srv)}" />
</s:NavigatorContent>
</mx:ViewStack>
</s:WindowedApplication>
Now when I run this I get a prompt that is telling me that if the program is already running to stop the program... I have no idea what program it is that i'm running that would prompt that type of dialogue box.
I also get these errors:
Unexpected processing instruction encountered and will be ignored. Found: type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css" IFCJ.mxml /IFCJ/src Unknown Flex Problem
Unexpected processing instruction encountered and will be ignored. Found: type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl" IFCJ.mxml /IFCJ/src Unknown Flex Problem
Is there anything that I am not doing right here?
Any help would really be appreciated,
Thank YouI did try HTTPService but the problem that I was seeing was that I would need to push the information into a datagrid and that really doesn't help me witth presentation of the blog posts.
What if I create a custom component that takes the RSS feed and parses it into sections like so:
Title
Description
Link
Where lets say the title is like so:
[Bindable]
public var title:String; <-- this is where I get stuck
<s:Label x="0" y="80"
text="{title}"/>
I would like to also have that title wrapped in a url so that when the person is looking at our RSS they can click either the title or the read more link
What else can i do? -
Need help in SQL Queries using GUI controls or variables
Hello, all
I have a big problem (I have already had with Visual Basic a few mounths ago) with Java while writing my SQL Queries.
I would like to know how I must do to use variable data or GUI control data in my SQL Query to select only some records.
Here, my first Query that works without any problem (no WHERE clause !!!) :
Statement requeteBedes = connectBedes.createStatement();
ResultSet resultatSeries = requeteBedes.executeQuery("SELECT * FROM Series");
initComboBoxSeries(resultatSeries);the method "initComboBoxSeries" fills a JComboBox with all the names of the series in my database.
Here comes my problem.I would like to use the value of the selected "series" in the JComboBox to search in another table of the same Database. I made another statement but it returns a Null ResultSet :
ResultSet resultatSearchAlbumsFromSeries = requeteBedes.executeQuery("SELECT * FROM bandes_dess WHERE ser_nom = '" + strComboBoxSeriesSelected + "' "); The variable strComboBoxSeriesSelected contains the value of the selected line in the combobox with all the series, filled after the first query that is here above and that works very well.
Could some one help me and tell me how I must use variables or GUI controls values in my SQL Queries or tell me if there is a place where I could find an explanation of that kind of problems (like more "advanced SQL Queries", as the ones currently used in all the Learning Java 2 books)
Thank you all for your help.
Christian.executeQuery() will never return null. At least that's what the spec says. You are probably catching an exception (probably a syntax error caused by a single quote in strComboBoxSeriesSelected) and ignoring it. Or do you mean the ResultSet contains no rows?
Anyway, to use parameterized queries, take a look at PreparedStatements. Your code should look like this using PreparedStatement:Statement requeteBedes = connectBedes.prepareStatement("SELECT * FROM bandes_dess WHERE ser_nom = ?");
requeteBedes.setString(1, strComboBoxSeriesSelected);
ResultSet resultatSeries = requeteBedes.executeQuery();Alin. -
How do I turn on the GUI controls for the Focus Blur Effect in Final Cut Pro X
I can't find the setting that enables the GUI control overlay to manipulate the parameters of the Focus blur effect in Final Cut Pro X. When I have the clip and the focus effect selected I only get a center element overlay. At one point I had controls for all the other elements of this effect.
anyone know a shortcut or how I can toggle these controls back on?I don't see any other screen controls either.
Maybe there was a change sometime, or maybe you were using a different effect? -
Hi ,
How can I display ALV grid display in subscreen area that is called in main screen .?
Thanx in advance .Hi Pallavi,
Use these parameters in Alv Fm
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
Hope this will help you.
Regards,
Vijay -
IPAD3/IPAD2 :PDF files/ attachments sent in an email displayed inline ( embedded within the main email) in the message text on both my Ipad2 and Ipad three, however the same email displayed the PDF File icons/ attachment on both my Iphone and a friend’s PC. How do i get both my IPAD devices to display the PDF icons/attachments? Bearing in mind if i open the same email over the internet the PDF Icons/attachments display OK!
Has anyone come across this? Your advice/help would be most appreciatedThis happens to me all the time.
If is a one page PDF it seems as though it comes over already open and inline in the body of the email. Multiple page PDF files show as the PDF icon.
I can't find any official documentation of this - other than based on my own experience with PDF attachments in my various email accounts.
Message was edited by: Demo -
How to hide display details in sap gui and create ad-hoc request in UWL?
Hi,
how to hide display "details in sap gui" and "create ad-hoc request" in UWL?
Please telme the step-by-step procedure to hide "details in sap gui" and "create ad-hoc request".
Thanks,
RashmiHi,
Thanks for the information. It was very helpfull.
Can you please tellme where can we fine UWL iView? I tried to find this out in two ways.
1) Portal Content -> Content Provided by SAP -> End User Content -> Standard Portal Users -> Views -> com.sap.coll.iviews -> Universal Worklist (finally i got this iView). Here i dint find any property called "List of UWL Actions to exclude". In the link which you had given, its written that we can modify the iView and add the name of the actions under the Actions to exclude from the UWL property.
Which iView do we need to modify and where can i find that property?
2) I downloaded the xml file and then tried to find this property "List of UWL Actions to exclude" or " Actions to exclude from the UW". But i couldnt find both the properties in xml file.
Thanks,
Rashmi -
Problem in displaying o/p in Table Control
Hi ,
while displaying in table control.
its is displaying line twice.
I have some contains in iti itab.
which i am displaying itf itab through table control..
i have coded like this...
PROCESS BEFORE OUTPUT.
MODULE STATUS_0112.
LOOP at itf WITH CONTROL TC CURSOR tc-current_line.
MODULE FILL_TABLE_CONTROL.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
LOOP at itf.
module read_table_INPUT.
ENDLOOP.
MODULE USER_COMMAND_0112.
*& Module STATUS_0112 OUTPUT
text
MODULE STATUS_0112 OUTPUT.
SET PF-STATUS 'ZTC'.
SET TITLEBAR 'xxx'.
DESCRIBE TABLE iti LINES tc-lines.
ENDMODULE. " STATUS_0112 OUTPUT
MODULE fill_table_control OUTPUT
MODULE fill_table_control OUTPUT.
loop at iti .
READ TABLE itf with key ingr_code = iti-ingr_code
ingr_desc = iti-ingr_desc.
MOVE iti-INGR_CODE TO ITF-INGR_CODE.
MOVE iti-INGR_DESC TO ITF-INGR_DESC.
MOVE iti-CONC TO ITF-CONC.
MOVE iti-QUANTITY TO ITF-QUANTITY.
MOVE iti-UOM TO ITF-UOM.
append ITF ."index tc-current_line.
endloop.
ENDMODULE. "fill_table_control OUTPUT
can any one help meloop at iti .
READ TABLE itf with key ingr_code = iti-ingr_code
ingr_desc = iti-ingr_desc.
MOVE iti-INGR_CODE TO ITF-INGR_CODE.
MOVE iti-INGR_DESC TO ITF-INGR_DESC.
MOVE iti-CONC TO ITF-CONC.
MOVE iti-QUANTITY TO ITF-QUANTITY.
MOVE iti-UOM TO ITF-UOM.
append ITF ."index tc-current_line.
endloop
You dont need to append the data , you have to Modify the data.
Problem is with the above code.
Correct to this...
MODULE fill_table_control OUTPUT.
READ TABLE itf index tc-current_line.
MOVE iti-INGR_CODE TO ITF-INGR_CODE.
MOVE iti-INGR_DESC TO ITF-INGR_DESC.
MOVE iti-CONC TO ITF-CONC.
MOVE iti-QUANTITY TO ITF-QUANTITY.
MOVE iti-UOM TO ITF-UOM.
endloop.
ENDMODULE. "fill_table_control OUTPUT
Regards
Vijay Babu Dudla -
Is that possible to change parent of GUI Controll?
Hi,
I have to change parent of GUI Control. I have a Splitter with two Controls (b.e. 1 x 2 )and would like to delete one. After that I would like to change grid ( 1 x 1 ) and show in this the second view. But after I have called splitter->set_grid(1 1) my container which include second view is no more valid, I have to get new one from splitter but how can I bind it with my view?
Regards
BogdanHello Bogdan
If you look at the parent attribute of different classes (e.g. CL_GUI_ALV_GRID, CL_GUI_ALV_TREE) then it is a public, <b>READ-ONLY</b> instance attribute. Based on this property I would assume that it is not possble to switch the parent of a GUI control.
Regards
Uwe
Maybe you are looking for
-
This problem arose when I attempted to upgrade my existing FireFox browser to the new FireFox 7. I clicked through the auto-update, but didn't think that anything changed, as the browser didn't look like the image in the feature explanation image I w
-
I think I messed up by not installing Lion on an external drive when my install didn't work
I purchased Lion but was unable to install (just read other threads on Lion installation problems!). I was unable to repair my drive so after many days of putsing around I erased hard drive so I could repair it and then I reset my pram. All is well w
-
Extraction from SAP R/3 (Business Content ) into SAP BW
Hi, i replicate all data in bw side when i assign infosource iam getting the error "Mapping between datasource 2LIS_02_S011 and source system "ALS800R3" is inconsistent in the status bar and a pop-up window showing error in infoObject Mapping listing
-
Is it possible to export Final Cut Pro X projects or .MOV to DVD Studio Pro (from Final Cut Studio v.3)? I'm using the free trial of Final Cut Pro X and later acquired a copy of Final Cut Studio (FCP 7, Compressor 3.5, DVD Studio Pro 4, Color 1.5, Mo
-
Photoshop CS4 32 bit settings work for 64 bit version?
Anyone know if Photoshop CS4 32 bit settings work for 64 bit version? I just installed Windows 7 x64 and I want to use my backup Photoshop CS4 settings from the 32 bit version. Will there be any problems? Also, it seems that since I'm on 64 bit Win