Populate description in seacrh help

Hi All,
I have a requirement wherein i have 2 parameter fields on the selection screen, Matnr and Maktx.
Both these fields have search help attached to it.
I have to select a value through a search help for Matnr field, which i have completed.
Now in the secrh help of Maktx i should get the Matnr value selected and its corresponding Desciption only. The search help of Maktx should not show any other values and descriptions at all except for the Value selected in Matnr.
The Database table and the search help used is of Z type.
How do i go about doing this? I am posting how much of the code i have written.
******Data Declaration
DATA: return TYPE TABLE OF ddshretval WITH HEADER LINE.
******Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK block0 WITH FRAME TITLE text-000.
PARAMETERS: v_matnr TYPE matnr.
PARAMETERS: v_maktx TYPE maktx.
SELECTION-SCREEN END OF BLOCK block0.
******At Selection-screen on value-request.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR v_matnr.
  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
   EXPORTING
     tabname                   = 'ZMAT_DESC'
     fieldname                 = 'MATNR'
     searchhelp                 = 'ZDESC1'
     dynpprog                   = sy-repid
     dynpnr                     = sy-dynnr
     dynprofield                = 'V_MATNR'
    callback_program           = sy-repid
   TABLES
     return_tab                 = return
  EXCEPTIONS
     field_not_found           = 1
     no_help_for_field         = 2
     inconsistent_help         = 3
    no_values_found           = 4
     OTHERS                    = 5.
Regards,
Darpana.

hi
try this
Code:
PARAMETERS: p_ccgrp LIKE rkpln-ksgru. "Cost Center Group
*Input help for Cost Center Group
AT SELECTION-SCREEN ON VALUE-REQUEST   FOR p_ccgrp.
TYPES: BEGIN OF ty_ccenter_group,
setname TYPE setnamenew,
descript TYPE settext,
END OF ty_ccenter_group.
DATA: it_ccenter_group TYPE TABLE OF ty_ccenter_group.
CLEAR it_ccenter_group.
SELECT a~setname
b~descript
INTO TABLE it_ccenter_group
FROM setheader AS a INNER JOIN
setheadert AS b ON
asubclass EQ bsubclass AND
asetname EQ bsetname
WHERE a~setclass EQ '0101' AND
b~langu EQ sy-langu.
CALL FUNCTION 
'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
ret field        =  'SETNAME'
dynpprog     =  v_repid
dynpnr         =    SY-DYNR
dynprofield = 'P_CCGRP'
value_org    = 'S'
TABLES
value_tab   = it_ccenter_group.
F4IF_FIELD_VALUE_REQUEST:
This FM is used to display value help or input from ABAP dictionary. We have to pass the name of the structure or table (TABNAME) along with the field name (FIELDNAME). The selection can be returned to the specified screen field if three
parameters DYNPNR, DYNPPROG, DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = table/structure
FIELDNAME = 'field name'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNR
DYNPROFIELD = 'screen field'
IMPORTING
RETURN_TAB = table of type DYNPREAD
Getting F4 help based on other  field  .
Suppose  if there  are  2 fields on selection screen  user name and Purchasing Document  and  the case is getting values of  Purchasing Document Number  based on  user name
Code:
TYPES:   BEGIN OF ty_match_nast,
                objky TYPE na_objkey,
                END OF ty_match_nast.
Data: it_match_nast   TYPE STANDARD TABLE OF ty_match_nast.
Data: it_dypr_val   TYPE STANDARD TABLE OF dynpread.
DATA: wa_dypr_val  TYPE dynpread.
DATA: it_return TYPE STANDARD TABLE OF ddshretval.
Case when only username value is entered.
       SELECT objky
        FROM   nast
        INTO  TABLE it_match_nast
         WHERE kappl  = c_ef
         AND   kschl = c_neu
         AND   usnam = wa_dypr_val-fieldvalue.
      ENDIF.
*Read User name  on  selection screen field value
  CLEAR wa_dypr_val.
  REFRESH it_dypr_val.
  wa_dypr_val-fieldname = 'P_UNAME'.      "User name
  APPEND wa_dypr_val TO it_dypr_val.
*FM to get the value
  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname             = sy-repid
      dynumb             = sy-dynnr
      translate_to_upper = 'X'
    TABLES
      dynpfields         = it_dypr_val_h.
*Pass the values to f4 table
   CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
        retfield     = u2018OBJKY'
        dynpprog    = sy-repid
        dynpnr      = sy-dynnr
        dynprofield = 'P_EBELN'
        value_org   = 'P'
     TABLES
        value_tab   = it_match_nast
        return_tab  = it_return.

Similar Messages

  • Need to populate description  beside its selection screen

    Hi
    I need to populate description of the following field beside its selection screen.
    can someone guide and help..
    for eg:
    If i enter 1 in the selection screen. its following description shd be populated next to it
    Kamlesh

    I tried working on ur logic.
    the error which I am getting is as follows:
    Kindly help me with the error.
    the name of the comment can be up to 8 character long. can u help me wht shd i put
    code is below
    selection-screen: begin of line,
                      comment 1(7) p_shift_desc,
                      position 33.
                    position 1(8) COMMENT p_shift_desc FOR FIELD P_shtim,
                     COMMENT 13(35) p_sht_de.
    parameters :      p_shtime TYPE tc37a-kaptprog OBLIGATORY.  " Shift
    selection-screen: comment 50(40) p_sht_desc,
                      END OF LINE.
    atselection this is the code written.
    tables : tc37t.
      DATA : lv_shift TYPE tc37t-kaptprog.
            lv_shiftd type tc37t-ktext.
      SELECT kaptprog
          UP TO 1 ROWS
        INTO lv_shift
        FROM tc37a
       WHERE kaptprog EQ p_shtime.
      ENDSELECT.
      IF sy-subrc NE 0.
        MESSAGE e034 WITH text-002 p_shtime text-003.
      ENDIF.
      IF NOT p_shtime IS INITIAL.
        SELECT SINGLE * FROM tc37t  WHERE spras = sy-langu AND kaptprog =
        p_shtime.
        IF sy-subrc = 0.
          p_shift_desc = tc37t-ktext.
        ENDIF.
      ENDIF.
    ENDFORM.                    " validate_shift

  • New Z-table to auto-populate description based on the key field entered

    Hi Gurus,
    I have to created a z-table, there are several fields however I am interested in only two
    1) VSTEL and 2) PADEST for shipping point and the printer name. Also there are two other fields I have added to the table that are the descriptions for VSTEL and PADEST. Now the requirement is that when the user enteres a value in table maintenance ( sm30)
    for say VSTEL, then its description should auto populate or propose the right values. Same should happen for the PADEST and its description field.
    Thanks.

    Goto the Table maintenance generator of the Table.
    On this screen.
    Environment -
    > Modification -
    > Events
    Create New entry in the table with T = 05 and Z <any name>
    Save it.
    An editor button appears next to the from name.
    Click on it and create an include.
    Write your code in this include...
    select vstel
           padest
           from table XXXX into table I_XXXX
           where vstel = (Z_VSTEL)User enterd VSTEL in module pool.
    If sy-subrc = 0.
          loop at I_XX into wa_xxx.      
              if wa_xxx-vstel = Z_vstel.
                z_padest(Desc field in Tab maint) = wa_XXX-PADEST.  
              endif.
          endloop.
    endif.
    The same logic can be used to get the desc for VSTEL and PDEST.
    You can change this in many ways based on performance.
    The above code is just to give an idea...
    Regards,
    Kittu

  • Description for value help field for custom infotype field

    Hi,
       I`ve got to include a field in custom infotype. This field has got a value help attached to it. The values to be displayed in the value help are stored in the domain of the field(in the dictionary).
    The requirement is that once I select a value from the F4 help, the description for that value should be fetched and be dispalyed on the screen.
      I`m using the FM "<b>AM_READ_TEXT_ON_DOMAIN_VALUE</b>" to read the description from the domain ,but unable to make it display it on the screen.
      Can anyone suggest me as what should I do for displaying the description in the custom infotype screen.
    Regards,
    Farhana

    Hi anji,
       While using the "GET_DOMAIN_VALUES", I do get all the values from the domain. But I want only description to be displayed when I select a Value for that field.Kindly help out..
    Eg:
    1-Individual
    2-Family
    Then the description should be displayed as Family when I select the value 2 from the value help.
    Regards,
    Farhana.

  • Description on search help field get truncated by it input enable field

    Hi expert,
    I'm facing one problem, description of the fields on the search help dialog screen gets truncated by it own input fields. I want that full description of the fields should appear on the screen. what i need to do for that.

    my friend  ...  you are    refferning the field  in your program from the  field of   Ztable which  you have created  ....
    please  check the field  lable  and change it as  40  lenght in the  field label  give the   full  descrition  activate it  ...
    so that your problem will be solved ..
    see  for example  .
    i write  a  program in that  i use  parameter   declaration as
    tables :  pa0001 .
    parameters : d_pernr like pa0001-pernr.
    then in the MENU path   GOTO-TEXT ELEMENT   -> select the check  box from the dictionary ...
    it was  refferencing the field of  Long text  only  ....
    only thing  is we have  maintian the long text as 40 length and  descrition as what you want .
    reward  points if it is usefulll ,....
    Girish

  • Core Data PopUp won't populate...Please HELP!!!

    Hi all.
    Working through the Core Data Relationships Chapter 30 of Hillegrass' book.
    Can't get the Departments.xib, tableView Department column to populate the PopUp.
    Checked rechecked bindings, rebuilt the Xib five times. even Re-did the Relationships.
    Not sure add is calling..
    - (void)addEmployeesObject:(Employee *)value
    When add employee I can add first and last but Only: "No Value" available
    Any ANY hints or help would be greatly appreciated.. been on this chapter for two weeks!!!
    and it's freaking me batty!!!
    Help! thanks.
    Ian

    I'm actually on those forums a lot.
    and
    I downloaded the example files..
    and it actually generates an error.. after the second employee entry..
    HIToolbox: ignoring exception 'Unacceptable type of value for to-one relationship: property = "department"; desired type = Department; given type = Employee; value = <Employee: 0x2478d0> (entity: Employee; id: 0x246730 <x-coredata:///Employee/tE2856ABB-4F2A-4A98-BCB8-957B88DE47194> ; data: {
    department = nil;
    deptName = nil;
    employees = (
    firstName = jazz;
    lastName = fm;
    manager = nil;
    }).' that raised inside Carbon event dispatch
    etc....
    also noticed that every new entry generates a extra blank department entry kind of odd..
    also Rebuilt rebound this many times, in fact so many times, my pages are coming loose.
    but thanks, really do appreciate any help I can get..
    basically My tableview column doesn't popup with anything but "No Value"
    and won't let me select anything.. which is why I think
    - (void)addEmployeesObject:(Employee *)value
    isn't being triggered..
    well thanks..
    Ian

  • BPS: No description in F4 help

    Hello,
    I created a planning area and a web interface. In a variable 'Curency' I selected User-Specific Value. After that I select for a user a currency and use F4-help. In this help I could see all currencies values and there descriptions. I use this variable in the component 'Selector Variable' in the web interface. If I execute web interface and select F4-help for the currency-variable only values of currencies will display and not the descriptions. How could I display the corresponding descriptions of currencies? In infoobject 'Currency' the field 'short description' is filled.
    Many thanks for your help.
    Friedrich

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi
    <Br>
    If you double click on the Variable Selector in Web Interface Definition (T-code: BPS_WB) then you should be able to see its attributes. Please check what is shown in the attribute of Formatting. Do you have Text and Key selected here?
    <Br><Br>Hope it helps.
    <Br>
    <Br>
    Cheers
    Abhijit
    <Br>* It's a good habit to reward someone with points in SDN if you think his/her
    response was helpful to you
    </FONT>

  • How to populate values in F4 help based on another F4 help in a TMG

    Hello All,
    I have created a TMG for a table. Have added that to customization also. Now, in that table I have 2 fields say carrid and connid. In the F4 help of carrid, all carrids will be displayed. Now if the user selects one carrid, the next field connid should show only those connids related to carrid. How this can be achieved in a TMG. If in a module pool, we can write POV or etc. But in TMG, how can we ?
    Rgds,
    Renjith

    See the table maintaince has events ,you can write the code under events.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Table maintenance - auto-populate description field based on other field

    Hello,
    I have a custom table with 2 fields in it. Customer and Name. For customer field, I am using a standard customer search help. My requirement is when I search for a customer and select a customer, how can the name field be auto populated with customer name? I am looking for a best way to do this.
    Thanks,
    AV

    hi adrian,
    One method to achieve this functionality would be  :
    1. Find out the maintenance screen and function group of the table maintenance generator say 0001 and Z03_PRO_FN. ( u can find out by going into tables - > utilities -> tmg - to find Function group. for screen number- from TMG ->utilites->modifications->maintanence screen -> note the screen number).
    2. Go to SE80 and open Z03_PRO_FN screen number 0001.
    3. For field 1 - create a module in Process on Value Request Event in PAI of the maintenance screen ( Similar to any module pool program)
    call the FM F4IF_INT_TABLE_VALUE_REQUEST( In Process on Value request event of field 1 in PAI)
    4. Use FM DYNP_VALUES_Update to read the value of field 1 on the screen ( Because this is before enter is pressed and field 1 on the module pool porogram would not be populated with value ) and update the field 2.
    Regards,
    Sivaganesh

  • Refine product category seacrh help in Limits Screen; SRM7

    Hello All,
    We have a requirement to refine the  search help values on Product Category, in case of Limits in Shopping cart creation.
    I have tried to do this in the Limits screen web dnpro compenent by modifying the "Input value halp" option on  category ID field. Here I have tried using the "OVS"  with  usage as "LIMIT_HELP" which exists already.
    Also modified the correspodning event handler method "ONACTIONON_OVS" for event "ON_OVS".
    But this is resulting in dump. I have tried to debug this by setting the break   point in  this method but strangely it does not stop there. I guess the dump is occuring even before the event handler is called.
    Please let me know some pointers to this problem.
    Thanks,
    Pavan

    Solved the issue.

  • Premiere pro cs6 changes frame rate and changes audio pitch! Video in description! PLEASE HELP

    Im having awful issues with premiere and I cant figure it out! Please help! i have a video of my issues here! http://youtu.be/MaDj8fo6meE

    More information needed for someone to help... please click below and provide the requested information
    -Information FAQ http://forums.adobe.com/message/4200840
    What are you editing, and did you do this to be sure your sequence and video match?
    See 2nd post for picture of NEW ITEM process http://forums.adobe.com/message/3776153
    -and a FAQ on sequence setting http://forums.adobe.com/message/3804341
    Also, The tutorial list in message #3 http://forums.adobe.com/message/2276578 may help

  • Try to add a second ipod it will not populate in devices field, HELP!!!

    I have been using an ipod nano for 2 years. I just got a ipod touch 3months ago and its never worked. when i plug it into my (pc/windowsxp)it recognizes it as a camera and brings up abbyy finereader. I delete out of it and nothing happens??
    someone pleeeease help me!

    Hi,
    The Touch is not supposed to appear as a connected device, you have to deal with it through iTunes.
    Plug it in and start iTunes.
    Having said that you can retrieve saved photos from it as a "connected device" but I guess you don't really want to know that .... yet.
    Dud.

  • PO printout-missing material description-V Urgent help required

    Hi,
    I am facing a unique issue here.Some times when I create a PO it does not show the material description in the print preview and also in the printout.
    It happens sometimes only.
    When I try to create a another PO fro the same material it works perfectly okay.
    What could be the reason for this ?
    It's very urgent as it's affecting business.
    regards,
    manOO

    Hi Steve,
    The thing is that for my user some times the material description deos not appear irrspective of whether she saves the PO or see the preview first.
    It is not happening all the time.
    Also, when she creates new PO with same material again, it shows material description.
    I do not understand this.
    Since morning I have found one more issue.I could not see LOGO on the top of PO in preview or actual printout for all the POs. Be it already saved old O or created today.
    This is becoming a big issue now.
    Is this something to do with authorisations or what could be it ?
    PLease let me know if any alternative solution available or any specific thing missed ou.
    It's V URGENT
    Regards,
    manOO

  • Short description in F4 help

    Hello experts  ,
    I am trying to access the short text of Status in E070 , as i can see some short text when i F4 on the feild .
    I want to know i which table this short text is stored  .
    Example  :
    - Goto E070 table
    -  F8
    - In the status feild we may get the value D, A ,L etc with corresponding short text like 'Modifiable' etc 
    I would like to know in which table this text is stored .
    Note : Tried with DD03T , DD04T , DD07T  .
    Thanks ,
    Nusrat

    Those texts are built-in in the domain TRSTATUS
    To get them try FM DOMAIN_VALUE_GET
    Regards

  • Xml photogallery description problem plz help

    hai to all
    i am working on xml photogallery in flash mx 2004
    here everything is working fine the thumbs, main images ok
    now what i want is when i click on the thumbs the desc for
    pics should be displayed in desc box which is on top layer.
    heregallery is gallery.xml which is in /gallery/gallery.xml
    here is the code:-
    pic_mc._visible = false;
    my_xml = new XML();
    my_xml.ignoreWhite = true;
    my_xml.load("gallery/gallery.xml.xml");
    my_xml.onLoad = function() {
    rootElement = my_xml.firstChild;
    children = rootElement.firstChild.childNodes;
    //adding the main image node
    mainImageNode = rootElement.childNodes[1].childNodes;
    trace("mainImageNode="+mainImageNode);
    descNode = rootElement.childNodes[2].childNodes;
    trace(desc);
    hspace = my_xml.firstChild.attributes.hspace;
    //trace("hspace="+hspace);
    vspace = my_xml.firstChild.attributes.vspace;
    //trace("vspace="+vspace);
    nofimagesperrow =
    my_xml.firstChild.firstChild.attributes.nofimagesperrow;
    //trace(nofimagesperrow);
    nofimagespercol =
    my_xml.firstChild.firstChild.attributes.nofimagespercol;
    //trace(nofimagespercol);
    startx = my_xml.firstChild.firstChild.attributes.starty;
    //trace("startx"=+startx);
    starty = my_xml.firstChild.firstChild.attributes.starty;
    //trace("starty"=+starty);
    m = nofimagesperrow*nofimagespercol;
    //trace(m);
    duplicateMovie();
    function duplicateMovie() {
    l = children.length;
    for (var i = 0; i<l; i++) {
    pic_mc.duplicateMovieClip("pic_"+i, i*100);
    if (i<nofimagesperrow && i<nofimagespercol) {
    setProperty("pic_"+i, _x, i*hspace+10);
    setProperty("pic_"+i, _y, starty);
    if (i>=nofimagesperrow && i>=nofimagespercol) {
    setProperty("pic_"+i, _x, i*hspace-400+10);
    setProperty("pic_"+i, _y, vspace-starty);
    if (i>=nofimagesperrow*2 &&
    i>=nofimagespercol*2) {
    setProperty("pic_"+i, _x, i*hspace-800+10);
    setProperty("pic_"+i, _y, vspace*2-starty*3);
    this["pic_"+i].external_mc.loadMovie(children
    .attributes.thumb);
    this["pic_"+i].external_mc._alpha = 0;
    trace("mainImageNode"+i+mainImageNode);
    this["pic_"+i].image = mainImageNode
    .attributes.main;
    var text1:Array = new Array();
    text1 = descNode
    .attributes.desc;
    trace(text1);
    this.onEnterFrame = function() {
    for (var i = 0; i<children.length; i++) {
    if (this["pic_"+i].external_mc._alpha<100) {
    this["pic_"+i].external_mc._alpha += 5;
    if (this["pic_"+i].external_mc._alpha>100) {
    this["pic_"+i].external_mc._alpha = 100;
    delete this.onEnterFrame;
    this["pic_"+i].onPress = function() {
    //getting the custom proprty, which is imageID
    var imageToLoad:String = this.image;
    trace(imageToLoad);
    _root.holder_mc.loadMovie(imageToLoad);
    _root.holder_mc._xscale = 65;
    _root.holder_mc._yscale = 65;
    _root.holder_mc._x = 440;
    _root.holder_mc._y = 38;
    _root.desc_txt.text = text
    ;---here i am getting error. any corrections plzzzzz .. it is
    displaying undefined in the textbox which is dynamic one its var
    and instance is desc_text
    trace("="+desc_txt);
    here is xml file :-
    <?xml version="1.0" encoding="UTF-8" ?>
    - <photo >
    - <thumb nofimagesperrow="4" nofimagespercol="4"
    startx="10" starty="10">
    <pic thumb="humb/pic1.jpg" main="main/pic1.jpg"
    desc="this is 1 pic" />
    <pic thumb="thumb/pic2.jpg" main="main/pic2.jpg"
    desc="this is 2 pic" />
    <pic thumb="thumb/pic3.jpg" main="main/pic3.jpg"
    desc="this is 3 pic" />
    <pic thumb="thumb/pic4.jpg" main="main/pic4.jpg"
    desc="this is 4 pic" />
    <pic thumb="thumb/pic5.jpg" main=main/pic5.jpg"
    desc="this is 5 pic" />
    </thumb>
    </photo>

    i could not see anywhere "text",
    i think you are using "text1".
    just try this...
    _root.desc_txt.text = text1

Maybe you are looking for

  • What directories to delete before selling iMac

    I will be passing on my iMac to a family member but don't want to delete all the applications I have on it. I DO, however, want to delete any personal info/data. Can someone tell me which files/directories I should delete to make sure the system is a

  • How to use ServletAuthentication.weak(...)

    In order to have my application (behind a servlet) decide when to collect user credentials and when to login (authenticate), it appeared from the javadoc and from other postings and responses I've seen that I should be able to use the weblogic.servle

  • BDC for the Infotype 0585 in HR Module

    Hi , Iam facing problem in Uploading the Data into the Infotype 0585 ( Section 80 Deductions - Proposals ). Can i get any BDC to upload the Infotype 0585-Proposals. Points will be Surely Rewarded. Regards, N.L.Narayana

  • Where to find upgrade of mac os 9.0 up to 9.1 and 9.2

    In my pwrmac G4 I partitioned HD for 1) Mac OS X and 2) Mac OS 9. I had upgraded 9.0 to 9.2.2 a few years ago, when the upgrades (from 9.0 to 9.1 and from 9.1 to 9.2) were available from the Apple site. By mistake, these upgrades were recently replac

  • What is causing sound from Apple TV to cut out?

    I have switched to different HDMI input on the television and the problem moved also. No problems with cable in input.