How to have a mandatory field in a search help

Hi,
i have created a search help and one of the field need to be mandatory.
can anyone tell me how to have a field as mandatory in a search help?
thanks
Regards,
Nitin

Hi Buantoa  ,
  You can use a search help exit for the same , so when ever a user does not enter the mandatory feild and tries to execute the serach help an error message will be displayed.
Create a search help exit for your search help and write code to check for your feild.
I tried to do the same and it works
Here is the code for my serach help exit
  if callcontrol-step = 'SELONE'.
data : wa_1 type ddshiface.
loop at shlp-interface into wa_1.
  if wa_1-shlpfield = 'MATNR'.
    if wa_1-value is initial.
       message e999.
    endif.
  endif.
endloop.
  endif.
Do revert back in case of any further queries.
Regards
Arun

Similar Messages

  • How to change Labels of Fields in the search help shown as F0001 F0002 etc

    Dear All,
    For one of my fields of screen I have been calling a search help configured using F4IF_INT_TABLE_VALUE_REQUEST.
    In this function I am returning the field in dynfields. Let me know please how to change the Labels of Field Names being shown in the search help as F0001, F0002 etc....
    Regards,
    Alok.

    Hi Alok,
    You can change the Field Label by going to the Data Element and changing the Field Label .
    Hope this helps
    Regards
    Sunil

  • Records not displayed in the WGBEZ field in H_T023_MEPO search help.

    Hello Friends,
    I have created the search help exit , in that based on the LREF3 , we have to fetch the materail groups.
    1.I have written the code in the exit , in the search help exit tables parameter record_tab , the data is coming correctly
    but when we run  search help, the description field is not getting displayed.
    I have shift 2-3 places left side as well but the description is not displayed correctly.
    So how can we get the description field filled.
    2. We want that the LREF3 field should come in the selection screen of the dialog box, so that user can enter the values in it.(dialog with value restriction) so i have added LREF3 field in the search help parameters but i want that
    this field should not be displayed in the results of search help . Only materail group and its description gets displayed.
    So can we achieve the same.
    Thanks to provide answers for my above two questions.

    Hi
    Please go through the related pointers ->
    The OSS note 672960 has already indicated you need to use BADI to address it.
    For Search criteria
    You can also use user-defined fields as search criteria. To do this, you have to set fields XINPUT and XDISPLAY to 'X' in table ET_FIELDS for the fields you want to use in BADI BBP_CUF_BADI_2 in method MODIFY_SCREEN. The fields defined this way are displayed if you choose the 'Extended search' link.
    Re: Custom field in Create Bid Invitation..
    Re: Search Help for Purchasing Group..
    Re: urgent help request - How to add custom fields to  header BID.
    Re: New Screen with table control information in Process Bid Invitation
    Do let me know.
    Regards
    - Atul

  • How to remove the mandatory field setting in output control

    Hi everybody,
    While printing a Payment Voucher through F-58 and FBZ5(reprint), there are two output devices, the first one is - printer for forms and second is - payment advice printer.
    In our case we have configured the cheque printing and payment voucher printing seperately. The cheque goes to first printer(kept mandatory field) and the payment voucher goes to second printer. One of our plant does not print the cheque from SAP, they only print the payment voucher because the cheque is manually prepared. How do I avoid the cheque printing. Is there any way out to print only the payment voucher through F-58 and FBZ5
    Please guide me how to tackle it or how to remove the mandatory field setting in the output control screen?
    Regards
    Paul

    Hi
    As of my understanding, there is no relation ship between the Sales Organization and this mandatory partner function.
    Here are few suggestions.
    1. Since Partner functions are defualted and made mandatory in the Partner Determination Procedure so you have to remove this Mandatory option for PE from the Partner Determination Procedure that is AG if using standard one.
    2. If you are using a single partner function than , Copy and create a New partner procedure and a new account group . Where in one you can default PE as mandatory and in another one you make a optional where it can be choosen manually while creating the customer.
    Follow the path to check for entries :
    SPRO > sales & distribution > Basic Function > Partner Determination > set up partner determination > select for customer master > select the partner procedure you are using AG as standard > then partner function in procedure > here maintian the check as required like, Mandatory or No check for Non Mandatory .
    Thanks
    RB

  • I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically. Can some one out there help me?

    I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically.

    Update automatically under which circumstances, exactly?

  • How to color the mandatory fields in a Adobe WebDynpro Java form

    Hi Experts,
    How to color the mandatory fields in a Adobe WebDynpro Java form?
    This will avoid any confusion to he end user while filling the form as he would try to type something in field which is set as Read nlybut stil the cursor appears there.
    Regards,
    Shobhit

    Hi Shobhit,
    you can write something like xfa.host.setFocus(<text field name>). to set the focus or
    <text field name>.fillColor = "120,120,123";
    <text field name>.resolveNode"ui.#textEdit").border.edge.fill.color.value="120,150.200";
    to fill the color.
    Refer to adobe dev centger scripting samples to learn more on these.
    Hope these helps.
    Thanks and Regards,
    - anto.

  • How  to validate the mandatory fields in the view in WDA?

    Dear experts,
                            Iam new to WDA. i just want to know how  to validate the mandatory fields in the view in WDA?please refer any documents for validating the mandatory fields.
    Regards,
    murthy.
    Edited by: Murthy Ganti on Jul 13, 2009 2:31 PM

    Hi,
    Firstly goto view->select the element that you want to make mandatory and set the State property to required.
    Secondly place the below code in the WDDOBEFOREACTION
    DATA: l_view_controller TYPE REF TO if_wd_view_controller.
    * Get view controller
      l_view_controller = wd_this->wd_get_api( ).
    * Check for mandatory attribute
      cl_wd_dynamic_tool=>check_mandatory_attr_on_view(
      EXPORTING view_controller  = l_view_controller
                display_messages = abap_true
    Regards,
    Radhika.

  • How to change the desription of a standard SAP field in the Search Help

    Hi All,
    In Table T023T there is a field WGBEZ60(Long text describing the material group) and the data element of the field is WGBEZ60.
    Requirement is to change the description of the field WGBEZ60.The desription of the  field is - Description 2 for the material group.
    But the user want as - Description for the material group. He dont want 2 in the description.
    we are using this field in the search help of Material group for the transaction ME21N and ME51N.
    So please tell me how can we change the description of the field in the Search help.
    Thanks.
    Regards,
    Peeyush

    As search help uses data element , it shows its keyword. So you have to do modification to that keyword.
    - Go to CMOD
    - from top menu GOTO -> Text enhancements -> Keywords -> Change -> type WGBEZ60 -> change the description -> Save and add it to transport
    - now use that data element either on the screen or search help. It will have the descripiton modified.
    Regards
    Marcin

  • Adding a new field to the search help exit

    Hi friends,
    adding a new field to the search help exit. How does it work ?
    Thanks in advace
    Ilhan

    The search help exit allows you to modify functionality of search help. If you add a new field to the
    parameter list that is not contained on the selection method you can manually populate it within the search
    help exit.
    This  would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
    data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
    Therefore you need to read table SHLP in-order to locate position of value within string.
    Example:
    To find position of personnel number (PERNR) within elemenory search
    help M_PREMN you would use the following code:
    Loop at record_tab.
         read table shlp-fielddescr into wa_shlp
                                       with key tabname   = 'M_PREMN'
                                                fieldname = 'PERNR'.
    You could then use this information in the following way, for
    example, to find a persons organisation unit:
          select  orgeh endda
            up to 1 rows
            from pa0001
            into (ld_orgeh,ld_endda)
           where pernr eq record_tab-string+wa_shlp-offset(8)
                                                      u201Cpernr length is 8
           order by endda descending.
          endselect.
          select single orgtx
            from t527x
            into ld_orgtxt
           where orgeh eq ld_orgeh and
                 sprsl eq sy-langu and
               ( endda ge sy-datum and
                 begda le sy-datum ).
    If you have added a new field to the end of the parameters list
    the next step is to populate it by adding this data to the end of
    the record_tab string:
      concatenate record_tab-string ld_orgtxt into record_tab-string.
      modify record_tab.
    endloop.

  • Modify another field value in search help exit.

    While creating the Sales Order, the user does an f4 on ship to party to determine the sold to party ( search help exit ), now I have the values of both the Ship to customer and Sold to customer in the search help exit, but I can update only the ship to field of the sales order, do you know how I can modify the sold to value on the screen.
    I tried setting up the parameter id 'VAG' in the search help exit with the determined value, but this value is not getting copied in the Sold to party field once the search help is executed.
    The other option which is left is export to memory and import to memory in another user exit of VA01. Is there any other alternative? Also which program do I need to do the import of memory so that sold to party is displayed on the initial before saving the document ?
    Ajay

    Hi,
    Yes..Try calling from the search help exit..
    You have to pass the program name and screen number..
    In the internal table parameter DYNPFIELDS..
    Pass the fieldname and fieldvalue...
    Thanks,
    Naren

  • Product category: Add description field to the search help

    Hi experts,
    My requierement is to add the material group description field 2 in search help.
    Analysis: While creating the shopping cart it will ask product category . when we click on the drop down list we can find the ...type if u click on that it will move to other screen where we can search.after that it will show the product category description , category ID, Logical system.
    I want to add one more field to that ( product category description 2 field.
    let me know how can i proceed further on this.
    Thanks,
    Prashanth.

    Hi Neha,
    Thanks.
    but i want to know which search help is using....(IN ITS )
    please help me to find the exact search help.
    Thanks,
    Prashanth.

  • How to make plant mandatory field in Sales order thru standard SAP process

    Hello,
    There is requirement in business that User wants to make plant field Mandatory in Sales order line item once material number is entered. Can you please guide me how I can make Plant field mandatory thru Standard SAP process.
    I had checked it thru Incompletion process & Order type incompletion messages but still Plant field is not becoming mandatory in Sales order. It only gives incompletion log while saving the SO. Please suggest how to do it thru Standard SAP process.
    Thanks & Regards,
    Saurabh

    HI
    Plant will determine based on Customer-material Info Record, Customer Master data & material Master
    If plant is not mandatory in customer Master and Customer material no problem
    but at the time of creating the material master  Plant Mandatory as per my knowledge, so system will pick plant from Material master  that is the case why you required plant Mandatory in Sale order level
    and you need to do Shipping Point Determination for that plant
    Did you check by using User Exit ? if not try once what i have suggested
    Try with User Exit
    MV45AFZZ , FORM USEREXIT_SAVE_DOCUMENT
    VBAP - WERKS = " "
    if VBAP - MATNR , POSNR = not initial
    Error Messgae "E"
    Check and Revert
    Regards,
    Prasanna
    Edited by: prasanna_sap on Feb 14, 2012 11:41 AM

  • How to hide a mandatory field in sap standard webdynpro via Enhancement

    Hi,
    I know to hide a column or UI via enhancement. But if we hide a field via this approach which requires an input we will still get an error message to make an entry.
    I am trying to make changes in travel management e.g in FITE_VC_REVIEW webdynpro component. In REVIEW_VIEW in Flight Info table I want to hide columns like arrival time, arrival date. However in current scenario these fields are required to be filled in. If left blank we get an error message while saving or sending request.
    Kindly guide me where and how to make changes to remove these column fields.
    Regards,
    Madhvika

    You can remove the UI elements from teh design itself by right clicking on it and slecting remove element.
    but still the condition for checking the mandatory field swill be there in the code so for that you need
    to write teh code to set some values to those attribute for passing the condition for validation
    thanks
    sarbjeet singh

  • How to set an mandatory field to non-mandatory.

    Hi,
    In my form, I will need to set a field to mandatory in certian condition and then set it to not mandatory under different condition.
    I know how to set it to mandatory: field.mandatory = "error"
    Can someone let me know how to reset the field to not mandatory.
    Thanks,
    Laura

    You can try:
         field.mandatory = "disabled";
    Thanks
    Srini

  • How to skip the mandatory field validation for clearing the screen fields

    Hi Friends,
      I have created a module pool screen, and made some fields mandatory. after entering some fields, if i try to clear the fields, am unable to clear. Its throwing the error "Enter all required fields"., since some mandatory fields are there. But i could able to navigate through other screen. Both the "CLEAR" and "NEXT" command are given in the at-exit command only. Next is working but clear is not working.
    Please  provide me the solution.
    Thanks
    Karthikeyan.L

    Hi,
    To avoid automatic input checks you have to assing function type - E to appropriate screen field, which is not to be checked.
    These function codes don't trigger PAI processing, instead they go directly to
    MODULE mod AT EXIT-COMMAND.
    ..placed in PAI of the screen. In this way you can ommit automatic checks performed by system on mandatory fields. Please ensure you have assing E type to next and clear functions in GUI status.
    Regards
    Marcin

Maybe you are looking for

  • Using some GPS apps kills my cellphone provider's signal?

    Hello Guys, I bought a brand new iphone 4s 16gb and recently I have a problem that has turned very annoying. Let me give you a background story: I downloaded "Waze" app and worked fine for over a week. After that it suddenly started to tell me that,

  • Stored Procedure for Crystal Reports

    Hi All, I developed this test stored procedure to see wheather we could a stored procedure for crystal reports. It compiled without any problem, but when I run it, it gives me error message. Here is the stored Procedure.. CREATE OR REPLACE PROCEDURE

  • Thumbnail images in Google's search results?? (Using Adobe Muse)

    Hi there,                I've been hunting around a lot of pages (including webmaster tools) My question is simple, but the answers don't seem to be! Does anyone have an easy and fast way, of adding a thumbnail that will show up next to a website sea

  • T410 Power on problem

    When we power on T410 after 10-15 min of shutdown Notebook lite blinks 5 to 6 times then system on. can any one help us to resolved this issue.

  • CCX Historical Reports issue

    Hi everyone, Hope everything is going ok. I have an issue with the Cisco Historical Report Tool with UCCX 7.0 Premium version.When I opened the tool I only see 3 reports. I only see the Application Performance Analysis, Traffic Analysis or Detailed C