I have used F4IF_FIELD_VALUE_REQUEST function module.but i am not getting t

Hi friends,
I have 2 screen fields EQUNR & EQKTX.i have attached custom help to EQUNR.when i select value from f4 help  then i want corresponding value from search help should get populated in the EQKTX field.
I have used F4IF_FIELD_VALUE_REQUEST function module.but i am not getting the result.
DATA: lt_return_tab      TYPE TABLE OF ddshretval.
  DATA: lw_return_tab      TYPE ddshretval.
  DATA: lv_equnr LIKE eqkt-equnr,
        lv_eqktx LIKE eqkt-eqktx.
  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
      tabname                   = 'EQKT'
      fieldname                 = 'EQUNR'
      searchhelp                = 'Z_EQKT'
      SHLPPARAM                 = ' '
     dynpprog                  = sy-repid
       dynpnr                    = sy-dynnr
     dynprofield               = 'GW_SCREEN-WPTXT'
      STEPL                     = 0
      VALUE                     = ' '
      MULTIPLE_CHOICE           = 'X'
      DISPLAY                   = ' '
      SUPPRESS_RECORDLIST       = ' '
      CALLBACK_PROGRAM          = ' '
      CALLBACK_FORM             = ' '
      SELECTION_SCREEN          = ' '
    IMPORTING
      USER_RESET                =
   TABLES
     return_tab                = lt_return_tab
    EXCEPTIONS
      FIELD_NOT_FOUND           = 1
      NO_HELP_FOR_FIELD         = 2
      INCONSISTENT_HELP         = 3
      NO_VALUES_FOUND           = 4
      OTHERS                    = 5
  IF sy-subrc = 0.
    READ TABLE lt_return_tab INTO lw_return_tab INDEX 1.
    IF sy-subrc = 0.
     MOVE lw_return_tab-fieldval TO lv_equnr.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = lw_return_tab-fieldval
        IMPORTING
          output = lv_equnr.
      SELECT SINGLE eqktx
        INTO lv_eqktx
        FROM eqkt
        WHERE equnr = lv_equnr AND
              spras = sy-langu.
      IF sy-subrc = 0.
        gw_screen-wptxt = lv_eqktx.
        gw_screen-equnr = lv_equnr.
      ENDIF.
    ENDIF.
  ENDIF.
Please provide the solution.

I have written the same code as you said but still its not giving me the equnr value.
DATA :  lt_dynpread1        TYPE STANDARD TABLE OF dynpread,
          lt_dynpread11       TYPE STANDARD TABLE OF dynpread,
          lw_dynpread1        LIKE LINE  OF lt_dynpread1,
          lw_dynpread11       LIKE LINE  OF lt_dynpread11,
          lt_return_tab1      TYPE TABLE OF ddshretval,
          lw_return_tab1      TYPE ddshretval,
          lv_equnr1           LIKE eqkt-equnr,
          lv_eqktx1           LIKE eqkt-eqktx,
         lt_eqkt            TYPE STANDARD TABLE OF eqkt,
          li_dselc       TYPE STANDARD TABLE OF dselc,
           lwa_dselc      TYPE dselc.
  TYPES: BEGIN OF lty_eqkt,
        equnr TYPE eqkt-equnr,
        eqktx TYPE eqkt-eqktx,
        END OF lty_eqkt.
  DATA: lt_eqkt TYPE TABLE OF lty_eqkt,
        li_dynpread    TYPE STANDARD TABLE OF dynpread,
        lwa_dynpread   TYPE dynpread.
  DATA:
        lg_condition    TYPE string.
  TYPES: BEGIN OF lty_eqktx,
           sign(1)   TYPE c,
           option(2) TYPE c,
           low       TYPE eqkt-eqktx,
           high      TYPE eqkt-eqktx,
          END OF lty_eqktx.
  DATA: lt_eqktx TYPE STANDARD TABLE OF lty_eqktx.
  DATA:lw_eqktx TYPE lty_eqktx.
  lwa_dynpread-fieldname = 'GW_SCREEN-WPTXT'.
  APPEND lwa_dynpread TO li_dynpread.
  CLEAR lwa_dynpread.
Read Screen Field Values.
  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname     = sy-repid
      dynumb     = sy-dynnr
    TABLES
      dynpfields = li_dynpread.
Read the first record as only one record will be present
  READ TABLE li_dynpread INTO lwa_dynpread INDEX 1.
  gw_screen-wptxt = lwa_dynpread-fieldvalue.
  CLEAR lw_eqktx.
  lw_eqktx-sign = 'I'.
  lw_eqktx-option = 'CP'.
  lw_eqktx-low = gw_screen-wptxt.
  APPEND lw_eqktx TO lt_eqktx.
  CLEAR lw_eqktx.
  IF gw_screen-wptxt IS INITIAL.
    SELECT equnr eqktx
         INTO TABLE lt_eqkt
         FROM eqkt.
  ELSE.
   MOVE 'EQKTX CP GW_SCREEN-WPTXT' TO lg_condition.
*lg_condition = GW_SCREEN-WPTXT.
    SELECT  equnr eqktx
         INTO TABLE lt_eqkt
         FROM eqkt
      WHERE eqktx IN lt_eqktx.
  ENDIF.
  lwa_dselc-fldname = 'F0002'.
  lwa_dselc-dyfldname = 'GW_SCREEN-WPTXT'.
  APPEND lwa_dselc TO li_dselc.
  CLEAR lwa_dselc.
  lwa_dselc-fldname = 'F0003'.
  lwa_dselc-dyfldname = 'GW_SCREEN-EQUNR'.
  APPEND lwa_dselc TO li_dselc.
  CLEAR lwa_dselc.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
  DDIC_STRUCTURE         = ' '
      retfield               = 'GW_SCREEN-WPTXT'
  PVALKEY                = ' '
      dynpprog          = sy-repid
      dynpnr            = sy-dynnr
      dynprofield            = 'GW_SCREEN-WPTXT'
  STEPL                  = 0
  WINDOW_TITLE           =
  VALUE                  = ' '
      value_org              = 'S'
  MULTIPLE_CHOICE        = ' '
  DISPLAY                = ' '
  CALLBACK_PROGRAM       = ' '
  CALLBACK_FORM          = ' '
  MARK_TAB               =
IMPORTING
  USER_RESET             =
    TABLES
      value_tab              = lt_eqkt
  FIELD_TAB              =
      return_tab             = lt_return_tab1
      dynpfld_mapping        = li_dselc
EXCEPTIONS
   parameter_error        = 1
   no_values_found        = 2
   OTHERS                 = 3

Similar Messages

  • HT1454 I have a speaker with I phone 30 pin dock, it use to work fine but i am not getting error saying accessory not supported,how i can determine what could be the problem

    I have a speaker with I phone 30 pin dock, it use to work fine but i am not getting error saying accessory not supported,how i can determine what could be the problem
    i am getting the same error with my rf transmitter that i use in my car

    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Did this start happening after an iOS update? Sometimes an iOS update will break compatibility.
    Sometimes this works:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                             
    - Restore to factory settings/new iOS device.

  • Functional module table parameters values not getting displayed in Java sys

    Hi,
    We are calling the Table parameter through Java code from functional
    module ZCRM_ICSS_PROJ_CUST_USR is not giving any rows value .If I execute
    the same functional module with passing the import parameter value User
    id: MLDL010 its giving value in CRM.
    I am checking Function module( Remote enabled ) in Debugging mode,
    before displaying values it is raising message like
    SY-MSGNR - 005
    SY-MSGTY - CRM_LINK
    in T100 Table
    SPRSL : EN
    ARBGB : CRM_LINK
    MSGNR : 005
    TEXT :'No Links corresponding to the specified data could be determined'
    Is that related to any communication problem CRM & JAVA ICSS System ?
    Regards,
    Pavan.

    The message in simple English just means that "You are doing something really bad" !!! It is absolutely not the communication problem, but understanding problem.
    Though you may be executing the same function using SE37 or in the webshop application through JCo, the runtime context is different and without knowing what exactly your Z rfc is doing, it is very difficult to help. To start with, the userid - that is who is running the RFC is different in both situations. In SE37, it is the logon user and in the web, depending upon whether the connection is stateless or stateful, it could be the anonymous ICSS user or the logged in user. Here again, if you have used UME, it is the user id and if you have used ALIAS user, then it is the alias user id. This is just an example. Your runtime context can be different due to many other reasons too.
    So, to make this simpler - what is that you are trying to do?
    BTW, try not to create multiple threads for the same issue..

  • I have got a mini ipod but i can not get it to work for facetime but i have got facetime on my ipod touch

    help please

    Also, this is the iPhone forum. You'll have better luck getting help if you post in the correct forum for your product.

  • My app is waiting.....  I have tried to delete it but i'm not getting the x in the left corner,I've also tried rebooting my Ipad but its still there.Any helpers?

    I have a ghost app waiting....cannot delete or reinstall.Help!!!

    This is my boilerplate post for apps that have the "waiting" icon problem. If you have tried any of these already, just skip those. However, it never hurts to try again.
    Tap on the "waiting" icon and try to pause the download. Then tap it again to resume.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.
    You can also try deleting the waiting icons - tap and hold down on an icon until it wiggles - the tap the X on the icon to delete it. Then try to download again.
    You can try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered.
    If all else fails, download the updates or the apps in iTunes on your computer and then sync the content to your iPad.

  • How to use BAPI_WARRANTYCLAIM_CHANGE2  function module

    i am unable to pass values to table  parameter.
    for above i have used WTY12_CLAIM_READ function module and i have give only cliam number as input and tried retriving other parameters(tables)
    from these i passed same table parameters to BAPI_WARRANTYCLAIM_CHANGE2  function module but unable to run it in se37.
    please just me any logic or solution to this.
    i am getting repeated error as :
    1)item types
    2)pricing
    3)partner
    if any one can send me a sample code to how to use these bapi .
    thanks,
    lokesh

    Hi Lokesh,
    I believe you are using the FM WTY12_CLAIM_READ_RFC to retrieve the claims related information by just passing Claim Number, and you are not getting any data back from the function module in the table parameters and you won't get any values as well, as there is no code in that function module.
    Thanks,
    Mahesh.

  • Sharing enabled with everyone, but they are not getting my recently purchased music. Can anyone help?

    Hi! I am the organizer of my apple "family". I have sharing enabled with everyone, but they are not getting my recently purchased music. Can anyone help?

    Hello alisannlh,
    Thank you for participating in the Apple Support Communities.
    If you have Family Sharing set up, but your family does not see shared purchases, make sure they're following the steps from this article to access your shared purchases:
    Sharing purchased content with Family Sharing - Apple Support
    If they follow the steps above and can't see or download your purchases, the troubleshooting steps in this article can help:
    If you don't see your family's shared content - Apple Support
    All the best,
    Jeremy

  • Sending mails to UWL using SO_NEW_DOCUMENT_ATT_SEND_API1 function module

    Hi all,
    is it possible to view mails send using SO_NEW_DOCUMENT_ATT_SEND_API1 function module to UWL?
    I am receving emails in my SAP Inbox.
    Please guide.
    thanks.

    Hi,
    You can only get the SAP mails into UWL notification tab with the Sonic connector (well of course with some custom development everything is possible).
    One trick to get the workflow for sending "mails" to UWL is to NOT use email sending step, but instead use a decision step in the workflow and send this work item to the user. The decision step can include the same message as the email, and have onl one option "Confirm" (or whatever). These you can easily display in UWL since they are normal work items.
    Regards,
    Karri

  • Error while using the function module..pack_handling_unit_dlvry

    Hi all...
    while using the function module pack_handling_unit_dlvry,
    we need to pass the handling unit number as per the functionality we require.
    but the mandatory field for the function module is the handling unit number in the form of bar code..
    so how to use this function module..
    All the useful answers will be regarded..
    Regards,
    Saroja.

    Have you tried using BAPI BAPI_HU_CREATE. Also view Function Module Documentation on its usage.

  • Issue with use of Function Module GUI_UPLOAD

    Hi Experts,
    I have an issue in using the Function Module GUI_UPLOAD for uploading the contents of an Excel file on the Presentation Server to an internal table in an ABAP Program.
    My file consists of around 300 records but the FM succeeds in uploading only the first 6 lines to the Internal Table specified while calling the FM.
    I dont have any idea why this happens. Any pointers in this direction will be helpful.
    Thanks in advance.
    Regards,
    Keerthi

    Hi,
    Kindly go through this link below:
    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=60655105
    Hope it helps you
    Regards
    Mansi

  • How can i use this  function module

    Hai
    How can i use this function module /SAPHT/SALES_ORDER_READ, already apply the some parameters in this function module, but it shows the error , please tell me, how to declare the parameters in this function module ,
    thanks
    neelima

    Hi
    For a particular sales order,you have to pass the order number and the item number in the sales order.
    It will display the rest of the values which u can capture them using internal tables.
    Regards,
    Vishwa.

  • URGENT ---- How to use BAPI_REQUIREMENT_CHANGE Function Module

    I want to change the Materail requirements through Txn MD62.
    Instead i am using BAPI_REQUIREMENTS_GETDETAILS Function Module.
    Using this I should use BAPI_REQUIREMENT_CHANGE Function Module.
    But the requirements are not getting changed.

    what kind of messages u are gettiing into the table RETURN ? u have to cross check this internal table .
    flow will be like this
    call  ' BAPI'
    if return[] is initial.
    commit work.
    else.
    do nothing.
    endif.
    Regards
    Peram

  • Get purchase order doc date using BAPI function module

    Hi,
    I have a .net windows application that uses BAPI_PO_GETDETAIL function module to get particular details of a PO in SAP. But i am not able to get the "Doc Date" for a particular PO. I am able to get all the details of items from the table "PO_ITEMS ". I used only 1 input parameter "PURCHASEORDER".
    Please help me to get this thing done
    .netframework : 4.0
    Language: C#
    Visual Studio: vs 2010
    Regards,
    Manosh Jacob

    Absolutely hynek petrak..
    Manosh Jacob You can go with the above technique.

  • How to Use ECC function Module

    Hi Experts - We need to execute the function module in ECC and need to write data in Oracle table.
    We are using BODS 4.0.
    How to use function module in data flow ? how it can work as a source ?
    I just need some basic steps how to use function module as a source and do the transformation to target.
    Thanks
    R

    Hi Ashwani,
    It is still not possible to use a FM as a source in DS.
    You can use a FM in a transformation but you have to start from a file or table as a source and load into a target (a FM can not be an end point of a dataflow - as it is used in the transformation and each transformation requires a source and a target.
    The scenario I described above was based on a situation where you have a source (flat file or table) and want to use a Function Module to transform your data and/or load the data in a transparant table in SAP.
    Your scenario is different, as your source is not a table/ff but a FM.
    In your case, I can see two scerio's:
    - Use an ABAP dataflow. Although I haven't got any experience with this I do believe this would be an option for your scenario. Please referer to the Data Services documentation on ABAP dataflows for further guidance.
    - As suggested earlier, you can create a bespoke (BW) Datasource based on a Function Module. Please refer to SAP help for creating a generic datasource:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    Depending on your scenario there might be a third option:
    - Use a SAP transparant table as a source. Create a transformation into the designated Oracle table. In the transformation call a FM which executes whatever logic you require. This solution will work if you have a table which produces the same number of records as your FM. If your function module produces more or less records (than there are in the transparant table), then this might become a bit tricky. It might work, but I have never tried it.
    Instead of a transparant table you can also use a table join, obviously. Perhaps part of the complexity of your FM could be resolved by using a join and you can create a new simpler FM for the remaining logic?
    Good luck,
    Jan.

  • How to release a transport request with warnings using a function module?

    Hi,
    I want to release a transport request(which has some warnings) using some function module .
    The warnign that i get when i try to release the Transport Request manually is "not all objects could be locked..."
    Which function module can I use so i can release such a transport request?
    I am currently using TR_RELEASE_REQUEST but I am unable to release the TR, it throws an exception.
    Also i wouls assume that the function module mentioned would take care of releasing all the unreleased task
    under the request.
    Regards,
    Bikash.

    Hello Bikash
    As an alternative (to cope with the warnings) you may use TRINT_RELEASE_REQUEST.
    However, since this fm offers only a single task/request as IMPORTING parameter you need to take care about unreleased tasks yourself. Looking at SE09/SE10 even there you do not have the option the release a request including all its tasks.
    Regards
      Uwe

Maybe you are looking for