Help with DYNP_VALUES_READ and DYNP_GET_STEPL in search help exit

Hi,
I'm coding a search help exit for a field on a table control and I need to get access to the value of another field that's on the same line in order to limit the hit list.  I can use DYNP_VALUES_READ to return the values from the step loop, but I can't find out which line of the step loop I'm on.  DYNP_GET_STEPL always returns 0, presumably because I'm now in a function group and the step loop is getting reset.  Any ideas?
Thanks in advance,
Andrew

I want to read EBELP and INFNR.
Below is code that i'm using:
      MOVE 'MEPO1211-EBELP' TO t_campos-fieldname.
      APPEND t_campos.
      MOVE 'MEPO1211-INFNR' TO t_campos-fieldname.
      APPEND t_campos.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          DYNAME                          = 'SAPLMEGUI'
          DYNUMB                          = '1211'
        TABLES
          DYNPFIELDS           = t_campos
        EXCEPTIONS
          INVALID_ABAPWORKAREA = 1
          INVALID_DYNPROFIELD  = 2
          INVALID_DYNPRONAME   = 3
          INVALID_DYNPRONUMMER = 4
          INVALID_REQUEST      = 5
          NO_FIELDDESCRIPTION  = 6
          INVALID_PARAMETER    = 7
          UNDEFIND_ERROR       = 8
          DOUBLE_CONVERSION    = 9
          STEPL_NOT_FOUND      = 10
          OTHERS               = 11.
      READ TABLE t_campos INDEX 1.
      l_ebelp = t_campos-fieldvalue.
      READ TABLE t_campos INDEX 2.
      l_infnr = t_campos-fieldvalue.
The sy-subrc = 0, but the FM didn't bring the values of the screen fields. Is there some wrong with the filed name?
Thanks.

Similar Messages

  • Inconsistancy between CRMD_ORDER and ICWebClient in search help

    In this ICWCShowF4Help - Doco I asked about calling a search help from the ICWebClient. I now have that working but there is an inconsistancy about how it is working in from CRMD_ORDER and from the Web Client.
    The search help is the one associated with field CRMT_PRIL_QUERY_ICWEB_MAIN-CATEGORY_ID ie search help CRM_PROD_CATEGORY
    This produces a list of product categories with texts from CRMD_ORDER. Inside the Web Client the same search help is omitting the texts and they cannot be searched.
    Does anyone have any clues, notes or ideas about this behaviour?
    Any ideas or pointers will be gratefully received and rewarded.
    Kind regards,
    Nigel James

    Step:1
    In the View  just add the code for a search help,for example
    <!-- Code for input box with search help,just replace structure name and -->
    <!fieldname by the actual structure and field name created in se11.>
                                 <crmic:inputField id = "ID"
                              maxlength = "40"
                              width     = "100%"
                              value     = "<%= Variablename %>"
                              showHelp  = "FALSE"
                              onValueHelp =
    "ICWCShowF4Help(<%= mpage_context->m_page_id %>_FieldName,<%= mpage_context->m_page_id %>_MaterialText,'StructureName-FieldName','','<%= mpage_context->m_page_id %>')"
                              disabled  = "TRUE"
                              />
    Step:2
    Go to se11 create a structure with the respective field and attach the search help to that field and appropriately check exp imp in the field.The important thing here is that the secondary search help should not be used here.I suggest rather define a view and use it in  the structure.
    thanks,
    ashish.

  • LPOS AND SPOS in search help

    Hi,
             Can anyone tell me whts the use of LPOS and SPOS in search help.
    I have read the help but not getting it exactly.
    Thanking u all.
    Regards,
    kavita

    <b>LPOS</b> -> Position of field in search help results report/table.
    <b>Explaination .</b>
    when you data  is displayed  in the F4 help   that time it will  be   based on the  LPos   position .
    <b>SPOS</b>-> Position of field in search help restriction screen.
    <b>Explaination .</b>
    When  you press the F4  button the   selection screen will be  displayed   with  fields of the Search  attached to that Field ....there   the order  of the field  in the selection screen  was determined by the  SPOS  .
    <b>Note:</b>  If  you read  10  time   again and   agani  slowly  you will better understand the Definition of the line  of LPOS & SPOS
    <b>Example  :</b>
    search help  ztest
    1. matnr      spos = 2  , lpos = 1
    2. maktx      spos = 1  , lpos = 3
    3. meins     spos = 3  , lpos = 2
    Then 
    use the above search help  for table field   or for  report parameter .
    then    when  you press  F4  ... the selection screen  will be  displayed  with
    SPOS
    <b>
    1.MAKTX
    2.MATNR
    3.MEINS</b>
    When  press  enter   you will see the   data displayed for  above  fields as 
    LPOS
    <b>1.MATNR
    2.MEINS
    3.MATKX</b>
    reward  points if it is usefull....
    Girish

  • Help with Mathscipt and for loop

    I have a code in Mathscript/matlab and I need to output the array out. One option is my first code,the other option is using a for loop, but I am only getting the last ouput out. I need to get the whole output out.
    Any help.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Help with Mathscript_for loop.vi ‏115 KB
    Help with Mathscript_for loop2.vi ‏84 KB

    Here's how it should look like.
    Message Edited by altenbach on 10-30-2008 05:12 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    MathscriptInFOR.png ‏15 KB

  • Help with writing and retrieving data from a table field with type "LCHR"

    Hi Experts,
    I need help with writing and reading data from a database table field which has a type of "LCHR". I have given an example of the original code but don't know what to change it to in order to fix it and still read in the original data that's stored in the LCHR field.
    Basically we have two Function modules, one that saves list data to a database table and one that reads in this data. Both Function modules have an identicle table which has an array of fields from type INT4, CHAR, and type P. The INT4 field is the first one.
    Incidentally this worked in the 4.7 non-unicode system but is now dumping in the new ECC6 Unicode system.
    Thanks in advance,
    C
    SAVING THE LIST DATA TO DB
    DATA: L_WA(800).
    LOOP AT T_TAB into L_WA.
    ZDBTAB-DATALEN = STRLEN( L_WA ).
    MOVE: L_WA to ZDBTAB-RAWDATA.
    ZDBTAB-LINENUM = SY-TABIX.
    INSERT ZDBTAB.
    READING THE DATA FROM DB
    DATA: BEGIN OF T_DATA,
                 SEQNR type ZDBTAB-LINENUM,
                 DATA type ZDBTAB-RAWDATA,
               END OF T_TAB.
    Select the data.
    SELECT linenum rawdata from ZDBTAB into table T_DATA
         WHERE repid = w_repname
         AND rundate = w_rundate
         ORDER BY linenum.
    Populate calling Internal Table.
    LOOP AT T-DATA.
    APPEND T_DATA to T_TAB.
    ENDLOOP.

    Hi Anuj,
    The unicode flag is active.
    When I run our report and then to try and save the list data a dump is happening at the following point
    LOOP AT T_TAB into L_WA.
    As I say, T_TAB consists of different fields and field types whereas L_WA is CHAR 800. The dump mentions UC_OBJECTS_NOT_CONVERTIBLE
    When I try to load a saved list the dump is happening at the following point
    APPEND T_DATA-RAWDATA to T_TAB.
    T_DATA-RAWDATA is type LCHR and T_TAB consists of different fields and field types.
    In both examples the dumps mention UC_OBJECTS_NOT_CONVERTIBLE
    Regards
    C

  • HT4882 hi apple it's kian ! i have mac book air with 10.7.2 version may keyboard light does'nt work with f5 and f6 ! please help me !

    hi apple it's kian ! i have mac book air with 10.7.2 version may keyboard light does'nt work with f5 and f6 ! please help me !

    Hello Kian,
    This may sound silly but if you put your hand over the isight camera, do the lights change on the keyboard?
    Ryan

  • TS3297 i bot a 3g iphone 2nd hand and it is trobleing a lot with os and not working plese help me

    i bot a 3g iphone 2nd hand and it is trobleing a lot with os and not working plese help me

    The following guide gives information on how to sync ringtones from your computer to the phone. The reference section at the bottom of the quide also gives instructions on how to convert a song to a ringtone. https://discussions.apple.com/docs/DOC-3792

  • Help with count and sum query

    Hi I am using oracle 10g. Trying to aggregate duplicate count records. I have so far:
    SELECT 'ST' LEDGER,
    CASE
    WHEN c.Category = 'E' THEN 'Headcount Exempt'
    ELSE 'Headcount Non-Exempt'
    END
    ACCOUNTS,
    CASE WHEN a.COMPANY = 'ZEE' THEN 'OH' ELSE 'NA' END MARKET,
    'MARCH_12' AS PERIOD,
    COUNT (a.empl_id) head_count
    FROM essbase.employee_pubinfo a
    LEFT OUTER JOIN MMS_DIST_COPY b
    ON a.cost_ctr = TRIM (b.bu)
    INNER JOIN MMS_GL_PAY_GROUPS c
    ON a.pay_group = c.group_code
    WHERE a.employee_status IN ('A', 'L', 'P', 'S')
    AND FISCAL_YEAR = '2012'
    AND FISCAL_MONTH = 'MARCH'
    GROUP BY a.company,
    b.district,
    a.cost_ctr,
    c.category,
    a.fiscal_month,
    a.fiscal_year;
    which gives me same rows with different head_counts. I am trying to combine the same rows as a total (one record). Do I use a subquery?

    Hi,
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    user610131 wrote:
    ... which gives me same rows with different head_counts.If they have different head_counts, then the rows are not the same.
    I am trying to combine the same rows as a total (one record). Do I use a subquery?Maybe. It's more likely that you need a different GROUP BY clause, since the GROUP BY clause determines how many rows of output there will be. I'll be able to say more after you post the sample data, results, and explanation.
    You may want both a sub-query and a different GROUP BY clause. For example:
    WITH    got_group_by_columns     AS
         SELECT  a.empl_id
         ,     CASE
                        WHEN  c.category = 'E'
                  THEN  'Headcount Exempt'
                        ELSE  'Headcount Non-Exempt'
                END          AS accounts
         ,       CASE
                        WHEN a.company = 'ZEE'
                        THEN 'OH'
                        ELSE 'NA'
                END          AS market
         FROM              essbase.employee_pubinfo a
         LEFT OUTER JOIN  mms_dist_copy             b  ON   a.cost_ctr     = TRIM (b.bu)
         INNER JOIN       mms_gl_pay_groups        c  ON   a.pay_group      = c.group_code
         WHERE     a.employee_status     IN ('A', 'L', 'P', 'S')
         AND        fiscal_year           = '2012'
         AND        fiscal_month          = 'MARCH'
    SELECT    'ST'               AS ledger
    ,       accounts
    ,       market
    ,       'MARCH_12'          AS period
    ,       COUNT (empl_id)       AS head_count
    FROM       got_group_by_columns
    GROUP BY  accounts
    ,            market
    ;But that's just a wild guess.
    You said you wanted "Help with count and sum". I see the COUNT, but what do you want with SUM? No doubt this will be clearer after you post the sample data and results.
    Edited by: Frank Kulash on Apr 4, 2012 5:31 PM

  • Help with MBox and Digi driver 6.9

    I was previously unable to get Garageband 1.1 to open even after adding it to the supported apps list of the digi driver 6.4.
    I then upgraded to the 6.9 version driver, and you then are not given a supported apps list to edit. after several restarts, I was able to get line activity into GB, but it's all distorted. I have selected the MBox as the audio input device in both the system preferences, as well as the GB Sys Pref.
    any thoughts?

    Hi Dave,
    Unfortunately, Traditional NI-DAQ (Legacy) is not supported in Windows 7. NI-DAQmx greatly improves upon the functionality of Traditional DAQ. If you would like to learn more about the reason for the move to NI-DAQmx, please see the tutorial called Answers to Frequently Asked Questions about NI-DAQmx and Traditional NI-DAQ (Legacy). In order to use your application in Windows 7 you will need to update your VIs to run off of DAQmx. Please see the tutorial called Transition from Traditional NI-DAQ to NI-DAQmx in LabVIEW.
    In regards to PXI Platform Services, please see the PXI Platform Service Hardware Support page so we can verify which version we are looking for.
    National Instruments has attempted to contact the customer for futher help with PXI Platform Services. For help with similar questions please visit National Instruments Support to contact an engineer.
    Regards,
    Andrew M.
    Applications Engineer
    National Instruments

  • I have a National Lottery online account but for a while now i cannot access it from my MacBook. I can access it via other pc's and laptops and via my iphone. I have been on to the NL helpline and they say the issue is with cookies and my MacBook. Help!

    I have a National Lottery online account but for a while now i cannot access it from my MacBook. I can access it via other pc's and laptops and via my iphone. I have been on to the NL helpline and they say the issue is with cookies and my MacBook. Help!

    Hi Josh,
    Thanks for taking the time to contact us here a Novation for technical support. Lets continue to correspond via email so we can get your issue resolved.
    Thanks.
    Mike Towns

  • I am a rookie and need help with max and min values

    Hello all, i am into this intro to java class. my assignment is to write a program that prompts the user for two integers and then prints the sum, difference, average, product , distance (absolute value of the difference) Maximum(largest of the two) and Minimum(smallest fo the two) here is my code so far
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.lang.Math;
    public class Sample4
       public static void main(String[] args) throws IOException
          try // attempt the following
    {           // create the stream to read from
    InputStreamReader istream = new InputStreamReader(System.in);   // create a buffer to hold the stream
    BufferedReader console = new BufferedReader(istream);           // prompt the user
          System.out.println("Enter a number please");              // get input as a string
          String input = console.readLine();                        // convert to an integer
          int num1 = Integer.parseInt(input);
          System.out.println("Enter a number please");              // get input as a string
          String input2 = console.readLine();                       // convert to an integer
          int num2 = Integer.parseInt(input2);
          int sum = num1 + num2;                                    // get the sum of the two inputs
          int difference = num1 - num2;                             // get the difference of the two inputs
          int product = num1 * num2;                                // get the product of the two inputs
          int average = sum / 2;                                    // get the average of the two inputs
          int abs = Math.abs(difference);                           // get the absolute value of the two inputs
              // new section
                 // display the number
          System.out.println("The total sum = " + sum);
          System.out.println("The total difference = " + difference);
           System.out.println("The total product = " + product);
           System.out.println("The total average = " + average);
           System.out.println("The total absolute value = " + abs);
    } // if something breaks, catch the exception
    catch (IOException e)
       System.out.println(e); // displays the exception
       System.exit(1);  // quits the program
    }what will be the right syntax or code to find the MAX and MIN values of two numbers a User Inputs, hope someone can help with this. thank you for your help.

    Thanks alot man, sheesh i do not know why my book
    doesnt give me all the static methods. but i do really
    appreciate your help. peaceA complete list of the java.lang.Math methods can be found at http://java.sun.com/j2se/1.4/docs/api/java/lang/Math.html
    btw,
    max(a, b) == (a > b) ? a : b
    min(a, b) == (a < b) ? a : b

  • MOVED: [Athlon64] Need Help with X64 and Promise 20378

    This topic has been moved to Operating Systems.
    [Athlon64] Need Help with X64 and Promise 20378

    I'm moving this the the Administration Forum.  It seems more apporpiate there.

  • Search Help Problem - Passing parameter between to search helps.

    I created following 2 table for entering data in PO screen using ME21N using Custom Data Tab.
    ZSTATE_TAB - State table  (has elementary search help ZSTATE_SH - Value of SCODE is exported)
    SCode(Key)     Description
    S001           New York
    S002          Virginia
    S003          West Virginia
    ZCITY_TAB - City Table  (has elementary search help     ZCITY_SH - Value of SCODE is imported)
    SCode(Key)     CCode (Key)     Description          Level
    S001          C001          New York City          L001
    S001          C002          Rochester          L002
    S001          C003          Buffalo               L003     
    S002          C004          Richmond          L029     
    S002          C005          Fairfax               L030
    I have created an custom input field LEVEL in t-code ME21N in Customer Data Tab.
    I want to create search help for LEVEL using import parameter STATE & CITY .
    On selection screen of search help two selection parameters STATE and CITY are displayed. 
    Step 1:User press F4 for getting list of state and selects any state using search help ZSTATE_SH (Value of SCODE is exported)
    Step 2:User press F4 to get the list of City using search help ZCITY_SH, based on state selected in Step 1.  (Value of SCODE is imported)
    In Step 2, I want to see only the cities selected in Step 1. But instead all Cities are displayed in hit list.
    I also created a table maintenance program SM30 for ZCITY_TAB, the search help ZCITY_SH is correctly displaying the data in hit list according to the State selected in ZSTATE_SH.
    But it is not displaying the correct list for cites in ME21N.
    Kindly help me in fixing this problem.
    Thanks in advance.

    here is the answer from [sap library - Value Transport for Input Helps - Parametrizing the Import Parameters of the Search Help|http://help.sap.com/saphelp_nw2004s/helpdata/en/35/bdb6e2c48411d1950800a0c929b3c3/frameset.htm] :
    If the search help is attached to the table field ( Attaching to Table Fields) or to the check table of the field ( Attaching to Tables), a value transport can take place for all the screen fields that are linked with a parameter of the search help.

  • F4 help in ALV grid using existing search help

    Hi All,
    It would be appreciable , if some help on problem. Thanks in advance.
    How to provide user defined F4 help in ALV grid using existing search help?
    ALV grid has developed using OOPS concept.
    Thanks,
    Sudhakar.

    Hi,
    if you already developed using OO concept, it should be possible to:
    create a handler for event ONF4
    The interface will tell you actual field name and value where F4 is pressed. This will enable you to call your own routine (see FM F4-IF....).
    Please check how the standard handles F4  - if you have standard and customer-F4 mixed you shouldtake care that the standard handling is triggered.
    Regards,
    Clemens

  • Firefox fills the entire page. I see no tool bar or task bar. Re-boot no help. Remove and re-install no help.

    Pages fill entire screen with. No tool bar or task bar visible. Reboot no help. Remove and re-install no help.

    Hit F11

Maybe you are looking for

  • How to Test SSRS Custom Data Extension in TSql

    Hi There, I have created a custom data extenstion for SSRS 2008 Reporting Service. I can test the CDE in the Report DataSet -> DataSet Properties -> Query Designer -> Run Query. In the Command Text I pass parameters to the invoked VB code which is of

  • EJB 2.1 Timer bean using CMT (WAS 6.0) with Toplink 10.1.3

    I have a timer bean that is calling a toplink transaction. The timer bean uses CMT with a "RequiresNew" transaction attribute. The ejbTimeout() method of the bean calls a toplink transaction - this transaction includes code to do uow.commit(). I am u

  • Summarizing entries of the Internal table--Urgent..plz help

    Hi All!! I have an internal table containing fields f1, f2 ,f3 ..f8. I want to summarize the entries based on three fields of table f1,f2 and f3.These fields are numeric fields.The other fields have numeric and non numeric fields.One of the field f4

  • Macbook Pro not charging during some Bootcamp usage

    I have a Macbook Pro bough mid 2010. I put Bootcamp (windows 7) on a partitioned hard drive in winter of 2010 for school needs. Now I have upgraded my Mac OSX to Lion 10.7.2 and whenever I run any games or big programs on my Windows side it stops cha

  • Javascript on Page

    Hello, I am trying to edit an existing page. When I try to open the page in design view I get a message saying "Javascript must be enabled". So my question is how do I enable Javascript? Thanks, Wendy