How to make a field in custom screen as display field in screen exit

Hi ,
I have created a screen exit for CO02 with a field for item text in header level as input field , when value is given and save button is cliked it gets updated in database but the problem is same field shows as input field in CO03 ( display mode ) .
Code which i have used .
in PBO
if sy-tcode = 'CO03'.
loop at screen .
if screen-name cs 'SUBSCREEN' or screen-name cs 'RESB-POTX1'.
( subscreen - screen name given in screen editor and   resb-potx1 field name given in screen editor )
SCREEN-INPUT = '0'.
modify screen.
endif.
endloop.
endif.
and even i tried in PAI too .....
if sy-tcode = 'CO01' or sy-tcode = 'CO02'.
update resb set POTX1 = RESB-POTX1
where aufnr = i_aufnr.
elseif sy-tcode = 'CO03'.
*oop at screen .
*f screen-name cs 'SUBSCREEN' or screen-name cs 'RESBD-SORTF'.
SCREEN-INPUT = '0'.
modify screen.
endif.
endloop.
endif.
but itshows as input field only ........how to make that custom field as display field in CO03

HI Andy,
Try this out.
FIrst check the sy-dynnr, if it is same as your custom screen number
in PBO of your custom screen
if sy-dynnr = 'YOUR_NUMBER' and sy-tcode = 'CS03'.
loop at screen
if screen-name = 'YOUR_SCREEN_NAME'
screen-input = 0.
modify screen
endif
endloop.
endif.
if it wont work they try using Tcode SHD0
Hope this will serve your purpose.
Regards
Ramchander Rao.K

Similar Messages

  • HOW TO MAKE THE SAVE BUTTON IN GREY MODE IN QA32 INTIAL SCREEN

    Dear friends,
    How to make the save button , in the tcode QA32  intial screen in GREY MODE.
    As  i don't want the screen variant created by me should not be seen by the user.

    Hi
    There is one option ,You can protect yor varient but not hide it.
    To protect>QA32>Mydefault>Varient Attibute>click on protect varient.
    If you select the field Protect variant, the variant can only be changed by the person who created it or last changed it.
    I hope this can be one of the solution
    Regards
    Sujit

  • Help, how to make Finder to refresh custom icon programmatically

    Hi
    I have two file both are same name, e.g. 1.rtf, but with different custom icon.
    When I copied the first 1.rtf to an USB drive, the custom icon was displayed correctly.
    However, when copied the second file to the USB drive to replace the first file, Finder still showed the custom icon of the first file.
    How can I solve this issue and how can I make Finder to refresh the custom icon programmatically.
    Thanks

    Hi KT, thanks your reply & help
    but result is same. The following is my experiment
    STEP 1: copy 1.rtf to USB drive, the result is OK.
    STEP 2: copy another 1.rtf to USB drive, Finder still showing the 1st file icon and a little bit blurred
    STEP 3: copy 3rd file without custom icon, the result is OK
    STEP 4: using following code to set its custom icon, the result is still show the custom icon of the 1st file
    [[NSWorkspace sharedWorkspace] setIcon:image forFile:[filePath stringValue]  options:nil];
    It seems that Finder will has some cache to store file's custom icon. If use "Force Quit" to relaunch Finder, it become correct but how can I use program code to refresh it without "Force Quit"?

  • Fields not greyed out in display mode in screen exit

    Hi all,
    i am working on an screen exit for CJ02 transaction. the values in the customer subscreen are getting updated in database and even it is reflecting in fields when viewed again. the problem is that in display mode (CJ03) the fields are still editable. though there is no save button, but the fields should be greyed out.
    i have tried to modify screen using LOOP AT SCREEN in the function exit provided in PBO.....but it is not picking the subscreen.
    please provide any solution as soon as possible.
    thanks in advance

    In the PBO in your screen exit:
    IF sy-tcode EQ 'CJ03'.
    LOOP AT SCREEN .
    if screen-name 'your field'
    screen-input = 0.
    screen-output = 1.
    MODIFY SCREEN.
    ENDIF.
    endif.
    what enhancement are you using?
    bye

  • How to make the first row  selected before the display of ALV grid

    Hello Experts,
    I created a ALV grid using custom container in a screen . Now i want do the follwing:
    1. i want that, the  <b>first line must be selected before the display of ALV.</b>
    2. I have selection buttons . But i dont want the multiselect button and the  
        standard  toolbar in the ALV grid.
    Could any one please help me regarding the above?
    Thanks & Regards
    Sudhansu

    can u pls explain in more details with an example?
    I am telling u the scenario.
    1. i have a screen(Modal dialog Box)  containing ALV grid with selection buttons for each row  (top part) and a subscreen(second part).
          Now when i click on a selection button, it will display the corresponding values in the subscreen.
        When this screen will display for the first time , then first row of the ALV grid should be selected and the corresponding values should be displayed in  the subscreen.
    i   wrote the following code in the PAI. But when i select a record its not triggering the PAI.
    DATA:
         gi_index_rows TYPE lvc_t_row, " Internal table for indexes of selected rows
         g_selected_row LIKE lvc_s_row, " Information about 1 row
         l_lines TYPE i.
      CLEAR g_wa_vdmeko.
    *get selected row
      CALL METHOD g_alv_grid->get_selected_rows
        IMPORTING
          et_index_rows = gi_index_rows.
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      LOOP AT gi_index_rows INTO g_selected_row.
        READ TABLE g_int_vdmeko INDEX g_selected_row-index INTO g_wa_vdmeko.
        SELECT SINGLE  *
               FROM vdmepov
               WHERE bukrs = g_wa_vdmeko-bukrs AND
                     styp  = g_wa_vdmeko-styp  AND
                     sbez  = g_wa_vdmeko-sbez  AND
                     svym  = g_wa_vdmeko-svym  AND
                     svnr  = g_wa_vdmeko-svnr.
      ENDLOOP.
    I am displayinng the ALV using method "set_alv_for_first_display".
    Please help if u have any idea..................
    Thanks
    Sudhansu

  • How to make all "allowed" clients visible at the log on/welcome screen at start of the computer

    Assuming this is controlled by the Active Directory Server 2012 R2..
    I allow 3 users to be able to log on to computer A.
    I now start computer A. At the welcome / start screen I only see the person who was logged on latest.
    However, it would be great to see which 3 users actually can log on to that computer, have their user pic and names
    on the welcome / start screen instead of the "latest logged on" and then click on the person you are to log on.
    How do I configure the Server 2012 R2, or Client computer, so they won't see last person logged on, but simply everyone
    who actually is able to log on?

    You are not going to be able to do this on a domain computer. You can disable the last logged on user prompt though. This would make the computer prompt for a username at all times. That group policy setting is called: Interactive logon: Do not display
    last user name and is available under Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options.
    If my answer helped you, check out my blog:
    Deploy Happiness

  • How to make the warp stabilizer analyze interlaced (upper + lower field) instead of progressive?

    I am having a little problem since I am new to Premiere pro.
    Until now I always used the warp stabilizer in After Effects for single shots in need of that. But this time, I was handed a project that requires a whole lot of stabilization. My plan is to drop the whole timeline (FCP 7/ProRes422 HQ Interlaced) via XML into Premiere Pro and apply the effect there to multiple clips.
    PROBLEM: When I do this, the warp stabilizer always (no matter how I interpret the footage or set the sequence) analyzes the footage progressively. At least that is what the effect preferences tab says during analysis.
    In After Effects I always see which field is beeing analyzed (it is indicated by a L and an U behind the frame count). Not so in Premiere Pro. Here it always seems to analyze full frames.
    I made a test and compared the results from After Effects and Premiere Pro: The file generated in Premiere Pro is much softer then the one out of After Effects even though I export both with the same output settings.
    Any help would be greatly appreciated !
    Regards, franse

    I just verified and the Description for Products (and possibly other objects too) are stored in table COMM_PRSHTEXT.
    The relevant Data element is COMT_PRSHTEXTX which has the domain PRSHTEXT40.
    If you look at this domain you have a parameter "lowercase" which is available as a flag option.
    <u><b>The explanation about this Flag is the following:</b></u>
    Lowercase letters allowed/not allowed
    If this flag is set, upper case and lower case are distinguished when you enter values with screen masks.
    Otherwise all the letters entered will be converted to upper case when you enter values with a screen mask.
    This mechansim is in effect for all the fields referring to this domain.
    <b>Solution would be</b> to verify if for this data-element the same Domain is used.
    If yes, you can flag this option in the domain.
    this should solve your problem.
    kind regards
    davy pelssers
    please reward if helpful.

  • How to make a page remember custom properties across user sessions

    I found that a page "remembers/maintains" its state - for example, all fields on the page are saved even if you click on hyper links to go to other pages and come back to your original page, it will still have the data you entered. This even works for data table and sorting.
    Now, if I add a custom property (i.e String customerID), then its value is not saved. As soon as I click on a link and come back to the same page, the value goes back to default value -- even when all the other components in the page have maintained it value/state.
    I could make the property in SessionBean, but then my SessionBean will look ugly with way too many properties (one for each RowSet parameter, i.e customerID, partID, userID, shipmentID, and 20 other IDs, etc..). In the examples, they have used SessionBean for this purpose. I thought that since all components of a page remember its state, then custom properties should do that too, why not?
    Message was edited by:
    Sabir

    In the examples, they have used SessionBean for this purpose. I thought that
    since all components of a page remember its state, then custom properties
    should do that too, why not?Many components can remeber it's state, even when not bound to a backing (session) bean, because there is enough information on the html code to let the FacesServlt rebuild them. Maybe with the aid of a hidden component you can keep some values without saving them in a backing bean.
    I guess that in your case you may generate more session o application beans, and in this way keep your code organized and your default session bean won't grow so much.
    Best regards
    Antonio.

  • How to make copy client with customizing but with no deleting appl.data

    Hello,
    Which profile of copy client i need if i want make copy customizing without deleting application data in target client.
    regards,
    Denis

    hello dennis,
    There is no way you can do that, you cannot copy only customizing onto a client without deleting the application data since there is no such profile in the client copy profiles to do so.
    Also, to me it seems a bit strange to keep the application data (which depends on customizing for integrity) and update the customizing with something else!
    However, still if you wish to do this, there is a crude way of doing it (theoratically). You could use the client copy by a transport request where in you club all your customizing transport requests into one single transport request using transport of copies and then use the client copy via transport request to copy the customizing.
    Here are the steps:
    1. Create transport of copies [click here|http://help.sap.com/saphelp_nw70/helpdata/EN/57/38e1a94eb711d182bf0000e829fbfe/frameset.htm]
    2. Copy the newly created transport request into the target client via copy by a transport request functionality.
    click the following link for the same:
    [client copy via transport request|http://help.sap.com/saphelp_nw70/helpdata/EN/69/c24c754ba111d189750000e8322d00/frameset.htm]
    Regards,
    Siddhesh

  • How to make my appointments / events appear on the home or lock screen

    After being spoiled with the Omnia and Droid I'm really missing this feature. appointments are the main reason I have a smart phone. But going into calendar to view upcoming events is counter productive. If you go into calendar then you didnt really need a reminder.
    I want the option to glance at my home screen and see the next 24hrs of appts. This feature has saved me a number of times as your reminded of appointmets everytime you get a call, check the time etc. Theses gotta be a fix or an app out there.

    It's currently not a feature of the iPhone, and third party apps from the AppStore are not able to effect the lockscreen. You can set an alarm for appointments but that is about it.
    You can make a suggestion to apple:
    Http://www.apple.com/feedback

  • How to make a dalog process custom events when blocked by modal dialog

    Hi,
    I would like to understand the way modal dialogs block other dialogs so that I can properly solve an issue I'm having with two modal dialogs, one blocking the other.
    I have an application, netbeans platform based, that opens a JDialog, NewDiskDlg, with it's modal property set to true. This dialog is responsible for starting a thread that will process a given number of files, from time to time, depending on some conditions, this thread will send events to the NewDiskDlg.
    When this thread is started, the NewDiskDlg creates a new JDialog, also with the modal property set to true. Both dialogs have the same parent, the main window. And this works as I expected, the second dialog, ActiveScanningDlg, opens on top of the NewDiskDlg and, until the thread stops, the dialog stays visible.
    When the thread stops an event is sent to this two dialogs signaling that the job has been completed, and here is my problem. The second dialog, the one that is visible when the event arrives, receives the event and executes the dispose() method, releasing control to the NewDiskDlg in the back, but the NewDiskDlg does not receive the event and does not process it correctly.
    I understand the no input can be sent to a blocked window, but does that include calling upon the window's methods?
    I've been looking for some help on this but my search terms are not good enough to provide me with any useful information. I've also read the topic on the focus system that is present in the Java Tutorial but I feel that that is not what I should be looking at.
    The following code is a snippet of the important parts that I described:
    NewDiskDlg has the following methods to process the events
        public void readingStarted(ReadingEvent evt) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    scanningDlg.showCentered();
        public void readingFile(ReadingEvent evt) {
            //DO NOTHING
        public void readingStopped(ReadingEvent evt) {
            Lookup.getDefault().lookup(MediaReader.class).removeListener(this);
            if (!showAgain) {
                dispose();
        public void readingAborted(ReadingEvent evt) {
            JOptionPane.showMessageDialog(this, "", "", JOptionPane.ERROR_MESSAGE);//TODO: i18n on the error messagens
            Lookup.getDefault().lookup(MediaReader.class).removeListener(this);
        }ActiveScanningDlg processes the events like this:
        public void readingStarted(ReadingEvent evt) {
            //DO NOTHING
        public void readingFile(ReadingEvent evt) {
            jpbReadingProgress.setString(evt.getCurrentFileName());
        public void readingStopped(ReadingEvent evt) {
            Lookup.getDefault().lookup(MediaReader.class).removeListener(this);
            dispose();
        public void readingAborted(ReadingEvent evt) {
            readingStopped(evt);
        }This is an example on how the events are sent:
        private void fireReadingFile(ReadingEvent evt) {
            for (ReadingListener l : listeners) {
                l.readingFile(evt);
        }

    Hi,
    You have to check the Tolerance limits set for the following tolerance keys. In case if any where the limit is breached the systems blocks the Invoice as 'R - Invoice verification'. Please check the limits set for all these keys.
    AP - item amount variance (if you have activated the item check)
    DQ and DW - for Quantity variance
    PP - price variance with the order price
    ST - date variance
    VP - Moving average price variance
    Regards,
    Kathir

  • How to make status strip to be always at the bottom of screen in Theme 2?

    Hi,
    I am using Builder Blue theme (theme 2) in APEX 4.1. It has a gray strip on a single tab page template. Could some body please help what kind of CSS style attribute should I apply to maket APEX place it at the bottom of the page even if there is not enough content to fill in the gap between tabs and this strip.
    Regards, Tamas

    Tamas Szecsy wrote:
    I am using Builder Blue theme (theme 2) in APEX 4.1. It has a gray strip on a single tab page template. Could some body please help what kind of CSS style attribute should I apply to maket APEX place it at the bottom of the page even if there is not enough content to fill in the gap between tabs and this strip.See +{message:id=3716643}+

  • How to make a form dynamic so that it displays different logos at runtime

    I am working on some assignment wherein I would like to make a form dynamic so that in it's designated image holder it displays different logos/pictures at run time? First of all is there such a possibility?? I am still very new to this forum and also trying to understand the logic/bindings/heirarchy etc. in LCD. Any input would be highly appreciated.
    Thanks in advance

    LC 7 or 8 does not help load logs at runtime. However you can associate all your logs at design time and control their visibility property based on the events. This may help fulfill the requirements you have to an extent however adding number of images at design time will increase the size of the template.

  • How to upload images in to custom table and display them in normal ABAP report?

    Hi Experts,
    Can anyone suggest me ,how to upload images into customised table and display thoes images in normal abap report.
    Thanks in Advance,
    Rgds,
    Anusha

    Hi Experts,
    Can anyone suggest me ,how to upload images into customised table and display thoes images in normal abap report.
    Thanks in Advance,
    Rgds,
    Anusha

  • Please show me how to make a java box pop up and display information!

    Hey people, Im trying to design an organiser in java using netbeans for a project. Iv made the initial GUI which is a box that loads up and it has my logo on it and below that a lable saying Personal Information. It has a View button next to it (iv named the variable view1 and it is a JButton)
    Im finding it really difficult to do. What i would like is another box that pops up allowing the user to enter their name, address, date of birth, current school year and car registration, and store the data entered into a text file.
    If anyone could help me with the code i would be really greatful, it would also help if you could comment next to the important code to help me understand whats going on.
    I would really appreciate it guys. thanks

    some worthless changes, just so it would run on my system.
    import java.awt.GridLayout;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.PrintWriter;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    public class Foo
        //  class attributes..
        private String[] labels = new String[]
                "Name", "Address", "City", "State", "Zip Code", "Phone", "Birthdate"
        JTextField[] fields;
        public Foo()
            super();
            fields = new JTextField[labels.length];
        public String[] getInformation()
            JPanel panel = new JPanel();
            panel.setLayout(new GridLayout(0, 2, 5, 5));
            for (int i = 0; i < labels.length; i++)
                fields[i] = new JTextField(10);
                panel.add(new JLabel(labels));
    panel.add(fields[i]);
    // allow the user to fill in the fields
    if (JOptionPane.showConfirmDialog(null, panel) == JOptionPane.OK_OPTION)
    String[] returnStr = new String[fields.length];
    for (int i = 0; i < returnStr.length; i++)
    returnStr[i] = fields[i].getText();
    return returnStr;
    else
    return null;
    public void writeToFile(String[] info)
    PrintWriter pw = null;
    try
    pw = new PrintWriter(new FileOutputStream(new File("data.txt")));
    for (int i = 0; i < info.length; i++)
    pw.println(labels[i] + ": " + info[i]);
    catch (FileNotFoundException e)
    e.printStackTrace();
    finally
    if (pw != null) pw.close();
    public static void main(String[] args)
    Foo f = new Foo();
    String[] results = f.getInformation();
    if (results != null)
    f.writeToFile(results);

Maybe you are looking for

  • Receive mail with POP3 and saving to file using XI

    Hello! I'm new to XI, could you help me with this "simple" task: Receive mail with POP3 and saving to file. Thanks!

  • Cursor for loop vs bind variable efficiency

    PL/SQL I am going to need to execute many sqls within a cursor for loop. Note: This is pseudo pl/sql code for csr_rec in cursor loop insert into tablea select [whateever] from tableb where column_name = csr_rec.field versus execute immediate 'insert

  • Browser Selection using Javascript

    Hi All, I am using a multi select ibrowser for a query data set.I am calling a function on selection of that item on browser. But on page load I need to take default as first row of that browser and need to call the function related to that. But i am

  • Password protection in m425mfp

    hi, i have HP M425dn i just want to know that if i set a password using IP adress in web abended then what is this password will protect only copy and scaning function on printer screen OR the printing  also will be protected ??  if this password pro

  • Saving for web remember button

    I have a piece of artwork that I regualarly amend and then save as a png file, however the image size is always too small. I have to change the image size every time and click apply. I have tried clicking Alt and remember but it is always the same ne