Query on module pool field -f4 help

Hi all,
My query is as follows :
There are 2 fields in module pool screen :
sector
lfd
Now there is a table called sector with 2 fields sector and lfd.
now when f4 is pressed on the above sector field, this sector table has to be called so that I can select the required sector from the f4.
I am able to do till above.
Now the issue is when I press f4 on sector field and select the required sector, the lfd value for this corresponding sector should be automatically populated in lfd field on the the above module pool screen.
please let me know regarding the above.
regards,
srinivas

Hi
after assigning the value to lfd field
call the same screen again. ex: call screen 'screen name'.'
or
Try this..
global variable
Data: Variable  type c.
in your PBO
if variable is not initial.
lfd = 'Variable'.
endif.
clear Variable.
in POV
after calling F4IF_FIELD_VALUE_REQUEST function module and assigning the output to sector field
Variable = lfd value.
once after executing your f4 functionality, if you press enter you will see the value in lfd field as well
Regards
Edited by: Anesht on Sep 30, 2010 5:56 PM

Similar Messages

  • A query in module pool

    hi all,
               I have a query in module pool, my problem is
    lets say i have two fields in a screen.
           out of which one is a date field and other one is a field which has got F4 help.
    When i pick some values from the F4 help i have to populate the date field simaultaneously.
    EG: when i pick value 1 from F4 help then i have to pass
    the date value to screen as soon as i pick.
    Can anybody help me out..
    Regards,
    Krishnakumar

    Hi,
    Check this sample code and kindly reward points by clicking the star on the left of reply,if it helps.
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
    FIELD s_begru MODULE abc ON INPUT.
    Process on value-request.
    field s_begru module f4_help.
    *& Report  ZZZ_JAYTEST1                                                *
    REPORT  ZZZ_JAYTEST1                            .
    tables kna1.
    data:
    begin of t_values occurs 2,
    value like kna1-begru,
    end of t_values,
    t_return like ddshretval occurs 0 with header line.
    data s_begru like kna1-begru.
    call screen 9000.
    *&      Module  f4_help  INPUT
          text
    module f4_help input.
    refresh t_values.
    t_values = 'PAR*'.
    append t_values.
    t_values = 'UGG'.
    append t_values.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
    retfield = 'BEGRU'
    value_org = 'S'
    tables
    value_tab = t_values
    return_tab = t_return
    exceptions
    parameter_error = 1
    no_values_found = 2
    others = 3.
    if sy-subrc = 0.
    read table t_return index 1.
    s_begru = t_return-fieldval.
    *Populate the date field also here
    endif.
    endmodule.                 " f4_help  INPUT
    *&      Module  abc  INPUT
          text
    module abc input.
    read table t_values with key value = s_begru.
    if sy-subrc ne 0.
    clear s_begru.
    endif.
    endmodule.                 " abc  INPUT

  • Problem is Module pool custom F4 help

    In module pool selection screen . I have defined vendor field as a select option and attached a custom search help to it . Now the problem is that when i press F4 on that field and select a value from the help , that value is not populated in the input field .
    The other problem is that if we keep this vendor select option as blank , then in the select statement using " IN S_lifnr " gives a dump as it treats the field as blank .( does not function as standard) . does this have anything to do with the custom search help .
    any help would be appreciated .

    Do you mean that u created a custom cearch help using se11 and attached that using F4IF_INT_TABLE_VALUE_REQUEST.
    I dont think that is possible. 
    F4IF_INT_TABLE_VALUE_REQUEST is used to programmatically create an f4 help, fetching data from an internal table.
    here is an eg.
    DATA: BEGIN OF VALUE_ITAB OCCURS 0,
          moldno TYPE zqmrr-zzmoldno,
          END OF VALUE_ITAB.
    DATA: FIELD_TAB LIKE DFIES OCCURS 0 WITH HEADER LINE.
    DATA: RETURN_TAB LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE.
    select-options :           s_moldno  for zqmrr-zzmoldno,
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MOLDNO-LOW.
      REFRESH VALUE_ITAB[].
      REFRESH FIELD_TAB[].
      REFRESH RETURN_TAB[].
      SELECT ZZMOLDNO FROM ZQMRR INTO table VALUE_ITAB.
      FIELD_TAB-FIELDNAME = 'ZZMOLDNO'.
      FIELD_TAB-TABNAME   = 'ZQMRR'.
      APPEND FIELD_TAB.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
       DDIC_STRUCTURE         = ' '
          RETFIELD               =  FIELD_TAB-FIELDNAME
        TABLES
          VALUE_TAB              = VALUE_ITAB
         FIELD_TAB              = FIELD_TAB
         RETURN_TAB             = RETURN_TAB
       DYNPFLD_MAPPING        =
    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.
    ENDIF.
      IF SY-SUBRC = 0.
        S_MOLDNO-LOW = RETURN_TAB-FIELDVAL.
      ENDIF.
    compare and try to find  what u are doing wrong,

  • F4 querry for module pool fields

    Hi,
    I am using module pool programming. In this there is a field BTRTL which has a standard search help. But there is another field BTEXT , description of BTRTL , which has to be populated as soon as BTRTL is selected usung F4. Is it possible using module pool?

    Hi,
    Also check this link for details.
    Re: HOW to ADD F4 help to a  field on SCREEN (MODULE POOL)
    See if it helps.
    Regards,
    Hemant.

  • Module Pool Programming - F1 help

    hi how to add field help(i.e f1 help) to the custom fields added to the standard transaction as well as to the standard fields in the standard transaction

    hi..
      check the demo program  is defined in the ABAP program like a normal PAI module. The processing logic of the module must ensure that adequate help is displayed for the field in question. Instead of calling an extra screen with text fields, you should use one of the following function modules to display a suitable SAPscript document:
    HELP_OBJECT_SHOW_FOR_FIELD
    This function module displays the data element documentation for components of any structure or database table from the ABAP Dictionary. You pass the name of the component and structure or table to the import parameters FIELD and TABLE.
    HELP_OBJECT_SHOW
    Use this function module to display any SAPscript document. You must pass the document class (for example, TX for general texts, DE for data element documentation) and the name of the document to the import parameters DOKCLASS and DOKNAME. For technical reasons, you must also pass an empty internal table with the line type TLINE to the tables parameter of the function module.
    For further information about how to create SAPscript documents, refer to the Documentation of System Objects documentation.
    regards,
    veeresh

  • Module pool fields enable

    hi abapers,
    I developing a screen.
    am using this screen to insert header and item tables to database.
    in the initial display am making all fields in disable mode in PBO.
    so wen i click on update or display i hav to enable some key fields.
    am making enabling the particular fields in PAI but its showing in disable mode.
    even when i click 'ADD LINE' button i have to make multiple entries to my line item table based on my header table.entries.
    <<inapproprate text removed by moderator>>
    Thanks & Regards,
    Rajesh
    Edited by: Matt on Nov 5, 2008 1:19 PM

    use flag...
    declare variable flag1 ,flag2,flag3, flag4 type c....
    in pai...
    when push1.
       flag1 = 1...
    when push 2.
      flag2 = 1.
    etc......
    in pbo....
    if flag1 = 1.
    loop at screen.
    endloop.
    endif.
    if flag2 = 1.
    loop at screen.
    endloop.
    endif.
    etc....

  • Using search help on one field other columns to be populated in module pool

    Hi all,
    Scenario: (Module Pool)
    1.Search help on column1.
    2.After search help excuted.
    3.Column2 and column3 to be filled automatically based on the search help result.
    I am stuck in this .
    Waiting for helpful pointers.
    Thanks in Advance.

    Hi Vivek,
    I hope you can derive the values of field2 & field3 from field1. If yes, following is the code to set values in field2 & field3:
    DATA : dynfields LIKE dynpread OCCURS 1 WITH HEADER LINE.
    dynfields-fieldname  = <Name_Field_2>.
    dynfields-fieldvalue = <Value_Field_2>. "(value derived from Field1)
    APPEND dynfields.
    CLEAR: dynfields.
    dynfields-fieldname  = <Name_Field_3>.
    dynfields-fieldvalue = <Value_Field_3>. "(value derived from Field1)
    APPEND dynfields.
    **Update the Values of the SCREEN FIELDs
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
      EXPORTING
      dyname = sy-repid
      dynumb = sy-dynnr
    *translate_to_upper = 'X'
      TABLES
      dynpfields = dynfields.
    Hope it helps.
    Cheers
    Vicky

  • Help needed for checkbox in module pool

    Hi experts,
    My requirement is i have 8 machines. i want to have a check box for each machine and when i select a specific machine by checking it, it should store data in my ztable as that specific machine name or it should show a flag or mark on each field selected inside my ztable.
    I am confused in the logic to enter in my module pool program. please help.

    see this :
    Create CheckBox in Module pool and update the Databas once i hit the enter
    Also please search before you post

  • Date field in module pool

    hi all,
    i want to have date field in module pool with F4 help. m keeping format as DATS. but still its not taking F4 help for taking date from calender...how shud i do it.

    Call this FM -
    CALL FUNCTION 'F4_DATE'
           EXPORTING
                DATE_FOR_FIRST_MONTH = DATE
                DISPLAY              = HELPDISP
           IMPORTING
                SELECT_DATE          = DATE
           EXCEPTIONS
                OTHERS               = 4.
    Regards,
    Amit
    Reward all helpful replies.

  • Modul pool scrreen related query

    hi abapers,
    please solve my query regarding module pool.
    i have a module pool screen with table grid and i use upload and download function define on push button, when i press first time upload button my data can easily upload to table grid,
    but when i use mouse scroll button then again data can uploaded on table grid.
    please tale me if  any statement or function is exist to handle this problem.
    thanks,
    Abhi

    HI  I HAVE WRITTEN THIS CODE.
    { MODULE USER_COMMAND_5000_TRC_DETL INPUT.
    CASE SY-UCOMM.    
        WHEN 'UPLOAD'.
          PERFORM DATA_UPLOAD.
          CLEAR SY-UCOMM.
    WHEN 'DOWNLOAD'.
          PERFORM DOWNLOAD.
    ENDCASE.
    FORM DATA_UPLOAD .
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          FIELD_NAME = 'P_FILE'
        IMPORTING
          FILE_NAME  = P_FILE.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
         EXPORTING
        I_FIELD_SEPERATOR        =
           I_LINE_HEADER            =  'X'
           I_TAB_RAW_DATA           =  IT_RAW       " WORK TABLE
           I_FILENAME               =  P_FILE "'C:\UPLOAD1.XLS'
         TABLES
           I_TAB_CONVERTED_DATA     = IT_FINAL[]    "ACTUAL DATA
        EXCEPTIONS
           CONVERSION_FAILED        = 1
           OTHERS                   = 2.
    IF SY-SUBRC <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. }
    Edited by: Abhilash on Apr 16, 2009 12:03 PM

  • Get data from a module pool

    Hello ABAP Experts,
    I am BW person, and looking to extract the data from the table display from one of the trasactions in R/3.
    tcode: fmderive
    i checked the the program it is : SAPMABADR (module pool)
    fields of hte table belong to: structure FMDERIVE
    If i can get the data into a internal table. That would be great, i can do the rest of the processing before i extract this data to BW.
    Any suggestions appreciated.
    Thanks,
    BWer

    Hi,
    It is possible to extract data in internal table. The internal table should be of a particular STRUCTURE which is created in SE11. Populate the internal table in program.
    I do not remember the exact command, but it is somewhat as below. With this it is possible to extract data in BW.
    *<QUERY HEAD> "Always comment this statement
    loop at it_data into wa_data.
    append wa_data to it_fmderive.
    endloop.
    *<QUERY BODY> "Always comment this statement
    The internal table it_fmderive can be used to extract data in BW. This is the only way to extract data.
    Also refer following link :
    http://www.thespot4sap.com/articles/SAP_ABAP_Queries_DataRetrievalUsingProgram.asp
    Best regards,
    Prashant
    Message was edited by: Prashant Patil

  • Caling smart form from module pool

    Hi,
    i want to call smartform from module pool screen when  click on some pushbutton.
    ex i want to call smart form of sales order by passing perticular S.O number from module pool screen.
    plz help me o get this.
    thanks.

    Hi,
    Enable hotspot option in the field catalog for the .SO.NUMBER field.  On clicking on SO.Number
    get the cursor field value and call the smart form in the PAI  (ie., in user_command module).
    Probably  pick ucomm triggers  with hotspot.
    Venkat.

  • Use of module pool programming

    hi,
       i'am in starting stage of abap , i would like to know the importance of module pool programming and what is the use os module pool programming in real time, please help me with this.

    see this link for better understanding of dialog programming/module pool programming.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ce935c111d1829f0000e829fbfe/content.htm
    see this
    Check the below link:
    http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
    http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    You can also check the transaction ABAPDOCU which gives you lot of sample programs.
    Also you can see the below examples...
    Go to se38 and give demodynpro and press F4.
    YOu will get a list of demo module pool programs.
    One more T-Code is ABAPDOCU.
    YOu can find more examples there.
    See the prgrams:
    DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
    DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    Regards.

  • How to execute module pool (Dialog programs)

    hai gurus,
    i have  created one module pool prm using se38,
    and using se51 i had design two push buttons in Layout.
    and the PAI flow logic i have written the code like ...
    CASE : SY-UCOMM.
    WHEN 'DISP'.
    MESSAGE  I001 WITH 'DISPLAY BUTTON PRESSED'.
    WHEN 'EXIT'.
    MESSAGE I002 WITH 'EXIT BUTTON PRESSED'.
    LEAVE PROGRAM.
    ENDCASE.
    as the same code will work for executable program and this is not working Module Pool program why .
    and How can i execute with the use of module pool program
    please help me

    hi
    good
    go through these links which ll give you complete idea about the module pool programmin and the relation between module pool programming and ABAP.
    http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
    reward point if helpful.
    thanks
    mrutyun^

  • How many screens are there in module pool

    hi gurus
    can anyone suggest me
    how many screens are there in module pool
    thank you
    regards
    kals.

    see this link for better understanding of dialog programming/module pool programming.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ce935c111d1829f0000e829fbfe/content.htm
    see this
    Check the below link:
    http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
    http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    You can also check the transaction ABAPDOCU which gives you lot of sample programs.
    Also you can see the below examples...
    Go to se38 and give demodynpro and press F4.
    YOu will get a list of demo module pool programs.
    One more T-Code is ABAPDOCU.
    YOu can find more examples there.
    See the prgrams:
    DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
    DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    Regards.
    Chandru

Maybe you are looking for