How to put a dictionary field into an existing Search Help by calling FM

Hi All
I'm facing a problem when using  an existing search help in a screen input field. I'm not directly mentioning search help to that screen field. Instead of this i'm calling Function Module F4IF_FIELD_VALUE_REQUEST  like
      lv_tabname = 'Z_FBSTM_SHLP_EXIT'.
      lv_fieldname = 'SALES_AREA_CODE'.
      lv_searchhelp ='ZCP_SUBAREA_HELP'.
      lv_shlpparam = 'SALES_AREA_CODE'.
  ALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
      EXPORTING
        tabname                   = lv_tabname
        fieldname                 = lv_fieldname
        searchhelp                = lv_searchhelp
        shlpparam                 = lv_shlpparam
             dynpprog                  = sy-cprog
             dynpnr                    = sy-dynnr
In this  way i'm not getting proper output.
can you help me out.....
help will be rewarded.

I am giving the code   als  for the F4 help just  change  you fields and   and  table  of tha field   you will get it  .... and see the  module  in which  place  i had  write in the screen
<b>PROCESS ON VALUE-REQUEST( F4 ) statement</b>
Code to demonstrate how to perform a manual value help(F4) on a particular field using the PROCESS ON VALUE-REQUEST statement and how to return values back to a table control on the screen. For standard screen fields simply move the value to the appropriate screen field name
Screen flow logic........
PROCESS BEFORE OUTPUT.
*MODULE PBO_MODULE.
PROCESS AFTER INPUT.
*MODULE PAI_MODULE.
PROCESS ON VALUE-REQUEST. "F4
  FIELD EKPO-EBELP MODULE help_ekpo.
* populate screen field from within PROCESS ON VALUE-REQUEST(F4) call
*&      Module  help_responsibility  INPUT
*       text
MODULE help_ekpo INPUT.
**Transport values to table dynpro/screen table control
  DATA: l_stepl LIKE  sy-stepl,
        l_indx  LIKE  sy-stepl.
  DATA: dynpfields        LIKE dynpread OCCURS 5 WITH HEADER LINE.
* Adjust for scroling within table control
  CALL FUNCTION 'DYNP_GET_STEPL'
    IMPORTING
      povstepl        = l_stepl
    EXCEPTIONS
      stepl_not_found = 0
      OTHERS          = 0.
  l_indx = tc_ekpotable-top_line + l_stepl - 1.
          "tc_ekpotable should already have been declared
  REFRESH dynpfields.
  CLEAR   dynpfields.
  dynpfields-fieldname  = 'EKPO-EBELN'.
  dynpfields-fieldvalue = '00010'   "wa_ekpo-ebeln.
  dynpfields-stepl      = l_stepl.
  APPEND dynpfields.
  dynpfields-fieldname  = 'EKPO-EBELP'.
  dynpfields-fieldvalue = '00020'   "wa_ekpo-ebelp.
  dynpfields-stepl      = l_stepl.
  APPEND dynpfields.
  CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
      dyname     = 'SAPLZZ_EKKO'    "Program name
      dynumb     = '0100'           "Screen number
    TABLES
      dynpfields = dynpfields
    EXCEPTIONS
      OTHERS     = 0.
ENDMODULE.                 " help_ekpo  INPUT
reward  points if it is usefull ....
Girish

Similar Messages

  • How to put one Quanlity field into dimension(not keyfigure) in Mltprovider?

    Dear experts:
    We have one simple multiprovider based on material master. The query user want to see all the fields as free characteristics so that they can choose to put any field on the rows or columns.
    Now the problem is: in material master there are some quanlity fields so previously we defined them as key figures in the multiprovider. Today when I did a test I found seems I can not pull those quanlity fields into the dimensions.
    Can anybody give me a suggestion how to fix the issue?
    BTW, we must use multiprovider since it is a guideline to build query based on.
    Any post would be appreciated and thank you all in advance!
    Tim

    Hi Tim
    I assume common fields in borh 0MATERIAL and 0MAT_PLANT will hold same data for same record for example say you have common fields Material no, A and B then record in master data will look like
    0material                                                 0Mat_plant
    Material no A    B                                 Material no A    B
    1                 A1 B1                                1                A1 B1
    2                 A2 B2                                 2               A2 B2
    If my assumption is right then choose all such common fields as key for Infoset and then you can pull only one from both to your report and it should work fine.
    And yes in this case build your report on Infoset, but remember that for any material which does not exist in both the Masterdata object will not be deisplayed in report in this case.
    i am not sure if it is likely scenario for you but If you want to see such records then multiprovider is the choice, then your design might look a bit different.
    Let me know if this works
    Regards
    Sudeep

  • How to add a function field into the existing matrix report

    Hi,
    I have a matrix report , now i wanted to add one moe field into the matrix which is getting the value from a function , this function is a part of the ref cursor query(group) , i'm able to get the value from the function but it cannot display on the existing matrix report. i wanted to add this in the repeating frame which is printing down. how could i do this , looking for your help. thanks . bcj

    Here the scenario like,
    Data from Table_1
    NAME UNITS DAYS RATE
    AAA 10 1 1.2
    BBB 12 2 3.1
    AAA 20 2 4.1
    CCC 23 1 5.2
    Here, In the matrix report the NAME and UNITS are row fields and 'DAYS' is column field , RATE would be the cell field, and
    Data from Table_2 ,
    NAME BASIC
    AAA 2
    AAA 2
    BBB 2
    CCC 3
    In the report i have to display the 'BASIC' along with the NAME in row level ( repeating frame printing down),
    To get the multiple 'Basic' for each 'Name' using a ref cursor .
    and, using a function to do further calculation based on the basic value
    begin
    select basic into v_basic where name =:name;
    return(caluculated_value);
    end;
    and return the calculated value to the report. But at that time cannot accommodate the value in the matrix report with other groups frequency.
    looking for your valuable help. Thanks Bcj

  • How do I add a field into an existing form in SharePoint Designer 2010 and...?

    I'm trying to add an existing field to an existing form in SharePoint Designer 2010. It's a URL to the employee's photo. But each time I try to "Insert as picture" the url to the photo has a trailing comma. Why and more importantly, how do I get
    rid of it?
    Thanks!

    Hello,
    See this similar thread:
    http://sharepoint.stackexchange.com/questions/10149/comma-in-url-field
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to put the alv output into the spool request?

    Hi guys,
    How to put the alv output into the spool request?
    Thanks!

    Hi
    Sending an ALV List screen output to SPOOL
    Convert ALV list to PDF and send mails to respective persons
    Regards
    Pavan

  • How to put IPOD Shuffle I into Disk Mode ?

    How to put Ipod Shuffle I into diskmode ?

    When connected, in iTunes click on shuffle icon in Devices, then click on Settings tab. Scroll down and click the square in front of "Enable disk use", the adjust slider for amount of flash memory to reserve for data. Click Apply, and you're done!
    When you use iPod shuffle as a disk, the status light on the front of iPod shuffle blinks orange continuously, and the iPod shuffle disk icon appears on the desktop on the Mac, or as the next available drive letter in Windows Explorer on a Windows PC. Drag files to and from iPod shuffle to copy them.
    Ejecting iPod shuffle Important: If the iPod shuffle status light is blinking orange, you must eject iPod shuffle before disconnecting it from your computer. If you don’t eject iPod shuffle before disconnecting it, you could damage files on iPod shuffle.
    To eject iPod shuffle:
    Click the Eject (C ) button next to iPod shuffle in the iTunes Source list. If you’re using a Mac, you can also eject iPod shuffle by dragging the iPod shuffle icon on the desktop to the Trash.
    If you’re using a Windows PC, you can eject iPod shuffle by clicking the Safely Remove Hardware icon in the Windows system tray and selecting your iPod shuffle.

  • I loaded my ipad photos from camera and all the pictures sorted by date.  Next, I did a sync with my computer and the photos were all reorganized into IMPRT folders an out of date sequence.  Any idea how to put the photos back into date files?

    I loaded my ipad photos from camera and all the pictures sorted by date.  I later sync my ipad with my computer and the photos were all reorganized into IMPRT folders an out of date sequence.  Any idea how to put the photos back into date files other than reloading all of them from camera?

    What version of iPhoto?
    Select one and rotate it. Then rotate it back. Does that make it appear? 
    A much better work flow is the keep the photos after importing.  Check the success the import, wait for at least one successful backup cycle then use you camera's format command to reformat the card
    LN

  • How can i add Custom fields into the

    Dear Experts
    We have Ecc6.0 system,
    How can i add Custom fields into the Infotype Screen(PA30),i heard that we do it by PM01 Tcode.
    But in PM01 i am unable to find the enhance infotype tab.
    How can i do it ....pls help.....
    Regards
    Sajid

    Hi,
    Do it thru the third tab : Single Screen.
    There write down the infotype number (e.g. 0022) and say generate objects.
    Regards,
    Dilek

  • How to put an input field in ALV

    hi
    how to put an input field in ALV

    Hi
    There are 2 ways wherein you can make a field as input enabled.
    One is by setting the edit = 'X' in the fieldcatalog for that field.
    Loop at l_fcat.
    if l_fcat-fieldname = 'FIELD'.
    l_fcat-edit = 'X'.
    modify l_fcat.
    endif.
    Endloop.
    Second method is by using Styles by which you enable a field, disable a field or make it a pushbutton etc..Using Styles can be found in any basic document on ALV.
    Regards
    Navneet

  • How do I look up how to put Cafe townsend  tutorial into dreamweaver

    How do I ask how to put Cafe Townsend Tutorial into dreamweaver. I have a mac. The tutorial notes say follow this line
    (Mac OS X) Macintosh HD/Users/your_user_name/Documents/local_site. I don't understand what each section means. If someone called explain it that would be great as I ended up with an empty folder in dreamweaver with the name 'Cafe Townsend' on it. Thank you

    Right.  It's an empty local site folder until you put something into it. 
    Go to step 2.  Download and unzip the Check_Magazine.Zip files
    http://download.macromedia.com/pub/developer/check_magazine.zip
    Go to step 3. Copy the check_magazine folder into your local_sites folder (Cafe Townsend).
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.com/blogspot.com

  • I updated my itunes to ios 6.1.3 and now i do not know how to put music on my ipod...someone help!!!

    i updated my itunes to ios 6.1.3 and now i do not know how to put music on my ipod...someone help!!!

    If you  have iTunes 11 turn on the Sidebar. Go to iTunes>View and click on Show Sidebar. You can also do a Crtl+S to show the sidebar. The sidebar is where Devices appears. and Control+B to show the Menu bar
    To import music into your iTunes library on the computer go to iTunes>Help>iTunes Help>Add items to iTunes and follow the instructions
    To sync to your iPod go to iTunes>Help>iTunes Help>Sync your iPod.... and follow the instructions.

  • How to add one more field to an exist internal table

    hi abapers
    i am a very new abap programmer and just started learning it.
    i want to know How to add one more field to an exist internal table.
    lemme me put my question in a very simple way.
    i have a internal table having fields f1,f2,f3 and which also that internal also contains some data.
    now i want to add two more fields (mm & nn) to that internal table now.
    how can i do that.
    and i wanna know the websites names where i can find some brain teasing questions in abap programming.
    eagerly waiting for ur reply
    regards,
    Maqsood A Khan

    Hi, MAQSOOD.
    You can insert more fields in your internal table like this.
    refer this code snippet.
    DATA : BEGIN OF tbl_itab OCCURS 0.
            INCLUDE STRUCTURE zsdtc009.
    DATA :  vkorg   LIKE vbak-vkorg,  "inserted one
            vtweg   LIKE vbak-vtweg,  "inserted one
            vkbur   LIKE vbak-vkbur,  "inserted one
            vkgrp   LIKE vbak-vkgrp,  "inserted one
           END OF tbl_itab.
    you can also read the book "Teach yourself abap in 21 days"
    at http://cma.zdnet.com/book/abap/
    but that book is just about basic concept of abap and report program.
    it doesn't give a lecture for on-line program.
    you can get pdf version books(about abap, sap...things) from sap.
    http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
    I wish I could help you.
    Regards
    Kyung Woo.

  • Are Virtual Copies saved in Backups? How do I insert a backup into an existing catalog?

    Are Virtual Copies saved in Backups? How do I insert a backup into an existing catalog
    I deleted a tif image file that I didn't intend to, which had several LR virtual copies created from it. The virtual copies had a lot of important history that document my print preparation edits. Are these virtual copies saved in the LR backups?
    If so, how can I insert them into the catalog I am using? I have made a lot of edits in the two days since my last backup and don't want to lose that history either. Do you suggest I make a current backup before retrieving files from my last backup? I know I'm supposed to go to the backup location and open the last backup, but how do I blend that with the current work from the last 2 days?
    Any help would be most appreciated. Thanks, Tom

    Rob,
    That was exactly what I was after. However, I'm still having trouble getting the virtual copies imported. The master file was in my trash, I restored it to the original hard drive folder. Before I got your message I re- imported it to LR but of course LR came up with a new name since I was importing from and saving it to the same folder in LR. And of course no copies. This may have been a mistake, but before starting the procedure you described, I re-named the master file (it seemed that the import from backup would re-create it so I didn't want  a conflict).
    Then I did what you said and used the 'Import From Another Catalog' feature. I found the virtual copies in the backup and checked them. But when the import completed, the it gave me file names  xxx/Copy1, xxx/Copy2 but there was no image or history or metadata. When I tried to find the folder containing the files, it said it couldn't be found. So I missed something in the settings. When I tried again, there was a warning saying the file(s) exists in the catalog and its settings differ. I went ahead anyway and the message I got was "No Photos in previous import"
    Here's what the import from backup shows:
    A box with catalog contents and all the folders and files within them, that you can check.
    A New Photos section, which gives 2 file handling choices: a)add new photos to the catalog without moving them or b) don't import new photos
    A Changed existing photos section with 2 replace options: a) nothing or b) Metadata and develop setting only. If you choose this you can check a box to preserve old settings as a virtual copy.
    Not sure what to do. I changed the master file back to its original name, but that didn't make a difference. Suggestions? Thanks, Tom

  • How can we add additional fields to the BP Search RESULT screen?

    Dear Experts,
    How can we add additional fields to the BP Search RESULT screen so that the BP's being displayed in a search result show maintained values for the particular column/field?
    Thanks!!!

    Hi Laxman,
                           I got same requirement for ibase hierarchy.I want to add new fields in Ibase hierarchy AB.Do you have any idea regarding this.My requirement is that ,i want to dispaly a fields as a check box which display that this component is in under warranty or not by checking the box.Plz tell ,how can i add a new field in tree type context node.I add a new fields using AET ,but that is not available in that AB.
    Thanks
    Vishwas Sahu
    Edited by: vishwas sahu on Nov 17, 2009 1:51 PM
    Edited by: vishwas sahu on Nov 18, 2009 5:22 AM

  • How Can I get multi column values from dynamic search help?

    Hi Gurus;
    I'm using dynamic search help in my program.
    I want to get multi column values from search help. But I dont know solution for this issue.
    I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
    How Can I get multi column values from dynamic search help?
    Thanks.

    Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
    I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
    There are like 3 steps.
    You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
    Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined  (just to keep it straight, i will be putting here) data:  It_return type standard table of ddshretval.
    Next step is to call the function module. Make sure you have values in IT_VALTAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
            retfield        = 'FLD2'
            value_org       = 'S'
          tables
            value_tab       = It_VALTAB
            return_tab      = It_return
            dynpfld_mapping = It_dynpfld
          exceptions
            parameter_error = 1
            no_values_found = 2
            others          = 3.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        else.
          perform get_selected_fields tables It_return.
        endif.
    The code within the perform GET_SELECTED_FIELDS  - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
    I need a internal table as well as a work area here. like,
    data: lt_fields type table of dynpread,
            la_fields type dynpread.
      field-symbols: <fs_return> type ddshretval.
    so fill out LT_FIELDS from the IT_RETURN table
    loop at lt_return assigning <fs_return>.
        la_fields-fieldname = <fs_return>-retfield.
        la_fields-fieldvalue = <fs_return>-fieldval.
        append la_fields to lt_fields.
        clear: la_fields.
      endloop.
    Call the FM to update the dynpro
    call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname               = sy-repid
          dynumb               = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
        tables
          dynpfields           = lt_fields
        exceptions
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          others               = 8.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    good luck

Maybe you are looking for

  • Vendor text font needs to be changes to appear in PO header.

    Hi , I am trying to fit some vendor text (P. org level) from vendor master in PO header area. The PO header area is restricted and i dont want to change my PO form. So, i can currently fit only 3 - 4 lines of text while i need to fit 6 lines of text.

  • Open jsf page in new tab

    Please, could someone explain me how I can open jsf page on button click in new browser tab? I use JDev 11g.

  • HP G70 120EM Fan Replacement

    My fan is not blowing air out of the laptop. It's not spinning at all. I've tried using canned air to blow out dust but it had no effect. Does anyone have experience of changing the fan in a HP g70 laptop? I've looked at the manual and I have to take

  • Liability account in release r12

    hi, Can some one tell me where is the liability account defined at supplier main level? i can find the liability account in supplier site level but not in supplier main level Regards sudharshan

  • Can we access Oracle 10g R2 database from Oracle 11g Client

    Hi, Can any1 tell me can we access Oracle 10g R2 database from Oracle 11g Client ? I m unable to find a Oracle Client 10g R2 for Windows 7 32 bit. Below link is for Vista only http://www.oracle.com/technetwork/database/10203vista-087538.html