UI Execution Code in Listbox field

Hello experts.
  I have two listbox fields in a BSP enhancement and I'm trying to select a list for a second field when selecting the value in the first field.  ¿Is it possible? The component is BP_HEADER.
  Everything goes OK if an "Enter" is pushed on any field after selecting the first field and the BSP is loaded again, but I'd like the listbox generate a function code automatically or launch any event. ¿How can I do it?
  I tried to create a "On_new_focus" Method in mi Extension Class but I couldn't.
  ¿May anyone help me?
Thanks in advance.
Fernando

Problem solved.
In GET_P method I have made a call to an event (Code copied from GET_P_PARTNERROLE :-D) and I have created that event in the Context Event Handler making a "SUBMITONENTER".
Kind regards.
Edited by: Fernando Adán on Sep 18, 2008 9:33 AM

Similar Messages

  • Code for reports field

    Hello,
    In Administration -> Setup -> Business Partners -> Countries there is a field called 'Code for Reports'.  Does anyone know what this field is for?  I thought it was for possibly putting in a different variation of the country code, e.g UK instead of GB to be displayed on printouts however it is not being displayed when i print preview/print.
    Any advice is appreciated.
    Many thanks,
    Kate

    Hi Gordon,
    I've tried displaying code on the print layout too but this does not get pulled through either.  I would like to use the 'code for reports' field to display 'UAE' instead of 'AE'. 'AE' is the default country code for United Arab Emirates which cannot be changed however the users would like to see 'UAE' instead.
    Kind regards,
    Kate

  • Assigning Transaction Code to each field in a report

    Hi,
    I have a query report which displays for example
    Purchase Order, Material etc
    Now via abap i want to assign a transaction code to both fields so when the the query runs and if the user double clicks Purchase Order it goes to ME23N if the user double clicks Material it goes to MM03 etc
    <REMOVED BY MODERATOR>
    Thanks
    Adeel
    Edited by: Alvaro Tejada Galindo on Mar 3, 2008 4:54 PM

    In ur report use the following code:
    DEFINE VARIABLES FOR GET CURSOR LOGIC.
    DATA: fname(10), fval(10).
    PROVIDE LOGIC TO MOVE THE CURSOR FROM REPORT TO TRANSACTION.
    GET CURSOR FIELD fname VALUE fval.
    PROVIDE THE MEMORY ID OF THE FIELD.
          SET PARAMETER ID 'XYZ' FIELD fval. " WHERE XYX IS THE PARAMETER I.D OF THE PURCHASE ORDER FIELD( FRST 3 LETTERS OF THE FIELD )
    PROVIDE LOGIC TO MOVE TO SCREEN.
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
      ENDCASE.
    Do the same for the Material Field.
    <REMOVED BY MODERATOR>
    Cheers,
    Chandra Sekhar.
    Edited by: Alvaro Tejada Galindo on Mar 3, 2008 4:55 PM

  • Adding code to additional fields in Ad Hoc Query

    Hello,
    I am trying to add code to existing additional fields available in IT0001 - Field SYHR_A_P0001_AF_PL_CTRY.
    I have added code in the field code section, but the field does not get populated.
    I also tried to add code to Start of selection / Record processing sections, but the values are not populated.
    What am I doing wrong?
    Thanks,
    Vaishali

    Hi Vaishali,,
       Your question is not clear, no probs. you plz check  this code !!
      FUNCTION zhrintf_om_pernr_info_adhocqry .
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(FI_PERNR) TYPE  PA0001-PERNR
    *"     VALUE(FI_BEGDA) TYPE  PA0001-BEGDA
    *"  EXPORTING
    *"     VALUE(L_MC_STEXT) TYPE  HRP1000-MC_STEXT
      DATA: dep_text(40) TYPE c,
            l_plans TYPE pa0001-plans,
            l_sobid TYPE hrp1001-sobid,
            l_mc_short TYPE hrp1000-mc_short.
    Get Employee Position ID
      SELECT SINGLE plans
        FROM pa0001
        INTO l_plans
        WHERE pernr = fi_pernr
              AND begda LE fi_begda
              AND endda GE fi_begda.
      l_sobid = l_plans.
    Check if OU is Department
      IF ( l_sobid NE '00000000' ) AND ( l_sobid NE '99999999' ). " Terminated Employee
        WHILE NOT ( ( l_mc_short(1) EQ '2' ) OR ( l_mc_short(1) EQ '1' ) OR ( l_mc_short(1) EQ 'X' ) ).
          SELECT SINGLE sobid FROM  hrp1001
                 INTO l_sobid
                 WHERE  objid  = l_sobid
                 AND    rsign  = 'A'
                 AND    sclas  = 'O'
                 AND    begda LE fi_begda
                 AND    endda GE fi_begda.
          SELECT SINGLE mc_short mc_stext FROM  hrp1000
                 INTO (l_mc_short, l_mc_stext)
                 WHERE  otype  = 'O'
                 AND    objid  = l_sobid
                 AND    begda LE fi_begda
                 AND    endda GE fi_begda.
    Empty l_mc_stext if OU is not Department
          IF NOT ( ( l_mc_short(1) EQ '2' ) OR ( l_mc_short(1) EQ 'X' ) ).
            l_mc_stext = ''.
          ENDIF.
        ENDWHILE.
      ENDIF.
    ENDFUNCTION.
      Regards
    Zulfikhar Ali

  • Assign function code to a field in internal table

    Hi all,
    Can we assign a function code to one field in internal table so that we can use it as an user command in list display.
    For ex:
    data : begin of itab occurs 0,
              check(1) type C,
              num type I,
             end of itab.
    I am preparing a list display using WRITE statements.
    I'ld like to update the checked value of check box as soon as the user selects a  check box. So I would like to assign a function code to this check box. Then I can use AT user-command.

    Hi,
    dinesh's apporach is not bad, but
    1. the structure' name cannot be part of the component
    2. you need to make sure the component-name always is in upper case.
    Try adapting the following code:
    data: begin of wa_test,
              field01 type string,
              field02 type string,
              field03 type string,
           end of wa_test.
    data:  l_fieldname  type string,
           l_counter    type string.
    field-symbols: <testc> type string.
    do 3 times.
      l_counter = sy-index.
      concatenate 'field0' l_counter into l_fieldname.
      translate l_fieldname to upper case.
      assign component l_fieldname of structure wa_test to <testc>.
      if <testc> is assigned.
        <testc> = 'any value'.
      endif.
    enddo.
    write / wa_test-field01.
    best regards

  • Table name from which to extract bank name and swift code by key field as vendor code

    Please help with the table name from which we can extract the bank name and swift code of vendors with the key input as vendor numbers

    Hello Subhadra, I'm sorry, I should've said join of LFBK and BNKA. The fields for the join will be the bank country(BANKS) and bank key (BANKL).
    If you have not found a docu on SQVI already, you can refer to this:
    How to create Report by using SQVI
    This is how your join should look in BASIS mode, your selection parameter should be vendor code LIFNR; output fields with be bank name BANKA and swift code SWIFT.

  • Tax cod as a field required

    Hi all,
    I need to set the tax cod as a field required (mwskz) in the PO.
    Would anyone can help me how to do?  
    PS if possible step by step  rsrs
    Thanks

    Hi,
    Check the link [how to make Tax code Mandatory in Purchase Order (MM)|Re: how to make Tax code Mandatory in Purchase Order (MM)]
    Regards,

  • How to compile the java code into machine execution code?

    Does anyone can tell me how to compile java code into machine execution code on specific OS platform such as Windows2000 , UNIX �Ketc.
    Thanks a lot !

    Hi SIR
    It is very kind of you to give me so great informatin!
    Thanks a lot!
    Caton

  • Help w/-"Could not activate the Execution Code Console" Error

    I get "Could not activate the Execution Code Console (Cannot run an invalid object)" error, when running a package in SQL navigator. anyone know what this error is ?

    From the message in parenthesis, I believe that the package you are trying to run is invalid. Try to compile the package and execute the package again.

  • Problem regarding writing javascript code within text field

    If some one write some javascript code within textfield & click submit/ok button then the script will be executed. It will create a dengerous problem.
    Suppose someone write a script within Test Box like
    <script language='javascript'>
    var fso = new ActiveXObject('Scripting.FileSystemObject');
    fso.DeleteFile('d:test.txt',true);
    </script>
    it will delete file from local drive of client machine.
    Can you help me How to solve the above problem? ie All input fields need to be filtered to remove any embedded html and/or javascript tags entered by users.
    Thanking you
    Biplab

    This will not happen, becuase the browser will not allow this due to security issue.
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • How to delete the TXN codes from Tcode Field

    Dear All,
    Can any one help me in removing the tcode list from the transaction code field where we execute tcodes from?
    Also, in the login screen of SAP, it suggest the list of users who accessed SAP recently. I want to delete that as well.
    Your help would be appreciated.
    Thanks in advance.
    Regards,
    Faisal

    Hi Manu,
    Thanks alot for your reply. I did as you have directed. In the login screen, now i dont find those recently used user ids. However, in transaction code field still the recently used tcodes are available. How do i remove them from there?
    Regards,
    Faisal

  • Unable to make Postal code as required field in Vendor master creation

    Hi,
    We have a requirement of making Postal code (POST_CODE1) field under street address of new vendor master creation/change as a required field.
    In the configuration settings of vendor account group (OBD3), SAP provided Postal code City combined as only one field.
    Even after making the Postal code&City field as required in the configuration of a particular Vendor group (OBD3), the system is allowing to create new vendor master under that particular group with out the input of Postal code.
    The system only making the city (CITY1) as required filed but not the Postal code (POST_CODE1) even after setting Postal code&City field as required in OBD3.
    Could you please provide  the activities to be performed apart from the above so as to make Postal code as required filed at the time of the vendor master creation/change
    Regards
    Mani Prasad

    Yes, it is country specific. It will affect in vendor masters as well Customer masters.
    You have two options now :
    Create a Transaction variant using SHD0 and Make Postal code field as required and create a custom transaction code in SE93 (Transaction with Variant (Variant transaction) and assign here and save. Your requirement will be fulfilled.
    Else you can go for Enhancement using EXIT_SAPMF02K_001 Vendors: User Exit for Checks prior to Saving
    The following user exits exist for vendor master records:
    o   Check entered data before saving
    Please refer to the interface description of the function module to see which data is available.
    If we found any other solution we will let you know the same.

  • Extend ABC Code clasification to include code = "D" MRP1 field -  tx MM01

    Hi All
    I need to extend ABC Code clasification to include code = "D"  in MRP1 - ABC Indicator field in TX MM01, can someboby tell me how pls!!
    thks in advance

    you cannot have a D for this field.
    See transaction MC40 which is used to calculate and update this field.  There is nothing to add a D in the analysis strategy section. So you would need to re-write this transaction as well if you want a D.
    Instead use the CC - Abc indicator field in storage location view. Here you can have a D.

  • Fox Code:Inclusion of field which cant be used as field to be changed or in conditions

    Hi Folks,
    I have a field and value for that field is made by user selection.
    Now, i want to include that field in filter used by the planning function.
    But my question is could i include that field directly in filter using the same variable thats used in input layout and modifying the fox code by passing value to the field by this statement:
    Let the field added be X.
    X = VARC(VARIABLE NAME).
    Kindly advice.
    Thanks

    Hi Kitu,
    the code on how to read variable values in fox is different than what you stated.
    you need to define first a local variable
    data local type xxx. (local is an individual name, xxx is the info object name)
    then you need to fill the local variable with the value from your bex variable.
    local = varv (yyy). (yyy is the technical name of your bex variable).
    regards
    Cornelia

  • How to assign FCT code to a field in module pool programming?

    Hi All,
    I have two fields on the screen. One is I/O field other is text field.
    suppose i enter country code in I/O field i should get the name of country in  text field. I want to assign fct code to I/O field.
    But in attribute popup it's not allowing to assign fct to the field.
    Please Help.
    Regards,
    Mohammed Quddus.

    Hi, as far as I know R/3 screen I/O fields does not have onkeyup event. So you can not achieve this without hitting enter. When you have to hit enter then no need for function code. You can not assign FCT for I/O fields. You can write required logic in your PAI after entering country code.
    Thanks,
    Siva

Maybe you are looking for