Need help in module Pool programming.

Dear gurus
I'm stuck in a step of Module Pool program
Steps i used for enhancement in XK01.
1)  i appended a structure in table LFA1 having two fields A and B.
2)  then i went to IMG-> Logistic -> Business Partner-> Vendor -> Adoption of Customer's Own Master Data Fields -> Prepare     Modification-Free Enhancement of Vendor Master Record ( Here i created my screen group Z1 without Function Code.
3) then i created below module pool program. of screen 9999 and in layout i added to fields to display A and B which i appended.
PROGRAM  ZSNAK_XK01.
TABLES: lfa1.
module status_9999 output.
endmodule.                 " status_9999  OUTPUT
module user_command_9999 input.
endmodule.
4) After this i wen to  IMG-> Logistic -> Business Partner-> Vendor -> Adoption of Customer's Own Master Data Fields ->
    Business Add-In: Processing of Master Data Enhancements ( Here  i created my implementation on method  CHECK_ADD_ON_ACTIVE  and added this code
if i_screen_group eq 'Z1'.
e_add_on_active = 'X'.
endif.
5) then i went to   IMG-> Logistic -> Business Partner-> Vendor -> Adoption of Customer's Own Master Data Fields ->
   Business Add-In: Customer Subscreens. and created my implementation on method GET_TAXI_SCREEN where i have written this code.
e_screen = '9999'.
  e_program = 'ZSNAK_XK01'.
  e_headerscreen_layout = ''.
After activation when i execute t-code XK01 i see my button there after INFORMATION BUTTON when i click on it i get following error.
Incorrect screen type: Screen is incorrectly defined or used.
  The attribute screen type with the values 'Normal Screen' and
  'Subscreen' determines the use of the screen. If a normal screen is used
   as subscreen or vice versa, an error occurs.
  The screen "ZSNAK_XK01" 9999 has, in this respect, an inappropriate screen
   type.
Please guide me
Regards
Saad Nisar.

I think you have defined the screen 9999 as normal screen. go to attributes tab of the screen and make it as "subscreen' (radio button) and activate

Similar Messages

  • Need help in module pool program

    help me to create dialog program for upload data into DDIC table.FOR EXAMPLE IN CREATING MATERIAL THROUGH MM01 DATA WHIH YOU ARE ENTRING INTO THE FIELD WILL BE STORED IN MARA TABLE.
    Message was edited by:
            neela renganathan

    hi,
    Check this thread..
    Re: dialog prog
    Hope this helps !
    Cheers
    Alfred

  • How to Use F4 help in Module Pool Programming??????

    Hi Friends,
    This is Jagadeesh, I have an issue Module Pool Programming. Any of you can go through on this and can give an required answer.
    Issue is as follows,
    I have an Input/Output field for that i need to give f4 help, based on that field the related data should sit in to my table control. The thing is there is no relation between the input/output field and the table control fields.
    Is this possible? If so how can i do this.

    Hi Jagadeesh,
    For F4 Values on Screen:
    PROCESS ON VALUE_REQUEST
    using module call starting with FIELD i.e FIELD field MODULE module
    There are number of function modules that can be used for the purpose, but these
    can fullfill the task easily or combination of them.
    DYNP_VALUE_READ
    F4IF_FIELD_VALUE_REQUEST
    F4IF_INT_TABLE_VALUE_REQUEST
    POPUP_WITH_TABLE_DISPLAY
    DYNP_VALUE_READ
    This function module is used to read values in the screen fields. Use of this
    FM causes forced transfer of data from screen fields to ABAP fields.
    There are 3 exporting parameters
    DYNAME = program name = SY-CPROG
    DYNUMB = Screen number = SY-DYNNR
    TRANSLATE_TO_UPPER = 'X'
    and one importing TABLE parameter
    DYNPFIELDS = Table of TYPE DYNPREAD
    The DYNPFIELDS parameter is used to pass internal table of type DYNPREAD
    to this FM and the values read from the screen will be stored in this table.This
    table consists of two fields:
    FIELDNAME : Used to pass the name of screen field for which the value is to
    be read.
    FIELDVALUE : Used to read the value of the field in the screen.
    e.g.
    DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,
    SCREEN_VALUE LIKE LINE OF SCREEN_VALUES.
    SCREEN_VALUE-FIELDNAME = 'KUNNR' . * Field to be read
    APPEND SCREEN_VALUE TO SCREEN_VALUES. * Fill the table
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    DYNAME = SY-CPROG
    DYNUMB = SY-DYNNR
    TRANSLATE_TO_UPPER = 'X'
    TABLES
    DYNPFIELDS = SCREEN_VALUES.
    READ TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.Now the screen value for field KUNNR is in the SCREEN_VALUE-FIELDVALUE and can be used for further processing like using it to fill the internal table to be used as parameter in F4IF_INT_TABLE_VALUE_REQUEST ETC.
    F4IF_FIELD_VALUE_REQUEST
    This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three
    parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    TABNAME = table/structure
    FIELDNAME = 'field name'
    DYNPPROG = SY-CPROG
    DYNPNR = SY-DYNR
    DYNPROFIELD = 'screen field'
    IMPORTING
    RETURN_TAB = table of type DYNPREAD
    F4IF_INT_TABLE_VALUE_REQUEST
    This FM is used to dsiplay values stored in an internal table as input
    help.This FM is used to program our own custom help if no such input help
    exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD
    is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.
    If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = field from int table whose value will be returned
    DYNPPROG = SY-CPROG
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'screen field'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = internal table whose values will be shown.
    RETURN_TAB = internal table of type DDSHRETVAL
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 2
    others = 3.
    POPUP_WITH_TABLE_DISPLAY
    This FM is used to display the contents of an internal table in a popup window.The user can select a row and the index of that is returned in the CHOISE
    parameter.The VALUETAB is used to pass the internal table.
    A suitable title can be set using TITLETEXT parameter. The starting and end position of the popup can be specified by the parameters STARTPOS_COL / ROW and ENDPOS_ROW / COL .
    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
    EXPORTING
    ENDPOS_COL =
    ENDPOS_ROW =
    STARTPOS_COL =
    STARTPOS_ROW =
    TITLETEXT = 'title text'
    IMPORTING
    CHOISE =
    TABLES
    VALUETAB =
    EXCEPTIONS
    BREAK_OFF = 1
    OTHERS = 2.
    e.g.
    DATA: w_choice TYPE SY-TABIX.
    DATA: BEGIN OF i_values OCCURS 0 WITH HEADER LINE,
    values TYPE I,
    END OF i_values.
    PARAMETRS : id TYPE I.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR id
    i_values-values = '0001'.
    APPEND i_values.
    i_values-values = '0002'.
    APPEND i_values.
    i_values-values = '0003'.
    APPEND i_values.
    i_values-values = '0004'.
    APPEND i_values.
    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
    EXPORTING
    ENDPOS_COL = 40
    ENDPOS_ROW = 12
    STARTPOS_COL = 20
    STARTPOS_ROW = 5
    TITLETEXT = 'Select an ID'
    IMPORTING
    CHOISE = w_choice
    TABLES
    VALUETAB = i_values
    EXCEPTIONS
    BREAK_OFF = 1
    OTHERS = 2.
    CHECK w_choice > 0.
    READ TABLE i_values INDEX w_choice....now we can process the selection as it is contained
    ...in the structure i_values.
    Other FM that may be used to provide input help is HELP_START .
    regards,
    Dj
    reward for all useful answers.

  • F4 Help In Module Pool Program

    Hi experts,
         How to create F4 help for an input field on selection screen in module pool program.'
    I have developed a module pool program. On selection screen
    when i  press F4 on vbeln field then it should display and the order numbers along with item numbers i.e both VBELN AND POSNR VALUES.
    Thanks & Regards
    Neelesh

    hi,
    try this one.......
    PROCESS ON VALUE-REQUEST.                                
      FIELD ZVLOAD_PROD_COMB-LOC_NO  MODULE VALUE_LOC_NO.        
    code inside MODULE -
    VALUE_LOC_NO
      DATA : BEGIN OF INT_TAB_ID OCCURS 0,
                TAB_ID TYPE ZALOAD_PROD_COMB-TAB_ID,
             END OF INT_TAB_ID.
      DATA : LOC_MAX TYPE ZALOAD_PROD_COMB-TAB_ID.
      CLEAR INT_TAB_ID.
      REFRESH INT_TAB_ID.
      SELECT MAX( TAB_ID) INTO (LOC_MAX) FROM ZALOAD_PROD_COMB.
      COUNT = LOC_MAX + 1.
      DO 10 TIMES.
        MOVE COUNT TO INT_TAB_ID-TAB_ID.
        APPEND INT_TAB_ID.
        COUNT = COUNT + 1.
      ENDDO.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
         RETFIELD            = 'TAB_ID'                        u201C Internal table field name
         DYNPPROG         = 'PROG_NAME                  u201C Program name
         DYNPNR              = SY-DYNNR
         DYNPROFIELD   =  'TAB_ID'                        u201C Field where u need F4 help
         VALUE_ORG       = 'S'
       WINDOW_TITLE  = u2018Any descriptionu2019
        TABLES
          VALUE_TAB      = INT_TAB_ID.                   u201C Internal table name
      IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    reward points if useful.......:-)
    and mark the post answered once ur problem is solved ....

  • F4 help in module pool programming

    Hi All,
    I have a requirement in module pool programming.
    I have two fields on the screen. When I press F4 help on one field, it should fill both the fields with the respective values.
    For example, I have G/L account and cost center for a Plant. when I click F4 for G/L, both G/L and cost center should be filled with the respective values.
    Thanks in advance.

    Hi,
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
                  EXPORTING
        DDIC_STRUCTURE         = ' '
          RETFIELD               = 'Zxxx'-------secondfield
        PVALKEY                = ' '
        DYNPPROG               = ' '
        DYNPNR                 = ' '
        DYNPROFIELD            = ' '
        STEPL                  = 0
          WINDOW_TITLE           = 'abcdef'
        VALUE                  = ' '
          VALUE_ORG              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        TABLES
          VALUE_TAB              = itab_details-zfirst----main field
        FIELD_TAB              =
          RETURN_TAB             =  it_return
        DYNPFLD_MAPPING        =
       EXCEPTIONS
          PARAMETER_ERROR        = 1
          NO_VALUES_FOUND        = 2
          OTHERS                 = 3
            if sy-subrc = 0.
              clear itab_details.
              read table it_return index 1.
              itab_details-zxxx = it_return-fieldval.
          read table itab_details with key zxxx = itab_details-zxxx.
              itab-zxxx = itab_details-zxxx.
              itab-zabc  = itab_details-zabc.
            endif.
    let me know if you need anything
    Thanks
    Venki

  • Plz send  some help on module pool programming

    send some help on module pool programming

    Bluefox,
    SDN is not providing online learnning program. it is a forum catagery place where guys comes with real time problems.
    you should try to search by your self in GOOGLE.
    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
    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
    please close this thread.

  • Need help in Module pool

    Hi Friends,
              Can anyone give me the idea for creating module pool using 3 to 4 database tables.

    a module pool program can be ceated using <u><i><b>se 80 - object avigator.</b></i></u>
    select program in the drop-down box..
    enter a program name and press enter key...
    right click on the program name  (object name)
    save the object in ur own package...
    u can also create include callled TOPinclude- to globalise all the data used in the program...
    choose create ---> choose SCREENS ..
    goto layout and set the layout of the screen...
    use screen PBO - Process before output modules...
    (PBO occurs before user interaction)
    and PAI - Process after input modules for module pool programming..
    (PAI occurs after user interaction)
    double click on modules..
    declare structures for using different internal tables and work areas for different database tables .
    let us have a a structure called struct_tables
    having fields from VBAK  and KNA1  such as NAME1, STRAS, ORT01, PSTLZ,
    TELF1 BY INNER JOINING VBAK AND KNA1 TABLES BASED UPON KUNNR AS  KEY FIELD AND HAVING SALES DOCUMENT NUMBER 'VBELN' AS INPUT BY THE USER .
    statement :
    SELECT NAME1
                 STRAS
                 ORT01
                  PSTLZ
                   TELF1
                   VBELN
                   KUNNR
    FROM VBAK   INNER JOIN KNA1   ON
    VBAKKUNNR = KNA1KUNNR .
    and then u can also write the sselected fields in a table control wizard...
    thus u can perform module pool programming using 3-4 database tables.

  • Date search help in module pool programming in 4.6C version

    Hi Experts,
    How can i have input help in my module pool screen, I gave the searh help EXT_DATE in the search help parameter of that screen's field parameter.
    But its not showing the input help.
    I m facing this issue in 4.6C.
    Please advise
    Thanks
    Yogesh Gupta

    Hi,
    Just to make sure that you are talking about F1 help and not F4 for input of date right?
    For F1 help of screen field, please check program for tcode: F150 (Dunning Run), You will find FM: F150_FIELD_SELECTION_HELP used for one field on screen (112).
    I guess this might help you.
    thanks,
    Ags.

  • Regarding F4 help in Module pool Programming

    Hi folks,
          I have created a Screen in Module pool. I have to attach a F4 help for a field. I did that using the Function Module 'F4IF_INT_TABLE_VALUE_REQUEST'. Its working fine, but the when i click the value in the window, correct field value is not coming to the screen field. I have to get the value of first field in that window, but the value of the last field is coming to the screen. I have cheked the return table in debugging. It getting the value of last field, but not the first field. I have given the correct field value in the retfield parameter. Can any body suggest me why its not coming..
                                  Thanks and Regards,
                                  Shyam.

    Hi Ramachander,
               I have already passed 'S' to value_org.
    Please find my source code below.
    MODULE set_hodf4 INPUT.
      MOVE 'IT_HODF4-DEPTID' TO iretfield.
      REFRESH it_hodf4.
      SELECT DISTINCT deptid
                      bukrs
                      werks FROM zmm_ktph_hodmail INTO TABLE it_hodf4.
      DESCRIBE TABLE it_hodf4 LINES my-tfill.
      CASE my-tfill.
        WHEN '0'.
    * No & entries found.
          MESSAGE i005.
        WHEN OTHERS. "Get F4 help
          CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
            EXPORTING
    *    DDIC_STRUCTURE              = ' '
              retfield               = iretfield
    *   DYNPPROG               = ' '
    *   DYNPNR                 = ' '
    *   DYNPROFIELD            = ' '
             window_title           = c_hod
             value_org              = 'S'
             display                = 'F'
    * IMPORTING
    *   USER_RESET             =
            TABLES
             value_tab              = it_hodf4
             return_tab             = f4_hod
           EXCEPTIONS
             parameter_error        = 1
             no_values_found        = 2
             OTHERS                 = 3
          IF NOT f4_hod[] IS INITIAL.
            MOVE f4_hod-fieldval TO zmm_ktph_hodmail-deptid.
          ENDIF.
      ENDCASE.
    ENDMODULE.                 " set_HODf4  INPUT
    Thanks,
    Shyam.
    Code Formatted by: Alvaro Tejada Galindo on Dec 26, 2008 10:33 AM

  • Need Help for Module Pool

    hello friends
    i m new in ABAP
    i had designed database and now i want to enter the data through module pool so please guide me about the module pool and insert condition how could i do that
    Do post friends...................
    Waiting for ure precious suggestions
    With Best Regards
    Ruby

    Create Table Control screen in Module Pool
    · Step 1 (Create new structure for table control)
    Type is name of structure (ZTC_EKKO) and press create
    · Step 2 (Create Program)
    Goto transaction SE80(Object Navigator) -> Repository Browser -> Program.
    Enter your program name, please ensure that is begins with SAPMZ…… as this is a module pool (dialog program).
    Press enter to create, and press yes!
    Ensure that you create a top include, and press Enter.
    Accept the name created for the top include.
    Press Enter.
    Create Table Control
    · Step 1 (Create new structure for table control)
    Type is name of structure (ZTC_EKKO) and press create
    Enter the fields that you want to display in the table control. Example uses fields from EKKO.
    Now save and activate it!
    · Step 2 (Create Program)
    Goto transaction SE80(Object Navigator) -> Repository Browser -> Program.
    Enter your program name, please ensure that is begins with SAPMZ…… as this is a module pool (dialog program).
    Press enter to create, and press yes!
    Ensure that you create a top include, and press Enter.
    Accept the name created for the top include.
    Press Enter.
    Press Save
    · Step 3 (Create TOP include)
    Double click on the top include and enter following ABAP code:
    Tables: ZTC_EKKO.
    controls: tc100 type tableview using screen 100.
    data: ok_code type sy-ucomm.
    data: it_ekko type standard
    table of ZTC_EKKO initial size 0,
    wa_ekko type ZTC_EKKO.
    data: ok_code type sy-ucomm.
    · Step 4 (Create screen)
    Right click the program to create a screen 100 for the dialog. Enter Short description, set screen type to Normal and enter 0 or blank into Next screen. Then move to Element List tab and enter the OK code as OK_CODE (i.e. the same as what you declared in the top include with data: ok_code type sy-ucomm).
    · Step 5 (Create table control)
    Press the Layout button to bring up the screen painter editor.
    Press table control button and drag it on to the screen, enter the name of table control created in TOP include (TC100). Now press the yellow button for attributes and set the table control as below options
    Create Table Control
    · Step 1 (Create new structure for table control)
    Type is name of structure (ZTC_EKKO) and press create
    Enter the fields that you want to display in the table control. Example uses fields from EKKO.
    Now save and activate it!
    · Step 2 (Create Program)
    Goto transaction SE80(Object Navigator) -> Repository Browser -> Program.
    Enter your program name, please ensure that is begins with SAPMZ…… as this is a module pool (dialog program).
    Press enter to create, and press yes!
    Ensure that you create a top include, and press Enter.
    Accept the name created for the top include.
    Press Enter.
    Press Save
    · Step 3 (Create TOP include)
    Double click on the top include and enter following ABAP code:
    Tables: ZTC_EKKO.
    controls: tc100 type tableview using screen 100.
    data: ok_code type sy-ucomm.
    data: it_ekko type standard
               table of ZTC_EKKO initial size 0,
            wa_ekko type ZTC_EKKO.
    data: ok_code type sy-ucomm.
             Press Save and Activate
    · Step 4 (Create screen)
    Right click the program to create a screen 100 for the dialog. Enter Short description, set screen type to Normal and enter 0 or blank into Next screen. Then move to Element List tab and enter the OK code as OK_CODE (i.e. the same as what you declared in the top include with data: ok_code type sy-ucomm).
    · Step 5 (Create table control)
    Press the Layout button to bring up the screen painter editor.
    Press table control button and drag it on to the screen, enter the name of table control created in TOP include (TC100). Now press the yellow button for attributes and set the table control as below options
    · Step 6 (Populate table control )
    Press the orange button (Fields). On the next screen enter ZTC_EKKO and press the ‘Get from Dict’ button. Select the fields you want (all) and press enter. Now drag them onto your Table Control.
    Below is the result, there will been syntax errors if we check now! So Save and go back
    into the flow logic tab.
    · Step 7 (Create flow control )
    Within the flow logic of screen 100 and create two modules, one to select the data from the database and the other to move the selected fields into the table control. Also insert the two loop statements to populate and retrieve the lines of the table control.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
      module data_retrieval.
      loop at it_ekko into wa_ekko with control TC100.
        module populate_screen.
      endloop.
    PROCESS AFTER INPUT.
      loop at it_ekko.
      endloop.
    MODULE USER_COMMAND_0100.
    Double click the module data_retrieval to create and click yes to get past the popup. Ensure that a new include is created to hold all the PBO modules (default). Press enter.
    Select 10 rows of data from the EKKO table and load into the internal table it_ekko. Go back to the flow logic to load this data into the Table Control.
    ***INCLUDE MZ_TCONTROL_DATA_RETRIEVALO01 .
    *&      Module  data_retrieval  OUTPUT
          text
    MODULE data_retrieval OUTPUT.
    select data from ekko table
      SELECT ebeln bukrs bstyp bsart
             bsakz loekz statu aedat
       UP TO 10 ROWS
        FROM ekko
        INTO CORRESPONDING FIELDS OF TABLE it_ekko.
    ENDMODULE.                 " data_retrieval  OUTPUT
    Double click the module populate_screen to create. Now move the values in this loop from the wa_ekko into the Table Control with the move-corresponding statement.
    MODULE populate_screen OUTPUT.
        DATA: ld_line TYPE i.
    *   Set which line of table is a top of displayed table control
        IF sy-stepl = 1.
          tc100-lines =
            tc100-top_line + sy-loopc - 1.
        ENDIF.
    *   move fields from work area to scrren fields
        MOVE-CORRESPONDING wa_ekko TO ztc_ekko.
      ENDMODULE.                 "
    populate_screen  OUTPUT
    · Step 8 (Create transaction )
    Now create a transaction to test the table control program. Right click the Program and select create-> transaction.
    · Step 9 (Execute transaction )
    Execute transaction ZTC
    please see the link for screen shots of the dailog module
    http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm
    reward  points if it is usefull ....
    Girish

  • Search help in module pool programming

    Hi Guys.
    I am strugging with the following scenario.
      When i entered value in one field, getting the search help for another field...correct one.
      But when i changed the value in the first field, the search help for another field is still the same
    and is not changind based on changes value. Here is the code. Plz try to help me out.
    SELECT JOURNALRESCODE JOURNALRESNAM JOURNALCATCODE JOURNALCATDIV
             JOURNALRESTYPE
             FROM YCALCJOURNALRES
             INTO CORRESPONDING FIELDS OF TABLE GI_CATREASON
             WHERE JOURNALCATCODE = YCALCJOURNALCAT-JOURNALCATCODE
             AND   JOURNALCATDIV  = V_EANL-SPARTE.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD        = 'JOURNALRESCODE'
          VALUE_ORG       = 'S'
        TABLES
          VALUE_TAB       = GI_CATREASON
          RETURN_TAB      = RETURN_TAB
        EXCEPTIONS
          PARAMETER_ERROR = 1
          NO_VALUES_FOUND = 2
          OTHERS          = 3.
      IF SY-SUBRC <> 0.
      ELSE.
        READ TABLE RETURN_TAB INDEX 1 ASSIGNING <DDSHRETVAL>.
        IF SY-SUBRC = 0.
          YCALCJOURNALRES-JOURNALRESCODE =  <DDSHRETVAL>-FIELDVAL.
          CLEAR RETURN_TAB.
          REFRESH RETURN_TAB.
          CLEAR:GI_CATREASON,GI_CATREASON[].
        ENDIF.
      ENDIF.
    Regards,
    reddy.s

    Hi Guys.
    I got the solution and thanx for all ur replies. I need some more help from u guys.
    The drop down contains values of four fields. Now the return table from the fm F4IF_INT_TABLE_VALUE_REQUEST contains information about one retfield since i mentioned one retfield.. So far so good.
    Now my question is how can i get information about the 2nd field in the same dropdown?
          How can i mention the second retfield in the function module mentioned above?
    Thanx and Regards,
    surya.

  • F4 Help in Module pool and restricting the entries

    Hi all,
          I was looking how to give F4 help in module pool program and restrict the number of entries on tht event.
    Take a example of VBELN, it is having number of entries so for F4 help we first take all the entries for VBAK for VBELN and then use FM 'F4IF_INT_TABLE_VALUE_REQUEST' and pass the table.
    So how can we restrict number of entries initially 200 and then user can input number of hits.
    ( How to use Callback subroutin ).
       Waiting for valuable additions.
    Thanks,
    Anmol.

    Hi ,
        This is my query, I want to restrict the number of entries fetched by the search help depending on the user input like in standard help.
    Like VBELN is having number of records how can we asign a help to field like VBELN( for example ), is there any way to restrict the entries on search help rather than selection all the entries for tht field from database which is not good for performance. Like initially it should fetch 100 or 200 records, then if user want more entries to be fetch he can input the number of entries like in standard help. Any idea on this.
    Thanks,
    Anmol.

  • Calling search helps dynamically in module pool program

    Hi Experts,
    I have created two search helps. I need to call these search helps in my module pool program dynamically for a single field (i.e ZMATNR).
    you might be known... if it is a single search help, we can assign that in field attributes.
    But here... I need to call different search helps for a single field based on the condition.
    Pls help me.
    Thanks
    Raghu

    Hi,
    Use the below function module and  pass the search help created in search help field according to the condition.
    Process on Value-request.
    if condition = A.
    call function " F4IF_FIELD_VALUE_REQUEST"
    TABNAME           =                                                         
    FIELDNAME        =                                                       
    SEARCHHELP     =  "Mention search help created                                                          
    Elseif  Conditon =B.
    call function " F4IF_FIELD_VALUE_REQUEST"
    TABNAME           =                                                         
    FIELDNAME        =                                                       
    SEARCHHELP     =  "Mention search help created      
    Endif.
    Regards,
    Prabhudas

  • Help in uploading image using module pool programming!!!

    hi all
       I need a help from you all...iam designing my company's Visitors Identity card...im workin in module pool programming,i need to know wat function module should i use to get jpg image n to display it...
    i hav tried it using DP_PUBLISH_WWW_URL func module but it asks for OBJID dono wat should i give...i referred SAP_PICTURE_DEMO.....
    <b>plz suggest me with some solutions to diplay image which is stored in desktop....</b>
    asha.......

    hi,
    u try this importing jpeg image  in transcation oaor .
    in that give class name as pictures and class type as ot and execute it.
    in that u import which image u want to say for suppose a DUMMY.
    FORM TOP_OF_PAGE.                                           "#EC CALLED
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
            EXPORTING
                <b>I_LOGO             = 'DUMMY'</b>
                "'ENJOYSAP_LOGO'
                IT_LIST_COMMENTARY =  GT_LIST_TOP_OF_PAGE.
    ENDFORM.                    "TOP_OF_PAGE
    this top of page u use in FM
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         I_BACKGROUND_ID                   = 'ALV_BACKGROUND'
         I_CALLBACK_PROGRAM                = sy-repid
         I_CALLBACK_PF_STATUS_SET          = gc_pf_status_set
         I_CALLBACK_USER_COMMAND           = GC_USER_COMMAND
        <b> I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'</b>
    this may solve ur problem.

  • F4 help for the screen fields in module pool program

    Hi All,
      I have a requirement that, i want to provide F4 help for the 2 fields in module pool program. the fields are document number and fiscal year from rbkp table.
    i could provide search help for two fields.
    but how to select matching fiscal year for that document number.
    problem: i am getting fiscal year as first four digits of document number.
    please help me to solve this problem.
    Thanks & Regards,
    Namratha.V

    Hi,
       If your requirement is after selecting the document no from f4 help then the corresponding year should be updated in the document year field then use FM --> DYNP_VALUES_UPDATE
    In  this function module pass the screen no program & field for which u want to update value

Maybe you are looking for

  • Keynote remote app no longer working with keynote for ipad

    noticed after upgrading that the keynote remote does not pair with keynote for the ipad.  Any suggestion on a resolution or anyone else experiencing this issue?

  • Problems with 2wire and SBC.

    I received the 2wire HomePortal 1800HG a while back when I subscribed to SBC Yahoo DSL. It's a DSL modem/router/wireless base station combo. It's easy enough to set up on a PC, but I never used the wireless functionality except for my on PSP. Now, wh

  • PO Cancel Release and Rejection

    Hi, Can anyone point me to any documentation on Cancelling of Release in a PO and the Rejection button in the PO? What are the differences and how can I disable the cancelling of release functionality? Thank you.

  • Updating description of an existing costcenter

    Currently I'm experiencing a problem with BAPI_COSTCENTER_CHANGEMULTIPLE, if I try to use this BAPI to change data of an existing costcenter I get the error "Veldwijziging Valuta / Kostenplaats F9880320 niet mogelijk (er bestaan al bewegingsgegevens)

  • The Old Java runtime environment for handhelds.

    I heard this product has been discontinued but a CE 2.11 version is suposto be available from Sun's EOL(End Of Life) site.But I can find it can someone be so kind as to send it to me thanks [email protected]