Serch help F4 in Screen Painter

Hi All
I am creating a new screen in Screen Painter, for one of the input fields , I want F4 search help, which should be desplayed from the database table.
can any body guide how can I solve this.
cheers
AJ

If no searh help avaialble for the data element.
use process on value-request.
field 'FIELD_NAME'  module set_values.
and in module set_values   wrtie the below code
for example i have taken entreis from t158g.
  types :  begin of t_tab,
                 gmcode  like t158g-gmcode,
                 tcode like t158g-tcode,
           end of t_tab.
  data it_tab type standard table of t_tab.
  select gmcode tcode into table it_tab from t158g.
  if not it_tab[] is initial.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
      exporting
        retfield               = 'GMCODE'
       dynpprog               = sy-repid
       dynpnr                 = sy-dynnr
       dynprofield            = 'ZMAPGMCODE-GM_CODE'
       value                  = space
       value_org              = 'S'
       display                = 'F'
IMPORTING
  USER_RESET             =
      tables
        value_tab              = it_tab
    if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
  endif.

Similar Messages

  • F4 Search Help on a screen painter

    Hi gurus,
    I am new to ABAP programming but i am getting there, thanks to all of you guys, i need help on this issue:
    1. How to enable or program search help on a certain field in a screen painter?
    Your help is much appreciated.
    Ramorua
    Edited by: Ramorua Modisha on Apr 29, 2008 1:36 PM

    Hi,
    There are couple of ways in which you can get a search help.
    1) To have a DD reference to the field
    for this create a search help in SE11 assign the same to the data element and have a reference.
    2) To write a Process on Value Request. in the Flow logic in SE51.
    In this even create a module and call the FM
    F4IF_INT_TABLE_VALUE_REQUEST to get the search help.
    Hope this helps
    Santhosh

  • About Screen painter

    my senior are compelled me to develop an add-on witout screen painter.
    is it wright ? pls send me rply as early as possible.
    if wrong then send me about some help on screen painter and how to detect screen painter control from vb.net

    Mithun,
    I am not sure exactly how to answer your question.  The Screen Painter is typically used to assist the developer with creating new SAP Business One forms in an easy graphical environment.  It is a tool provided to the developer to assist with rapidly creating new forms.  You do not have to use the Screen Painter.  You can code your forms from scratch as part of your add-on code using the IDE of your choice such as VB.Net.  You can also look at this article which talks about how to auto generate and XML representation of your forms ...
    SAP Business One Tools [original link is broken]
    As far as help on the Screen Painter, that is available when you install the screen painter.
    HTH,
    Eddy

  • F4_FILENAME in search help in screen painter

    Hello gurus,
    I want to design a screen in which the text input field is used to get file name. For that i need to enable file search in local folders and drives with f4 key press. I wish to use the functionality of function module 'F4_FILENAME" in screen painter. How can i do that?
    I tried creating search help for RLGRAP structure. It compiles fine but gives the message 'No inout for selection'.
    What should i do?

    Thank you all,
    The problem has been solved.
    I am posting the final code.
    1. In se38, i created program zprogram.
    2. In se51, i created a screen for the program zprogram.
    3. In layout, i took 2 buttons and one input/output field.
    1st button for import and 2nd button for exit.
    4.In flow logic-
    i wrote the follwing code.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_100.
    PROCESS AFTER INPUT.
    PROCESS ON VALUE-REQUEST.
    FIELD FILENAME1 MODULE F4_FILE_SEARCH.
    5. IN THE MAIN PROGRAM
    i wrote the following code-
    REPORT ZPROGRAM.
    DATA: FILENAME1 TYPE RLGRAP-FILENAME,
               OK_CODE TYPE SY-UCOMM.
    CALL SCREEN 100.
    MODULE F4_FILE_SEARCH INPUT.
    OK_CODE = SY-UCOMM.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
        FIELD_NAME         = 'FILENAME1'
    IMPORTING
        FILE_NAME           = FILENAME1
    ENDMODULE.
    MODULE STATUS_100 OUTPUT.
    CASE OK_CODE.
    WHEN 'IMPORT'.
    MESSAGE 'THE FILE IS RECIEVED' TYPE 'I'.
    WHEN 'CANCEL'.
    LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.
    I REFERRED TO THE DEMO PROGRAM MENTIONED
    IN OTHER POST
    NAME OF THE DEMO PROGRAM IS - DEMO_DYNPRO_F4_HELP_MODULE

  • Search Help of compounded char in Screen Painter

    Hi,
    I have attached the standard search help /BI0/OGL_ACCOUNT to the G/L account input/output field in screen painter. While executing when I press F4 it gives the pop up message showing chart of accounts (Compounded) and G/L account characteristic values. But when I select single line it shows chart of accounts in the input/output field instead of G/L account. Could you please tell me why is it so and how can it be corrected if I want G/L account values in the input/output field.
    Thanks,
    Viren

    how to change the search help of the WBS field VBAP-PS_PSP_PNR in the over screen tab.
    Unfortunatly there is no search help for PS_PSP_PNR in VBAP.
    I guess you need to create one elementry Z search help and finally tab it to  PS_PSP_PNR in VBAP by just enhacing the VBAP.
    PS:But you need access key for same.

  • 'Screen Group' in Screen Painter,  & 'Search help Exit'

    Hii All,
    1. What is 'Screen Group' in Screen Painter
    attributes. In which Scenario we will go for it.
      2. What is 'Search help Exit'.
    Please post your messages and guide me in this topic,
    Thanks & Regards,
    John.

    Hi John,
    A Search help exit is something similar to a user exit. Every search help will have an option of attaching a search help exit under the definition tab( when you view the search help from se12).
    For example take a look at the search help VMVA - you will notice a search help exit  SD_F4_SHLP_EXIT_SUBSHLP_CHOOSE attached to it.
    Basically the serah help exit which is nothing but a function module with a predefined interface which gets triggered before a f4 help is displayed. The exit is used to supress or do any other related modification required.
    We have implemented many search help exits and the reason is that we have given a custom interface to our business partners to carry out some transaction on our SAP systems. Though we have given them access to our SAP system we also want to ensure that the business partner does not view any additional data in the system. We have controlled this via many ways like using z objects, using authorizations etc. Still once the user has authorizations to any transaction he or she can do a f4 help on any field and see the data which he should not be able to do. So we have implemented search help exits to supress the drop down only for the business partners. We control this based on the unique login id's we have given to them.
    So in short it is used to modify the behaviour of F4 help, mostly used to supress the drop down.
    It has to be defined in a specific format.
    Hope this helps.
    Cheers
    VJ

  • [Help]Screen Painter

    Hi experts,
    Lately I'm using PL07 and now I uninstalled my SAP Client and installed PL04 after that, I'm having a problem with Screen Painter. Please check the image below. Help me about this.
    http://www.webforone.com/images/5dwd2lodq9rsjs3aiaf.jpg
    Thanks,

    hi hikaru,
    Symptom
    Add-on fails to upgrade on the client when there is a new add-on version available on the server in the common DB.
    SAP Business One displays an error message:
    "Add-on <Name of add-on>: Add-on installation failed because another version is already installed. Please ensure that the version number is higher than the version previously installed."
    Add-on status is then set to pending.
    Cause
    Consulting.
    This issue occurs when both of the following conditions are met:
    There is a version of the add-on available on the server in the SARI table of the common DB that is newer than the one on the client.
    The server name or IP address registered in the AddOnsLocalRegistration.sbo file on the client for this add-on is different than the name or IP address registered with the license server for the SAP Business One database server.
    For example, this issue can occur after upgrading to SAP Business One 8.8 and "(local)" is listed as the server name in the AddOnsLocalRegistration.sbo file. But according to new security policies, "(local)" is no longer a valid server name and the server name registered with the license server will have changed when upgrading to release 8.8.
    The following would occur in such a case:
    The SAP Business One 2007 client connects to the (local) server.
    The client registers an add-on from the server.
    The server is upgraded to release 8.8, and is registered with the license server with an IP address or server name. The client upgrades to release 8.8, and continues to work with the same server. The local AddOnsLocalRegistration.sbo file is unchanged by the upgrade.
    The add-on is upgraded on the server.
    At the next logon, the client checks the version of the add-on on the server and finds that it has been upgraded. The client attempts to upgrade the add-on using the information in the  AddOnsLocalRegistration file. But the upgrade fails because the server name in the file is incorrect.
    Solution
    (1) Open "AddOnsLocalRegistration.sbo" file
    (2) Locate the "Common" node under the "AddOn" node and update the          "Name" Attribute to the DB Server machine name which is currently       used.
    (3) Repeat step(2) to update the "Name" Attribute for all AddOns.
    (4) Lanuch the SAP Business One and AddOn should upgrade as usual.
    Other terms
    SAP Business One client, AddOnsLocalRegistration.sbo, add-on upgrade, 8.8 add-on upgrade fails
    regards,
    Fidel

  • Help!! graphical screen  painter can't use.

    hi,everyone.
    we conncet to sap with sapgui by saprouter.
    the graphical screen painter not available .
    how to deal with this problem?

    Check the RFC - EU_SCRP_WN32 destination in SM59.
    Perform a "Test Connection": if the connection doesn't work maybe there is an issue in the connection between the presentation server and the application server.
    Check if there is a firewall that blocks the port used by the RFC.
    I have the same problem if I use a VPN connection to logon. The graphical screen-painter does not work...
    Hope this helps,
    Roby.
    PS: check out if in <sapgui_directory>\FrontEnd\SapGui there are these executables:
    gnetx.exe and gneux.exe
    These are the necessary files to start the Screen-Painter.

  • F4 help for the selection screen field designed in screen painter

    Hi all,
    I have designed selection screen in the screen painter. in that for one of the fields i have to give f4 help. for that i have writter the code in PAI event. in this event i have used the standard Function module for f4 help. but no f4 help is comming for that field. can any body suggest what i have to do.
    Thanks & Regards,
    Giri.

    Hi,
    You must use the correct event to meet ur requirement use  POV event instead of  PAI event.
    for more clarification and example program see  below the demo program
    DEMO_DYNPRO_F4_HELP_DYNPRO
    DEMO_DYNPRO_F4_HELP_MODULE
    Cheers
    fareed

  • Search help in Screen Painter

    Hi Experts,
    I have created a structure in which I have a Date field of type sy-datum. After putting the date field from the structure to the screen painter. When I test the screen in se51 I am getting the search help for date. But when I test thru transaction, I am not getting the search help.
    Can some one please help me with this.
    Thanks.

    Hi Suzie,
    Thanks for the reply. I checked my transaction. Since it is a module pool program I have selection the option Program and Screen (DIALOG TRANSACTION ). I have given my program name and screen num. The check box Maintain of standard transcation variant allowed is checked by default. I have check all the three GUI support checkboxes.
    That is what I have done. Am I doing anything wrong?
    Thanks.

  • Screen Painter - search help for field

    Hello All,
    I have some fields in a screen created with Screen Painter.
    The filelds's types are standard system types like BU_PARTNER or other.
    How do I have to define them so that in the screen to appear the match code?
    Thank you very much,
    Diana.

    Hi Diana Cotelea,
    You can use standard search help 'BUPA'.
    Do as follows,
    1. Goto 'Dict' tab of the property of BU_PARTNER field in your screen, in 'Search Help' property enter the search help name 'BUPA'.
    2. Goto 'Program' tab, for 'Poss. Entries Key' property select 2 or 3 from its DropDowm List values.
    Try this.
    Regards,
    R.Nagarajan.

  • Screen painter search help

    Hi All,
      I have created a custom search help and assigned it to a filed in the screen painter. This field provides me the F4 help, but when i manually enter some other data which is not present in search help it will accept it.
      How to configure so that when we enter any data which is not present in search help it should throw an error.
    Thanks,
    Mars

    Hi,
    You created a Elementry search help and attached to a field in screen. Is it right then -
    In PAI use chain ... endchain. Inside call a module in which, Select query from a table for a given input .
    If it not get selected , use a error message 'E' which won't allow to proceed untill a value entered is correct.
    If the field in not a manditory , check only if the field is not initial.

  • Screen Painter - Help!

    I have a screen in screen painter with two fields. if i set 1 field to X , then other should automatically be set to R on that same screen. Is it possible?
    I think it can be possible by using value-request.
    Please if u have any suggestion or example let me know.

    hi Rahul,
    You can achieve this in two ways:
    1 - when user selects 'X' from a search help for field1, the field 2 will be
         automatically populated with 'R'.
         For this, you have to code the logic in process on value request for field field1.
         write a module inside this event; inside the module call function module
         DYNP_VALUES_UPDATE to set the value 'R' in field2.
    2 - in the PBO, write the following code.
         if field1 = 'X'.
              field2 = 'R'.
         endif.
         But this will happen only after user enters X in field1 and then press ENTER
         or click any other key/button.
    Hope this helps,
    Sajan Joseph.

  • How to add a search help on a screen field from screen painter

    Hi,
    I would like to add an existing Search Help on a screen field in Screen painter.
    Of course it's possible to just click on th screen field and in the property box, I just have to set the name of teh search help.
    The problem is that I need the screen field to be grey and user musn't be able to change the field value if he doens't use the search help.
    I'm not allowed to modify the existing search help or to built it on my own from source code, I must use the existing one.
    Do you have an idea on how to do so?
    Regards,
    Morgan

    Dropdown Box:
    In the screen painter for that field goto properties -> Dropdown ->select listbox.
    Option 1:
    Instead let that field be in change mode and if user enters any wrong entry which is not there in the table give a error messgae.
      CHAIN.
        FIELD addr1_data-country.
        MODULE modify_screenfields1.
      ENDCHAIN.
    MODULE modify_screenfields1 INPUT.
      CASE sy-ucomm.
        WHEN 'ENTER' OR 'EXECUTE'.
          IF NOT addr1_data-country IS INITIAL.
            SELECT SINGLE landx FROM t005t INTO lws_landx WHERE
                                          land1 = addr1_data-country
                                      AND spras = 'EN'.
            IF sy-subrc <> 0.
              MESSAGE e000(zo_spa) WITH text-022.  " Invalid Country code
            ELSE.
              t005t-landx = lws_landx.
            ENDIF.
          ELSE.
            CLEAR: t005t-landx.
          ENDIF.
       ENDCASE.
    ENDMODULE.                 " modify_screenfields1  INPUT
    Option 2: Other than if u want the way u like, let that field be greyed out. don't attach the search help.
    In the PROCESS ON VALUE-REQUEST.
      FIELD addr1_data-region MODULE region_pov.
    MODULE region_pov INPUT.
    Using the F4IF_INT_TABLE_VALUE_REQUEST table value request show the search help.
    also make that field input enabled.
    ENDMODULE.                 " region_pov  INPUT
    I think this will solve ur problem.
    Regards,
    Prakash.
    Message was edited by: Prakash Ramu

  • Screen Painter help reqired

    Hi I need to create screen like this in screen painter
    create consumption period
    Sales org                        u2022
    Sold to party                  
    Special stock partner      
                                                                                                       october 2008
        november2008
        december2008
    1.The months displayed should be current month minus two months.
    2.The screen should display all months for which a consumption period has not yet been created for the combination Sales org/Sold-to-party/Special-stock-partner.
    3.It should also be possible to scroll back or forward to choose months when there is no room to display on the screen.
    kindly please help in this regards

    In a SAP-training, an employee of SAP said:
    In former times, a modulpool was the only effective way to import data from a user. But now every program should be a report (type 1). A modulpool is only interesting when you desing a very huge application.
    Regards,
    Martin

Maybe you are looking for

  • Airport Express and Firewall

    I have the most recent firmware on my Airport Express and have recently installed McAfee Security Center. When the Firewall is on, I can't access my remote speakers. When it is off I can. I have: Added the IP address of the Airport Express as a trust

  • I got a black screen on my iphone5s, how am i going to restore it, because i will bring it back to tmobile..

    i got a black screen on my iphone 5s, now i have to return it to tmobile, how am i going to restore it..

  • Business rule LCM issue

    while importing business rule from QA to PROD using LCM we are facing issues..It doesn't import Business rule . we had to do it manually copy and paste the code and variables. then stop and start the services to make this rule effective..we are on 11

  • When a job is scheduled log cannot be seen

    Hi All, Im working in Oracle Warehouse Builder Client & Repository 11.1.0.7.0. We have some ETL jobs that has to be executed on a daily basis. But when we schedule the ETL Job, we cannot see the log, i.e. step by step process of the Process Flow. And

  • Can't connect to GSM networks - What's the problem ?

    I am using a iPhone 5 (US/Verizon model) in Canada with a Telus pre-paid sim card and am having connectivity issues At times it connect to the GSM network and is operational for about 24-48 hrs. Then, it either displays "No service" or "searching" in