How to validate the values inputted in Salestext view at MM02 before saving

Hello All,
Does anyone know what FM or user exit to use in order to validate the values inputted in Salestext view at MM02 transaction before saving it.
Regards,
Alfred

Hello,
Find the user exits if any after finding keep the break point in the exits and check that cursor is trigrring that exit or not. If it triggers check the value of the salestext exits in the exporting parameters or not.
if exits then keep do the validations.
UserExits MM02
MGA00001            Material Master (Industry): Checks and Enhancements
MGA00002            Material Master (Industry): Number Assignment
MGA00003            Material Master (Industry and Retail): Number Display

Similar Messages

  • How to get the values inputted by the user in Classification view of  MM02

    Hello,
    Does anyone know how to get the inputted values in Classification view of MM02/MM01? I tried to use CLAF_CLASSIFICATION_OF_OBJECTS but this gets the values that is currently saved in the tables and not the values that the user recently inputted in the screen.
    Regards,
    Alfred

    hi
    try this...
    How to Display the Batch Characteristics in BOM?

  • How will read the value from Adobe Reader/Viewer in c# windows App

    I m using VS2005 . working in windows appliction. i am using adobe Reader 9, Then the new pdf document open  inside the Acrobat adobe reader , Exsiting PDF file is created by Adobe Forms(Adobe LiveCycle designer and Adobe pro 9).
    Using the Class is:
    1.AcroExch.App
    2.AcroExch.AVDoc
    3.AcroExch.pdDoc
    4.Acrobat.CAcroApp
    namespace is:
    using AxAcroPDFLib;
    using AFORMAUTLib;
    using Acrobat;
    Using DLL is:
    1. Interop.Acrobat
    2. Interop.AcroPDFLib
    3. Interop.AFORMAUTLib
    4. AxInterop.AcroPDFLib
    My problem is,
    I am Working in
                       PDFis open inside the adobe reader/Viewer, but i can not able to get the value from PDF Forms.
                        ( This Pdf forms is Some more Control Design is Available)
    Ex:
    I have Attached my Pdf  disgn file.        Please see this Pdf file.
    I am not able to get the value from  inside window(adobe Reader/Viewer),  but i can able to get the value from the out side of adobe viewer/Reader.
    This coding not working properly,
    try
                    CAcroAVDoc AcroExchAVDoc = default(CAcroAVDoc);
                    CAcroApp AcroExchApp = default(CAcroApp);
                    CAcroPDDoc oDoc = default(CAcroPDDoc);
                    AFORMAUTLib.AFormApp AFormAut = default(AFORMAUTLib.AFormApp);
                    AFORMAUTLib.Field Field = default(AFORMAUTLib.Field);
                    AFORMAUTLib.Fields Fields = default(AFORMAUTLib.Fields);
                    bool OK = false;
                    AcroExchApp = new AcroApp();
                    oDoc = new AcroPDDoc();
                    AcroExchAVDoc = new AcroAVDoc();
                    AFormAut = new AFormAppClass();
                    //AcroExchApp = (Acrobat.AcroApp)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.App" ));
                    //oDoc = (Acrobat.AcroPDDoc)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.PD Doc"));
                    //AcroExchAVDoc = (Acrobat.AcroAVDoc)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.AV Doc"));
                    //AFormAut = (AFORMAUTLib.AFormApp)Activator.CreateInstance(Type.GetTypeFromProgID("AFormAut .App"));
                    bool bOK = AcroExchAVDoc.Open(pdfWindowLeft.src, "Temp"); ' some time not true
                        ' if  ok (true) then
                    if (bOK)
                        Fields = (AFORMAUTLib.Fields)AFormAut.Fields;
                        foreach (Field myField in Fields)
                            if (myField.Name == "form1[0].#subform[0].Id[0]")   ' field value not get from the inside window
                                string Id = myField.Value; ' not getting a answare
                            if (myField.Name == "form1[0].#subform[0].PatientName[0]")
                                string PatientName = myField.Value;
                            if (myField.Name == "form1[0].#subform[0].Email[0]")
                                string Email = myField.Value;
                            if (myField.Name == "form1[0].#subform[0].PhoneNo[0]")
                                string PhoneNo = myField.Value;
                            if (myField.Name == "form1[0].#subform[0].Address[0]")
                                string Address = myField.Value;
                catch (Exception Ex)
                    lbl_Result.Text = Ex.Message;
                finally
                    Conn.Close();
    This coding is working properly,
    try
                    String FORM_NAME = addressLeft.Text;
                    //String FORM_NAME = Application.StartupPath + "\\..\\..\\..\\..\\..\\TestFiles\\SampleForm.pdf";
                    // Initialize Acrobat by cretaing App object.
                    CAcroApp acroApp = new AcroAppClass();
                    // Show Acrobat Viewer
                    acroApp.Show();
                    // Create an AVDoc object
                    CAcroAVDoc avDoc = new AcroAVDocClass();
                    // Open the pdf
                    if (!avDoc.Open(FORM_NAME, ""))
                        lbl_Result.Text = "Cannot open" + FORM_NAME + ".\n";
                        return;
                    // Create a IAFormApp object, so that we can access the form fields in
                    // the open document
                    IAFormApp formApp = new AFormAppClass();
                    // Get the IFields object associated with the form
                    IFields myFields = (IFields)formApp.Fields;
                    // Get the IEnumerator object for myFields
                    IEnumerator myEnumerator = myFields.GetEnumerator();
                    bool bFound = false;
                    // Fill the "Name" field with value "John Doe"
                    while (myEnumerator.MoveNext())
                        // Get the IField object
                        IField myField = (IField)myEnumerator.Current;
                        // If the field is "Name", set it's value to "John Doe"
                        // form1[0].#subform[0].Name[0]
                        if (myField.Name == "form1[0].PatientInformation[0].Id[0]")
                            //form1[0].#subform[0].Id[0]
                            bFound = true;
                            lbl_id.Text = myField.Value;
                        //form1[0].#subform[0].Name[0]
                        if (myField.Name == "form1[0].PatientInformation[0].PatientName[0]")
                            bFound = true;
                            lbl_name.Text = myField.Value;
                        if (myField.Name == "form1[0].PatientInformation[0].Email[0]")
                            bFound = true;
                            lbl_email.Text = myField.Value;
                        if (myField.Name == "form1[0].PatientInformation[0].PhoneNo[0]")
                            bFound = true;
                            lbl_phoneno.Text = myField.Value;
                        if (myField.Name == "form1[0].PatientInformation[0].Address[0]")
                            bFound = true;
                            lbl_address.Text = myField.Value;
    can u anyone help me. It's very urgent for my project.
    Thanks for ur replay,
    Regards
    Ganesaselvam.I

    First off - the code you wrote won't work with Reader, it will only work with Adobe Acrobat.
    Second, LiveCycle Designer-based forms are a special type of PDF and don't use AcroForms, they use an XML-based forms grammar.  Therefore, the AcroForms API calls aren't designed to work with them.  You should be using the JSObject bridge code along with JavaScript to access the values of the fields.

  • How to bind the value of textbox with View object's bind variable?

    Hi all,
    In my use case I need to pass the value of textbox in the jsf page to the View Object's bind variable.
    I should not hard code this in my backing bean. I need to configure in the Jdeveloper itself.
    I am using Jdeveloper 11.1.1.4.0 version. Kindly come up with your help.
    Thanks,
    Phani.

    Hi,
    You have to use Named Bind Variables(ExecuteWithParams)
    http://download.oracle.com/docs/cd/B31017_01/web.1013/b25947/web_search_bc004.htm
    http://www.cloudsolid.com/2008/10/using-named-bind-variables.html

  • How to retrieve the values from a Transient View Object

    Hi Experts,
    I am using Jdevelpoer11.1.1.5.0. I created one Transient view object with attributes EmpId,Salary.
    In Backing Bean i will create rows for that view object and display it in the form of <af:Table> like Empid, Salary and an Update Link.
    Now my problem is i want to update the salary of the particular EmpId. For Example if the EmpId is 100 and salary is 10000 now i want to increase the salary to 20000 and if i click on the update button; i want to retrieve the particular employee details in my backing bean. How can i acheive this?
    Thanks in advance.

    A better approach would be to programmatically populate rows in the <VO>Impl.java by overriding the executeQueryForCollection(0 as specified here -
    http://adfpractice-fedor.blogspot.in/2011/01/adf-bc-programmatically-populated-vo.html
    You can write the logic to update the salary in an AM method then on click of Update or in the getter of Salry field if logic is valid for all fields...

  • How to validate the input field

    Hi,
    I have a input form which is draged from input port of a RFC.
    in this input form i have two input fields nad submit button.
    on of this input field should always take the character values only. it should not take any numeric value
    and other input field should always take numeric value only.
    i.e how to validate this two input fields.
    regards
    srinivas

    Hi,
    U can validate input fields using javascript.Write OnClientClick function for that submit button if ur using htmlb or onClick if u r using html.Refer the follows
    http://help.sap.com/saphelp_nw70/helpdata/en/03/900e41a346ef6fe10000000a1550b0/frameset.htm
    There are two ways to achieve ur task.
    1.By checking for all alphabets.in this u need check all the alphabetic characters one by one.Refer the following
    http://www.shiningstar.net/articles/articles/javascript/javascriptvalidations.asp?ID=ROLLA
    http://www.shiningstar.net/articles/articles/javascript/checkNumeric.asp?ID=AW
    2.By using regular expressions.its very easy and a single line code.here u need to specify single expression for whole alphabets.Refer this
    http://aspzone.com/blogs/john/articles/173.aspx
    Everything has been given for validating in javascript.i hope u also validating in javascript only.
    For more details on "Regular expressions" search google.
    Regards,
    Tamil K

  • How to get the value entered in input enabled field of a list output?

    Hi all,
    I am developing a program to display  list with two input enabled fields . After users enetered the values into these fields I need to do some calculations based on these values and modify the value of another field in the list.
    But i couldn't have an idea how to read the values after users enter into these fields.
    Please help me on solving this problem?  If possible please provide the sample code.
    Thanks,
    Aravind.

    You can enable disable screen fields in at selection screen output event.
    And by using loop at screen.
    And for changing the values you can do in initialization event.
    I Hope you are doing these in Reports.

  • How can i add the value inputted from the prompt box to the mysql database?

    Hey guyz help me pls with this problem... im only new to javascript and also to the opensource like(php and mysql). I tried to use a prompt box and store the value into the textbox. But now I want to know how to insert/add the value inputted from a prompt box directly into the database if it is possible.

    Java is not JavaScript, they've got almost nothing in common (apart from superficial syntax similarities and the first 4 letters of their names).
    If indeed your question is about JavaScript, then please find a JavaScript forum, as we can't help you here.

  • How to Validate the Fileds in LSMW - In step 6.   Maintain Fixed Values, T

    Hi
    How to validate the fileds in the LSMW in the step
      6 Maintain Fixed Values, Translations, User-Defined Routnes.
    In this step how to i validate the fileds.
    Please help.
    Regards
    Gangi

    Hi,
    You can validate the fields in the LSMW in field mapping section .
    For example you are loading the BOM using LSMW and you want to validate those material numbers which do not exist in the material master .
    For this purpose write a select statement to check the materials existence like below :
    select single matnr into v_matnr
    from mara
    where matnr = source-matnr .
    if sy-subrc <> 0.
    skip_record. " this statement will skip the record .
    endif.
    To get such statements to handle the records withing LSMW during data transfer .Go to the field mapping step , there in abap conversion routine step
    go to ' INSERT' -> 'GLOBAL FUNCTIONS' -> ( then a pop will open offering various function options for your requirement. ) In fact SKIP_RECORD is also available there .
    reward if it helps...
    Regards,
    Omkar.

  • In eCATT, How to mention the values as  input parameter during test script

    Hi,
    1. I am just learning eCATT tool. I created a Test Script by recording my transaction. But if i want to execute the recorded transaction with different data then how to store the values.
    2. How to execute my Test Script created in one client to another client of same server. is it just by mentioning the target system or do we have to do anything in anothere client.
    Lakshmi

    Hi
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0e0ebec-c9da-2910-689e-b1a22a621c7f
    Manoj Shakya.

  • How to validate the field when i am populating the data cursor to block

    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.

    902434 wrote:
    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.If you want to validate at entry level then use When-Validate-Item trigger and check the input and show message. Like
    If :quentity <0 then
    message('do not enter negative value');
    message('do not enter negative value');
    raise form_trigger_failure;
    end if;Why u open same thread again ? not closing one.. check this one
    </a>
    How to validate the field when i am populating the data cursor to block
    Hopes this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • How to set the table input in Query template?

    Hi all.
    I need to call a Bapi_objcl_change, with import parameter and a table as an input. I have done this, in BLS. I have set the table input in the
    form of xml. In BLS, I get the output(the value gets change in SAP R3, what i have given in BLS).  But if i set the same xml structure  in
    query template, I didn't get the output. Table input parameter does not take that xml source.  How to set the table input in Query template?
    can anyone help me?
    Regards,
    Hemalatha

    Hema,
    You probably need to XML encode the data so that it will pass properly and then xmldecode() it to set the BAPI input value.
    Sam

  • How to get the values from IDXML during a Pre processing

    Hi,
    I have a requirement to validate the attributes in the IDXML request while deactivating a user. I have configured a workflow with the steps "Initiate" "Externalaction" "Disable" "Commit".
    The following is my IDXML request. I want to get the values that is coming in the IDXML in the pre action (written a c++ plugin) and perform certain validations.
    <?xml version="1.0"?>
    <SOAP-ENV:Envelope
                             xmlns:SOAP-ENV="http://schemas-xmlsoap.org/soap/envelope/"
                             xmlns:oblix="http://www.oblix.com">
    <SOAP-ENV:Body>
         <oblix:authentication xmlns:oblix="http://www.oblix.com" type="basic">
              <oblix:login>adminuser</oblix:login>
              <oblix:password>password1</oblix:password>
         </oblix:authentication>
         <oblix:request application="userservcenter" function="workflowDeactivateUserSave">
         <oblix:params>     
              <oblix:param name="ObWorkflowName">obworkflowid=9bbb88b273b1012d000086E812d695ad,obcontainerId=workflowDefinitions,o=Oblix,dc=dnb,dc=com</oblix:param>          
              <oblix:param name="uid">[email protected],ou=dnbCustomers,ou=People,dc=dnb,dc=com</oblix:param>
              <oblix:param name="attrName_1">UserID</oblix:param>
              <oblix:param name="attrValue_1">[email protected]</oblix:param>
              <oblix:param name="attrValue_1_old">[email protected]</oblix:param>
              <oblix:param name="attrOperation_1">REPLACE</oblix:param>
              <oblix:param name="attrName_2">ApplicationID</oblix:param>
              <oblix:param name="attrValue_2">12345611</oblix:param>
              <oblix:param name="attrValue_2_old">123456</oblix:param>
              <oblix:param name="attrOperation_2">REPLACE</oblix:param>
              <oblix:param name="attrName_3">SubscriberNum</oblix:param>
              <oblix:param name="attrValue_3">09787655</oblix:param>
              <oblix:param name="attrValue_3_old">09787655</oblix:param>
              <oblix:param name="attrOperation_3">REPLACE</oblix:param>
              <oblix:param name="noOfFields">3</oblix:param>
         </oblix:params>
         </oblix:request>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    How to get the values "ApplicationID","SubscriberNum" inside the preaction hook (c++). Please provide suggestions.
    Thanks,
    Lakshmi

    Read the doc, write the code, test it and debug it . http://download.oracle.com/docs/cd/E15217_01/doc.1014/e12491/idapi.htm#CDEIDDAF

  • How to get the values of 2 dynamic comboboxes in one jsp to another jsp?

    I have 2 comboboxes and one submit button on my jsp page.I select a value in 1st combobox then the values in the second combobox populated from the database. next i select 2nd combobox and then submit the button.After submit the button call the next jsp page. In that page i want to display the values of two comboboxes. but my problem is , in that page only 2nd combobox value is displayed.1st combobox is displayed as null. plz tell me, how to get the values of two comboboxes at a time?
    Select.jsp:
    <%@ page language="java" import="java.sql.*" %>
    <%!
         Connection con = null;
         Statement  st  = null;
         ResultSet  rs  = null;
         String     sql = null;
         void addItems(javax.servlet.jsp.JspWriter out, String sql)
           try{     
              rs = st.executeQuery(sql);
              while( rs.next() )
                   out.println("<option>" + rs.getString(1) + "</option>");               
         }catch(Exception e)
                   System.out.println(e);
    %>
    <HTML>
    <HEAD>
    <TITLE>JSP WITH  MULTIPLE FORMS</TITLE>
    <script language="javascript">
              function checking()
                        form1.submit();
         </script>
    </HEAD>
         <body>
             <center>
             <b><font size="5" color="#333399">Staff ID:</font></b></center>
                     <FORM NAME="form1" METHOD="POST" ACTION="Select.jsp">
                         <p align=center>
                         Details of Staff :  
                       <SELECT 1 NAME="type" onchange="checking();">
                                    <option> Administrator </option>
                              <option> OfficeAssistent </option>
                              <option> Clerk </option>
                                  </SELECT 1>
                          </p>
    </FORM>
                      <FORM NAME="form2" METHOD="POST" action="welcome1.jsp">
                      <center>
                          <TABLE><TR><TD>Staff ID:</TD>
                                 <TD><SELECT 2 NAME="staff_id">
                    <%    
            String type = request.getParameter("type");
            try {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            con = DriverManager.getConnection("jdbc:odbc:java","system","manager");
            catch (ClassNotFoundException ex) {
                   System.out.println(ex);
            catch (SQLException ex)
                System.out.println(ex);
         st  = con.createStatement();
         sql = "select staff_id from "+type+"";
         addItems(out, sql);
    %>
              </SELECT 2>
           </TD>
         </TR>
    </table></center>
    <h2> Details of <%= type + "s" %> </h2>
                         <center><input type=submit value=ok onclick="submit();"></center>
                  </FORM>
         </BODY>
    </HTML>
    welcome1.jsp
    <center><h1>WEL COME</h1></center>
    <%    
            String type = request.getParameter("type");
            String sid = request.getParameter("staff_id");
    %>
    <h2> Details of <%= type + "s" %> </h2>
    <h2> Details of <%= sid %> </h2>

    <SELECT 1 NAME="type" onchange="checking();">
                                    <option value = "0"> Administrator </option>
                              <option value = "1"> OfficeAssistent </option>
                              <option value = "2"> Clerk </option>
                                  </SELECT 1>

Maybe you are looking for