To validate the mandatory fields in table

Hi Experts,
I am trying to make few of the key fields and non key fields in the Z-table to be mandatory.
So I am throwing an error message if any of them are not filled through event '05'.
But when I press enter it grays out the non key fields.
Is there any possibility to make them editable using events.
Your help on this is highly appreciated.
Thanks,
Sridevi

If you are just checking whether its initial or not.
You can just goto the screen layout-table control field attributes->mark check check box required.
or a message with type 'S' and display like 'E' will do.

Similar Messages

  • Any way to validate the Mandatory field in the XML file

    Hi,
    Is there any way to validate the Mandatory field in the XML file. I created an xml type table xml_validate based on the schema and insert the XML files with statement.
    INSERT INTO xml_validate(warehouse_id,xml_file_name,warehouse_spec)
    Values (agreementid,p_filename,XMLTYPE.createXML(l_clob));
    It is validating the data types, extra tags etc but not validating the missing of the manadatory tag/value.
    Thanks in advance
    Rizly

    Hi Ants,
    Yes, I was not doing the strict validation, after searching the forum i understood that was the reason. So i did this way,
    begin
    for x in (select myColumn from myTable where WAREHOUSE_ID=41) loop
    x.myColumn .schemaValidate();
    end loop;
    end;
    The out put is:
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00011: internal error: LsxvPushCandidate array overflow
    ORA-06512: at "SYS.XMLTYPE", line 345
    ORA-06512: at line 3
    My i know more information about this error, especially
    LSX-00011: internal error: LsxvPushCandidate array overflow
    Thanks in advance
    Rizly

  • 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.

  • What are the Mandatory Fields in Transaction ME51

    Hello Seniors,
    I have a requirement about purchase order creation. In this process, I am using the BAPI named   " BAPI_PO_CREATE1 ". I have passed all the fields but when I debug and look into the internal tables, I couldn't find certain records. I even debugged " bapiret2"  and I see an error which reads "" All mandatory fields are missing"". I have even created a PO  in ME51 and found out the mandatory fields but in vain. BAPIRET2 still says, there are some more mandatory fields missing. I need to know what are all the mandatory fields to create a Purchase order using TCODE - ME51.
    Your reply is most awaited and rewarded.
    Thanks and Regards,
    MARKIV

    hi ,
    Functionality
    Function module BAPI_PO_CREATE1 enables you to create purchase orders. The BAPI uses the technology behind the Enjoy purchase order transaction ( ME21N).
    Alternatively, the IDoc type PORDCR1 is available. The data from this IDoc automatically populates the interface parameters of the function module BAPI_PO_CREATE1.
    Functionality in Detail
    Authorization
    The following authorization objects are checked when an Enjoy purchase order is created (activity 01):
    M_BEST_BSA (document type in PO)
    M_BEST_EKG (purchasing group in PO)
    M_BEST_EKO (purchasing organization in PO)
    M_BEST_WRK (plant in PO)
    Controlling adoption of field values via X bar
    For most tables, you can determine via your own parameters in the associated X bar in each case (e.g. PoItemX) whether fields are to be set initial, values inserted via the interface, or default values adopted (e.g. from Customizing or master records) (for example, it is not mandatory to adopt the material group from an underlying purchase requisition - you can change it with the BAPI).
    Transfer
    Header data
    The header data of the Enjoy purchase order is transferred in the table PoHeader.
    Item data
    The item data of the Enjoy purchase order is stored in the table PoItem (general item data). The delivery schedule lines are stored in the table PoSchedule.
    Use the table PoAccount to specify the account assignment information. If account assignments have been specified for services and limits, you show the relevant account assignment line in PoAccount in the table PoSrvAccessValues via the package number of the service or the limit.
    Services and limits
    Services, free limits and limits with contract reference can be specified in the tables PoServices, PoLimits, and PoContractLimits.
    Conditions
    Conditions are transferred in the table PoCond; header conditions in the table PoCondHeader. Price determination is reinitiated via the parameter CALCTYPE in the table PoItem.
    Vendor and delivery address
    The vendor's address can be specified individually in the table PoAddrVendor; the delivery address in the table PoAddrDelivery. If you do not make any individual specification, the fields will be populated via the central address managementfacility.
    Note
    In this method, the following restrictions apply with regard to addresses:
    Addresses can only be created with this method - they cannot be changed. You can only change address data with the method BAPI_ADDRESSORG_CHANGE.
    When you create addresses, they are not checked by the method. An Enjoy purchase order may therefore contain faulty address data.
    Partner roles
    The partners can be maintained individually via the table PoPartner (with the exception of the partner role "vendor").
    Import/export data
    Import/Export data can be specified per item in the table PoExpImpItem. Foreign trade data can only be transferred as default data for new items.
    Texts
    Header and item texts can be transferred in the tables PoTextHeader and PoTextItem. Texts for services are imported in the table PoServicesText.
    Version Management
    You can make use of the Version Management facility via the table AllVersions.
    Return
    The PO number is returned in the parameter ExpPurchaseOrder. In addition, all information except the service and export/import tables is placed in the output structures.
    Return messages
    Messages are returned in the parameter Return. This also contains information as to whether interface data has been wrongly or probably wrongly (heuristical interface check) populated. If a PO has been successfully created, the PO number is also placed in the return table with the appropriate message.
    Example
    Example of population of BAPI interface in the Function Builder
    Parameter: POHEADER
    COMP_CODE = 1000
    DOC_TYPE = NB
    ITEM_INTVL = 00001
    VENDOR = 0000001000
    PMNTTRMS = 0001
    PURCH_ORG = 1000
    PUR_GROUP = 001
    CURRENCY = EUR
    Parameter: POHEADERX
    COMP_CODE = X
    DOC_TYPE = X
    ITEM_INTVL = X
    VENDOR = X
    PMNTTRMS = X
    PURCH_ORG = X
    PUR_GROUP = X
    Parameter: POITEM
    PO_ITEM = 00001
    MATERIAL = 100-100
    PLANT = 1000
    STGE_LOC = 0001
    QUANTITY = 15.000
    TAX_CODE = V0
    ITEM_CAT = 0
    ACCTASSCAT = K
    Parameter: POITEMX
    PO_ITEM = 00001
    MATERIAL = X
    PLANT = X
    STGE_LOC = X
    QUANTITY = X
    TAX_CODE = X
    ITEM_CAT = X
    ACCTASSCAT = X
    Parameter: POSCHEDULE
    PO_ITEM = 00001
    SCHED_LINE = 0001
    DELIVERY_DATE = 02.12.2002
    QUANTITY = 6.000
    PO_ITEM = 00001
    SCHED_LINE = 0002
    DELIVERY_DATE = 03.12.2002
    QUANTITY = 5.000
    PO_ITEM = 00001
    SCHED_LINE = 0003
    DELIVERY_DATE = 04.12.2002
    QUANTITY = 4.000
    Parameter: POSCHEDULEX
    PO_ITEM = 00001
    SCHED_LINE = 0001
    PO_ITEMX = X
    SCHED_LINEX = X
    DELIVERY_DATE = X
    QUANTITY = X
    PO_ITEM = 00001
    SCHED_LINE = 0002
    PO_ITEMX = X
    SCHED_LINEX = X
    DELIVERY_DATE = X
    QUANTITY = X
    PO_ITEM = 00001
    SCHED_LINE = 0003
    PO_ITEMX = X
    SCHED_LINEX = X
    DELIVERY_DATE = X
    QUANTITY = X
    Parameter: POACCOUNT
    PO_ITEM = 00001
    SERIAL_NO = 01
    QUANTITY = 15.000
    GL_ACCOUNT = 0000400000
    COSTCENTER = 0000001000
    CO_AREA = 1000
    Parameter: POACCOUNTX
    PO_ITEM = 00001
    SERIAL_NO = 01
    QUANTITY = X
    GL_ACCOUNT = X
    COSTCENTER = X
    CO_AREA = X
    Parameter: POCOND
    ITM_NUMBER = 000001
    COND_ST_NO = 001
    COND_TYPE = PB00
    COND_VALUE = 79.900000000
    CURRENCY = EUR
    CURRENCY_ISO = EUR
    COND_UNIT = KG
    COND_P_UNT = 1
    CHANGE_ID = U
    Parameter: POCONDX
    ITM_NUMBER =  000001
    COND_ST_NO =  000
    ITM_NUMBERX =  X
    COND_TYPE =  X
    COND_VALUE =  X
    CURRENCY =  X
    CHANGE_ID =  X
    Parameter: POPARTNER
    PARTNERDESC =  OA
    LANGU =  EN
    BUSPARTNO =  0000001100
    PARTNERDESC =  GS
    LANGU =  EN
    BUSPARTNO =  0000001200
    PARTNERDESC =  PI
    LANGU =  EN
    BUSPARTNO =  0000001000
    Help in the Case of Problems
    1. Note 197958 lists answers to frequently asked questions (FAQs). (Note 499626 contains answers to FAQs relating to External Services Management.)
    2. If you have detected an error in the function of a BAPI, kindly create a reproducible example in the test data directory in the Function Builder (transaction code SE37). Note 375886 tells you how to do this.
    3. If the problem persists, please create a Customer Problem Message for the componente MM-PUR-PO-BAPI, and document the reproducible example where necessary.
    Customer Enhancements
    The following user exits (function modules) are available for the BAPI BAPI_PO_CREATE1:
    EXIT_SAPL2012_001 (at start of BAPI)
    EXIT_SAPL2012_003 (at end of BAPI)
    The following user exits (function modules) are available for the BAPI BAPI BAPI_PO_CHANGE:
    EXIT_SAPL2012_002 (at start of BAPI)
    EXIT_SAPL2012_004 (at end of BAPI)
    These exits belong to the enhancement SAPL2012 (see also transaction codes SMOD and CMOD).
    There is also the option of populating customer-specific fields for header, item, or account assignment data via the parameter EXTENSIONIN.
    Further information
    1. Note 197958 contains up-to-date information on the purchase order BAPIs.
    2. If you test the BAPIs BAPI_PO_CREATE1 or BAPI_PO_CHANGE in the Function Builder (transaction code SE37), no database updates will be carried out. If you need this function, please take a look at Note 420646.
    3. The BAPI BAPI_PO_GETDETAIL serves to read the details of a purchase order. The BAPI cannot read all details (e.g. conditions). However, you can use the BAPI BAPI_PO_CHANGE for this purpose if only the document number is populated and the initiator has change authorizations for purchase orders.
    4. Frequently used BAPIs for purchase orders are BAPI_PO_CREATE, BAPI_PO_CREATE1, BAPI_PO_CHANGE, BAPI_PO_GETDETAIL, BAPI_PO_GETITEMS, BAPI_PO_GETITEMSREL, and BAPI_PO_GETRELINFO.
    5. For more information on purchase orders, refer to the SAP library (under MM Purchasing -> Purchase Orders) or the Help for the Enjoy Purchase Order, or choose the path Tools -> ABAP Workbench -> Overview -> BAPI Explorer from the SAP menu.
    regards
    reena

  • Can any one pls tell me the mandatory fields for BAPI_ACC_DOCUMENT_POST

    hi all ,
    Can any one pls tell me the mandatory fields for BAPI_ACC_DOCUMENT_POST
    what all data i need to give to post a document.
    Thanks and Regards
    JK

    Hi...
    part of my source code:
    ** Header Data " Sending comp code
    wa_documentheader-comp_code = 'XXXXX'.
    wa_documentheader-doc_date = '20060620'.
    wa_documentheader-pstng_date = '20060620'.
    wa_documentheader-doc_type = 'XX'.
    wa_documentheader-username = sy-uname.
    wa_documentheader-ref_doc_no = 'XXxxxxxx'.
    wa_documentheader-header_txt = 'Text Header.
    wa_documentheader-bus_act = 'XXXX'.
    *it_currencyamount
    wa_currencyamount-itemno_acc = '1'.
    wa_currencyamount-currency = 'COP'.
    wa_currencyamount-amt_doccur  = 1943.
    APPEND wa_currencyamount TO it_currencyamount.
    *it_accountpayable
    wa_accountpayable-itemno_acc = '1'.
    wa_accountpayable-gl_account = '1234567890'.
    wa_accountpayable-bus_area = 'DIV'.
    wa_accountpayable-item_text = 'Text 1 XXxxxxx '.
    wa_accountpayable-pmnt_block = ''.
    APPEND wa_accountpayable TO it_accountpayable.
    *it_accountgl
    wa_accountgl-itemno_acc = '2'.
    wa_accountgl-gl_account = '1234567890'.
    wa_accountgl-item_text = 'Text 2 XXxxxxx'.
    wa_accountgl-bus_area = 'DIV'.
    APPEND wa_accountgl TO it_accountgl.
    wa_currencyamount-itemno_acc = '2'.
    wa_currencyamount-currency = 'COP'.
    wa_currencyamount-amt_doccur  = ( 1943 ) * -1.
    APPEND wa_currencyamount TO it_currencyamount.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
      EXPORTING
        documentheader = wa_documentheader
      TABLES
        accountgl      = it_accountgl
        accountpayable = it_accountpayable
        currencyamount = it_currencyamount
        return         = it_return.
    clear it_return.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
          EXPORTING
            documentheader = wa_documentheader
          TABLES
            return         = it_return
            currencyamount = it_currencyamount "currencyamount
            accountpayable = it_accountpayable "accountpayable
            accountgl      = it_accountgl "accountgl
          EXCEPTIONS
            OTHERS         = 01.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

  • While creating Process Order system has to validate the Batch field

    Hi All,
    While creating the Process Order system has to validate the Batch field which comes under Goods Receipt tab. Please let me know is there any standard user-exit is there for this requirement.
    Regards
    Naveen

    Dear Swapnil,
    Thanks for the reply,
    At the time of creation of process order I am entering the External Batch no as per the logic i.e. first two letters as 08 (for year), next two letter as section 51 (for solid mfg section, which i am planning to maintained in the Z table) and last three letters as 001 (for serial no in this section). so batch no is 0851001.
    Now i want to validate these all letters as per the above logic i.e first two letter should be cross check with current year, and next two letter with Z table for section and last three letters for sr no with previous batch, which is already created for this section.
    Now can you please help me to find out the function exit or screen exit to validate the above requirement at the time of creation of process order i.e. COR1, under the Goods receipt tab. 
    Thanks in advanced
    Naveen

  • BAPI_REQUISITION_CHANGE  please suggest the mandatory  fields.

    I am using the Bapi_requisition_change  in se 37 .
    i am inputting the following parameters
    NUMBER                          10032908
      REQUISITION_ITEMS_OLD
    REQUISITION_ITEMS_NEW
    REQUISITION_ACCOUNT_OLD
    REQUISITION_ACCOUNT_NEW.
    but following error is coming while executing the fs.
    Data in REQUISITION_ITEM_OLD for item 00010 does not correspond to current database status
    and also please suggest the mandatory fields for this bapi

    Shashi,
    Try this:
    report z_po_req_create.
    DATA : T_REQUISITION_ITEMS LIKE BAPIEBANC OCCURS 0 WITH HEADER LINE,
    T_RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE .
    DATA : E_NUMBER LIKE BAPIEBANC-PREQ_NO.
    T_REQUISITION_ITEMS-DOC_TYPE = 'NB'.
    T_REQUISITION_ITEMS-DEL_DATCAT = '1'.
    T_REQUISITION_ITEMS-DELIV_DATE = '20020626'.
    T_REQUISITION_ITEMS-PLANT = 'P1'.
    T_REQUISITION_ITEMS-STORE_LOC = '01'.
    T_REQUISITION_ITEMS-PUR_GROUP = 'P01'.
    T_REQUISITION_ITEMS-MAT_GRP = '01'.
    T_REQUISITION_ITEMS-PREQ_ITEM = 1.
    T_REQUISITION_ITEMS-MATERIAL = '1MAT1'.
    T_REQUISITION_ITEMS-QUANTITY = 10.
    T_REQUISITION_ITEMS-PREQ_NAME = '123456'.
    T_REQUISITION_ITEMS-PURCH_ORG = '1000'.
    T_REQUISITION_ITEMS-ACCTASSCAT = 'U' .
    T_REQUISITION_ITEMS-VEND_MAT = 'G'.
    APPEND T_REQUISITION_ITEMS.
    CALL FUNCTION 'BAPI_REQUISITION_CREATE'
    EXPORTING
    SKIP_ITEMS_WITH_ERROR =
    IMPORTING
    NUMBER = E_NUMBER
    TABLES
    REQUISITION_ITEMS = T_REQUISITION_ITEMS
    REQUISITION_ACCOUNT_ASSIGNMENT = T_REQ_ACCOUNT_ASSIGNMENT
    REQUISITION_ITEM_TEXT =
    REQUISITION_LIMITS =
    REQUISITION_CONTRACT_LIMITS =
    REQUISITION_SERVICES =
    REQUISITION_SRV_ACCASS_VALUES =
    RETURN = T_RETURN
    REQUISITION_SERVICES_TEXT =
    EXTENSIONIN =
    REQUISITION_ADDRDELIVERY =
    IF NOT E_NUMBER IS INITIAL .
    WRITE:/ 'REQ NO:' , E_NUMBER , 'CREATED'.
    ELSE.
    LOOP AT T_RETURN.
    WRITE T_RETURN-MESSAGE.
    ENDLOOP.
    ENDIF.
    Reddy

  • What are the mandatory fields while creation of material master in differen

    what are the mandatory fields while creation of material master in different views?

    Hi Gopi,
      This is purely depends on the function configuration, which would be done MM consultants.  Kindly check with them.
    thanks & regards
    Kishore Kumar Maram

  • What are all the mandatory fields of the BAPI_PO_GETDETAIL?

    Hi friends,
    I am new to XI. I am using the "BAPI_PO_GETDETAIL1" in my scenario to get details of a particular Purchase Order. Can you tell me the mandatory fields of this BAPI?
    Where should i look to identify the mandatory fields of a BAPI?
    Thanks.
    Senthil Nathan.

    Hi you can see this in SE37 under the Import Tab. Here you see that the only mandatory input field is PURCHASEORDER. So if you provide the purchaseorder number you get alle the details for that.
    Kind regards
    Mikkel

  • What and Which are the Mandatory fields in a Purchase Order?

    Please advise how I can check what the Mandatory fields are in a purchase order and which fields are not Mandatory ?
    Also, Please advise where this information can be found in the manual?
    Thanks in advance.
    Edited by: Darpal Thiarha on Feb 26, 2008 3:49 PM

    Hi,
    mandatory fields are:
    vendor
    docdate
    delivery date
    and other fields you may test in sbo_transactionnotification procedure.
    I don`t think that this is written in manual, you have to test to add the document with few fields filled and check it.
    Petr

  • What are the common fields in table KONV = J_1IEXCHDR,EKKO,EKPO,MSEG

    Helo everyone,
    I need wht are the common fields between table of KONV and J_1IEXCHDR,EKKO,EKPO,MSEG. Pls give me details
    thanks in advance
    suresh

    check out LIFNR,KUNNR ETC

  • What are the mandatory fields needed to setup/register the SIP phone manually in CUCM

    What are the mandatory fields needed to setup/register the SIP phone manually.Also, if someone can let me know the mandatory fields for Cisco based SIP phone and also the third party SIP hard phones like Avaya or any other Third party SIP phones both Soft phone and physical phone requirements...in CUCM
    Please suggest...I need to know if MAC address is mandatory for all Cisco SIP phone to setup 

    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/admin/7_1_2/ccmcfg/bccm-712-cm/b09sip3p.html
    http://www.cisco.com/c/en/us/support/docs/voice-unified-communications/unified-communications-manager-version-70/112110-phone-add-00.html

  • What are the mandatory fields in DTW for opening balances imports?

    Hi All,
    As the title mentions could you please help by listing all the mandatory fields in DTW for importing opening balances ?
    Thank you for your help,
    MB

    Hi Gordon and all,
    I have a look at the SDk help files and almost cried but am i right in thinking it is Account Code, Debit and Credit fields that are the mandatory fields for opening balances?
    These sdk help files are awful by the way...really awful.
    MB

  • How to Validate the Text Field in JSF

    Hi,
    I am facing a issue to validate the text field where the below code accepts (space' ',underscore'_',pipe'|') symbol as a first character and last character.Where by it can accept in the middle.
    It should not accept special characters also. Below code is working properly for special characters.
    <tr>
    <td width="30%" align="right"><b><h:outputText id="aAccrualType" value="Accrual Type" /> </b> <span style="color:red">*</span></td>
    <td width="50%">: <h:inputText id="accrualType" value="#{accrualTypeMast.accrualType}" required="true" >          
    <t:validateRegExpr pattern="^[(a-z)||(A-Z)||(0-9)||(_)||(\s)||(/)]+$" />     
    <f:validateLength minimum="1" maximum="50"/>     
    </h:inputText>
    <h:message for="accrualType" showDetail="true" style="color:red" />
    </td>
    </tr>
    The thing is i dont have much knowledge in regular expression.
    Is there any other way to do this.
    Could anyone help me in this.
    Thanks,
    Ambika&#9786;

    This has nothing to do with JSF.
    I suggest you to read the Pattern API documentation [1]. You can easily create a small Java Application and test the regexp using String#matches() as it uses the same regexp guidelines.
    public static void main(String[] args) {
        String regexp = "^[a-z]+$";
        String value = "foo";
        boolean match = value.matches(regexp);
        System.out.println(value + " matches " + regexp + ": " + match);
    }[1] http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html

  • 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.

Maybe you are looking for

  • Adobe indesign download problems

    I purchased Adobe indesign and trying to download it. I went to the creative cloud webpage and hit download. It says it is downloading. But when I view the creative cloud apps. It says installed but I can't open it. I had previously used the trial. H

  • Analog VIDEO OUT on G5?

    I use a deck with Firewire in and S-video out with Final Cut. Can I get my G5 to send a signal the same way for DVD's, etc? Thanks so much!

  • How to run a java program in a non-java platform

    Hi, Need a help... I have created an application written in JAVA. I have converted the class files into .exe file using JEXEPACK. It's working fine everywhere if JAVA is installed. But not working in a machine where JAVA is not installed. Is there an

  • Encore Remote Preview Buttons Not Working in Preview Mode

    I have had this annoying problem on several ocassions and it's back again. I have never been able to figure out what causes it. When in the prview mode to test the DVD compliation to see if the remote buttons will change between the menu buttons I cr

  • Problems with iweb and Internet Explorer

    I'm having trouble with my iweb website - PC users using Internet Explorer can access my site home-page but find the navigation bar is blocked - covered by a green rectangle which does not allow the links to be explored. With Safari and Firefox the w