How to freeze the entry in screen painter?
Hi Friends i am facing one problem with my task like i am having one field called EMPID as text name and name of the INPUT/OUTPUT field is ZCOMPANY-EMPID in screen number 100.
And the same field is copied to another screen of number 200.
Here my requirement is when the user passes from 100 to 200 screen the EMPID entered in screen 100 should display in 200 screen it is displaying since we have used the same INPUT/OUTPUT name, but my PROBLEM is i want to freeze the field in the 200 screen i mean the user should not be able to edit empid simply it shpuld be display mode.
Thks
Hi,
You can make that field non editable by two ways. One is by Static Method - changing the attributes in the ELEMENT list. Or you can change the same dynamically using the following lines of code.
In the PBO of the screen 200, Try to write the following code.
LOOP AT SCREEN.
IF SCREEN-NAME = ( screen field name )
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Hope this will help.
Thanks,
Samantak.
Rewards points for useful answers.
Similar Messages
-
How to run the query in screen painter
i am using the patch 36 in business one so pls give information about
how to run the query in screen painter
regard
sandip adhavHope u have reached Screen painter interface,
1. Click 'Add Grid' from tool bar.
2. Go to 'Collections' tab in 'Properties' window.
3. Choose 'Data Tables' from the Drop down list.
4. Click 'New' found at the bottom of the Properties Window(same window)
5. U'll find the place to insert ur query.
6. U can rename the table name from 'DT_0'
7. Choose type as 'Query'
8. Clear content from box 'Query'
9. Enter ur query there. Dont forget to Click 'SET'
10. Go to Preview option from tool bar.
now ur query will be displayed as table format.
Note: First try with simple query b4 going for linking option.
Regards,
Dhana. -
How to design select-option through screen painter
I am new to screen painter. I want to make a screen having range of values high/low (just like select-option)......How can I do this using screen painter?
Hi!
Method 1
a) Create a subscreen area in your screen layout where you want to create the select options.
b) In the top include of your module pool program declare a selection screen as a subscreen e.g.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
select-options s_matnr for mara-matnr.
SELECTION-SCREEN END OF SCREEN.
c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).
CALL SUBCREEN sub_area INCLUDING
This call subscreen statement is necessary for transport of values between screen and program.
Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.
Method 2
a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.
struc_tab_and_field-fieldname = con_cust. " 'KUNNR'
struc_tab_and_field-tablename = con_kna1. " 'KNA1'.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
TITLE = ' '
text = g_titl1 " 'Customers'
tab_and_field = struc_tab_and_field
TABLES
RANGE = rng_kunnr
EXCEPTIONS
NO_RANGE_TAB = 1
CANCELLED = 2
INTERNAL_ERROR = 3
INVALID_FIELDNAME = 4
OTHERS = 5.
IF NOT rng_kunnr[] IS INITIAL.
Read the very first entry of the range table and pass it to
dynpro screen field
READ TABLE rng_kunnr INDEX 1.
IF sy-subrc = 0.
g_cust = rng_kunnr-low.
ENDIF.
You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements
You can go with it also ....
Re: Select-options in dynpro
Regards.... -
How to add the entries and how to delete the entries from custom Z-table?
Hi Experts,
My requirement is I need to add the entries from program to three custom z-tables . Assume as zabc1,zabc2,zabc3.
Here how to add the entries from program to Z-table.???
And one more requirement is I want to provide a deletion checkbox in selection screen . Initial it was unchecked. If I am giving tick mark then the entries should be deleted from above custom Z-tables. this all will done in backgroung job?
Could you please guide me the logic how to crack this???
Let me know if you need more Info
Thanks
SanjuHi Sanjana,
What you can do is to use the ABAP keyword INSERT or MODIFY to add or modify records to a given database table. Here are the syntax taken from SAP documentation:
*Insert Statement
INSERT dbtab
Syntax
INSERT { {INTO target VALUES source }
| { target FROM source } }.
Effect
The INSERT statement inserts one or more rows specified in source in the database table specified in target. The two variants with INTO and VALUES or without INTO with FROM behave identically, with the exception that you cannot specify any internal tables in source after VALUES.
System Fields
The INSERT statement sets the values of the system fields sy-subrc and sy-dbcnt.
sy-subrc Meaning
0 At least one row was inserted.
4 At least one row could not be inserted, because the database table already contains a row with the same primary key or a unique secondary index.
The INSERT statement sets sy-dbcnt to the number of rows inserted.
Note
The inserted rows are finally included in the table in the next database commit. Up until this point, they can still be removed by a database rollback.
*Modify Statement
MODIFY dbtab
Syntax
MODIFY target FROM source.
Effect
The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines.
System fields
The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields.
sy-subrc Meaning
0 At least one line is inserted or changed.
4 At least one line could not be processed since there is already a line with the same unique name secondary index in the database table.
The MODIFY statement sets sy-dbcnt to the number of processed lines.
Note
The changes are transferred finally to the database table with the next database commit. Up to that point, they can be reversed using a database rollback.
Hope it helps...
P.S. Please award points if it helps... -
How to freeze the selection column in the table control of the module pool.
hi ,
in my module pool there is a row selection field <b>w/selcolumn</b> of the table control called as mark.
how to freeze the selection column where there is no record in the table control row.
or in other words where wa is initial.
thanks
ektaHi all,
in the PBO of the screen the following code is written.
say the selection column is MARK and is declared in the data as well.
thanks
ekta
*************************C O D E **************************************************
MODULE disp_tabctrl1 OUTPUT.
IF flag_c = 1.
READ TABLE it_create_data INTO wa_material_data
INDEX tab_ctrl1-current_line.
ELSE.
READ TABLE it_material_data INTO wa_material_data
INDEX tab_ctrl1-current_line.
IF sy-subrc = 0.
IF ok_code_0101 = '&SEL1'.
mark = 'X'.
ELSEIF ok_code_0101 = '&DSEL'.
mark = ' '.
ENDIF.
ELSE.
LOOP AT SCREEN.
IF screen-name = 'MARK'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
index_t = tab_ctrl1-top_line.
index_d = tab_ctrl1-top_line + n.
ENDMODULE. " DISP_TABCTRL1 OUTPUT -
How to get the entries in a jar/zip file contained within a jar/zip file?
If I want to list the jar/zip entries in a jar/zip file contained within a jar/zip file how can I do that?
In order to get to the entry enumeration I need a Zip/JarFile:
ZipFile zip = new ZipFile("C:/java_dev/Java_dl/java_jdk_commander_v36d.zip");
// Process the zip file. Close it when the block is exited.
try {
// Loop through the zip entries and print the name of each one.
for (Enumeration list =zip.entries(); list.hasMoreElements(); ) {
ZipEntry entry = (ZipEntry) list.nextElement();
System.out.println(entry.getName());
finally {
zip.close();
Zip file "java_jdk_commander_v36d.zip" contains two zip entries:
1) UsersGuide.zip
2) JDKcommander.exe
How to list the entries in "jar:file:/C:/java_dev/Java_dl/java_jdk_commander_v36d.zip!/UsersGuide.zip"?
The following code:
URL url = new URL("jar:file:/C:/java_dev/Java_dl/java_jdk_commander_v36d.zip!/UsersGuide.zip");
JarURLConnection jarConnection = (JarURLConnection)url.openConnection();
zipFile = (ZipFile)jarConnection.getJarFile();
would point to "jar:file:/C:/java_dev/Java_dl/java_jdk_commander_v36d.zip", which is no help at all and Class JarURLConnection does not have an enumeration method.
How can I do this?
Thanks.
AndreI'm not sure I understand the problem. The difference between a zip and jar file is the manifest file; JarFile is extended from ZipFile and is able to read the manifest, other than that they are the same. Your code
for (Enumeration list =zip.entries(); list.hasMoreElements(); ) {
ZipEntry entry = (ZipEntry) list.nextElement();
System.out.println(entry.getName());
}is close to what I've use for a jar, below. Why not use the same approach? I don't understand what you're trying to do by using JarURLConnection - it's usually used to read the jar contents.
String jarName = "";
JarFile jar = null;
try
jar = new JarFile(jarName);
catch (IOException ex)
System.out.println("Unable to open jarfile" + jarName);
ex.printStackTrace();
for ( Enumeration en = jar.entries() ; en.hasMoreElements() ;)
System.out.println(en.nextElement());
} -
How to restrict the entry of same material twice on the order
HI,
How to restrict the entry of same material twice on the order before saving the Order ?
I do not want my users to enter the same material as two different line items in the order.
Any inputs wud b appreciatedHi Vam,
For this you need to take the help of an ABAPer . Ask him to modify the user exit and add the logic.
For user exit please go through the below link it will help you to resolve your issue.
http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
Regards,
Krishna O
Edited by: Krishna O on Jun 3, 2010 12:29 PM -
Validation: How to maintain the entry in GB02C
HI FI GURUS n EXPERTS,
My requirement is that - We want to restrict Negative posting for some GL i.e. For some GL balance should not be Zero.
When I have made the search on SDN, I found it can be done with the help of Validation: OB28 & GGB0.
Currently we are not using any validation. When we use T-Code GGB0 --> Financial Accounting --> Line Item --> New Validation
System shows a pop-up window to select Boolean Class & Message ID.
I also found that this information is maintained in Table GB02C.
When I use Se16 to see the detail of the table GB02C, I found there is only one entry Bool. Class: FP1 & Message ID 7F.
But I don't know How to maintain the entry in table GB02C & What is the T-Code for it. which message ID I have to create.
Please help.
DSCDear Alex,
When I use: GGB0 --> Financial Accounting --> Line Item --> New Validation
System shows a pop-up window to select Boolean Class & Message Class, I select the Message Class 9 and for Message Class Press F4 and select any message class. System gives an error message: Message ID must start with 'Z' Message no. GB116.
Basically, My question is that: Which T-Code we have to use to maintain Boolean Class & Message Class.
With thanks,
DSC -
How to get the entry point in the ActiveX/COM adaptor
below is the description of the Demo of using the ActiveX/COM to call new seq .
API Demo
1. Manually add a Message Popup step to the MainSequence of a
new sequence file. Save the sequence file as launch.seq.
2. Create another sequence file and save the file as caller.seq.
3. In the MainSequence of the caller.seq file, add Action steps
using the ActiveX/COM Adapter to call into the TestStand API and
launch the launch.seq file in a new execution.You might need the
following two methods to complete this step.
. Engine.GetSequenceFileEx
. Engine.NewExecution
so the question as follows:
1.i call the method of get sequencefileEx
2. call the method of getmodlesequenceFile
3.call the method of evalEntryPointNameExpression
4.call the method of NewExecution.
but at the step of 3. i haven't get the entry point.
so how to solve this issue? thanks
Attachments:
QQ图片20140115200924.jpg 58 KB
QQ图片20140115201708.jpg 100 KBThis is a duplicate post of this:
http://forums.ni.com/t5/NI-TestStand/How-to-get-the-entry-point-in-the-ActiveX-COM-adaptor/m-p/27005... -
How to freeze the report header row in the web template SAP BI 7.0?
Hello,
Can somebody tell me how to freeze the report header row in the web template SAP BI 7.0 (key fiigures1, 2,3)?
key figure1 key figure2 key figure3
20 30 40
30 80 90
ThanksHi,
You can refer the following threads...
Re: Create Scrollable Table Body in WAD - Locking Table Column and Header
Freeze Data Columns in WAD
This will help you!
Rgds,
Murali -
How to print the Module pool screen using a push button in the screen
Hi Every one,
i have developed a module program , which have a selection screen and it display the output in a structured way.
output includes boxes, texts etc...
my problem is :---
How to print the Module pool screen using a push button in the screen.When the "Print" button is pressed:
leave to list-processing and return to screen 100. "(current screen)
Call a transaction that runs your print program.
Rob -
How to move the entries of table BNKAIN between systems
Hi,
Is there any way to export the entries of table BNKAIN from one SAP system (development) to another manually? This is the table which is not transported via a transport...even in development system the "transport entries" option is not active. IN SM30 the maintenance view is not created.
Can you advice how to move the entries somehow manually?
Thanks for any assistance!
br,SlawekHi, thanks for reply.
In fact I checked the table BNKA and the entries there are not helpful for me in the target system.
We are using there some user exit which is using the table BNKAIN and the following entries are there:
Client Bank Country Bank Key Internal bank
790 CA IHC6 1
790 DE IHC1 1
790 FI IHC 1
790 FR IHC3 1
790 GB IHC4 1
790 US IHC5 1
I checked the properties of that table in SE11 and it is maintainable only with restrictions..thus I need to ask some other basis expert which will help me to inlcude those entries into a transport.
Anyway thansk for your hints!
Bye -
How to remove the entries of the names of the previously read PDF files in order to not to leak privacy
Bear in mind that the files will ALSO be in Windows or Mac's recent document list, and even if they weren't, the files will still be around and available. If they are not available, then just the name may not be much of a security bit (unless the file is called my_secret_bid_for_ibm.pdf or some such).
-
Compared to the ipad 2 how big is the ipad minis screen?
compared to the ipad 2 how big is the ipad minis screen?
It is absolutely not half the size. It's the same resolution as the iPad 2 with a screen size of 7.9 inches across the diagonal versus the 9.7 inches of the bigger iPad.
-
How to use the set full screen mode ?
hai...i' a newbie ..i hav one question ...how to use the set full screen mode for my application..
i found.
public void setfullscreenmode (boolean mode)
but when try in my application it error and other
canvas.setfullscreenmode(true);
actually i don't know where i should put this codei also found the coding it use like
setFullScreenMode (true);
but when i apply it ..it error because cannot resolve the symbol.
my question is which one i should use; declare the
public void setFullScreenMode (boolean mode);
first or use
setFullScreenMode (true) ;
or other way ..what i need to do to use setFullScreenMode
Maybe you are looking for
-
Widescreen w. DVI from Mac-Mini ?
I bought a new monitor (Philips 200W6CS) with 1680*1050 pixels , to replace a Belinea with 1200*1000 pix. When connected to the mac mini it gave a very clear picture but only for only 5 minutes, ending in sleep-mode, or "no signal". The same DVI-cabl
-
Editing Essbase SAI Error Message
Perhaps a weird question..... But in 11.1.1.3, is there a way we can edit the Error Message that Spreadsheet Add In returns to the user? In particular, when a user has more than 65K rows and performs an Essbase function, it will give the user a error
-
Discoverer Viewer Custom Servlet
Every time a user makes a request to the viewer I must verify the parameters of the request and add some other parameters to it. In order to do this i create a new servlet that recives the request, does the verification and after that it fordwards th
-
Hi Can any one is having the Material on MDM? Could you please send to my mail id [email protected] Regards, PKM
-
How to upgrade RMAN package RMAN.DBMS_RCVCAT ? Thank
$ rman target / catalog rman/rman@infra Recovery Manager: Release 10.2.0.1.0 - Production on Wed Nov 29 15:45:10 2006 Copyright (c) 1982, 2005, Oracle. All rights reserved. connected to target database: TRAN7 (DBID=3923896548) connected to recovery c