Make a fields as a required field at runtime

Hi Gurus,
Hi have one requirement ,
Make a fields as a required field at runtime, when i click the submit button
By
ram k

check my post in [this thread|Setting fields mandatory based on other fields;
you can issue a popup message or, what we did is issue a message in the message area and not allow the continuation of the submit event processing.

Similar Messages

  • Can we make as P.center as required field for Bank accounts

    hi friends,
    can we make as profit center as required field for bank accounts in field status group.
    If we make as required, what are the impact /consequences will happen. We are drawing Financial statements at profit center level.
    We are using ECC 6.0 with document splitting.
    Regards,
    Suresh

    Hi,
    If you have document splitting active, where profit center is mandatory, do not make profit center mandatory at the field status group level as this will not allow the documents to split where there are more than one profit center in a document.
    The bank line item gets automatically split in the ratio of liability or Assets line items profit center. And if you make Profit center mandatory in Bank line item then this splitting will not take place. Moreover you will not be able to post any document having more than one profit center.
    You can test this out all by yourself in a test system. Post an Invoice(FB60) as foolows:-
    Expense -Dr.(P.C.-A)- 100
    Expense -Dr.(P.C.-B)-200
       To vendor - 300
    This entry will show in general ledger view as :-
    Expense -Dr.(P.C.-A) - 100
    Expense -Dr.(P.C.-B) - 200
       To vendor .(P.C.-A) - 100
       To vendor .(P.C.-B) - 100
    Now go to F-53 and post payment:-
    Enter Bank Account no., amount, and also enter profit center on the first screen as u hv made P.C. mandatory, and select the above document no. and try posting it. You will get error in this case.
    Do let me know if it is of any help to you.
    Regards,
    SAPFICO

  • Getting Return Message : Make an entry in all required fields

    I need help.
    when passing objectid blank i am getting "Make an entry in all required fields" Return message.
    i checked through se16 --> PA0006 Table for all employeenumber objectid is blank.
    below is my code
    proxyaddchange.Connection.Open();
    // To refer to the subset that has Permanent Address details
                        string subType = "1";
                        // Get records till this date(yyyymmdd - format)
                        string timeIntervalHigh = "99991231";
                        //timeIntervalHigh = "31.12.9999";
                        // Get records from this date(yyyymmdd - format)
                        string timeIntervalLow = "18000101";
                        timeIntervalLow = "19850101";
                        proxyaddchange.Bapi_Employee_Enqueue(txtSapId.Text,out Return11);
                        proxyaddchange.Bapi_Addressemp_Change(txtSapId.Text,"","","",subType,"123456789",timeIntervalLow,timeIntervalHigh,out Return12);
                        proxyaddchange.Bapi_Employee_Dequeue(txtSapId.Text,out Return13);

    Adil,
    We are having the exact same problem as you have described.  Did you ever find an answer?
    We would appreciate any pointers you can provide.
    Thanks,
    Benny

  • MAKE AN ENTRY IN ALL REQUIRED FIELDS

    HI,
    I AM USING THE FOLLOWING EXCEL VBA CODE TO TRY AND CALL A TRANSACTION LX02 DIRECT INTO EXCEL.
    Public Sub add_bdcdata(BdcTable As Object, program As String, dynpro As String, dynbegin As String, fnam As String, fval As String)
    Dim vField As Variant
    j = j + 1
    BdcTable.Rows.Add
    BdcTable.Value(BdcTable.Rows.Count, "PROGRAM") = "RLS10020"
    BdcTable.Value(BdcTable.Rows.Count, "DYNPRO") = "1000"
    BdcTable.Value(BdcTable.Rows.Count, "DYNBEGIN") = "X"
    BdcTable.Value(BdcTable.Rows.Count, "FNAM") = "BDC_OKCODE"
    BdcTable.Value(BdcTable.Rows.Count, "FVAL") = "NEXT"
    Debug.Print BdcTable.Value(j, "FVAL")
    End Sub
    Public Sub rfc_call_transaction()
    Dim Functions As Object
    Dim RfcCallTransaction As Object
    Dim Messages As Object
    Dim BdcTable As Object
    ' Create the Function control (that is, the high-level Functions collection):
    Set Functions = CreateObject("SAP.Functions")
    ' Set the rest of Connection object values:
    Functions.Connection.System = "QA2"
    Functions.Connection.client = "900"
    Functions.Connection.user = "mbrough"
    Functions.Connection.Password = "st34lhv3"
    Functions.Connection.Language = "EN"
    If Functions.Connection.Logon(0, False) <> True Then
    Exit Sub
    End If
    Dim iBOB As Integer
    iBOB = Range("A1")
    Do
    ' Retrieve the Function object (the Connection object must be set up before Function objects can be created):
    Set RfcCallTransaction = Functions.Add("RFC_CALL_TRANSACTION")
    ' Set the export parameters
    RfcCallTransaction.exports("TRANCODE") = "LX02"
    RfcCallTransaction.exports("UPDMODE") = "S"
    Set BdcTable = RfcCallTransaction.Tables("BDCTABLE")
    ' Set the tables parameter and add the data for the call transaction
    add_bdcdata BdcTable, "RLS10020", "1000", "X", "", ""
    add_bdcdata BdcTable, "", "", "", "BDC_CURSOR", "S1_LGNUM"
    add_bdcdata BdcTable, "", "", "", "BDC_OKCODE", "=ONLI"
    add_bdcdata BdcTable, "", "", "", "S1_LGNUM", "900"
    add_bdcdata BdcTable, "", "", "", "S1_LGNUM", "ActiveCell"
    add_bdcdata BdcTable, "", "", "", "S1_LGTYP-LOW", "K01"
    add_bdcdata BdcTable, "", "", "", "BDC_SUBSCR", "SAPLSSEL"
    add_bdcdata BdcTable, "", "", "", "BDC_SUBSCR", "SAPLSSEL"
    add_bdcdata BdcTable, "SAPMSSYO", "0120", "X", "", ""
    add_bdcdata BdcTable, "", "0", "", "BDC_OKCODE", "=BACK"
    add_bdcdata BdcTable, "RLS10020", "1000", "X", "", ""
    add_bdcdata BdcTable, "", "", "", "BDC_OKCODE", "/EE"
    add_bdcdata BdcTable, "", "", "", "BDC_CURSOR", "S1_LGNUM"
    add_bdcdata BdcTable, "", "", "", "S1_LGNUM", ActiveCell.Value
    'End SubCall the function (if the result is false, then display a message):
    If RfcCallTransaction.Call = True Then
    Set Messages = RfcCallTransaction.imports("MESSG")
    MsgBox Messages.Value("MSGTX")
    Else
    MsgBox " Call Failed! error: " + GetCustomers.Exception
    End If
    iBOB = iBOB + 1
    Loop Until IsEmpty(ActiveCell.Offset(iBOB, 0))
    Functions.Connection.Logoff
    End Sub
    I KEEP GETTING AN ERROR MESSAGE SAYING 'MAKE AN ENTRY IN ALL REQUIRED FIELDS' AND THEN NOTHING DOWNLOADS INTO EXCEL.
    CAN ANYONE HELP PLEASE?
    THANKS

    When I run this transaction through SAPgui I only have to fill out the field S1_LGNUM, and I have specified this in my code.
    Is my code below correct?
    Public Sub add_bdcdata(BdcTable As Object, program As String, dynpro As String, dynbegin As String, fnam As String, fval As String)
        Dim vField As Variant
        Static j As Integer
        j = j + 1
        BdcTable.Rows.Add
        BdcTable.Value(j, "PROGRAM") = "RLS10020"     ' Program Name
        BdcTable.Value(j, "DYNPRO") = "1000"        ' Dynpro Number
        BdcTable.Value(j, "DYNBEGIN") = "X"    ' X if a screen
        BdcTable.Value(j, "FNAM") = "BDC_OKCODE"            ' Field Name
        BdcTable.Value(j, "FVAL") = "NEXT"            ' Field Value
    End Sub
    As i have seen this in examples where it looks like below.
    Public Sub add_bdcdata(BdcTable As Object, program As String, dynpro As String, dynbegin As String, fnam As String, fval As String)
        Dim vField As Variant
        Static j As Integer
        j = j + 1
        BdcTable.Rows.Add
        BdcTable.Value(j, "PROGRAM") = program    ' Program Name
        BdcTable.Value(j, "DYNPRO") = dynpro        ' Dynpro Number
        BdcTable.Value(j, "DYNBEGIN") = dynbegin    ' X if a screen
        BdcTable.Value(j, "FNAM") = fnam            ' Field Name
        BdcTable.Value(j, "FVAL") = fval            ' Field Value
    End Sub
    Thanks

  • Inline table throw "make a selection" error in required field upon PPR

    Hi,
    I have a dropdown in a page and when change, will do a PPR and render the inline ADF table which contains selectOneChoice, inputText components.
    Here's code snipplet:
    <af:selectOneChoice label="Action" shortDesc="Action" id="soc17"
    rendered="#{!viewScope.FaParamConfigBean.paramConfigMode
    and pageFlowScope.backing_flowFaParamsBean.flowParamConfigMode}"
    valueChangeListener="#{pageFlowScope.backing_flowFaParamsBean.onChangeAction}"
    immediate="true" autoSubmit="true">
    <f:selectItems value="#{pageFlowScope.backing_flowFaParamsBean.actionsList}"
    id="si12"/>
    </af:selectOneChoice>
    <af:panelCollection id="pc3" styleClass="AFStretchWidth"
    rendered="#{pageFlowScope.backing_flowFaParamsBean.showFlowParamConfigTable}"
    partialTriggers="soc17">
    <af:table value="#{bindings.ItasFlowParamConfigsFullVO1.collectionModel}"
    var="row"
    rows="#{bindings.ItasFlowParamConfigsFullVO1.rangeSize}"
    emptyText="#{bindings.ItasFlowParamConfigsFullVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.ItasFlowParamConfigsFullVO1.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.ItasFlowParamConfigsFullVO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.ItasFlowParamConfigsFullVO1.collectionModel.makeCurrent}"
    rowSelection="single" id="t11"
    editingMode="editAll" styleClass="AFStretchWidth"
    columnStretching="column:c4"
    partialTriggers="::ctb12 ::ctb13"
    immediate="true">
    <af:column sortProperty="#{bindings.ItasFlowParamConfigsFullVO1.hints.ParameterUid.name}"
    sortable="false"
    headerText="#{bindings.ItasFlowParamConfigsFullVO1.hints.ParameterUid.label}"
    id="c4">
    <af:selectOneChoice value="#{row.bindings.ParameterUid.inputValue}"
    label="#{bindings.ItasFlowParamConfigsFullVO1.hints.ParameterUid.label}"
    shortDesc="#{bindings.ItasFlowParamConfigsFullVO1.hints.ParameterUid.tooltip}"
    required="#{bindings.ItasFlowParamConfigsFullVO1.hints.ParameterUid.mandatory}"
    id="soc99" immediate="true">
    <f:selectItems id="si88"
    value="#{pageFlowScope.backing_flowFaParamsBean.parameterListDrop}"/>
    </af:selectOneChoice>
    </af:column>
    The issue is that after changing the value in "Action" dropdown, the inline table got refreshed accordingly, and ADF throws error "Please make a selection for Parameter Uid" on the required selectOneChoice value in the inline table. How can I prevent ADF having the validation checking of required fields when doing a PPR? I have already set the dropdown and table immediate=true already.
    Please advise.
    Thanks
    -Mina

    Hi,
    Need to add SOC id "si12" as table's partial Trigger.
    <af:table value="#{bindings.ItasFlowParamConfigsFullVO1.collectionModel}"
    var="row"
    rows="#{bindings.ItasFlowParamConfigsFullVO1.rangeSize}"
    emptyText="#{bindings.ItasFlowParamConfigsFullVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.ItasFlowParamConfigsFullVO1.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.ItasFlowParamConfigsFullVO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.ItasFlowParamConfigsFullVO1.collectionModel.makeCurrent}"
    rowSelection="single" id="t11"
    editingMode="editAll" styleClass="AFStretchWidth"
    columnStretching="column:c4"
    partialTriggers="::ctb12 ::ctb13 ::si12"
    immediate="true">

  • EAN Field as a required fields

    Hi,
    I have the following question:
    How can i set the EAN field (SMEINH-EAN11)or the EAN Category (SMEINH-NUMTP) as a required field.
    I have already set that field as required field for my reference fields (tr.OMS9), but i still can create a new material (tr.MM41) without fulfill the field EAN.
    Thank you very much
    PB

    Hi,
    One option is to set message M3 818 to error. (From transaction OMT4).
    Br,
    Einar

  • Segment field must be required field in Profit Center Master Data

    Dear Consultants,
    I want to make segment field as mandatary in the profit center master record.
    Is there any standard functionality to control the fields in PCA? Could you please tell me how we control the fields in PCTR Master?
    Regards,
    Srinivas

    There is NO standard config.
    All you could do is to put a user exit in the create profit center program to make sure there is a value in the segment field.
    You will also need to make sure it is there in change PC.
    Also make sure you have added a Segment to all of your exisitng PC data before you activate the code.

  • Make PR a required field in PO

    Hi,
    Here's what I did..
    Under Doc type, I defined doc type A's Field Sel as ZNBF.
    Then under Define Screen Layout at Document Level, I created a new line named ZNBF. There I made the Purchase Req as required field.
    Is this correct? I tried this but it's not working..
    Thanks a lot

    Dear Angela,
    Under Doc type, I defined doc type A's Field Sel as ZNBF.
    So your field sel is ZNBF....ok
    Then under Define Screen Layout at Document Level, I created a new line named ZNBF. There I made the Purchase Req as required field.
    Befor that just delete the ZNBF entry....Save and come out.
    Now go the same screen again , and  craete Dco type ZNBF by copying ZNBF from NBF fied sel key.
    You have to double click on ZNBF..Now  here make the Purchase Req as required field
    Regards
    Utsav

  • Make Shipping Point Require Field

    Hi SAP Expert,
    In Transaction Code VF04, can shipping point set to be mandatory ?
    Currently i have found the solution, I'm using variant and make shipping point to be required  field and set that variant at t-code SE93 (start with variant).
    or maybe i need to create new roles for each user to default the shipping point?

    I really think  you came up with reasonable solutions.
    Since VF054 is to handle billing what could be order or delivery based, not having Shipping point as a required field in the standard is a very understandable thing.
    I would suggest to use transaction variants, but I can see you are already doing it. Great!
    Leonardo De Araujo

  • Trading Partner - Required Field

    Hi Gurus,
    How can i make trading partner as a required field while posting any JV?
    And also, i want to put a validation for profit center and Trading Partner.
    Please revert asap.
    THank YOu

    We have all this configuration set up.  We do automatically get the trading partner populated on the balance sheet side of the entry.  We charge our subsidiaries inter company fees such as interest, management fees, commissions, etc.  We want to have the trading partner populated on these P&L account items as well because we then segregate these types of expenses by company in order to eliminate them in consolidation.  Many of these types of entries are done in GL entry using transaction code FB01 or F-65 to park.  When using these t-codes the trading partner does not get automatically populated in the P&L account item.  We want to make sure they add a trading partner when using these P&L accounts for inter company type expenses.

  • Making "Payment Method Supplement" a required field in transaction FB60

    Hello,
    I need to make "Payment Method Supplement" a required field in transaction FB60.  Is there a way to do this in configuration or do you need to set up a validation rule?
    Thank you,
    Pete

    Hi,use Field status group in Master Data of Account

  • Input in required fields

    Hi,
    I have made input required in some of the input fields in a screen. But I want the user to be able to go back in the program whitout putting values in the required fields by pressing back, cancel etc.
    But no matter what button is pressed the program diplays a message "Make an entry in all required fields". The only way to get out of the screen is to make entries in the required fields or close the session. Does anyone know how to get around this?
    All answers will be appreciated and rewarded.
    Thanks
    Magnus

    Hi
    You have to active a code for EXIT-COMMAND in yor bar.
    PROCESS PAI.
      MODULE EXIT AT EXIT-COMMAND.
    MODULE EXIT.
    SET SCREEN 0. LEAVE SCREEN.
    ENDMODULE.
    From SAP help:
    The module is only processed if the user enters a command beginning with "/E" in the command field, or chooses a function type E (assigned in the function list in the Menu Painter).
    This addition is also valid for standalone MODULE statements without field assignment.
    AT EXIT-COMMAND is only allowed in the PROCESS AFTER INPUT event. A module with this addition is processed before the automatic input checks and before all other PAI modules.
    Max

  • PA - US- IT0002 PA fillin required fields issue

    Gurus,
    I am trying to execute a personal action to "Hire an employee"
    When I get to the Personal Data, I get a popup message "fill in all requied fields"
    As far as I know, only first name, last name and the DOB is required here - right?
    I also tried to fill in every single field out there, but still get the same error.
    I tried to check in the IMG in the cusomizing screens area to see what are the required fields.
    But, do not understand what the the first column called "standard fields" means.
    The other two fields - one for required fields and the other for optional fields columns are fine.
    Any help?
    Thanks,
    prabakar

    Hi ,
      you have to change field dependent on the screen i.e.you can select fields as per your requiement , by using the transaction code of SHDO , u can make the fields mandatory, optional or relevant.
         OR-
      you can use the IMG path also, Personnel mangament
    >Personnel admin
                                                                                  customization screen
                                                                                    |
                                                                               field dependent of the screen
    Thanks
    Rupa Prasad

  • Functional Location Required field- Notification processing

    Hello All,
    I would like to maintain Functional Location as a Required field for certain Notification Types. In IMG:
    Plant Maintenance and Customer Service>Maintenance and Service Notifications>Notification Creation>Notification Types>Set Field Selection for Notifications
    Field Selection for Maintenance Notifications
    Field Selection Reference Objects PM Notification
    When I Select Field Selection for Maintenance Notifications>Select Influencing: Notification Types and Selected the desired Notification Type and set Functional Location as a Required field the Notification Type does not have Functional Locatiion as a Required Field.
    When I select Field Selection Reference Objects PM Notification:ISelect Influencing: Notification Types and Selected the desired Notification Type and set Functional Location as a Required field* the Notification Type does not have Functional Locatiion as a Required Field.
    But When I select Field Selection Reference Objects PM Notification:Make Functional Location as a Required field and then Select Influencing: Notification Types and Selected the desired Notification Type and set Functional Location as a Required field* all the Notification Type does have Functional Locatiion as a Required Field.
    How do i make the Functional Location as a Required field for a particular Notification type.
    Thanks
    Krish

    1) Field Selection Reference Objects PM Notification
    2) Click 'Influencing' button
    3) Double-click 'Notification type'
    4) Input your notification type on 'Contents' field, then enter
    5) Select 'Required' for functional location
    Save
    Regards
    Luke

  • Empty required field error message

    I keep receiving "At lest one required field was empty on export. Please fill in the required (highlighted) fields before continuing." message.
    I have changed all required fields to optional, but still get the above message. When I do get the message, there are no fields highlighted to correct and I have gone back thru each field and checked to make sure there are no required fields.
    I would like to have 7 fields in my form as required, but even when we tried to put something in the field and submit the form, we received the message. I thought that removing the "required" value would take care of the problem, but the message still comes up.
    Can anyone help.

    Here's something to try...<br />Under some circumstances (such as changing the type of a field), the underlying XML retains values that aren't displayed in the object't properties box.<br /><br />Try clicking on the XML tab, and doing a search for any text that looks anything like this:<br /><validate nullTest="warning"....<br />or <br /><validate nullTest="error"...<br /><br />If you do, that will indicate the cause of the problem.<br /><br />Good luck...<br /><br />Howard

Maybe you are looking for

  • Hard drive not recognized - cable?

    When I try to boot up my computer, I get a flashing folder with a question mark on it. However, when I move the hard drive to another computer and then boot up, there are no problems at all. Would I be correct in guessing that it's the hard drive cab

  • How do I do a clean install of Snow Leopard on a mid 2010 13" MacBook Pro

    Hello All, I am replacing a dead hard drive without any backups (I'm fixing someone else's computer), so I want to do a clean install.  When I boot the retail Snow Leopard DVD, I get a kernel panic.  Is this the wrong DVD?  I don't have the original

  • FilePrint not working in Office 2013

    Hi, we are trying to override the idmso FilePrint command in the ribbon. This works fine in Word/Excel/PPT 2007 and 2010 but not in 2013. Is there any bug in 2013 or did the command name change? Strangely office doesn't throw any errors but the funct

  • SOLMAN 4.0 ...

    Hi all, Was wondering if there is a Java Perf Lib for Solman 4.0 running on Windows 2003 Std Edition with MS SQL 2000 Enterprise Edition? I need it to increase the performance of the Java Can someone also tell me what is the recommended specs require

  • How do I run EJB in J2EE Application Server

    Hi, I am trying to run a simple stateless session bean containing the remote interface, home interface and the bean program. I am able to compile those. Now when I am tying to deploy after starting default domain, I am unable to do so. This happens a