How to fill data to inputfield?

Hi,
I have 2 inputfield, which get from the dictionary at Graphical Screen Painter. eg. Name and Contact Number.
The Name have Search help function, which allow me to choose the value for the Name inputfield without manually input. I need to populate the contact number base on the value selected in the search help. How do i go about it?
Regards,
Rayden

Hi ..
Check this Code .. it should help.
Change the Same code as per Module pool.
***Function modules related to Search Helps In POV event..
F4IF_INT_TABLE_VALUE_REQUEST
F4IF_FIELD_VALUE_REQUEST
F4UT_PARAMETER_VALUE_GET
F4UT_PARAMETER_RESULTS_PUT
F4IF_SHLP_EXIT_EXAMPLE.
How to Generate F4 Help in Screens POV
REPORT zsel_f4help .
*---Report with selection screen and to display the list of
possible entries for field 'B' as per the value in field 'A'.
PARAMETERS: p_vbeln TYPE vbak-vbeln,
p_posnr TYPE vbap-posnr.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
DATA: BEGIN OF help_item OCCURS 0,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
arktx TYPE vbap-arktx,
END OF help_item.
DATA: dynfields TYPE TABLE OF dynpread WITH HEADER LINE.
dynfields-fieldname = 'P_VBELN'.
APPEND dynfields.
**Read the Values of the SCREEN FIELDs
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-cprog
dynumb = sy-dynnr
translate_to_upper = 'X'
TABLES
dynpfields = dynfields
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.
**Find out the Value of P_VBELN
READ TABLE dynfields WITH KEY fieldname = 'P_VBELN'.
p_vbeln = dynfields-fieldvalue.
**Convert the Value into internal format
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = p_vbeln
IMPORTING
output = p_vbeln.
**Fetch the correponding itemnos from VBAP
SELECT posnr matnr arktx INTO TABLE help_item
FROM vbap
WHERE vbeln = p_vbeln.
**Generate the F4 help with internal table values
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'POSNR'
dynprofield = 'P_POSNR'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = help_item.
reward if Helpful.

Similar Messages

  • IDOC: How to fill data for sub segments ?

    Hi,
    I have 3 segments, segA , segB , segA1 . segA1's parent segment is segA . segA and segB are at the same level .
    How to fill data for segA1  ? can you give some sample code ?
    Thanks a lot !

    hi,
    You can fill the segment in the sequence in the idoc either parent or child.
    In you case first fill parent segment SEGA next SEGA1. Then you can fill the SEGB.(If segB is deifned as next segment of segA in the idoc structre)
    Thanks and regards,
    shyla kumar

  • How to fill data  for asset accoutning datasources

    hi gurus
    i want to know how to fill data for the FI:asset accounting data sources.As these datasources are not related to Logistics,i think filling setuptables concept doesnot come into picture here.thenhoe to  fill data for the datasources:0FI_AA_001,0FI_AA_005,0FI_AA_006
    Pls give me some inputs ASAP
    Its very Urgent
    Thanks in Advance
    Surya Reddy

    Hi,
    Asset Accounting works with Timestamp mechanism.  No Setup table concept like logistics.  Find the prerequisites for AA extraction.
    For Asset Accounting Delta Extraction you first need to have this BADI - FIAA_BW_DELTA_UPDATE active in the system:
    Check the link below for more details about the badi and the delta extraction procedure.
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/f4153c4eb5d82ce10000000a114084/frameset.htm
    Sequence of Data Requests
    For summarization of line items by master record characteristics (such as cost center) during posting of ODS objects to Info Cubes, master data must already exist prior to extraction of transaction data.
    Also the following sequence must therefore be kept to during extraction:
    1. 0FI_GL_4 General Ledger: line items (if required)
    2. 0ASSET_ATTR_TEXT Asset sub number (flexible updating)
    3. 0ASSET_AFAB Depreciation area real or derived
    Then the transaction data
    0FI_AA_11 FIAA: transactions and / or
    0FI_AA_12 Posted depreciations (period values)
    Hope it helps
    Regards
    Srikanth

  • How to fill data in a table automatically

    Hello Experts,
    I would like to know if its possible to fill data in a table by looping.
    I have the following table:
    Draws(
    NUM NUMBER,
    START_DATE DATE NOT NULL,
    END_DATE DATE NOT NULL,
    ACTIVE CHAR(1 BYTE) DEFAULT 'Y')
    Now my table should contain the foll:
    Num start_date end_date active
    1 23/01/2010 21:00:00 30/01/2010 19:00:00 Y
    2 30/01/2010 21:00:00 06/02/2010 19:00:00 Y
    I have an initial start date and the end_date is always (start_date + 7) and the next start date starts with the previous end_date but time changes from 19:00 to 21:00.
    Is there a way i can enter those values on a weekly basis???
    Thanks
    Edited by: Kevin CK on Jul 5, 2010 3:07 AM

    there are a number of ways to do weekly inserts. it just depends on your environment and what you want to manage.
    1. write a PL/SQL procedure to do the periodic insert. i assume you know how to do this since you only asked about doing the insert weekly.
    2. options for running the procedure weekly:
    a. using your OS job scheduler, schedule a batch job to run a sql script to execute the procedure.
    b. inside the Oracle database, use DBMS_SCHEDULER (or DBMS_JOB if you are on a version older than 10g) to run the procedure.
    c. write yourself a reminder on a sticky note to run the procedure each week, post it on your computer, and run it manually.
    if you need more details, just say so.

  • How to fill data when call function of sap standard script form?

    Hi every experts,
    <Priority Normalized>
    In our system, when we log in 'FR', we can print purchase order in language Franch,in t_code:ME22N.  And when logging in 'EN', we can print it in language English, in ME22N. The English form is just only translated from Franch, with all same structure and frame.  The form is done by script form.
    And when logging in 'ZH', we create a new program, calling function smartform, instead of translating from EN language. Because of different structure and frame, I don't know the way to write script, so  I print puchase order by smartform, when logging in 'ZH'.
    But I have a new issue. Our MM module consultant needs me to print Chinese form if one condition, print English form in other condition.
    So I have no idea to solve it. Because in my program, I get data to fill smartform and call function of smartform. And I don't know how to get data to fill script form. I only know the function name, 'OPEN_FORM' 'WRITE_FORM' 'CLOSE_FORM'.....
    If I only call the several functions, I will get only frame without no data. So who can tell me how to do????
    <Urgency downgraded>
    Edited by: Suhas Saha on Jul 26, 2011 3:34 PM
    Edited by: Vinod Kumar on Jul 26, 2011 4:09 PM

    Hi,
    Normally if we look in NACE transaction, you can see that upto five different FORMS can be assigned to a single output type . i.e. for each form there will be a seperate routine through which it gets called. But it all start from the first form only.
    so you need to write your code in the ENTRY of the first form and if it does not satisfy do not go for processing of it but just exit of that form ENTRY. so that it will take you to next form.
    hope this helps.
    Thanks,
    Venkatesh

  • How to fill data in to extended idoc segments  for outbound program

    Hi all,
    I am new to this Community In the extension of  Standard idoc INVOIC02  with some custom segments like zemail, zfax,,,,how to fill the data into both standard segments and custom segments for outbound idoc using exit EXIT_SAPLVEDF_002 of standard function module IDOC_OUTPUT_INVOIC...
    i need some sample code
    THANKS
    PAVAN K

    Hi all,
    I am new to this Community In the extension of  Standard idoc INVOIC02  with some custom segments like zemail, zfax,,,,how to fill the data into both standard segments and custom segments for outbound idoc using exit EXIT_SAPLVEDF_002 of standard function module IDOC_OUTPUT_INVOIC...
    i need some sample code
    THANKS
    PAVAN K

  • How to fill data in idoc

    Hi experts,
    Could u please give some sample codes for filling data into idoc.

    Hi Nisha,
    Go through this userdefined program u can understand .
    *& Report  ZBT_SEL_PROGRAM                                             *
    REPORT  zbt_sel_program                         .
    TABLES: mara.
                  Data declaration
    *--Material number selection.
    SELECT-OPTIONS: s_matnr FOR mara-matnr.
    PARAMETERS:
    *--Rec.Partner
       p_rcvprn TYPE edi_rcvprn,
    *--Message type
       p_msgtyp TYPE edi_mestyp.
                  Internal table declaration
    DATA:
    *--MARA data
          it_mara TYPE STANDARD TABLE OF mara WITH HEADER LINE,
    *--To fill the segment Z1MARM
          it_temp_mara TYPE STANDARD TABLE OF z1marm WITH HEADER LINE,
    *--MAKT data
          it_makt TYPE STANDARD TABLE OF makt WITH HEADER LINE,
    *--To fill the segment E1MAKTM
          it_temp_makt TYPE STANDARD TABLE OF e1maktm WITH HEADER LINE.
    DATA: st_edidd TYPE STANDARD TABLE OF edidd WITH HEADER LINE,
          st_comm_cont TYPE STANDARD TABLE OF edidc WITH HEADER LINE,
          st_mast_cont TYPE edidc.
    *--Fetch the data from MARA table
    SELECT * FROM mara INTO TABLE it_mara WHERE matnr IN s_matnr.
    IF sy-subrc = 0.
      SORT it_mara.
    ENDIF.
    *--Fetch the data from MAKT table
    IF NOT it_mara[] IS INITIAL.
      SELECT * FROM makt INTO TABLE it_makt FOR ALL ENTRIES IN it_mara
                        WHERE matnr = it_mara-matnr.
      IF sy-subrc = 0.
        SORT it_makt.
      ENDIF.
    ENDIF.
    *--Fill the iternal tables which is type the same of Segments
    LOOP AT it_mara.
      MOVE-CORRESPONDING it_mara TO it_temp_mara.
      APPEND it_temp_mara.
      CLEAR it_temp_mara.
    ENDLOOP.
    LOOP AT it_makt.
      MOVE-CORRESPONDING it_makt TO it_temp_makt.
      APPEND it_temp_makt.
      CLEAR it_temp_makt.
    ENDLOOP.
    *--Fill the segments
    LOOP AT it_temp_mara.
      st_edidd-segnam = 'Z1MARM'.
      st_edidd-sdata = it_temp_mara.
      APPEND st_edidd.
      CLEAR st_edidd.
    ENDLOOP.
    LOOP AT it_temp_makt.
      st_edidd-segnam = 'E1MAKTM'.
      st_edidd-sdata = it_temp_makt.
      APPEND st_edidd.
      CLEAR st_edidd.
    ENDLOOP.
    *--Fill Master IDOC
    st_mast_cont-rcvprt = 'LS'.
    st_mast_cont-rcvprn = p_rcvprn.
    st_mast_cont-mestyp = p_msgtyp.
    st_mast_cont-idoctp = 'ZMATMAS01'.
    *--Create the communication IDOC by passsing master IDOC and control
    information.
    CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
      EXPORTING
        master_idoc_control                  = st_mast_cont
      OBJ_TYPE                             = ''
      CHNUM                                = ''
      TABLES
        communication_idoc_control           = st_comm_cont
        master_idoc_data                     = st_edidd
    EXCEPTIONS
       error_in_idoc_control                = 1
       error_writing_idoc_status            = 2
       error_in_idoc_data                   = 3
       sending_logical_system_unknown       = 4
       OTHERS                               = 5
    IF sy-subrc = 0.
    *--Commit work
      COMMIT WORK.
    ENDIF.
    *--Display IDOC Number.
    LOOP AT st_comm_cont.
      WRITE: 'IDOC Numbers:',st_comm_cont-docnum.
    ENDLOOP.
    Rewards some points.
    Rgds,
    P.Naganjana Reddy

  • How to display data in inputfields whenuser entersdata inanother inputfield

    Hi all,
    i have a requirement that i have three fileds named
    1)costcentre , 2)description 3)function.
    when user enters value on cost centre description and function should be displayed.?
    can u tell me how to acheive this functionality.? and kindly for reference can u send me the logic in step by step.?
    can u tell me should i use inputfield ui elements for these . and beside inputfields i should provide a searchhelp icon. ?
    kindly send me the how to achieve this functionality.
    Thanks & Regards,
    Naveen

    hi naveen,
    my first suggestion is that please check se11 and check whether /BIC/AGLDCPRTS00
    is a transp. table ......i guess it is not so. rite?
    now,
    you make a node first in the context....add attribute to this node now add attribute to it ....
    once you start adding the attribute a pop up screen comes...here you are making a mistake by choosing type ref to...instead use type....in the type assignment field and in type define the data type.......
    also look here you will find field for search help...in input help mode choose dictionary help and enter the name of search help you want to provide....
    now regarding the code
    write this code onEnter method of thefirst  input field....._also note that my node name is node....ERNAM LAEDA  AENAM are my attributes in the node_ you will read the first attribute by code wwizard ...
    DATA LO_ND_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
        DATA LO_EL_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
        DATA LS_NODE TYPE WD_THIS->ELEMENT_NODE.
        DATA LV_ERNAM TYPE WD_THIS->ELEMENT_NODE-ERNAM.
    *   navigate from <CONTEXT> to <NODE> via lead selection
        LO_ND_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_NODE ).
    *   get element via lead selection
        LO_EL_NODE = LO_ND_NODE->GET_ELEMENT( ).
    *   @TODO handle not set lead selection
        IF LO_EL_NODE IS INITIAL.
        ENDIF.
    *   get single attribute
        LO_EL_NODE->GET_ATTRIBUTE(
          EXPORTING
            NAME =  `ERNAM`
          IMPORTING
            VALUE = LV_ERNAM ).
    now you will get the value entered in first input field and
    DATA LS_NODE TYPE WD_THIS->ELEMENT_NODE.
          DATA LV_LAEDA TYPE WD_THIS->ELEMENT_NODE-LAEDA.
    *     navigate from <CONTEXT> to <NODE> via lead selection
          LO_ND_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_NODE ).
    *     @TODO handle non existant child
    *     IF lo_nd_node IS INITIAL.
    *     ENDIF.
    *     get element via lead selection
          LO_EL_NODE = LO_ND_NODE->GET_ELEMENT( ).
    *     @TODO handle not set lead selection
          IF LO_EL_NODE IS INITIAL.
          ENDIF.
    *     @TODO fill attribute
    *     lv_laeda = 1. "  "you will set the value for second field here......either hardcode it or use logic
    *     set single attribute
          LO_EL_NODE->SET_ATTRIBUTE(
            NAME =  `LAEDA`
            VALUE = LV_LAEDA ).
            DATA LS_NODE TYPE WD_THIS->ELEMENT_NODE.
            DATA LV_AENAM TYPE WD_THIS->ELEMENT_NODE-AENAM.
    *       navigate from <CONTEXT> to <NODE> via lead selection
            LO_ND_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_NODE ).
    *       @TODO handle non existant child
    *       IF lo_nd_node IS INITIAL.
    *       ENDIF.
    *       get element via lead selection
            LO_EL_NODE = LO_ND_NODE->GET_ELEMENT( ).
    *       @TODO handle not set lead selection
            IF LO_EL_NODE IS INITIAL.
            ENDIF.
    *       @TODO fill attribute
           lv_aenam = 1. "you will set the value for third field here......either hardcode ity or use logic
    *       set single attribute
            LO_EL_NODE->SET_ATTRIBUTE(
              NAME =  `AENAM`
              VALUE = LV_AENAM ).
    thanks and regards,
    sahai.s

  • How to fill data in PDF form?

    Hi All,
    I have a pdf forms(about 100). Now I need to open that forms in the browser. User can fill that form and that data should be filled in the database/XML file. Then when user come again then that form details must be displayed in that form.
    Please suggest me some path as I am totally blank about this concept.
    Regards.

    Hi Leonard,
    Thank you very much for the reply.Our users have only reader at their side. Can we set up any kind of software implementation at server side? Or with the use of the .NET(C#) ?
    Can you please provide me some link to initiate this project? Actually I don't know how to start this.
    Any help would be appreciated.

  • How to fill data in BusinessPartner - Role Employee - Tab Identification

    Hi Experts!
    My Program creates a new BP with BAPI_BUPA_CREATE_FROM_DATA.
    After that I create the role 'employee' with BAPI_BUPA_ROLE_ADD_2.
    In the role employee there is the tab 'Identification' with a block 'personal data' and 'employee data'
    how the hell could I fill these two blocks with data (especially the block 'employee data')
    thanks for your help in advance!
    regards franz

    Did you finally find out how to populate the additional enhance parametes of segment E1BPEXTC in the HR sending system?.
    I would need to implement the same scenario.
    Thanks in advance.

  • How to fill date key figure with system date?

    Dear All,
    We would like to set on specific action (button press) to assign current system date top a date key figure within our infocube.
    Any idea how to achieve this?many thanks in advance for any idea!
    Kind Regards
    Olivier DESFOUR

    Dear Khaja,
    I'm not exactly using an update rule, i'm using Integrated Planning component.
    Customer would like to set this key figure on user action; ie for example
    user validate a step within planning process by pressing a button on workbook.
    then system is stamping system date within cube.
    Hope it helps
    Kind regards
    Olivier

  • How to fill dates through a formular

    Dear all,
    I have created a Dashboard where the user is able to introduce 4 parameters:
    -login
    -password
    -timestart (start, i.e: 00:00:00)
    -timestop (stop, i.e: 12:00:00)
    Through these parameters, a DDBB is loaded like this:
         ActiveDocument.Sections["Query"].DataModel.Connection.Open(v_ddbb);
         ActiveDocument.Sections["Query"].DataModel.Connection.Username = v_user;
         ActiveDocument.Sections["Query"].DataModel.Connection.SetPassword(v_password);
         ActiveDocument.Sections["Query"].Limits["Time"];.CustomValues.Add(v_timestart);
         ActiveDocument.Sections["Query"].Limits["Time"];.CustomValues.Add(v_timestop);
         ActiveDocument.Sections["Query"].Limits["Time"];.SelectedValues.AddAll();
         ActiveDocument.Sections["Query"].DataModel.Connection.Connect();
         ActiveDocument.Sections["Query"].Process();
         ActiveDocument.Sections["Query"].DataModel.Connection.Disconnect();
    After some tests, I have found out that in the Filter "Time" I have cumulated a lot of different values, as many as test I made. How could I delete the existing ones and then add the new ones [CustomValues.Add]?
    Many thanks in advance.

    Hello,
    Thank you for your help.
    Unfortunately, it does not work properly because indeed your command instruction deletes my limits, but afterwards I am not able to add the new limit:
    TLimit=ActiveDocument.Sections["Query"].Limits["timestamp"]
    ActiveDocument.Sections["Query"].Limits.RemoveAll(); //your command
    TLimit.CustomValues.Add(v_timestart);
    TLimit.CustomValues.Add(v_timestop);
    TLimit.SelectedValues.AddAll();
    Thany you in advance!!

  • How to fill data in reporting agent for alert

    Dear friends
            i use alert for MM module , i can set this query in reporting agent and also maintain variant for this query.
            i can scheduling this alert. Scheduling is finished with no error but i am not geting any data.
          using this variant i can run this query in rsrt and BX , it give some result.
           so my que. is any other setting for alert or give me setp for creating alert.

    Palav,
    Go thru the link for Broadcasting settings.
    http://help.sap.com/saphelp_nw04/helpdata/en/aa/359840dfa5a160e10000000a1550b0/frameset.htm
    Cheer's
    HVR.

  • How to fill or bind data using Value Node in Tree Node

    Hi Gurus,
    Can anybody help me on how to fill data or bind data using Value Node in Tree Node View. I know how to create Tree Node but not able to show value on the UI in Tree View.
    Can u please let if anybody has done it?
    Thanks in advance.
    Madhusudan

    continued...
    TRY.
              lv_child = me->node_factory->get_proxy(
                        iv_bo = lv_value_node
                        iv_parent_proxy = me
                        iv_proxy_type = 'ZL_CLASS_CN02' ).
              lv_child->is_leaf = 'X'.
              APPEND lv_child TO rt_children.
            CATCH cx_sy_move_cast_error cx_sy_ref_is_initial.
          ENDTRY.
      In the above code iv_bo , lv_value_node will be the actual object of the second node or leaf node here, which will have the same structure of parent node along with data. After/before this, you would need to build table and refresh in do-prepare_output of IMPL class.In the above code iv_bo , lv_value_node will be the actual object of the second node or leaf node here, which will have the same structure of parent node along with data. After/before this, you would need to buid table and refresh in do-prepare_output of IMPL class.
    ztyped_context->resultlist->build_table( ).
      IF ztyped_context->resultlist->node_tab IS INITIAL.
        ztyped_context->resultlist->refresh( ).
      ENDIF.
    Also the EH_ONEXPAND has to be implemented and event handled in DO_HANDLE_EVENT. But this expand event has to be delegated to context node directly as CL_BSP_WD_CONTEXT_NODE_TREE will already have the implementation.
    ztyped_context->resultlist->expand_node( lv_event->row_key ).
    Where in result list is the node ZL_CLASS_CN00.
    After typing the whole content , i found this blog :). There are few things i have written more that in the blog.  /people/poonam.assudani/blog/2009/06/24/create-a-tree-view-display-in-crm-web-ui
    Regards,
    Karthik

  • How to populate data in drop down box dynamically in adobe form?

    Dear Experts.
    I am new to adobe interactive form can anybody please tell me how to fill data in a drop down box dynamically? I am using webservices method.
    Thanks in advance.
    Chitta Ranjan Mahato
    Edited by: mahato123 on Aug 5, 2011 12:16 PM

    you can create a method to populate the context attribute that you are using to map to your dropdown box.
    DATA: node_info TYPE REF TO if_wd_context_node_info.
    DATA: it_table TYPE wdr_context_attr_value_list.
    ** select your dropdown data into it_table and pass it to your context attribute.
    ** here, mine is call PROJ_TYPE - the values should appear in your dropdown.
      node_info->set_attribute_value_set(
         name      = 'PROJ_TYPE'
         value_set = it_table ).

Maybe you are looking for

  • How to connect my Lumia 625 to my tv.

    Just wondering if anyone knows how to connect the Lumia 625 to a tv,appreciate the help.

  • With PremPro CS3, after reinstalling to correct an error, cannot launch

    I have been using PremPro-CS3 for nearly a year when I bevan to run into several problems of incomplete rendering, not recognizing capture sources, and workspaces being no longer available.  I decided to re-install (or repair) through Adobe's applica

  • Cant view itunes account details or make purchase with iphone

    Hi. I can log in to my itunes store account with my iphone 3gs. However, when i try to access account details or make a purchase i am prompted for my password again. When I enter this (correctly) I just get re-prompted immediately. I'm stuck in a loo

  • Reconfig of Oracle 10g, Programs in Start Menu.

    Hi 1. My window on C: drive was corrupted, and my Oracle 10g was o D: drive. 2. I installed new window, reconfig my Oracle 10g Database. 3 But i have lost all utilites/program listing of 10g, appeared in Start Menu. Plz, tell me the way how we can re

  • IE Stops after installing XP SP1

    I'm using Java VM: Java HotSpot(TM) Client VM (1.3.1_02-b02 mixed mode) whiched worked well until I installed XP SP1 (via Windows Update). I don't have a problem in Netscape. What is a course of action to fix this? Will I need to go back (using Syste