To populate another alv grid's field with value selected from search help

Hi,
I have two fields in alv grid, first column holds code and the second one holds code's description. Also I have a search help includes these two fields. The search help is attached to the first column. The requirement is, when I select a code from the search help, second column should be populated with selected code's description.
Any help will be appreciated. Thanks..

Hi,
have a look into Report: BCALV_EDIT_03.
Regards, Dieter

Similar Messages

  • ALV - refresh data after value is selected from input help

    Hello,
    I have input ALV where after I enter material number and press enter, the logic goes ahead and populates description column by utilizing ON_DATA_CHECK event.
    Is is possible to trigger some kind of event after the value is selected from search help without hitting enter key?
    When the user done with using search help and clicks on material number that he needs, the value is populated in ALV cell, and this is where I need some event trigger to fire the logic to get description without pressing enter.
    Thanks,
    Alex

    Alex, in that case, the alternative you have is to:
    - Create a Z structure where you have all the table fields
    - Bind the Standard DDIC search help to the Material ID (Importing) and the Description (Exporting)
    - Create the whole context node in WD referencing that DDIC structure.
    The important thing here is that the context node as a whole must reference the structure in order for this to work, not just the fields affected. This may not be possible or desirable in certain cases.
    If you do this, the Description will be populated by the SH through its returning parameter, so you wont have to do anything in WD to retrieve it as for the manual input + Enter cases.
    Here you have some help on SHs parameters:
    http://help.sap.com/saphelp_nw70/helpdata/EN/35/bdb6e2c48411d1950800a0c929b3c3/frameset.htm
    Hope this helps.
    Edited by: Alejandro Bindi on Sep 19, 2008 12:36 PM

  • Reg. can we display alv grid using field groups (extracts)

    Hi,
    can we display alv grid using field groups (extracts). is this possible. i have to develop a blocked alv.
    tnks
    Yerukala Setty

    No, you will need the data in an internal table to use ALV.
    Cheers
    Allan

  • Can we call ALV Grid in another ALV Grid

    Hi,
      I have a requirement where I have an ALV List Displayed and for this we have an User Command and the User Defined Button Placed on the ALV List displaya another ALV Grid. Now the user want an User Command to be activated on the Second ALV Report to call a Third ALV Report.
       Could someone tell me whether this is feasible if so how can it be achieved.
    Thanks & Regards,
    YJR.

    Hi YJR,
      As far as feasibility of the requirement is concerned it is very subjective to your business process.
      But yes, it is possible.
      Just give a different callback user command in the call to ALV and write another form.
      That should solve your problem.
    Regards,
    Ravi

  • Drill down capabilities for an alv grid display field using oops concept

    Hi All,
    could anyone help me in how to achieve the drill down capabilities for an alv grid display field using oops concept.
    Thanks & Regards,
    padmasri.

    padmasri,
    Hope your requirement is something like, when you click on a sales order number it should display that order (VA03), in a grid output displayed using set_table_for_first_display.
    you can acheive it using event double click.
    *&            L O C A L  C L A S S E S   -   D E F I N I T O N         *
    class lcl_event_receiver: local class to handle event DOUBLE_CLICK
    CLASS LCL_EVENT_RECEIVER DEFINITION.
      PUBLIC SECTION.
        METHODS:
        HANDLE_DOUBLE_CLICK
            FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
                IMPORTING E_ROW E_COLUMN.
      PRIVATE SECTION.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    *&    L O C A L  C L A S S E S   -   I M P L E M E N T A T I O N       *
    CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
      METHOD HANDLE_DOUBLE_CLICK.
        PERFORM HANDLE_DOUBLE_CLICK USING E_ROW
                                          E_COLUMN.
      ENDMETHOD.                           "handle_double_click
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    FORM HANDLE_DOUBLE_CLICK USING E_ROW    TYPE LVC_S_ROW
                                   E_COLUMN TYPE LVC_S_COL.
      DATA: LS_DETAIL LIKE LINE OF T_OUTPUT.
          WHEN 'T_OUTPUT'.
            READ TABLE T_OUTPUT   INDEX E_ROW-INDEX INTO LS_DETAIL.
    If clicked on PO Number or PO Item, call ME23
        IF E_COLUMN-FIELDNAME = 'EBELN' OR
           E_COLUMN-FIELDNAME = 'EBELP' .
          SET PARAMETER ID 'BES' FIELD LS_DETAIL-EBELN.
          SET PARAMETER ID 'BSP' FIELD LS_DETAIL-EBELP.
          CALL TRANSACTION 'ME23' AND SKIP FIRST SCREEN.
    If clicked on sales order number or item, call VA03
        ELSEIF E_COLUMN-FIELDNAME = 'VBELN' OR
               E_COLUMN-FIELDNAME = 'POSNR'.
          SET PARAMETER ID 'AUN' FIELD LS_DETAIL-VBELN.
          SET PARAMETER ID 'APO' FIELD LS_DETAIL-POSNR.
          CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
    Hope this helps

  • A function instead of UNBOUNDED PRECEDING (like "Last field with value=0")

    Hello,
    I have a table with many rows. The attributes of the table are code, month and value.
    For each code there are 12 months and 12 values.
    No I want to add the gaps between the months...
    Is it possible to count the following gaps between the different rows...?
    For example:
    Original table1:_
    code, month, value
    1,1,20
    1,2,0
    1,3,30
    1,4,0
    1,5,40
    1,6,0
    1,7,0
    1,8,20
    1,9,0
    1,10,10
    1,11,0
    1,12,0
    5,1,0
    5,2,20
    5,3,10
    description:*
    january value = 20
    february value = 0 (=>count this gap => new value 1 )
    march value = 30
    april value = 0 (=>count this gap => new value 1 )
    may value = 40
    june value = 0
    july value = 0 (=>count this two following gaps => new value 2 )
    agust value = 20
    september value = 0 (=>count this gap => new value 1 )
    october value = 10
    november value = 0
    december value = 0 (=>count this two following gaps => new value 2 )
    New target table:_
    code, month, value
    1,1,20
    1,2,*1*
    1,3,30
    1,4,*1*
    1,5,40
    1,6,0
    1,7,*2*
    1,8,20
    1,9,*1*
    1,10,10
    1,11,0
    1,12,*2*
    5,1,*1*
    5,2,20
    5,3,10
    I tried this code:
    select code, month
    sum(value) over (
    order by month
    rows between unbounded preceding and current row
    *) as final_value*
    from table1 order by month;
    This adds all following fields cumulative from beginning to current_row. But I need this adding only for the following gaps... then start with countin by 0.
    I need only the following like in the example on top. Maybe is there an other function like decode to count only the following gaps...!?
    A function instead of unbounded preceding....like "*Last field with value=0*" or something... ?
    Best regards,
    Tim

    TimB83 wrote:
    I have a table with many rows. The attributes of the table are code, month and value.
    For each code there are 12 months and 12 values.
    No I want to add the gaps between the months...
    Is it possible to count the following gaps between the different rows...?
    For example:
    Original table1:_
    code, month, value
    1,1,20
    1,2,0
    1,3,30
    1,4,0
    1,5,40
    1,6,0
    1,7,0
    1,8,20
    1,9,0
    1,10,10
    1,11,0
    1,12,0
    5,1,0
    5,2,20
    5,3,10
    description:*
    january value = 20
    february value = 0 (=>count this gap => new value 1 )
    march value = 30
    april value = 0 (=>count this gap => new value 1 )
    may value = 40
    june value = 0
    july value = 0 (=>count this two following gaps => new value 2 )
    agust value = 20
    september value = 0 (=>count this gap => new value 1 )
    october value = 10
    november value = 0
    december value = 0 (=>count this two following gaps => new value 2 )
    New target table:_
    code, month, value
    1,1,20
    1,2,*1*
    1,3,30
    1,4,*1*
    1,5,40
    1,6,0
    1,7,*2*
    1,8,20
    1,9,*1*
    1,10,10
    1,11,0
    1,12,*2*
    5,1,*1*
    5,2,20
    5,3,10
    ...Tim,
    you should post this question on the "SQL and PL/SQL" forum since it's a typical SQL question.
    There are probably much better ways to accomplish this and the guys over there will tell you, but here are two examples that might get you started:
    1. Pre-10g without MODEL clause
    with t as (
    select 1 as code, 1 as month, 20 as value from dual union all
    select 1 as code, 2 as month, 0 as value from dual union all
    select 1 as code, 3 as month, 30 as value from dual union all
    select 1 as code, 4 as month, 0 as value from dual union all
    select 1 as code, 5 as month, 40 as value from dual union all
    select 1 as code, 6 as month, 0 as value from dual union all
    select 1 as code, 7 as month, 0 as value from dual union all
    select 1 as code, 8 as month, 20 as value from dual union all
    select 1 as code, 9 as month, 0 as value from dual union all
    select 1 as code, 10 as month, 10 as value from dual union all
    select 1 as code, 11 as month, 0 as value from dual union all
    select 1 as code, 12 as month, 0 as value from dual union all
    select 5 as code, 1 as month, 0 as value from dual union all
    select 5 as code, 2 as month, 20 as value from dual union all
    select 5 as code, 3 as month, 10 as value from dual
    r1 as (
    select
            case
            when value = 0
            then 1
            else 0
            end as is_gap
          , case
            when value != 0
            then rownum
            else null
            end as grp_info
          , code
          , month
          , value
    from
            t
    r2 as (
    select
            last_value(grp_info ignore nulls) over (partition by code order by month) as grp
          , is_gap
          , code
          , month
          , value
    from
            r1
    select
            code
          , month
          , case
            when value = 0
            and (lead(value) over (partition by code order by month) != 0 or
                 lead(value) over (partition by code order by month) is null)
            then sum(is_gap) over (partition by code, grp)
            else value
            end as value
    from r2;2. 10g and later with MODEL clause
    with t as (
    select 1 as code, 1 as month, 20 as value from dual union all
    select 1 as code, 2 as month, 0 as value from dual union all
    select 1 as code, 3 as month, 30 as value from dual union all
    select 1 as code, 4 as month, 0 as value from dual union all
    select 1 as code, 5 as month, 40 as value from dual union all
    select 1 as code, 6 as month, 0 as value from dual union all
    select 1 as code, 7 as month, 0 as value from dual union all
    select 1 as code, 8 as month, 20 as value from dual union all
    select 1 as code, 9 as month, 0 as value from dual union all
    select 1 as code, 10 as month, 10 as value from dual union all
    select 1 as code, 11 as month, 0 as value from dual union all
    select 1 as code, 12 as month, 0 as value from dual union all
    select 5 as code, 1 as month, 0 as value from dual union all
    select 5 as code, 2 as month, 20 as value from dual union all
    select 5 as code, 3 as month, 10 as value from dual
    select
             code
           , month
           , value
    from
             t
    model
    partition by (code)
    dimension by (month)
    measures (value, 0 as gap_cnt)
    rules (
      gap_cnt[any] order by month =
      case
      when value[cv() - 1] = 0
      then gap_cnt[cv() - 1] + 1
      else 0
      end,
      value[any] order by month =
      case
      when value[cv()] = 0 and presentv(value[cv() + 1], value[cv() + 1], 1) != 0
      then presentv(gap_cnt[cv() + 1], gap_cnt[cv() + 1], gap_cnt[cv()] + 1)
      else value[cv()]
      end
    );Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Custom field in SRM as a dropdown field with values stored in R/3

    Hi all,
    I need help with custom drop-down field in SRM 5.0 shopping cart. We need to create custom field called Location in SRM goods receipt transaction. And this location field will be a drop-down field that will be filled with values from locations stored in R/3. I would really appreciate if someone can help me achieve this.
    Regds,
    Kim

    Hi,
       Just attach a  custom search help to this field and then in the search help EXIT(RFC enabled Function module) write the logic to reterive the values from R/3.
    BR,
    Disha.
    Pls reward points for useful answers.

  • Is it possible to prefix a field with value in search layout in CRMOnDemand

    Hi Folks,
    We have a requirment where customer wants to prefix Service Request No field with "489124-" in the search layout,so that the agent can type in the remaining part of the SR number in the search layout w/o having to type "489124" every time as it is same for every SR that is created in the system.
    Any help/ thoughts / ideas are appreciated.
    Cheers!!!
    Deepak Veearavalli.
    Edited by: Deepak Veeravalli on Nov 30, 2010 1:34 PM

    Hi,
    Thank you for your response. Am sorry I couldn't get what exactly you meant. I Would be greatful if you could provide/elaborate in detail as how it needs to be done. Also please provide an example as how to do that.
    Cheers!!!
    Deepak.

  • How can I modify the Contacts Template to display additional fields with out selecting "add field" everytime?

    How can I modify the contacts template in either iCloud, my iPhone, or my iPad to display additional fields that I always use ... example: How can I get Job Title to always be a fillable field with out selecting "add field" everytime?

    Let the HairSalon implement the java.lang.Comparable interface. You'll need to write code for
    public int compareTo(Object o1, Object o2)
    The compare method would cast the Objects to HairSalons and return the difference in price.
    Then use java.util.Arrays.sort(Object []);

  • How to delete entries from search help for a field

    hi guys
    how r u all doing.
    i have some questions for u.
    1. How can i delete some entries(from a list of many) from search help of a field with out (writing)going to a program.
    2.in PA10 (Personnel File),when i try to display data for a pernr,i am getting an error saying that infotype 122 doesnot exist.
    3.Again in Pa20,when i try to display data for a custom infotype,it leads me to short dump saying that load program does not exist.
    any help in this regard,wud be appreciated.
    thanks

    Follow this
    What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support

  • How to add Value Table or Search Help for a field which is on Standard SAP?

    Hi All,
        I have a field HERST (tcode IE01) which doesnt have any value table or search Help. I have the same field in a Z table which I should display for the standard screen field in tcode IE01. So Pls suggest me on this.
        Thanks in advance.
    Regards
    Jaker.

    Hi, Tamas,
    I found the reason. The function Z_WEBRFC_READ_DATA_SH had a string concatenation error.
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    The correct code is like:
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},{"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    Another question is, I can't get any words in Chinese from WebRFC. It returns error when I try it. How can I configure it?
    Xin

  • How to delete a field from search help which is delivered

    hi
    I got a requirement to delete a field from search help which is delivered long back
    Regards
    krishna

    Hi
    Whether it exists in DEV system or not?
    Take the name of that Search Help from PRD/Quality(if it is not there in DEV system) and modify/change it by removing that field from the search help in DEV system and create a Transport request and transport the same request to Quality/PRD systems
    Now the New changes (in which the field was removed) will be over written on the old search help in the PRD system, since it is the same Name (search help)
    Regards
    Anji

  • Probelm with Database View in Search help

    Save Environment. Save Yourself.
    Hi Experts!!
    We have a customized database view, which has 6 fields from KNA1 tabkle. Now I have added one more field T001-BUKRS. But this field is not appearing in search help tab. Can anybody tell me what can be the problem?
    Thanks a lot!!
    I'm not an environmentalist.  I'm an Earth warrior.

    Save Environment. Save Yourself.
    Hi Experts!!!
    I have got the problem. I didnot add the new field in search help
    Thanks a lot!!!
    I'm not an environmentalist.  I'm an Earth warrior.

  • Separating values for two fields which is have same search help

    Hi Folks,
    I have one requirement like this. i have 2 fields in MM02 t-code. if i see F4 for those 2 fields it is showing 7 values in that search help. both fields are having same search help so that it is showing same 7 values for these 2 fields. but i want to separate this. if i click on the first fields then it has to show first 3 fields and if i click 2 field it has to show rest 4 fields. can any one suggest what to do for this. these 2 fields are not having search help exit and this one im doing in ECC 6.0.
    Regards..
    kanna

    Hi Rajesh,
    Your are mention related to MM02 which is standard t-code. I am not sure it is possible for that. It can be restrict through code level only..
    Regards,
    Kumar

  • ALV Grid - more than six values in a dropdown-field?

    Hi,
    I have realised an alv grid with several fields that contain a dropdown-field as valuehelp.
    Although the dropdown-table has e.g. 20 entries there are shown only six entries on the alv grid. The user has to scroll through the values to choose another one. Is it possible to increase the number of shown entries of a dropdown-field on an alv grid?
    Thanks for help.
    Regards,
    Sven Keller

    Hi
    you can specify the output length of a column in the fieldcatalog by specifying this filed in your fieldcatalog slis_fieldcat-outputlen .
    And also one parameter i.e. slis_layout_alv-colwidth_optimize ,if you put this parameter as 'X' then it will optimize the column width depending on the content of your column.
    You need to set the OUTPUTLEN field in the feildcat, the field catalog is then passed to the ALV function call, or method call.

Maybe you are looking for

  • Issue with Supplier Open Interface Import Program

    Hello Folks, I need help with supplier conversion. I am trying to load suppliers through the supplier open interface program. I see that the record got rejected in AP_SUPPLIERS_INT table with status as REJECTED. However i do not see the record in AP_

  • How do you connect a USB MIDI keyboard to iPad Air?

    Hello, I can't get my USB keyboards to connect to my iPad Air.  I used to use the camera connection kit with my 1st gen iPad and it worked perfectly.  Now when trying to connect using my camera connector plugged into a lightning to 30 pin adapter wit

  • ITunes 10.5 won't work on Windows XP? PLEASE HELP!

    I upgraded iTunes to 10.5 on my PC that has Windows XP and the iTunes store immediately stopped opening.  Tries to load & remains on blank screen.  Music & Videos still work.  Could update apps via iTunes.  When you connect an iPhone/iPad it sticks o

  • Creation of Excel files using XSLT

    Hi frnds, From the blog provided by the Michal /people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible I came to know that we can create excel files using XSLT mapping but here inthis

  • Numbers: sorting by results

    i have a list, part of which are figures put in manually, others that are the result of a calculation. To sort that column, what I normally did in Excel was to export as txt file, then reimport, and then do the recalculation. What's the way to do it