How to validate Extra Fields in Journals

Hi all.
We are working with journals in SAP EPM 10, and we have created several extra fields as a part of the process. as you already know, the extra fields are dummy fields, and we would need to perform some validation when the user save or post the journal.
Is there any way to do it? any badi or something similar?
Thanks in advanced.
Regards

First of all and just to avoid misunderstandings. For my purpose which was to check the values in the additional fields added into a journal template, I´ve implemented the BADI UJJ_CALCULATED_AMOUNT.
Then, I´ve added the code into the method IF_UJJ_CALCULATED_AMOUNT~CALCULATE_AMOUNTS. That code should work when the user is saving the journal.
If by adding a breakpoint, you are still having problems to debug this piece of code, what you can do  is to add an ABAP code at the beginning of the mentioned method like this:
  DATA:lv.
  lv = 1.
  IF sy-uname EQ 'YOURUSERNAME'.
    WHILE ( lv = 1 ).
      lv = 1.
    ENDWHILE.
  ENDIF.
And after that, in the transaction sm50, you should be able to select and debug the process.
Please let me know if you are ok after that.
Regards.

Similar Messages

  • 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 validate input fields as the user is filling up a form with jQuery?

    Hello EA friends.
    Someone has experimented on how to validate input fields as the user is filling up a form with jQuery?, if the field is numeric and insert an A for example, an alert appears showing "insert a number" or not allowed to enter anything until a number is entered.
    Thanks and regards.
    Fer

    Hi Sudeshna.
    Sorry for not responding on time, how can I be included in this code?
    sym.setVariable("typeActivity", "input")
    var Element_1=document.createElement(typeActivity);
    $(Element_1).css({"text-align": "center"});
    //Answer
    sym.setVariable("Answer_1", "4");
    sym.$("box_1").append(Element_1)
    This code is on my creationComplete and it works fine.
    Would greatly appreciate your help.
    Regards.
    Fer García

  • How to validate the fields  and how to display the error messagein presenta

    Hi,
    I am new to OBPM 10g, pls tell me how to validate the fields in a presentation.
    for example if we take login presentation if user enters his user name and password wrongle and submit the form. Then we need to display error message right side of the each field i.e user name and passowrd is wrong and try again.
    Regards
    jaya
    Edited by: 12345 on Aug 12, 2010 10:38 PM

    Hi Jaya,
    You can initially set the validation for empty values.. that is when the user dint enters any value and clicks on submit.
    for these vadliations you need to write a method and call it on submit button click!!
    secondly, you can validate for the format if required.
    thirdly, you can validate against a database for the credentials. For this you need to fetch list of usernames from database and search for user entered value in that list.
    Optimal query would be : if user name not null, query for pwd of the entered user name from database or file storage. if you dont get any value for pwd of given username, its incorrect user name. if you get some pwd value for username, then check against the one user entered in pwd field..
    Write all this logic in a method and call on submit button click event of the login form!!
    HTH
    Sharma

  • How to validate ch field in selection screen

    hi experts.......
    how to validate ch field selection screen......... and which function module is used to validate parameter field i.e character

    Hello,
                Is your requirement to Validate the Character Field? This is what I understand. If it is right, then do you want to Validate whether a Character Value is entered?
                Check the below Sample Code.
    At Selection-Screen on P_CHARFIELD.
        IF P_CHARFIELD CA '1234567890'.
            Message 'Enter an Alpha Character only' Type 'E'.
        Endif.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • How to have extra Field attributes as per BP Role?

    Hi all, using path Cross-application components->Business Partner-> Field Groupings -> Configure field Attributes per BP role,  we come across Data Sets for each BP role where we can specify if fields can be hidden, required or optional. What if i want to add more data sets, i am not able to add it here. For the same, i need to use tcode BUSD and then assign a new Data Sets to BP Views (of same BP role). But i am not able to see any effect of the same. Can someone advise what I am missing out on. For e.g. if i want to use Data Set "tax numbers" and assign it to the BP View "xxx", which in turn is assigned to BP role "xxx", I am not able to see the extra fields for Data Set "tax numbers". Is there way i can find out what all fields are there in a particular Data Set?

    Hi Bappaditya,
    You will not be able to add new fields via the IMG path Cross-Application Components->SAP Business Partner->Business Partner->Basic Settings->Field Groupings->Configure Field Attributes per BP Role. This is used only to control the various visibility options of the fields associated with the datasets that are attached to your BP view.
    Now, if you want to add new custom fields to your BP role,
    1. Create a new BDT application that uniquely recognizes your scenario (Tcode -> BUS1)
    2. Create a new Dataset (Tcode -> BUS23)
    3. Create a new field group (Tcode ->BUS2)
        a. Here, associate different fields from data dictionary to the new field group
    4. Create a new View (Tcode->BUS3)
        a. Assign, your BDT application
        b. Assign your data set
        c. Enter the screen painter program name and screen number
        d. Enter function modules that may be required to validate screen input
        e. Assign your field group
    5. Create a new Section (Tcode-> BUS4)
        a. Assign yoru view to Section
    6. Create a new Screen (Tcode-> BUS5)
        a. Set Screen type (Data screen, Initial screen - Dialog, modal dialog box etc.)
        b. Assign your section to your screen
    7. Create a new Screen Sequence (Tcode->BUS6)
        a. Assign your screen
        b. Assign screen sequence category
    8. Create Divisibility View (Tcode->BUSD)
        a. Assign your data set
        b. Assign Calling BDT application
        c. Assign screen sequence
    9. Define new BP role using IMG Path Cross-Application Components->SAP  Business Partner->Business Partner->Basic Settings->Business Partner Roles->Define BP Roles
       a. Here, create new BP role category
       b. Assign your view
    You can then control the visibility of your fields by using the option 'Configure field Attributes per BP role' as you mentioned.
    Hope this helps.
    Regards,
    Pavithra
    **PS : Please reward points if this helps.

  • How to validate Quantity field in TV - Inputfield ?

    Hello All,
            I'm using a table view to show the output .
    IN this table view I made 2 fields as Input fields.
    Both the fields are Quantity fields.
    Now when the user enters a value in this Quantity field I want to validate it with respect to it's units .
    How can I do that ?
    In my case if the user enters correct value it works but when he enters a wrong value my BSP is going for a dump.
    I tried to debug the<b> LIPS table</b> to verify how SAP was handling this checking for the field <b>LFIMG</b>. But there there is a statement called chain --endchain.
    SO there is no chance for debugging.
    My code is as follows :-
            LOOP AT gt_final INTO wa_final.
              CLEAR: gv_row,lv_qty,lv_string,gv_len,gv_cell_id1.
              gv_row = sy-tabix.
              gv_len = STRLEN( gv_row ).
              gv_len = gv_len - 1.
    * Modify the Third Column
              CONCATENATE 'INB01_TV_ID' '_' gv_row(gv_len) '_' '3' INTO gv_cell_id1 .
              lv_string = request->get_form_field( name = gv_cell_id1 ).
              WRITE lv_string TO lv_qty  UNIT wa_final-units.
              CLEAR :wa_final-del_quantity.
              wa_final-del_quantity = lv_qty.
              MODIFY gt_final FROM wa_final TRANSPORTING del_quantity.
            ENDLOOP.
    Can anyone tell me how to validate the entry for the Quantity filed ?
    Regards,
    Deepu.K
    I have one more Question .
    Whenever BSP goes for a dump in this case I want to handle this by a message .
    Is it possible ?
    Message was edited by:
            deepu k

    Hello Raja,
           I want to validate the entry in the QUantity field with respect to the Unit of the Quantity.
    I.e say for example I have a unit as PC (pieces) then the quantity must be only of thousands,lakks and so..on......but not in points i.e a piece quantity must be full either 200 ,2 lakhs or 2 pieces but not 2.5 pieces.
    SO now if the user enters 2.5 it's a wrong value as the quantity for the Unit PIECES can't have half-piece. (2.5 = 2 + 0.5) .SO i want to validate this .
    I hope I'm clear.
    How should I do ?
    Regards,
    Deepu.k

  • How to hide extra field in IDOC segment E1EDK01 of ORDERS MSG TYPE

    HI Gurus,
    We are upgrading from 4.6c to ECC6, I am facing with a prolem in my outbound IDOC for ORDERS msg type.
    In the header segment E1EDK01 is having extra field HWAER in new version ECC6 and rest of the idoc remains same, can any one help me how to hide or remove the field from the header segment.
    Any hint or solution will be appreicated.
    Thanks
    Tangudu

    Hi,
    If you want to remove the fields you can use. BD53 where you need to create the new reduced MESSAGE type.
    Follow the procedur in attached [LINK|http://wiki.sdn.sap.com/wiki/display/ABAP/ReducedMessageTypes]
    As per your question i understood. you have field HWAER in 4.6c nad 6. But the field is not sent to reciver in 4.6c.
    So In another way you dont want to send this field in this case you can write a code in cusom exit to balnk this field out in ECC 6.
    Hope it helps,
    Shanmugavel Chandrasekaran

  • How to add extra field in cube

    hi guys,
    iam learner of bw.
      iam extracting the data from r/3 to bw.
    for example sales cube(0sd_c05).
    i want to add one more field in r/3 side according to client req for ex.in 2lis_11_vahdr.
    how to add that extra field in 0sd_c05.
    kindly give me steps one by one for my understanding.
    i will appreciate and giving points .
    thanku

    Kumar
    To do that first you have to enhance the Datasource 2lis_11_vahdr in R/3 side with new fields and populate these fields with data using user exit. As a next step as this field in to your Cube
    Please see these links for enhancements
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5
    Re: enhancements
    Hope this helps
    Thnaks
    Sat

  • How to validate the field values in module pool program?

    Hi Guys
         I am working with module pool programming.
         Here I want to validate the fields like below.
         with out filling all the fields if I click SAVE option it has to show a message that all fields has to be filled.  This can be done by checking all the fields individually.
         I think it can be done through <b>LOOP AT SCREEN ......ENDLOOP</b>. sequence.
         If it is possible, can anyone help me?

    You need to write the Module in between the CHAIN and ENDCHAIN statment in SE51
    If you send a warning or error message from a module <mod> that you called using a FIELD statement as follows:
    CHAIN.
    FIELD: <f1>, <f 2>,...
    MODULE <mod1>.
    FIELD: <g1>, <g 2>,...
    MODULE <mod2>.
    ENDCHAIN.
    all of the fields on the screen that belong to the processing chain (all of the fields listed in the field statements) are made ready for input again. Other fields are not ready for input. Whenever the MODULE statement appears within a processing chain, even if there is only one FIELD attached to it, all of the fields in the chain (not only the affected field) are made ready for input again, allowing the user to enter new values. If the fields in the processing chain are only checked once, the PAI processing continues directly after the FIELD statement, and the preceding modules are not called again.
    Look at the DEMO program DEMO_DYNPRO_FIELD_CHAIN.
    ashish

  • How to validate a field of type text for similar values

    Hi,
    My requirement is to validate a field <b>Name1</b> of type Text[40] for similar values when a new record is created. So If the Name1 already exist in repository, the validation has to give warning message saying the customer with Name1 already exist.
    Regards,
    Madhu

    Hi Madhu
    To validate a particular field, when a new record comes along with the same value SAP MDM is not capable of generating warning messages, but we can have best method of Tracking at Import manager level.
    In the Import manager after successful mapping, access the MATCH RECORD tab. Go to the Default import action area there you can find Match type & Default import action. For example if you are sending same Material record which is already available in the Repository, Match type will have the value “EXACT” where as Default Import action will have “UPDATE (ALL MAPPED FIELDS or NULL FIELDS)”.
    Here I have copied various Match types as well as Default Import Actions along with the definitions, pls go thru the same and feel free to revert to me for further clarifications.
    <u><b>Default Import Action</b></u>
    <b>Skip -></b> Skip source value combinations that already
            exist.
    <b>Update(NULL Qualifiers Only) -></b>     Update just the NULL remaining qualifiers of each existing qualified lookup value.
    <b>Update (All Mapped Qualifiers)-></b> Update all the remaining qualifiers of each existing
    qualified lookup value.
    <b>Replace -></b> Replace all the remaining qualifiers of each existing qualified lookup value by first deleting them and then creating a new value combination.
    <b>Delete -></b> Delete this qualified lookup value during import Processing.
    <u><b>Match Type</b></u>
    <b>None -></b> None
    <b>Exact -> </b> Whether the match type for the destination record with the current source
    record is Exact.
    <b>Partial -></b> Whether the match type for the destination record with the current source
    record is Partial.
    <b>Conflict -></b> Whether the match type for the destination record with the current source
    record is Conflict.
    Thanks
    Alexander
    Message was edited by: Alexander Raja

  • How to validate input fields in a popup?

    Hi guys,
    i have a popup containing some input fields which i have to validate before closing the popup (if the validation fails, the popup should stay opened and print some error messages).
    But since my view (inside the popup) doesn't has any events, because i use the popup buttons like recommended in other postings, i don't know where to apply the validation.
    Any tips are very welcome.
    Best regards
    Philipp

    Thanks for the tip!
    I think you mean something like
      lr_view_controller = wd_this->wd_get_api( ).
      lo_window->subscribe_to_button_event(
      button = if_wd_window=>co_button_ok
      button_text = 'Person anlegen'
      action_name = 'PERFORMCREATE_PERS'
      action_view = lr_view_controller ).
    But this binds methods of the "parent" (in my case the MAIN view) to the button, which gets applied after the view got closed!?
    How can i bind methods IN the called popup view and perfom them BEFORE the close.
    I'm sorry if i don't see obvious things.
    Best regards
    Philipp

  • How to validate array fields in struts

    hi
    iam working on struts. i have array fields in my jsp page. i wanna do validations for those fields. iam specifying name of the field in the validation.xml. but iam not getting correct validations. how can i have proceed in the case of array fields.
    plzz help me
    vamsi

    hi thank you for your help
    iam using the same syntax only. but iam not getting iam sending my jsp and xml files
    <body>
    <logic:messagesPresent>
    <font color="red"><b>
    <html:messages id="error">
    <li><%=error %></li>
    </html:messages>
    </b></font>
    </logic:messagesPresent>
    <html:form action="/wofinal" onsubmit="return validateWofinalForm(this)">
    <% System.out.println("true"); %>
    <p align="center"><font size="5" color="#0000FF">
      Work Order Release</font>
      <p align="center"> </p>
      <table border="1" width="70%" align=center>
        <tr>
          <td width="50%">
            <p align="right"><b><font color="#990000">Select Work Order Number</font> </b>   
          </td>
      <td width="50%" align=left>
      <%
         String worder_no=(String)session.getAttribute("worder_no");
          String selected=(String)session.getAttribute("selected");
      %>
         <%= worder_no %>
         <html:hidden property="worder_no" value="<%= worder_no %>" ></html:hidden>
      </td>
      </tr>
      <tr>
          <td width="50%">
            <p align="right">        <b><font color="#990000">Number
            of Candidates Got Selected </font></b>    
          </td>
          <td width="50%">
            <%= selected %>
             <html:hidden property="selected" value="1"></html:hidden>
      </tr>
      <tr>
           <td width="50%" align="right"><b><font color="#990000">Remarks</font></b>   </td>
           <td width="50%"><html:text maxlength="300" property="remarks" size="50"></html:text>
      </tr>
      </table>
      <p> </p>
      <table border="1" width="90%" height="44" align="center">
        <tr>
          <td width="5%" valign="middle" align="center" height="38">
            <p align="center"><b><font color="#990000" >S.No</font></b></p></td>
          <td width="16%" valign="middle" align="center" height="38"><b><font color="#990000">Name</font></b></td>
           <td width="16%" valign="middle" align="center" height="38"><b><font color="#990000">Qualification</font></b></td>
          <td width="12%" valign="middle" align="center" height="38"><b><font color="#990000">Date of
            Commencement</font></b></td>
          <td width="12%" valign="middle" align="center" height="38"><b><font color="#990000">Date of
            Completion</font></b></td>
          <td width="10%" valign="middle" align="center" height="38"><b><font color="#990000">Rate per MM</font></b></td>
          <td width="5%" valign="middle" align="center" height="38"><b><font color="#990000">No. of MMs</font></b></td>
        </tr>
            [u]  Here iam getting problem in the validation of below fields[/u]
         <% int count=Integer.parseInt(selected); %>
         <% for(int i=1;i<=count;i++) {
            String st=""+i;
         %>
          <tr>
          <td width="5%"  align="center" height="38"><html:text property="sno" value="<%= st %>" onfocus="this.blur()" maxlength="2" size="2"/></td>
          <td width="17%" valign="middle" align="center" height="38"><html:text property="name" value="" ></html:text></td>
          <td width="10%" valign="middle" align="center" height="38"><html:text property="qual" value="" size="20"></html:text></td>
         <td width="10%" valign="middle" align="center" height="38"><html:text property="comm"  value="" maxlength="10" size="15"></html:text></td>
          <td width="10%" valign="middle" align="center" height="38"><html:text property="comple" value="" maxlength="10" size="15"></html:text></td>
          <td width="10%" valign="middle" align="center" height="38"><html:text property="rpm" value="" size="10"></html:text></td>
          <td width="7%" valign="middle" align="center" height="38"><html:text property="mm" value="" maxlength="3" size="5"></html:text></td>
          </tr>
         <% } %>
         </table>
          <p align=center><html:submit/></p>
      </html:form>
      </body>
    </html:html>[b]and my struts-config file is
        <form-beans>
              <form-bean name="wofinalForm"
                   type="bean.WOfinalForm" >
                </form-bean>
       </form-beans>
       <action-mappings>
            <action path="/wofinal"
                    type="bean.WOfinalAction"
                    name="wofinalForm"
                    scope="request"
                        validate="true"
                        input="/worder_final.jsp">
                      <forward name="SUCCESS" path="/index.jsp" redirect="true"/>
                    <forward name="FAILURE" path="/worder_rel.jsp" redirect="true" /> 
           </action>            
       </action-mappings>
    and my validation.xml file is
    <formset>
              <form name="wofinalForm">
                   <field property="name"
                           depends="required">
                             <arg key="finalform.name" />
                    </field>
                    <field property="comm"
                           depends="required,date">
                             <arg key="finalform.comm"/>
                             <arg1 key="${var:datePattern}"
                                   name="datePattern" resource="false" />
                             <var>
                                 <var-name>datePattern</var-name>
                                  <var-value>dd/mm/yyyy</var-value>
                             </var>
                    </field>
                    <field property="rpm"
                           depends="required,integer">
                           <arg0 key="finalform.rpm"/>
                             <arg0 key="finalform.rpm" />
                    </field>
                    <field property="mm"
                           depends="required,integer">
                           <arg0 key="finalform.mm"/>
                             <arg1 key="finalform.mm" />
                    </field>
              </form>
    </formset>in the jsp page iam using loop to display fields
    in the validations of those fields iam getting error.
    plzz help me.
    vamsi

  • How to enhance extra fields in BAPI_GOODSMVT_CREATE.

    Dear Sap Gurus,
    I am facing a problem . I am using standard bapi for MIGO transaction i.e. BAPI_GOODSMVT_CREATE . it is working fine. in our company, along with BADI, MIGO was modified with two extra tab viz. Waybill and ExchangeRate. Here we are maintaining some of  own developed fields . Plz guide me how can i modify this Bapi so that i can update these developed fields . The appropriate answers will be highly appreciated <removed by moderator>.
    Is there any alternative solution?
    NOTE : Currently Using ECC 5.0 SAP
    Thanks & Regards,
    Vijay
    Edited by: Thomas Zloch on Oct 19, 2010 5:43 PM

    Hello,
    1. Use structure BAPIPAREX for passing custom fields. (There are several blogs/posts on how to make use of this).
    2. In the BAPI i noticed there is a BAdI to populate these fields into your business tables.
    Call BAdI MB_BAPI_GOODSMVT_CREATE to fill own fields
        TRY.
            get badi lo_mb_bapi_GOODSMVT_CREATE.
          CATCH cx_badi_not_implemented.                    "#EC NO_HANDLER
        ENDTRY.
        TRY.
            call badi lo_mb_bapi_goodsmvt_create->extensionin_to_matdoc
              EXPORTING
                EXTENSION_IN = EXTENSIONIN[]
              CHANGING
                CS_IMKPF     = S_IMKPF
                CT_IMSEG     = T_IMSEG[]
                CT_RETURN    = return.
          CATCH cx_badi_initial_reference.                  "#EC NO_HANDLER
        ENDTRY.

  • How to add extra fields in xml for BI report

    Hi ,
    I am trying to create a po print report .
    I took oracle standard po print program , Cloned it with output as xml and based on that i am creating the layout for my po print report using xml publisher word doc tool . Now In the oracle po print rdf there is no field like requestor email,phone numbers. I want these two fields on my po print .How can i get those fields .If i see requestor portion in xml its as below
    <LIST_G_ONE_REQUESTOR>
    <G_ONE_REQUESTOR>
    <ONE_REQUESTOR_NAME>FRANK, SCOTT</ONE_REQUESTOR_NAME>
              </G_ONE_REQUESTOR>
    </LIST_G_ONE_REQUESTOR>
    but I want some thing like
    <LIST_G_ONE_REQUESTOR>
    <G_ONE_REQUESTOR>
    <ONE_REQUESTOR_NAME>FRANK, SCOTT</ONE_REQUESTOR_NAME>
                   <ONE_REQUESTOR_PHONE>select 123456</ONE_REQUESTOR_PHONE>
                   <ONE_REQUESTOR_FAX>111111111</ONE_REQUESTOR_FAX>
                   <ONE_REQUESTOR_EMAIL>[email protected]</ONE_REQUESTOR_EMAIL>
    </G_ONE_REQUESTOR>
    </LIST_G_ONE_REQUESTOR>
    How can I achieve this ...should I make a change in standard RDF for this or is there a way we can pull these details in xml itself ??
    Please help .
    Regards,
    Chandra

    I was just think on the same line if we can manage to fetch additional fields like phone number, email address of the requestor by writing a pl/sql in xml itself .But i see that atleast the requestor name should be passed into that query in case there is a way to do it .
    Hopefully the change to rdf is the option .
    Thanks Srini for prompt response.
    --Chandra                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Link b/w orclIsEnabled on OID and portal API calls wwsec_api.activate_user

    Hi Folks, I am just curious about the account status on OID and access on portal user profiles. Is account activation or deactivation in OAS portal (using wwsec_api.activate_portal_user/ deactivate_portal_user calls) related to the OID enable/ disabl

  • Instatiating BPM process through BPM 11g workspace

    Hi , I am working on OPBM Sales Quote lab. I installed Oracle SOA 11g and set up the BPM SalesQuote demo. I followed the demo setup instructions to add the roles and match them to demo users. I was able to deploy the demo successfully using Jdevelope

  • Best desk arm clamp for a 27" Thunderbolt monitor.

    I have a 27" imac and 27"  thunderbolt display, thing is the imac is higher then the thunderbolt display which is annoying so im looking to get a clamp for it and mount it on a monitor arm so I can the screens level with each other, anyone else done

  • Set_value function

    To whom may concern: e.g. p_session.set_value( p_block_name => 'DETAIL_BLOCK', p_attribute_name => 'A_CHILDNO', p_index => 1, p_value =>v_child_no); Is that possible to include p_index within 'p_session.set_value' which exist in master-detail form Th

  • Temporary queue problem

    Hi, I cannot create a receiver for the temporary queue. It throws "Invalid Destination" exception. I disassembled the session class and the reason is the session class casts the temporary query to Query and it throws null pointer exception as the tem