Geting error message for optional field.

Hi All,
i have a issue as below.
1) i have created a context node BUILIDNUMBER(Parent entity Header with relation ) for view BPHEADOverview   in BP_HEAD and in BUILIDNUMBER there is an attribute IDENTIFICATIONNUMBER.
2) Initially this attribute was a manadatory field in Account Overview screen of IC Webclient and i changed it to optional as per requirement.In account overview screen of contact person this field is now shown as optional.
3)But when we tried to save the record without PIN number(IDENTIFICATIONNUMBER) it's showing error like 'Enter ID Number' .Even after setting the value of ID type (ID type is IDENTIFICATIONTYPE of context node BUILIDNUMBER as in our case PIN number should be saved along with its ID Type  ) we are getting above error.
4)We are setting the value of ID type as blank in Method SET_IDENTIFICATIONNUMBER if PIN number is empty but we are still getting the same error and i checked in  on save event method PIN Number and ID type is passed as blank.
                                           We are able to create BP in ICCMP_BP_DETAIL component without the PIN number in BuPaCreate view ,If  We fill PIN number for the created BP  in Account Overview screen (By editing) and save it    then the record is saved with the PIN Number successfully.But when we again make the PIN field blank and save the record in Account Overview Screen , It is showing error 'Enter ID Number'.                                    
                             I am confused why we are getting error message even after setting Pin Number and ID type  as blank.For testing purpose  I  deleted the error message from bol core  and now error message is not coming but on save still PIN number field contains the previous value which i had earlier set blank .
              Any helpful solution will be appriciated.
Regards
Snehasish

resolved..

Similar Messages

  • Error Message-- For Balancing field "Profit Center" is not filled

    Hi All,
    When I do Shipment Start get Error-Message for Balancing field "Profit Center" is not filled!
    A PGI for the DNXXXXXXXX is not possible!
    Can u please help me how to resolve this issue ?
    WM Baby

    Hi,
    AS per configuration , there is prifit centre assignment  .Enter the profit centre in the field of profit centre by the help opf F4.
    Regards,
    Andra

  • How to show a single error message for all fields

    Hi
    I have a JSF from containing around 10 controls(input, select etc.) .
    Now I need to display an error message in case any of the mandatory control has validation error.
    Message format would be like
    "*Please,Complete the fields marked with yellow!"* The message I need to show in a div tag with Yelow background.
    Currently, I am getting individual default error message in case validation fails and related field is bordered with Yellow.
    My code is below.
    *<h:panelGrid columns="3">*
    *<h:outputText value="#{msgProv.bi_firstname}" />*
    *<h:outputText>*
    *<rich:spacer width="100px"></rich:spacer>*
    *</h:outputText>*
    *<h:panelGroup>*
    *<h:inputText*
    *value="#{brokerInformationFields.firstName}"*
    *label="#{msgProv.bi_firstname}" id="firstName" required="true">*
    *<f:validateLength maximum="10" minimum="2" />*
    *<rich:ajaxValidator event="onblur" />*
    *</h:inputText>*
    *</h:panelGroup>*
    *<h:outputText value="#{msgProv.bi_lastname}" />*
    *<h:outputText>*
    *<rich:spacer width="100px"></rich:spacer>*
    *</h:outputText>*
    *<h:panelGroup>*
    *<h:inputText label="#{msgProv.bi_lastname}" id="lastName"*
    *value="#{brokerInformationFields.lastName}" required="true">*
    *<f:validateLength maximum="20" minimum="1"/>*
    *<rich:ajaxValidator event="onblur" />*
    *</h:inputText>*
    *</h:panelGroup>*
    *<h:commandLink action="#{brokerInformationActions.submit}">*
    *<h:graphicImage value="/images/axa/btn_submit_from.png" style="border:0px;"/>*
    *</h:commandLink>*
    I am using (JSF1.2,Rich Faces 3.3.0,Facelets.)
    And a Phase Listener from
    http://balusc.blogspot.com/2007/12/set-focus-in-jsf.html
    This Phase listener is to border the control with Yellow in case validation fail.
    Now my Query
    *1) How can I show a single message for all fields as I marked above in case of validation failure?*
    *2) Now, the control is becoming yellow borderd when user clicks the submit button and validation fails.*
    *User can move from one control to other using tab. That time proper validation message is appearing.*
    *but the border of the control is not changing to yellow.*
    *What's the correcion can be made to meet that requirement too.*
    regards
    Roy

    Hi Nabheet,
    Thanks for your response.
    The FM returns the error messages if they are standard ones. For example, if the posting period is closed - the FM will not allow the Workflow to proceed further.
    But in this case, I have a custom error - for a particular Profit center, Cost center and I/O fields are mandatory(not at time of parking, but should be filled before posting).
    Since this is not a standard error, this FM will not stop workflow from proceeding further. How can I have the custom error captured in this FM?
    Thanks.

  • Changing error message for mandatory field in me21n

    Hi,
    We had made the field "Collective no." of the additional data tab of the me21n transaction mandatory.
    We also change the name of that field to a custom name.
    Now if the user doesn't enter text in that field we get the error "Please enter Collective no.".
    I want to change the message to match our new field name.
    I checked in T100 for that message, but it's not there.
    Can anyone tell me from were that message come from, and how to change it.
    Thanks

    Hello,
    Tell us class and msg no so that we can find out coz it is pecular requirement.
    I suggest do not make it mandotary and dont change to custom field - give information message, place the cursor in field so user get message when he dont enter any value.
    yesterday we have discussed same we do not have any userexit - SAP direct modification required.
    PAI of the SAPMEGUI 1229 and MEPO1229-SUBMI field it contains value of collection no so just write your code there.
    *****Poorna********

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • How to write Error message for select options?

    Hi
    i have this select option statement
    SELECT-OPTIONS: s_fevor FOR afko-fevor.
    how to write error message for this?
    Regards
    Smitha

    Error messages are displayed for Select-options mostly on two conditions:
    1) You needs to check wether a value is entered or not its done by:
    a)
    Select-options:SELECT-OPTIONS: s_fevor FOR afko-fevor Obligatory.
       In this case error message is automatically throwed by system.
    b) You can do this in Selection Screen events.
    Ex:
    AT SELECTION-SCREEN./AT SELECTION-SCREEN ON S_FEVOR.
    IF S_FEVOR-LOW IS INITIAL.
    MESSAGE 'XXXXX' TYPE 'E'.
    ENDIF.
    2) You need to Validate the entered value:
    You can do this in Selection Screen events.
    Ex:
    AT SELECTION-SCREEN./AT SELECTION-SCREEN ON S_FEVOR.
    SELECT FEVOR
                 FROM AFKO
                 INTO AFKO-FEVOR
                 UP TO 1 ROWS
    ENDSELECT.        
    IF SY-SUBRC NE 0.
    MESSAGE 'XXXXX' TYPE 'E'.
    ENDIF.
    Regards,
    Gurpreet

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

  • HTML DB Color Error message in a field - how to set them

    Hi everyone,
    I want to know where I can set the color of an error message in a field ?
    In our page model, on an required field: the message is black
    and on an optional field: the message is red.
    I want both of them red.
    Thank you. Bye.

    Hi Carl,
    I have a similar issue. I am using Theme 20 and error messages per item as well as page level error messages are coming up in Blak. Is there a way to show them in Red?
    Thanks,
    Bhavesh

  • Error message for  Unable to connect (BIB-16633)

    Dear All
    I use Oracle Jdeveloper10g (win32), Oracle database10g or 9i (win32 ver). But Failure to connect to OLAP service.
    Can anyone give me what is the error message for BIB-16633.
    Would be really grateful if you could give me a solution as soon as possible.
    Thanks & Regards,
    Mr.Tsang. Hong Kong

    For database versions you need to have at least 9206 for 9i and 10.1.0.4 for 10g. This requires you to apply the 9206 patchset to 9i and the 10.1.0.4 patchset to the 10g base install.
    Please note there are a lot of steps invloved in the patching process and you must make sure you have completed all the steps before creating your OLAP schema. Most problems occur because the patching process is incomplete and the OLAP option is in an invalid state.
    You can check the state of the OLAP option using the following commands in SQLPlus:
    column comp_name format a35
    SELECT comp_name, status, substr(version,1,10) as version
    from dba_server_registry order by modified;
    Once the OLAP option is in a valid state, then you must ensure the OLAPSYS account is unlocked. To test the OLAP environment you can install the BI10G sample schema which will create a new user account called CS_OLAP which contains an Analytic Workspace.
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • Unsupported black in use error message for laserjet p2055

    Receiving "unsupported black in use" error message for laserjet p2055.  I replace the cartridge with a new one and the same message appears.  Any suggestions how to resolve this issue?

    Hi,
    Does it become active if you go to System Preferences > Accounts and Click on the current Account Pic and attempt to take a Pic ? (you do not have to Set it as the Pic)
    Go to System Preferences > Accounts
    Click on Your Account (in the list on the Left)
    The Right hand side will now show some options.
    Clicking the current Pic will give you access to Edit Pic
    One of the Options then is to take a Snapshot.
    Take a Snap Shot but you do not have to "Set" the Pic.
    This process will invoke VDCAssistant.
    Explain further about the PRAM Reset please.
    You should shut down the computer (Rather than trying to catch the Restart)
    You should then Start the Computer holding down the AppleALT+PR keys and keep holding them until you hear three Start Up0 Bongs (Chimes)
    This deletes some settings such as System Preferences Settings for the Volume (Sound) and Date and Time that may need resetting afterwards. (Others may also be effected such as Screen Saver)
    On Spotlight.
    This does not look or report on certain Folders.
    At the Hard Drive Level this is Library and Syatem
    In your Home Folder (Little House icon) it will not look in your Library.
    com.ecam.iusbcam.plist and com.apple.ichat.plist
    Are in your Home Folder/Library/Preferences
    The Others are in the /Library at Hard Drive Level
    7:15 PM Wednesday; June 3, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Display error messages for each material

    Hi All,
    I am using a BAPI which gives errors in return table.I am executing this BAPI for several materials in a LOOP.I need to display the error messages for each of these materials as shown below:
    Material 1:
    error1
    error2
    Material 2:
    error 1
    error 2.
    What is the best way to display this?Also plz let me know how to use REUSE_ALV_HIERSEQ_LIST_DISPLAY?
    Thanks,
    Rakesh.

    I did the same thing in the below code, go thru it and check it.
    * calling the BAPI to update the Asset Master AS02
      loop at it_final into is_final.
    * If updating of floor area only
        if p_farea = 'X'.
    * passing new area value to the BAPI
          is_realestate-area     = is_final-grufl.
          is_realestatex-area    = 'X'.
          call function 'BAPI_FIXEDASSET_CHANGE'
               exporting
                    companycode = is_final-bukrs
                    asset       = is_final-anln1
                    subnumber   = is_final-anln2
                    realestate  = is_realestate
                    realestatex = is_realestatex
               importing
                    return      = it_return.
    * If Asset Master is changed with out any errors
          read table it_return with key type = 'E'.
          if sy-subrc = 0.
            flag = ' '.
          else.
            flag = 'X'.
    * Call the COMMIT BAPI
            call function 'BAPI_TRANSACTION_COMMIT'
                 exporting
                      wait = 'X'.
            wait up to 2 seconds.
          endif.
    * If the Asset Master is changed with out any errors
          if flag = 'X'.
            read table it_output into is_output with key
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      binary search.
            if sy-subrc = 0.
    *          is_output-c_icon  = c_green.
              is_output-grufl_n = is_final-grufl.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              modify it_output from is_output
                               transporting grufl_n message
                               where bukrs = is_output-bukrs
                                 and anln1 = is_output-anln1
                                 and anln2 = is_output-anln2.
            endif.
          elseif flag = ' '.
            read table it_output into is_output with key
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      binary search.
            if sy-subrc = 0.
    *          is_output-c_icon  = c_red.
              is_output-grufl_n = is_realestate-area.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              modify it_output from is_output
                               transporting grufl_n message
                               where bukrs = is_output-bukrs
                                 and anln1 = is_output-anln1
                                 and anln2 = is_output-anln2.
            endif.
          endif.
        endif.
    * If updating of lease commencement date only
        if p_ldate = 'X'.
    * Passing new lease start date value to the BAPI
          is_leasing-start_date  = is_final-leabg.
          is_leasingx-start_date = 'X'.
    * Call the BAPI to change the Asset Master
          call function 'BAPI_FIXEDASSET_CHANGE'
               exporting
                    companycode = is_final-bukrs
                    asset       = is_final-anln1
                    subnumber   = is_final-anln2
                    leasing     = is_leasing
                    leasingx    = is_leasingx
               importing
                    return      = it_return.
    * If Asset Master is changed with out any errors
          read table it_return with key type = 'E'.
          if sy-subrc = 0.
            flag = ' '.
          else.
            flag = 'X'.
    * Call the COMMIT BAPI
            call function 'BAPI_TRANSACTION_COMMIT'
                 exporting
                      wait = 'X'.
            wait up to 2 seconds.
          endif.
    * If the Asset Master is changed with out any errors
          if flag = 'X'.
            read table it_output into is_output with key
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      binary search.
            if sy-subrc = 0.
    *          is_output-c_icon  = c_green.
              is_output-leabg_n = is_final-leabg.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              modify it_output from is_output
                               transporting leabg_n message
                               where bukrs = is_output-bukrs
                                 and anln1 = is_output-anln1
                                 and anln2 = is_output-anln2.
            endif.
          elseif flag = ' '.
            read table it_output into is_output with key
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      binary search.
            if sy-subrc = 0.
    *          is_output-c_icon  = c_red.
              is_output-leabg_n = is_leasing-start_date.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              modify it_output from is_output
                               transporting leabg_n message
                               where bukrs = is_output-bukrs
                                 and anln1 = is_output-anln1
                                 and anln2 = is_output-anln2.
            endif.
          endif.
        endif.
        clear : is_final, is_realestate, is_leasing,
                it_return, flag , is_output.
      endloop.
    * Display the report out with old and new values
      PERFORM output_report.
    *&      Form  output_report
    *       text
    *  -->  p1        text
    *  <--  p2        text
    *FORM output_report.
    *  DATA : it_fieldcat TYPE slis_t_fieldcat_alv,
    *         is_layout TYPE slis_layout_alv.
    ** Sub routine for filling the field catalog
    *  IF it_fieldcat[] IS INITIAL.
    *    PERFORM field_fill USING it_fieldcat.
    *  ENDIF.
    ** Sub routine to set the layout
    *  PERFORM set_layout USING is_layout.
    ** Function module to display the data in ALV format
    *  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    *       EXPORTING
    *            i_callback_program = l_repid
    *            it_fieldcat        = it_fieldcat
    *            is_layout          = is_layout
    *       TABLES
    *            t_outtab           = it_output
    *       EXCEPTIONS
    *            program_error      = 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.                    " output_report
    *&      Form  field_fill
    *       text
    *      -->P_IT_FIELDCAT  text
    *FORM field_fill USING pt_fieldcat TYPE slis_t_fieldcat_alv.
    *  DATA : ls_fieldcat TYPE slis_fieldcat_alv,
    *         pos TYPE i VALUE 1.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'C_ICON'.
    *  ls_fieldcat-seltext_m     = 'Change Status'.
    *  ls_fieldcat-tabname       = 'IT_OUTPUT'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'BUKRS'.
    *  ls_fieldcat-ref_fieldname = 'BUKRS'.
    *  ls_fieldcat-ref_tabname   = 'ANLA'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'ANLN1'.
    *  ls_fieldcat-ref_fieldname = 'ANLN1'.
    *  ls_fieldcat-ref_tabname   = 'ANLA'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'ANLN2'.
    *  ls_fieldcat-ref_fieldname = 'ANLN2'.
    *  ls_fieldcat-ref_tabname   = 'ANLA'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *  IF p_farea = 'X'.
    *    ls_fieldcat-col_pos       = pos.
    *    ls_fieldcat-fieldname     = 'GRUFL'.
    *    ls_fieldcat-ref_fieldname = 'GRUFL'.
    *    ls_fieldcat-ref_tabname   = 'ANLA'.
    *    APPEND ls_fieldcat TO pt_fieldcat.
    *    CLEAR ls_fieldcat.
    *    pos = pos + 1.
    *    ls_fieldcat-col_pos       = pos.
    *    ls_fieldcat-fieldname     = 'GRUFL_N'.
    *    ls_fieldcat-seltext_l     = 'New Floor Area'.
    *    ls_fieldcat-tabname       = 'IT_OUTPUT'.
    *    APPEND ls_fieldcat TO pt_fieldcat.
    *    CLEAR ls_fieldcat.
    *    pos = pos + 1.
    *  ENDIF.
    *  IF p_ldate = 'X'.
    *    ls_fieldcat-col_pos       = pos.
    *    ls_fieldcat-fieldname     = 'LEABG'.
    *    ls_fieldcat-ref_fieldname = 'LEABG'.
    *    ls_fieldcat-ref_tabname   = 'ANLA'.
    *    APPEND ls_fieldcat TO pt_fieldcat.
    *    CLEAR ls_fieldcat.
    *    pos = pos + 1.
    *    ls_fieldcat-col_pos       = pos.
    *    ls_fieldcat-fieldname     = 'LEABG_N'.
    *    ls_fieldcat-seltext_l     = 'New Lease St.Date'.
    *    ls_fieldcat-tabname       = 'IT_OUTPUT'.
    *    APPEND ls_fieldcat TO pt_fieldcat.
    *    CLEAR ls_fieldcat.
    *    pos = pos + 1.
    *  ENDIF.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'MESSAGE'.
    *  ls_fieldcat-seltext_l     = 'Status Message'.
    *  ls_fieldcat-tabname       = 'IT_OUTPUT'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *ENDFORM.                    " field_fill
    Regards
    Gopi

  • OBA5 : Error Message for duplicate entry

    Hi
    In Tcode OBA5 - i enter F5 as Apllication area and i select new entries - i Enter 117 - and i Enter E before i save.
    but when i go to MIRO to check if there is an error message for duplicate entry, i find just a Warning Message !
    Please did i forget any thing ? please advise.
    Thank You,

    Hello,
    OBA5 should be enough, but you must remenber that the following fields must be identical for duplicate invoice check:
         Company code                           (BUKRS)         
         Vendor number                           (LIFNR)         
         Currency                                    (WAERS)         
         Reference number                       (XBLNR)         
         Amount in document currency      (WRBTR)         
         Document date                           (BLDAT)         
    Note 305201 is also helpful.
    Cheers

  • Pop up error messages for failed custom validation

    I am using jdev-10.1.3.4
    My application is in ADF BC
    I am writing custom validation through managed bean, I want pop-up error message for this failed validation.
    My problem scenario is:
    I had some list box as "status"-when this status changes to failed then the other field namely "closed date" should become madantory and also date in closed date field can't be in future.I am able to have all this validation through managed bean and also able to use af:messages through which i am able to print error message on the top of the form, but i am not able to give pop up error message for this failed validation.
    I had gone thru jdev guide but there is nothing like what i am asking.
    it would be of great help if someone can give me some example also.
    thanks in advance.

    ADF has global setting where you can configure the way messages are shown to user:
    You can make this setting in adf-faces-config.xml
    The <client-validation> element controls how client-side converters and validators are run.
    Three values are supported:
    "INLINE": validation is shown inline in a page (the default)
    "ALERT": validation is shown in an Javascript alert
    "DISABLED": validation is only handled on the server
    IN your case, set it to 'ALERT'.

  • Where is the error message for Debrief line stored?

    Hi,
    I'm writing an sql query to display all the debriefs (and lines) in error and need to display the detailed error message (the field labeled "Error" on the Material tab on Debrief form). Does anyone know where this is stored in tables? I am digging the form and have not found anything yet. Any help is appreciated.
    Sorry - I guess it is - CSF_DEBRIEF_LINES.error_text - But there have been some error records for which I could not find the error message in error_text field and I thought that it was stored somewhere else and that got me confused. - Please ignore the question.
    TIA
    Alka.
    Message was edited by:
    user498444
    Message was edited by:
    user498444

    when you set a picture to be a background of some folder that picture is not moved from its original location. instead a record is made in the .DS_Store file of that folder indicating that this picture is the one to be used for the background. in case of the DVD it is likely sitting in some hidden folder right on the DVD.
    run the following terminal command to enable showing hidden files in finder
    defaults write com.apple.finder AppleShowAllFiles 1; killall Finder
    then look on the dvd and the picture should be there somewhere. if you still can't find it open the .DS_store file of the folder in question using Text Editor. a lot of this file will be unreadable but the picture path will be present in plain text.
    when done rerun the above command after changing 1 to 0.

  • Error Message For Correct Input.

    Hi,
    Im generating Vendor Report I want to Dispaly the Error Message for Invalid Input.
    If i give the Company Codes other than 1000,2000,3000, & 4000 it should give the Error
    as Invalid Company code...But For Correct company code also it is giving Error...
    I Created Error class 'YVENMSG'
    and in my Program i called Erorr as follows
    if sy-subrc IS  INITIAL.
    MESSAGE e000(YVENMSG) .
    ENDIF.
    I dont know wr im wrong...
    Plz help me on this...
    Regards
    Smitha

    Hi Smitha
    You declare as below :
    *---- SELECTION-SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    SELECT-OPTIONS : s_werks FOR vbap-werks .                 "Plant
    SELECTION-SCREEN END OF BLOCK b1.
    *Selection Screen validation
    AT SELECTION-SCREEN .
      IF s_werks-low IS NOT INITIAL.
        SELECT SINGLE werks            "Plant
        FROM t001w
        INTO s_werks-low
        WHERE werks = s_werks-low
        and werks in ( '2000','3000','4000' ).
        IF sy-subrc NE 0.
          MESSAGE e000 WITH text-t48.
        ENDIF.
      ENDIF.
    if its a parameter just replace s_werks as p_werks
    Edited by: Martina Floriette on Feb 21, 2009 6:01 AM

Maybe you are looking for