Perform a simple validation of a custom field in AI_CRM_ORDER_SAVE

Hello,
I want to perform a custom validation of a custom field just before saving my order.
I found out I should do this in the CHECK_BEFORE_SAVE method of the AI_CRM_ORDER_SAVE Badi, but I cannot figure out how to get the value entered in my custom field.
Can anyone point me in the right direction?
Thanks in advance!
Regards,
Tim.

Hi Shailaja Gandam,
I am having the same error.
But for me its a little diferent.
The error only occurs when I'm saving more then 2 objects, then on second order it try to save a guid from the previous loop step.
I clean every objects on beginning of the loop, but its not working.
I think its buffers or someting like it
Have you solved your problem?

Similar Messages

  • Validation of Enterprise Customer Fields in Project Creation Page

    I want to do the validation on the Enterprise Custom Fields of PWA site for Project center. A set of custom fields have been added on the Project Creation Page.
    Custom Business Validation (such as a field value should be unique or based on another field) is required for some custom fields. This validation is required on clicking Save button in Project Creation Page of Ms Project Server 2010. The validation ought
    to be done on clicking "Save" button.
    Any help in this regard would be apppreciated.

    The link mentioned by you ToonS is not acessible.
    Here is the link:
    http://msdn.microsoft.com/en-us/library/office/gg615466(v=office.14).aspx
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Screen exit/BADI for adding custom field in IW31/IW32

    Hi all,
    The requirement is to add the permit field in the Header component of IW31. Searched SDN and found user exit IWO10018 for the same which includes a screen exit.
    The activation of the same is adding a tab in the screen while user wants the field under header Component tab.
    How this can be done. Any suggestion.
    Thanks
    anya

    Hi,
      You can perform append structure to add your custom field(s)in VBAP table. Next step, go to SE51 (Screen Painter)to modify SAP Program SAPMV45A Screen number 4459 for Additional data A or Screen number 8459 for Additional data B to add your append structure custom fields.
    Once the above steps done, you can place your logic to populate custom fields in include program MV45AFZZ. i.e USEREXIT_MOVE_FIELD_TO_VBAP.
    At the end, please ensure all program and screen are activated. Hope this will help.
    Regards
    Kiran Sure

  • Is doing configuration for FB60 using customer field a core mod?

    Hello,
    For our project, a customer field 'ZZAPPROVER' was added in FB60 transaction code.
    It is possible through configuration through the following path:-
    SPRO --> Financial Accounting (New) --> Financial Accounting Global Settings (New) --> Ledgers --> Fields --> Customer Fields --> Edit Coding Block --> Customer-Defined Account Assignments --> Customer Include Structure
    This basically added the customer field 'ZZAPPROVER' to the include structure CI_COBL.
    The important point to note here is that it adds to BSEG table too.
    Now the business is asking whether this is considered as a core modification to SAP.
    Can anyone update where it is a core mod or not, and if there is any documentation to prove this?
    Your comments are highly appreciated!
    Regards,
    Sanjiv Janardhanan

    Hi,
    The adding of additional Customer field is available from ECC 6.0 onwards. This is a standard functionlity to enable the customer to add their own fields for better reporting. But SAP cautions that it is better to take backup before doing this addtioin. No posting transactions shall be performed while you are including the customer field. SAP recommends using the u201Clightu201D mode. For this, you only need to make the following entries so that all necessary changes to the dictionary and to the tables are performed automatically in the background:
    ●      Collection (package)
    ●      Field name
    ●      Field description
    ●      Data type
    Character field (CHAR)
    Character field with digits only (NUMC)
    Trust this helps much!
    Cheers!

  • Badi for custom field check

    hi
      what is the badi which is used to enchence the field validation for the custom fields and control the custom fileds as well as standard felds.
    thx in advance...explain me in detail abt it...

    Hi
    For field validation for the custom fields and control the custom fileds as well as standard felds, you can use the following SRM Business Add-Ins(BADIs) ->
    - BBP_DOC_CHECK_BADI / BBP_ITEM_CHECK_BADI
    - BBP_CUF_BADI / BBP_CUF_BADI_2
    To get the complete details of these SAP BADIs, use transaction - SE18, and read the relevant Standard documentation an the sample code in the methods given in this case...
    Hope this will help. Do let me know your complete business requirements.
    Regards
    - Atul

  • OIM 11g r1 custom field in simple user search result

    Good morning,
    i need to visualize a custom field in the OIM simple user search result table. At the moment, when a simple user search is performed, the returned attribute is only the "Display Name".
    For the advanced user search result table, is possible to add other fields modifying the Search Results table configuration in Advanced->User configuration->Search Configuration.
    How can i do the same the for simple user search result?
    Thank you.

    Yes, i tried to add my custom attribute to both Simple and Adv search result table, but without luck. Only Display Name column attribute is shown when a simple search is performed.

  • How to add custom field in delivery address/performance location tab in SRM shopping cart and Ship to address Pop-up in SRM PO?

    Hi Experts
    i have a reuirement where i have to add custom field in delivery address/performance location tab in SRM shopping cart and Ship to address Pop-up in SRM PO
    i am doing below steps for this.
    1. Adding custom field ZZfield in structure INCL_EEW_PD_PARTNER_CSF by  using  append structure.
    2. Spro ->Supplier Relationship Management -> SRM Server -> Cross application basic settings -> Extensions and field controls (personalization) -> Configure field control ->Configure Control for Fields of Substructures
    then click on  "Metadata for Fields of Substructures and Table-Like Enhancements"  
    add the below entry
    Bus. Object Set Type  : I am trying 7 and 29
    Structure Field Name  : ZZfield
    Bus. Object Type       : BUS2121/BUS2201
    Set Level                    : Item
    Field Visible :  Check box should be checked
    Field Enable :  check box should be checked
    Can anyone has the idea of this?
    Thanks
    Rohit

    Hello Rohit,
    Please create a enchancement for component  /SAPSRM/WDC_UI_DO_SHIPTO.
    Add new input field and label in view V_DODC_SHIPTO.
    Bind the input field value with field ZZfield from structure  /SAPSRM/WDC_UI_DO_SHIPTO in the context node SHIP_TO .
    Regards,
    Neelima

  • Order Import - Validation failed for the field - End Customer Location

    I am trying to import an order using standard import program and it is failing with below error:
    - Validation failed for the field - End Customer Location
    I have checked metalink to debug this and found nothing, the values i have used to populate the interface table or valid.
    Can someone please post your views on this, on where the problem might be.
    Thanks!

    Hello,
    Try the following
    1) Check if any processing constraints are applied to customer/location
    2) Try to create a new customer and associate internal location.
    Create a new order to reproduce the issue
    Thanks
    -Arif

  • MDG-F Custom field validation

    Hello Expert,
    I have extended MDG-F data model 0G for GL account with addition custom fields as mandatory field.
    I have one change request to Change GL account . Now as I have some old accounts which doesn't have this custom fields have values.
    When I trying to create CR with change GL account -> don't change any value -> submit
    then this validation doesn't through any error.
    Custom mandatory field still doesn't have any data but rules badi doesn't through any error bcoz no data change .
    Any notes ? Reason ?
    Thanks in advance ,
    Varun

    Hi Sanjay,
    Custom field is mandatory and displaying with red mark.
    So during change request creation ( Change request type is meant for changing GL account ).
    Expected result is when user submit CR then mandatory error msg.
    This is working correct when user change any of the field at UI.
    Step 1. enter account no and COA
    Step 2. enter Explanation
    Step 3. Change any field at UI
    Step 4. Summit -> CR generated with error ( Custom mandatory field is blank )
    But
    When if user do this.
    Step 1. enter account no and COA
    Step 2. enter Explanation
    Step 3. No change
    Step 4. Summit -> CR generated with error ( Custom mandatory field is blank )
    Regards,
    Varun

  • Validating Custom Fields

    Hi All,
    I added 3 custom fields in the service order item shopping cart.
    I am trying to validate those 3 fields.
    I implemented the code in "BBP_DOC_CHECK_BADI" BADI.
    The problem is the error is raised as soon as I enter the data and click on
    " Add to Shopping Cart " button.
    But I want the error to be raised once we enter something in the custom fields and click on Check button.
    Appreciate any inputs.
    Thanks,
    Vinay

    Hi,
    You need to write the code in the CHECK badi only to raise the error message on click of CHECK button.
    Please refer the foll link for sample code for teh BADI;
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/srmBADIRepository&
    BR,
    Disha.
    Pls reward points for useful answers.

  • Is it possible to use a JSF Validator to perform a Dependency validation?

    I'm new to JSF, but getting more and more experience everyday. I've create some custom validators for a few input fields on my form and they are working beautifully. What I can't figure out is how to write a validator that will check a field for a value based on another fields value. For instance, I would like to require a person to enter an address if they select a Yes / No select box indicating they would like to supply an address.
    Does anyone know how I can do this? I've come up with a clunky work around by performing my dependency validations in my action page rather than a validator.
    Thanks!!!!

    Hi RaymondDeCampo.
    I have never been a big fan of how JSF (and even Struts)handle forms both in the front (the view) and the back.
    Forcing the developer to contend with writing a java class for each thinkable form does not look like a workable pattern to me. And tying the view (JSP or JSF page) tightly to the form classes and validators is also cumbersome.
    In many decent applications, the number of forms grows to more than a tiny handful and so would the number of classes that simply act as dummy data carriers.
    I do not see why I should have to maintain all the accompanying classes and validators and JSP code that each form comes with. Making changes to the structure of a form (say adding new fields or removing others, or even adding whole form pages into the sequence), modifying the model of a form (like renaming fields, adding new validation rules), or changing form view (e.g. switching from a list of checkboxes to a select dropdown, changing how and where error messages are presented, supporting a new language) are just some of those things that become tedious to maintain sentrally.
    No other model of building forms out there makes the named tasks any simpler, aprt from adding a new level of complexity to the simple data collection purpose of web forms. Well, except Formular. I have had Formular working in JSF and Struts although I ended up ditching the JSF way of handling forms altogether.
    I prefer good and solid separation of form components as outlined by Formular. Formular is the only API out that would allow me to migrate my forms from any Java web server to another without having to rewrite a line of code. Try upgrading your Struts form to JSF or vise versa and you'll get the idea of why I dropped the more hardwired way of coding web forms.
    With Formular, I have created a repository of validators (for doing my form checks). datasources (for populating lists, radios, checkboxes, and combos), and styles (for laying out my form elements). Making modifications to my repositories, I can do site-wide changes without touching my JSPs or Java classes. I can move form messages from the top of ALL my forms and place them just above the offending fields in one single style file, I can swap the markers on optional fields and use them only on required fields if the business manager wants to in a single go, I can even change validation rules that are attached to several fields in different web forms at one instance (how many hours did we save when one client wanted all buttons in the site changed to GIFs and all phone and address fields in their application and survey forms validated a little different?)
    Ack! Now It looks like I'm preaching, again so I'll hold myself.

  • Error in adding custom fields to mm01/mm02/mm03 trx

    Hello People,
    To add my custom fields in the basic view tab of MM01 transaction, i have performed the following steps:-
    1. Inserted the append structure in MARA table with the required fields.
    2. Copied function group 'MGD1' to 'ZMGD1' and then set the layout of screen '0001' as per my requirement.
    3. Then i made changes in spro as
         SPRO->Logistics-General->Material Master->Configuring the material master->define structure of data screens for each screen sequence and inserted my program name( of function group 'ZMGD1') and screen number(0001) in 21(Std ind.(short) tab pages)->7(Basic Data 1)->8(sequence).
    Now, if i click on SPRO option (view data screen), then i can see my fields added in basic data view...
    but when i execute 'MM01/MM02/MM03' trx  there my added fields do not appear....
    Does anyone know where i am missing out??
    Please suggest...
    Thanks in advance..
    Rgds,
    Abhi

    Here are some notes I have from when I recently added a new screen/subscreen to Material Master transactions.  Hopefully this information will help you.
    This guide should be used in conjunction with OSS note 44410 and IMG notes Logistics->Logistics Material Master->Material->Configure Customized Material Master.
    Online Maintenance.
    1. Add fields to append structure ZAEMARA.
    Use data dictionary maintenance u2013 SE11
    2. Generate table MARA.
    3. Add fields to view MARU and generate.
    Use data dictionary maintenance u2013 SE11.
    4. Create new sub-screen or add new fields to screen SAPLYMM1 9001.
    Use Screen Painter u2013 SE51.
    Change flow logic to add fields to field: statement and to add any validation required. Generate screen.
    If this is the first time additional data has been added to material master it will be necessary to create a new function group and associated programs. See Configure Customised Material Master paragraph Requirements.
    5. If new sub-screen, add to Customer main screen.
    Transaction OMT3.
    Double click on u2018Std industry sequenceu2019.
    Choose customer screen and Details.
    Change the first occurrence of 0001 (blank screen) to new screen number.
    Save.
    Back arrow.
    Click on Transport button and choose required transport.
    6. To include in 'Copy with Reference' processing - MM01, add new MARA fields to table T130F. (in each client)
    Use Transaction SM31. (make a copy of another ZZ field by typing over existing name).
    Add to transport manually:- R3TR TABU T130F + individual keys
    7. Test Material create, change, display.

  • How to use formula in enterprise custom field "Work" or "Cost"

    Hi there,I am using MS Project 2010 and I am looking for a way to customize enterprise
    custom field such as "Work" and "Cost" field where I was to use a formula (eg: Number1+Number2).
    I came to know I need to use VBA to perform that task.Could anyone please suggest if there
    is any way I could do that.I will really really appreciate your advice.Thanks in advance.

    robeenclarke,
    On the surface it might appear that it would be easy to look at the Start and/or Finish fields of a manual task and see that it is blank, but in reality it isn't so easy. The blank field you see is a view presentation only. Internally Project does in fact
    have a default date in those "blank" fields and that's the date you see when you query the date using VBA. If the Start field of a manual task is blank, then internally both the start and finish dates of that task take on the Project Start Date.
    If the Start field of a manual task has a date but the Finish field is blank, then internally the finish date is the same as the start date. And to make it even more interesting, the internal finish date of a manual task will track with the duration and/or
    the Work field.
    So the bottom line of this is, "what you see is NOT what you get". Certainly some assumptions could be made based on the above and those assumptions could be integrated into a macro to populate the "blank" Finish field but I wouldn't
    say it would be foolproof. If you have some very defined characteristics for those tasks with a blank finish date (i.e. also no start date, and/or no duration, and/or no work), and those characteristics are consistent throughout your whole file, then a simple
    macro could be developed.
    With respect to the "If Not t is Nothing Then" statement. The purpose of that statement is to avoid a runtime error is the file has blank task lines. Some users like to visually separate parts of their plan by inserting blank task lines between
    major sections, so a good practice when writing Project macros is to always include that statement in the loop.
    Update: However, after writing all the above verbiage, I believe I may have a workaround. As it turns out, even though you can't directly query the Start and/or Finish field of a manual task, you can transfer that blank string to a text field and then query
    that text field, so you can get there from here with an extra step.
    Try this process. First customize the Text3 field with the following formula:
    Text3 = [finish]
    Now run this macro:
    Sub SetFinishDate()
    Dim t As Task
    For Each t In ActiveProject.Tasks
        If Not t Is Nothing Then
            If t.Summary = False And t.Manual = True And t.Text3 = "" Then
            t.Finish = t.Date1
            End If
        End If
    Next t
    End Sub
    John

  • Unable to update MARA table custom field in Material master

    Hi all,
    I have added one custom field in MM01,Basic View 2.
    For that i have apended that field in MARA table and created one subscreen for that.
    This field is visible in MM02/MM01/MM03 in basic data view 2 .
    The issue is that we are not able to save values in MARA table which we entered in this field.
    I cheked earliar in SDN but couldn't get the proper solution.
    i cheked the below available forum discussion link but couldn't get th proper solution.
    In material master How to add a new field on Basic data 1 view
    Regards,
    Amit

    Hi,
    please trye this :
    Please make sure u implemented: methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN as they are  required for data transport. These methods are called from within the program of the application at PBO or PAI .
    See below example code:
    PBO:
    MODULE initialize OUTPUT.
    CLEAR: sflight, ok_code.
    IF exit IS INITIAL.
    CALL METHOD cl_exithandler=>get_instance
    CHANGING
    instance = exit.
    ENDIF.
    CALL METHOD cl_exithandler=>set_instance_for_subscreen
    EXPORTING
    instance = exit.
    ENDMODULE.
    The factory method is used to create an instance of the adapter class. You then declare the instance using the public static method SET_INSTANCE_FOR_SUBSCREEN to allow the data for display on the screen to be used in the function group of the user or in the module pool.
    MODULE data_for_subscreen OUTPUT.
    program = sy-repid.
    dynpro = sy-dynnr.
    CALL METHOD cl_exithandler=>get_prog_and_dynp_for_subscr
    EXPORTING
    exit_name = 'BADI_SCREEN'
    calling_program = program
    calling_dynpro = dynpro
    subscreen_area = 'SUB'
    IMPORTING
    called_program = program
    called_dynpro = dynpro.
    CALL METHOD exit->put_data_to_screen
    EXPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDMODULE.
    PAI:
    MODULE user_command_0200 INPUT.
    CASE save_ok.
    WHEN 'BACK'.
    SET SCREEN 100.
    WHEN 'SAVE'.
    PERFORM save_flights.
    WHEN '+EXT'.
    CALL METHOD exit->get_data_from_screen
    IMPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDCASE.
    ENDMODULE.
    The method GET_PROG_AND_DYNP_FOR_SUBSCR and the input/output parameters specified above are used to determine the name of the customer program and the name of the subscreen. The method PUT_DATA_TO_SCREEN which is called at PBO as well as the method GET_DATA_FROM_SCREEN which is called at PAI are used to transport the data to be displayed.
    These methods are implemented by the user:
    When you define a screen enhancement, you are strongly recommended to provide sample code for the methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN. This code is automatically copied when you create an implementation and can be added to if required. The user of the BAdI definition should not be responsible for the data transport.
    regards,
    ..Pradeep

  • Search on the custom field in Product doesn't work

    Hello everyone!
    Lately I was configuring additional custom field for product header and succeed. Then I wanted to add this field as a search criteria for product search and I followed help on help.sap.com and note 1026956. Here are the steps I did:
    1. I've extended structures CRMT_PRIL_QUERY_ADVSEARCH_PROD and CRMT_PRIL_QUERY_ADVSEARCH_IOBJ with my custom attribute.
    2. I went to Master Data->Products-> Basic Settings ->Add Attributes to Search Structure and added my custom attribute there.
    3. Then I found out that it's not enough and I should perform additional steps not included in note and help. I did these steps suggested by Shanthala Kudva in thread [Can't enable the extendable set type attributes in product search UI|Can't enable the extendable set type attributes in product search UI;.
    After that I was able to configure UI and see the search criteria, but when I try to search using custom field I get error message: "Search criteria PRODUCT_ANKER.ZCAT_NUMBER in scenario CL_CRM_PRSEARCHSCENARIO_GETLST not included in tool/filter"
    How to find out the reason of this behavior? Did I miss something in configuration?
    P.S. Set type called ZPRODUCT, attribute ZCATNUMBER. In structures appended component called ZCAT_NUMBER with component type ZCATNUMBER. In table CRMC_PRSEA_ATTR the record has the attributename ZCAT_NUMBER, attribute_id ZCATNUMBER. Maybe I messed up with that?
    Regards,
    Alex.

    Hi Alexander,
    I know this is an old post, but currently i am facing the same issue of not being able to see my custom fields in the BSP Component Workbench.
    I tried to follow all steps maintained in SAP Note # 10269656 & 1541480, but no luck.
    Can you please tell me what do you mean by "Should not add the extended attributes directly to Search Structure, as SAP expects the attributes to be in APPEND structure"? Can you please let me know how the values are to be maintained in the Search structure table "CRMC_PRSEA_ATTR", which is also accessed using the IMG Meanu path "Master Data -->  Products --> Basic Settings --> Add Attributes to Search Structure"
    Appreciate your help.
    Suresh Karri

Maybe you are looking for

  • Using an Exchange Rate Type other than 'M' in a Purchase Order

    I use several exchange rate types in SAP for various currency positions, specificially with pricing.  As a result, when I create a Purchase Order I want to use a different Exchange Rate Type, instead of the standard 'M'.  I have seen the rates can be

  • IMovie Hangs on startup if my external hard drive is switched on.

    Hi guys & girls, I'm new here and also new to Macs in general so be gentle! I bought my system back in April and have been running iMovie '08 quite happily, using my external hard drive to store the iMovie events. Anyway, within the last week iMovie

  • 16 sec pause before mythtvfrontend loads [solved]

    Seems that mythfrontend take about 15 sec to load on a pretty fast C2D machine.  Below are the errors in my logfile.  Any ideas what might be causing this? $ mythfrontend --logpath /tmp 2012-04-26 17:18:08.655238 C [4245/4245] thread_unknown mythcomm

  • When I click on edit and then click on find nothing happens

    I am using firefox 25 in windows 7. Recently, maybe since the last update, when I click on "edit" and then click on "find" nothing happens, nor does ctrl + "f" work...

  • Sessions number....what does it mean

    Hi all Today my BT Infinity died, after talking to BT help, it corrected itself and all is well. However, I fired up the Hub Manager out of interest and I have an error message "No more than 100 sessions at a time are allowed. Please wait until open