How realise customer F4 thourgh REUSE_ALV_GRID_DISPLAY

hell experts,
now i have a question while using FM reuse_alv_grid_display:i have showed my data through reuse_alv_grid_display, and want to realise customer F4 while a user press F4 in the ALV show,and the F4's data is catched from DB using some comumn value of this very line the user pressed as selection restrict,
and i want relise this question through this code
call function 'REUSE_ALV_GRID_DISPLAY'
   exporting
  I_INTERFACE_CHECK                 = ' '
  I_BYPASSING_BUFFER                = ' '
  I_BUFFER_ACTIVE                   = ' '
     i_callback_program                = g_repid
  I_CALLBACK_PF_STATUS_SET          = ' '
  i_callback_user_command           =  'DOUBLE_EVENT'
and the Double_event is as below:
form double_event using u_ucomm like sy-ucomm
                                       u_selfield type slis_selfield .
  if u_ucomm = '&IC1'.
    case u_selfield-fieldname.
   READ TABLE t_tab INDEX u_selfield-tabindex.
   CASE gt_out-vbeln.
      when 'VBELN'.
        read table gt_out index u_selfield-tabindex.
        set parameter id 'VL' field  gt_out-vbeln.
        call transaction  'VL03N'.
    endcase.
  endif.
endform.      
but the question is i cant triger the F4 ,when i press F4, a system F4 appears,
could you give me some advise to this, and is this solution possible to relise F4 ?
hope to receive your response, any words will give me lots help!
best regards !
from Carl!

Please go through the following code.
see if it helps you.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'DATAB'. u201C Field name in the database table A902
WA_fieldcat-checkbox = 'X'.
WA_fieldcat-datatype = 'C'.
ADD 1 TO wf_pos.
wa_fieldcat-col_pos = wf_pos.
wa_fieldcat-outputlen = '15'.
wa_fieldcat-reptext = 'START DATE'.
wa_fieldcat-coltext = 'START DATE'.
wa_fieldcat-seltext = 'START DATE'.
wa_fieldcat-tooltip = 'START DATE'.
wa_fieldcat-key = 'X'.
wa_fieldcat-icon = 'X'.
wa_fieldcat-f4availabl = 'X'. u201C F4 help to be made available.
wa_fieldcat-ref_table = 'A902'. u201C Reference Database table.
wa_fieldcat-edit = 'X'. u201C Editable tag
APPEND wa_fieldcat TO it_fieldcat.    
Alternative way when the field name is not present in the reference database table.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'DATAB'. u201C u2019DATABu2019 is not a field in Z-table u2018ZXYZu2019
WA_fieldcat-checkbox = 'X'.
WA_fieldcat-datatype = 'C'.
ADD 1 TO wf_pos.
wa_fieldcat-col_pos = wf_pos.
wa_fieldcat-outputlen = '15'.
wa_fieldcat-reptext = 'START DATE'.
wa_fieldcat-coltext = 'START DATE'.
wa_fieldcat-seltext = 'START DATE'.
wa_fieldcat-tooltip = 'START DATE'.
wa_fieldcat-key = 'X'.
wa_fieldcat-icon = 'X'.
wa_fieldcat-f4availabl = 'X'. u201C F4 help to be made available.
wa_fieldcat-ref_table = 'ZXYZu2019. u201C Reference Database table(Z-table).
wa_fieldcat-ref_field = 'BUDAT'. u201C Please specify the ref field from the Z-Table.
wa_fieldcat-edit = 'X'. u201C Editable tag
APPEND wa_fieldcat TO it_fieldcat.
In case the wa_fieldcat-fieldname = 'DATAB' is not present in the Z-Table then additionally specify the reference field wa_fieldcat-ref_field = 'BUDAT' which is present in the ref Z-table.
Note the data type of reference field must match.
In this case DATAB and BUDAT are of the same data type u2018DATSu2019.
Regards,
Abhi

Similar Messages

  • How to custom table field to be sortable at core form

    Hi,
    Can anyone provide the hint for the captioned topic.
    Example, R11i PO autocreate document form, column 'Requestor' is not sortable, how to custom it to be sortable?
    Thanks in advance.
    Rgds,
    CY

    Hi,
    Try this way,
    You shouldnt be writing two select statements into the same internal table. Also i dont see any use of perform getpr. so remove that and try
    DATA: BEGIN OF leban OCCURS 0.
    INCLUDE STRUCTURE ekpo.
    DATA END OF leban.
    DATA: BEGIN OF leban1 OCCURS 0.
    INCLUDE STRUCTURE ekpo.
    DATA END OF leban1.
    DATA new(1).
    SELECT-OPTIONS ldat FOR sy-datum. "NO-DISPLAY.
    parameters lopen like new AS CHECKBOX USER-COMMAND opn.
    parameters lclose like new as checkbox user-command cls.
    at selection-screen.
    if ldat is initial.
    message 'Enter a value' type 'W'.
    endif.
    IF LOPEN = 'X'.
    select single * from ekpo into leban where PRDAT IN LDAT AND banfn = lopen.
    if sy-subrc = 0.
    message 'PR OPEN' type 'S'.
    ENDIF.
    WRITE: / LEBAN-BANFN.
    endif.
    if LCLOSE = 'X'.
    select single * from ekpo into leban1 where PRDAT IN LDAT AND banfn eq space.
    if sy-subrc = 0.
    message 'PR CLOSE' type 'S'.
    ENDIF.
    WRITE: / LEBAN1-BANFN.
    ENDIF.
    Regards,
    Vik
    Edited by: vikred on Aug 7, 2009 6:55 PM
    Edited by: vikred on Aug 7, 2009 7:23 PM

  • How a custom component is called when we install a custom component in UCM.

    How a custom component is called when we install a custom component in UCM.
    On what event the component services will be activated and called.
    Suppose i create a Custom service name MULTIPLECHECKIN then this service will be called on what event and where it will be defined to call.

    Saurabh,
    the code is packed in the component (see component\Security Filter\java\Security Filter\ModifyAttributesFilter.java - the first Security Filter is the component name, the other Security Filter is the Java package name).
    What is important:
    - your class must implement the FilterImplementor interface (you will need UCM standard classes - server.zip in your classpath) and its doFilter method
    How the filter is executed?
    - actually, in this case you don't need any new service - you can use the standard 'hook', which is provided by standard checkin services
    - in Component Wizard create a new component, add your compiled class to it (make sure you follow the rules not to end up in classpath issues)
    - in Component Wizard click the 'Java Code' tab. Here you can add a Custom filter called validateCheckinData, which is executed by standard checkin services. If you parametrize the filter to call your class created above, you are done.
    'Working with Content Components' manual (e.g. here: http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/developer/using_components_10en.pdf) can give you a basic picture. A better resource is Bex Huff's book - I would recommend you to get it, because it has a step-by-step HelloWorld example which can guide you through Component Wizard. I could also send you my own component (send me an email at [email protected]) which implements a filter for user quotas, so you just need to "replace classes".
    As for the other half of your task, searching for the file in the database server will work only if you use database as your storage (ie. install and configure File Store Provider component accordingly). Of course, you could do a search for file in this case - just consider that you will be comparing two BLOBs rather than two relatively short check-sums (most likely strings or arrays of bytes). Besides, it will not work if you use filesystem as your storage.
    Jiri

  • How to custom SQL in ADF JDeveloper 10.1.3.3

    How to custom SQL in ADF JDeveloper 10.1.3.3 as follows,
    SELECT A.attribute1,
    A.attribute2,
    B.attribute1,
    B.attribute2,
    FROM table1 A,
    table2 B
    WHERE A.id = B.id
    Thanks
    sumury

    Hi,
    this isn't really a question as it is not obvious where you want to customize it. My initial idea was to suggest SQL Worksheet to you, but then this most likely isn't what you are looking for.
    http://blogs.oracle.com/shay/2007/03/02
    Frank

  • How See Customer Open & Closing bal one screen

    please suggest how see customer & vendor opening balance & closing balance in one screen in SAP & which T _code use for these transaction. 

    Hi Arnav,
    Please refer to the link given below.
    Customer/Vendor A/C with line item details and ... | SCN
    Hope this helps you.
    Regards
    Eugene

  • How does customer account gets debited when a billing document is made

    where it is configured that a particular customer master record gets debited when any billing in sales is done.
    is it  part of fi-sd config part.
    or fi part only
    sales a/c gets creditted due to vkoa t,code
    but how does customer a/c gets debited where

    Hi
    In SD you set up the account assignment to FI, the customer in SD is normal the same customer number as in FI. There are different other options possible, this is set up in the partner rol in SD. (like Payer).
    From SD there is an intertnal interface to FI/CO that use these settings
    This part of the settings is between FI and CO and should be done by sales and finance

  • How many customer records will Business Catalyst CRM hold? Thank you!

    How many customer records will Business Catalyst CRM hold? Thank you!

    Hi,
    To what I'm aware is that there no limit set as such and never had any issues earlier with the limit for CRM customers.
    Please let us know for any issues that you face doing so submitting a ticket via Help & Support button on your Admin console.
    Kind Regards,

  • How make custom window with flex 3 ?

    Recently version, I was maked custom window by used
    <mx:Application> instead of <mx:WindowedApplication>
    but <mx:Application> script does not work in flex 3
    beta 3 ...
    when I changed WindowedApplication to Application. design
    view was black out ..
    ofcourse, I changed systemchrome and transperate tag in
    app-xml .
    how make custom window ?
    sorry for my poor english ...

    Have you tried changing your root tag to WindowedApplication?
    I think AIR may not support using Application as the root tag. Is
    there a reason you want to avoid WindowedApplication?
    - Peter

  • How to custom add web sites to Top 6/12/24 ?

    Hi all, how to custom add web sites to Top 6/12/24 ?

    Press and hold the + icon in the URL/Address bar and select "Top Sites".
    or
    Move the mouse pointer to the + icon and do a 3 finger touch on the trackpad, then select Top Sites from the dropdown.
    For more info:
    https://support.apple.com/kb/PH19263?locale=en_US

  • How many Custom screens r allowed?

    HI Experts,
    Just curious to know, the following things,
    1 - How many (customer)screen exits are allowed by SAP in a Transaction, say Sales Order? Is it 9?
    2- Suppose, the requirement is like that, I kept a Push button on Sales Order transaction (SAP)screen, If I push this push button, I need to go to my_custom_screen and return back to SAP screen of Sales order screen. The whole process is Sales order transaction only! Is it possible, How?
    pls. clarify,
    thanq.
    Message was edited by:
            Srikhar

    There is no limitation to allow of custom screens.
    as you mentioned  Sales order
    Sales order will allow 4 custom screens
    2 for header level and 2 for item level
    Screens are Additional data A ,Additional data B
    Thanks
    Seshu

  • How Many Custom Ringtones

    How many custom ringtones can you sync to the phone? I have created several and no matter what I try I can only sync one at a time. When I select sync all ringtones it still only syncs one. Is this the way it is or am I missing something? Thanks!

    uncheck manually manage music

  • How Can Customer Service Go From Great to Poor Like This?

    Not sure of the correct sub-forum to post this in so I decided to post my experience here.
    I purchased a 55 inch Vizio TV off of BestBuy.com after my old TV blew a fuse and died back on January 11th and it scheduled for delivery on the 17th. Mainly because my work schedule conflicts with the 7am-7pm delivery times that Best Buy offers and they could guarnantee that it would be delivered by 8am on a weekday.
    I received an automated call around 8pm on ther 16th letting me know that my delivery was scheduled for the 17th sometime between 4pm and 7pm. The delivery drivers called me twice on the 17th, the first time was around noon, informing me that they would be at my apartment sometime between 6pm and 7pm. And again at 6:30pm letting me know they were 5 minutes away and would be there shortly. The delivery drivers showed, dropped off my new TV, took away my old one, and since it was extremely cold outside, I let the TV sit before hooking it up so that it could get to room temperature.
    All in all, I was satisfied with the experience. No issues whatsever, the delivery drivers were nice and once I had hooked the TV up it was great. I loved the new TV.
    Then a little over a month later on February 24th, a very large section of the TV (about 1/6th) of the screen, was all of the sudden darker then the rest of the TV. It wasn't completely blacked out, but the entire top left hand side of the screen was darker, in an almost perfect rectangluar shape, going from the left hand side to the middle of the screen and about 1/3rd of the way down. Almost like for that section the brightness level was set a lot lower then the rest of the TV.
    So I went into my local Best Buy, Store #295 on Morse Rd in Ohio, to ask them what the proper procedure was to get it fixed/replaced since I only had it for a little over a month and had purchased a 2 year protection plan on it. Since it was a 55 inch TV, I was given a number to call and told to talk with a Geek Squad Agent to schedule an appointment for someone to come out and look at it. I called the number and scheduled an appointment for that Saturday (do to work my schedule) for someone to take a look at it.
    Again, the people I talked to in Customer Service were nice and helpful in this situation. And the Geek Squad Agent himself, Alex that came out to my apartment on February 28th was excellent and helpful. Said it was a defective panel and since Vizio doesn't make replacement panels, it would have to be exchanged. Though apparently that day, the number he was trying to call in to get an exchange confirmation for was screwed up and apparently all calls being made into Best Buy (i'm not sure if he was calling the main headquarters or not) were all being re-routed to Consumer Relations regardless of what phone option he chose, and if he tried to get transferred it would get transferred back to Consumer Relations. So he had to wait till later hoping the phone system got fixed to get me a confirmation. It was around noon that he was at my apartment it wasn't until about 6pm that I call back and an e-mail from Alex giving me my exchange confirmation number. I know that the phone issue wasn't his fault, but he was very apologetic about the situation.
    He told me take the confirmation into any Best Buy and they would get me squared away with a new TV and schedule its delivery and pick-up the defective TV. Unfortunately, I was no longer at home and was about 2 hours away with family for the rest of the weekend. So on March 2nd, I went into my local Best Buy again, talked with Ebony and the Customer Service desk, who was helpful and polite. I gave her the exchange number, she got me all set up with a delivery date for March 7th (cause I couldn't be there at any point during the week) and I was on my way.
    Up to this point, even though I've had issues with the product I've purchased, everyone I've spoken with in regards to getting it fixed/replaced has been extremely polite and helpful. And then it all goes wrong apparently.
    Now, unlike when I first purchased the TV, I received no confirmations for my delivery. I didn't get any e-mail confirmations, no automated call the night before, and no calls from any delivery drivers the day of the delivery. So since I had heard nothing, I called my local Best Buy to see why I hadn't heard anything yet. It was around 3pm when I first called, it took 10 minutes for someone to answer the phone after going through the automated prompts, the person I talked to, whose name I can't remember took my info from my receipt and told me that he is showing me in the system as having being scheduled a delivery for the 7th and that my TV should be on the delivery truck. I asked him why I hadn't heard anything, he said he didn't know, that's all the information his system was showing him and to get more detailed info he would have to call the delivery company. Which to me means that its not Best Buy who is delivering the TV but a 3rd party company. He asked me if he should call them, but he didn't know how long it would take to get a hold of someone, but assured me that the delivery was on the truck and would be coming today.
    Thinking back I should have asked him to call, but I told him as long as you're telling me that you are verifying that its coming today thats fine, I was just concernced since I hadn't heard anything or gotten any confirmations except what was on my receipt. He said according to his system my delivery would be there today.
    Well, 8pm came around and I still hadn't had anyone show up, nor I had I received any calls. So I called back, talked to someone else, who then told me had to research it and call me back. 8:40pm I get a call back and am told that they have no idea what happened or why I didn't get my delivery today, but because its so late now they can't get a hold of anyone and would have to wait until tomorrow. And that if I didn't hear from them by noon to give them a call. So no one knows whats going on, their system gives them limited info, and no can answer my questions as to what happened.
    So today at 11:30am I get a call from Best Buy to tell me that the situation has been fixed and they've scheduled a new delivery date for the 14th. And that they still have no idea what happened in regards to the delivery not showing up yesterday. To me this in unacceptable, I still have no info as to what happened and no one can tell me what happened, a new delivery date was made without asking me first and it was made for another week from now. Why couldn't if be delivered today? And all this person could tell me, was that the Back Office Manager fixed the problem and I have new delivery date according to the note he had.
    Taking out my anger on an employee is pointless so I don't do it. I'm angry, but I also know that the people i'm talking to an on the phone aren't directly responsible. They were just handed the call or told to make a call. But something, somewhere got screwed up and the only response I get is the delivery has been rescheduled. If I had known that this would have have happened, I would have rented a U-Haul truck and brought the defective TV back and picked the new TV up myself. The whole reason I had it delivered was because I can't fit a TV this size in my car without causing damage to it or my car.
    Just how did I go from getting helpful employees with answers, to a bunch of people who don't know what's going on and can only say i'm sorry?

    Hello kschleper,
    Discovering that your brand new TV is quite working as it should would be incredibly disappointing, so I’m glad to hear we were able to offer you an exchange when repairing it wasn’t a viable option underneath your Geek Squad Protection plan.  It’s regrettable that the exchange delivery appointment didn’t go as smoothly as your first though, and I’m sorry for any frustration this may have caused.
    As you may be aware, you should have received a call from us either the night before or early morning of your appointment date. Upon review of your account information using the information you provided when registering for the forum, I noticed that we never had you scheduled for March 7th despite your receipt indicating otherwise. This could explain why our agents were unsure as to why your delivery appointment wasn’t on our schedule. I truly apologize for the oversight.
    Please know though I see that your new appointment is scheduled for March 14th, and I’ll be keeping an eye on it to ensure everything progresses as it should from here. If you have any further questions or concerns in the meantime, please feel free to let me know. I’ll be glad to help.
    Best wishes,
    Alex|Social Media Specialist | Best Buy® Corporate
     Private Message

  • How to custom my own gradient button independent of LAF?

    I want ot custom own button style independent of LAF. It should be painted with
    gradient colors. Something like metal LAF. Can you tell me how to do it?
    Thank you.

    There is a class called Gradiented and try and look at the source for the JButton in JDK1.5 this mite help
    import java.awt.Color;
    import java.awt.GradientPaint;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class GradientButton extends JButton {
            private Color color1;
            private Color color2;
            public GradientButton() {
                    this(Color.WHITE, Color.LIGHT_GRAY);
            public GradientButton(Color c1, Color c2) {
                    this.color1 = c1;
                    this.color2 = c2;
            public void setColor1(Color c1) {
                    this.color1 = c1;
                    repaint();
            public void setColor2(Color c2) {
                    this.color2 = c2;
                    repaint();
    //       Overloaded in order to paint the background
            protected void paintComponent(Graphics g) {
                    final Graphics2D g2 = (Graphics2D) g;
                    int w = getWidth();
                    int h = getHeight();
                    GradientPaint gradient = new GradientPaint(20, 0, color1, 20, h, color2,
                                    false);
                    g2.setPaint(gradient);
                    g2.fillRect(0, 0, w, h);
            public static void main(String args[]) {
                    JFrame frame = new JFrame();
                    frame.setSize(600,400);
                    GradientButton button = new GradientButton();
                    button.setForeground(Color.BLACK);
                    button.setText("Test");        
                    frame.getContentPane().add(button);
                    frame.pack();
                    frame.setVisible(true);
    }this is not my code i just cant remember the correct Thread of it i just saved it as i thought it would be of help some time down the line.
    hope this is what you wanted

  • How to "Custom conversion routine" in BW

    Hi team,
    The R3 table level field has converion routine which stores the value as "A" .
    When you display this in application (or) using ALV, it shows as "AB". There are custom function modules behind this conversion routine.
    In BW, when we extract until PSA, we are getting "A".
    I see the option at Info object level to write" conversion routine" but how and where to start this conversion routine in BW.
    In BW, we want to show "AB"
    Thanks
    Angelo

    Hi,
    this problem is solved in transformation PSA to InfoObject using formula or routine.
    Regards,
    Conrado
    www.forosap.com
    Spanish SAP Forum Administrator
    Edited by: Conrado Linquet on Mar 29, 2010 5:54 PM

  • How clear customer

    Dear All,
    I booked customer invoice in FB70 in currency PKR. but payment received in us Dollars. now i want to clear the customer account in f-32 but it doesnt allow me to do so.........
    while the dr and cr amount is equal and balance is zero but it still showing in open items.
    how to clear the customer in differnt currencies.?
    plz answer
    Regards
    Ahmed

    Hi,
    When the moment you finish choose open item for 1st customer and then you have to press F7 (Charge off diff.) new screen comes then press F6 (Choose Open Items), then enter required data for 2nd customer (such as customer code, doc number, etc). You can post partially, and residually for this clearing posting.
    Good luck.
    -dwih-

Maybe you are looking for

  • Purchase Order Authorazation for line item

    Hi All, i have to restrict user to see PO line item ,whose PR not created by them. means suppose there are 5 line item for one PO created from 5 different PR. 4 PR created by user X and 1 PR created by user Y. So i dont want to display PO 4 line item

  • Stored procedure returning multiple records without using SYS_REFCURSOR

    Hello, I am new to oracle stored procedures, have done stored procs in SQL server in past. I am trying to write single stored proc which will return multiple records. I have the stored proc as below and that is compiled without any errors. We don't w

  • Log Reader Agent error "could not execute sp_replcmds' and causes stack dump

    Publisher/Subscriber db:  SQL 2008 R2, 2000 compatability mode Distributor database is on separate server. (note:  There is another database on this instance that is running replication without error, it is not in compatibility mode) After snapshot a

  • Jtable printin problem

    i have jtable that contain too many column when i give printing through table.print() then table is print but it is too small to see it. i want some column of table on one page and some column on another page Plz give me source code so plz help me

  • Production to DR

    Hi all, How to move data from Production to DR farm. Please give idea and what should i follow. Thanks, Inguru