How to validate derived characteristic

Hi,
Hope you guys can help me with the following quite easy task:
I'm deriving characteristic "Attribute" according to basic characteristic "Basic" in Characteristic Relationships. Sometimes the "Attribute" has not been maintained in the "Basic" master data, so there will be "Attribute" = "Not assigned" in the planning cube after saving. What I would like to do is get rid of these "Not assigned" rows, but only if "Basic" has a value. Guess it will be characteristic relationship of type exit, and if so, could you guys share a sample code, thanks!
Regards,
Aki

Thanks, it was easier than I thought
DATA A TYPE A.
DATA B TYPE B.
A = OBJV().
B = ATRV('B',A).
IF B = ' '.
  MESSAGE E001(ZZZ1).
ENDIF.

Similar Messages

  • BI-IP:Derived characteristic overwritten again within copy planningfunction

    Dear all,
    I have an issue using planning function "copy". I am using this planning function to copy my planned data within the real time infocube chaning the plan version from 1 to 2 within my realtime infocube. In my realtime infocube, i have a characteristic relationship to derive the date, time and user and unique id for each record. However, when I try to copy those records now into a new version, I get the following error messages:
    Errors while executing sequence testtest ( TESTTEST )
    Planning function Konsolidierung ( ZCPFCOPYKONS ) ended with errors
    Critical error during characteristic derivation
    Derived characteristic overwritten again
    Characteristic '0TIME': Old value '155926', new value '162217'
    Critical error during characteristic derivation
    Derived characteristic overwritten again
    Characteristic '0TIME': Old value '155926', new value '162217'
    Any Idea how to solve this issue?
    Thank you!

    Hi,
    after the copy planning function the copied records will be checked and if correct will be transferred to the delta buffer. In the delta buffer derivation based on characteristic relationships will be called.
    The error indicates that derivation rules with respect to 'zinscomp' are inconsistent:
    - 'zinscomp' is contained in the aggregation level with value ' ' but a derivation fills a field not in the aggregation level and in addition changes 'zinscomp' from ' ' to 'c'.
    - or 'zinscomp' not in the aggregation level, was derived with value ' ' and another derivation rule again changed the value to 'c'
    This must not happen. If this happens this always indicates inconsistent derivatiion rules. So please check your customizing:
    1 do characteristic relationships of type derivation have consistent derivation rules
    2 parameterization of the copy function: maybe 'zinscomp' comes from the copy source, always with initial values but has to have non-initial value, e.g. 'c' in the copy target. In this can you may remove 'zinscomp' from the aggregation level; derivation then will automatically fill 'zinscomp' via derivation.
    Regards,
    Gregor

  • BI-IP:Derived characteristic overwritten again within copy planningfunctio

    I have an issue using planning function "copy". I am using this planning function to copy my planned data within the real time infocube chaning the plan version from 1 to 2 within my realtime infocube. In my realtime infocube, i have a characteristic relationship to derive the date, time and user and unique id for each record. However, when I try to copy those records now into a new version, I get the following error messages:
    Errors while executing sequence copy cylce 1 to cycle 2.
    Planning functioncopy cycle 1 to cycle2 ended with errors
    Critical error during characteristic derivation
    Derived characteristic overwritten again
    Characteristic 'zinscomp': Old value ' ', new value ' c '
    Critical error during characteristic derivation
    Derived characteristic overwritten again
    Characteristic 'zinscomp': Old value ' ', new value ' c '
    Any Idea how to solve this issue?
    Following steps i tried :
    Here I have user entry for Insertion compenent of a material.
    so I check the Status of Insertion compenent of material In material master data with data in the planning cube.
    I got 2 mismatch in the staus for material and corrected in material master.
    After doing this task also i am getting the same issue .
    Kindly propose some suggestion how to proceed ?

    Hi,
    after the copy planning function the copied records will be checked and if correct will be transferred to the delta buffer. In the delta buffer derivation based on characteristic relationships will be called.
    The error indicates that derivation rules with respect to 'zinscomp' are inconsistent:
    - 'zinscomp' is contained in the aggregation level with value ' ' but a derivation fills a field not in the aggregation level and in addition changes 'zinscomp' from ' ' to 'c'.
    - or 'zinscomp' not in the aggregation level, was derived with value ' ' and another derivation rule again changed the value to 'c'
    This must not happen. If this happens this always indicates inconsistent derivatiion rules. So please check your customizing:
    1 do characteristic relationships of type derivation have consistent derivation rules
    2 parameterization of the copy function: maybe 'zinscomp' comes from the copy source, always with initial values but has to have non-initial value, e.g. 'c' in the copy target. In this can you may remove 'zinscomp' from the aggregation level; derivation then will automatically fill 'zinscomp' via derivation.
    Regards,
    Gregor

  • How to validate numbers in char field.

    Hello all,
    I have one database column with char data type. This field should allow insert only
    numbers [ zero to nine] and plus symbol .. how to validate this?
    Pls help me..
    I.m using oracle 9i database. So it does not allow REG-EXP and WITH methods.. So give some
    sql coding to do this

    As this forum is for issues with the SQL Developer tool, you'll probably get more answers in the SQL And PL/SQL forum.
    Regards,
    K.

  • How to validate the dates in the table control ?

    How to validate the dates in the table control ?
    Can I write like this ?
    LOOP AT it_tab .
    CHAIN.
    FIELD : it_tab-strtdat,it_tab-enddat.
    module date_validation.
    ENDCHAIN.
    ENDLOOP.
    Module Date_validation.
    ranges : vdat type sy-datum.
    vdat-sign = 'I'.
    VDAT-LOW = it_tab-STRTDAT.
    VDAT-HIGH = it_tab-ENDDAT.
    VDAT-OPTION = 'BT'.
    APPEND VDAT.
    WHAT CODE I have to write here to validate ?
    and If I write like this How can we know which is the current row being add ?
    It loops total internal table ..?
    Bye,
    Muttu.

    Hi,
    I think there is no need to put chain endchain.
    To do validation you have to write module in PAI which does required validations.
    Thanks
    DARSHAN PATEL

  • How to validate material status in physical Inv Doc creation using MI01

    Hi Experts,
    I would like to know how to validate material status while creating physical inventory document using MI01 transaction.
    I tried to figure out a suitable BADI and customer exits ,but it didnt work out well.
    Kindly share your thoughts on how this can be achieved.
    Regards,
    Mohammed Aslam Rasheed

    Do you really create your inventory documents with this MI01 transaction manually by entering material for material?
    The real transaction for physical inventory is MI31. How do you want SAP to react if hundreds of materials are selected and inventory documents are created in a batch process?
    SAP takes care about the material status in MI04 and MI07 transactions.
    I am not aware of any exit for MI01 maintenance, you may consider Explicit and Implicit Enhancement Options

  • How to Validate a User on the click of a button in Oracle APEX

    Hi,
    How to Validate a User on the click of a button in Oracle APEX.
    say for e.g: I want to allow only a specific user to go beyond after clicking on a button and restrict all the other Users. Any ideas please.
    Thanks in Advance,
    Af

    Well , the actual idea was to hide the button for specific users and show the button only for some specific users... is this possible...?
    @ AndyH: yeah, what you have suggested also fits well for my requirement... Could you please let me know how can i achieve it...
    Regards,
    Af

  • How to validate the file path when downloading.

    Hi
    How to validate the file path when downloading to Presentation or application Server.

    hiii
    you can validate file path by following way
    REPORT zvalidate.
    TYPE-POOLS: abap.
    DATA: w_direc TYPE string.
    DATA: w_bool TYPE abap_bool.
    w_dir = 'c:\Myfolder\'.
    CALL METHOD cl_gui_frontend_services=>directory_exist
    EXPORTING
    directory = w_direc
    RECEIVING
    result = w_bool
    EXCEPTIONS
    cntl_error = 1
    error_no_gui = 2
    wrong_parameter = 3
    not_supported_by_gui = 4
    OTHERS = 5.
    IF NOT w_bool IS INITIAL.
    WRITE:/ 'Directory exists.'.
    ELSE.
    WRITE:/ 'Directory does not exist.'.
    ENDIF.
    regards
    twinkal

  • How to validate a date in message mapping

    Hi experts,
                    how to validate a date in message mapping. For ex:  if date comes as 2008/02/31, then file it shold not get processed.how to achieve this in message mapping. Please help .
    Thanks&Regards,
    Reyaz Hussain

    Hi,
    There are few simple ways for date validation as follow,
    1.If you would like to handle it in XI only, then in message mapping you could verify about it with the help of generating smart exception.
    For e.g in mapping there is one Date conversion API i.e. somthing DateTransformation It converts the incoming date format to required format. Here give the date format i.e expected from Sender File.
    If in case the format miss-matched then it will create the exception.
    You could handle this exception with the use of [Alert notification|http://help.sap.com/saphelp_nw04/helpdata/en/2c/abb2e7ff6311d194c000a0c93033f7/frameset.htm] and could be even able to notify to sender system about it.
    2. The another solution is easy for SAP synchornous communication --If you are passing the file data to SAP, then you could use below function modules to verify date format in receiver RFC/BAPI or inbound IDOC program. If the sy-subrc is not 0 then don't process further.
    CONVERT_DATE_FORMAT
    ISU_DATE_FORMAT_CHECK
    Thanks
    Swarup

  • How to validate the  FI-AR& AP& FI-GL   and CO-PA extractor in R3

    Hi,
    I would like to do the integration testing in R/3 and BW.
    How to validate  Standard FI-AR& AP& FI-GL  and CO-PA extractor in R/3.
    Snapshot result of RSA3 and the tables?
    What are the tables and extractors need to be validate for FI-AR& AP& FI-GL   and CO-PA extractor in R3.
    As per our integration testing for FI-AR& AP& FI-GL   and CO-PA extractor in R3.
    How would i like to do the testing in BW QA system.
    Please some one will help me in this and answer would be great appreciate.

    Solved

  • How to change an characteristic to an navigation attribute?

    Hello everyone!!
    Does anybody knows how to change a characteristic that is on a POS to an attribute navigation of another characteristic that is in the same POS without deactivating it?
    An infocube has the same POS characteristics. So, if I do this modification, the infocube will be automatically chaged? I think not, but I want to avoid manually changing almost everything.
    Thanks in advance!!
    Regards

    Hello Heidi
    Sorry if I took so long to answer.
    Unfortunately you will have do deactivate the POS and of course change all the infocubes, infosources, etc, that are involved with this change. If you deactivate your POS, all the CVC´s are eliminated, so it will be better if you backup all the data in your live cache in an backup infocube.
    When you change the characteristic to an navigation attribute and also change the infocube, the data in the infocube will adjust automatically. You will have to create the CVC´s again with the new "format". But in the infocube, it won´t be necessary.
    I hope it helps.
    Best Regards
    Angela

  • 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 validate a program in background

    hello folks,
    i need to validate my program, my program should run only in background
    in case if it runs in foreground it should give error message. how to validate my
    program.
    can any one just tell the procedure how to do it.
    any help will be greatly appreciated,
    thanks in advance.
    regards,
    cnu

    Hello CNU,
    following snippet should do.
    Regards
      Klaus
    if ( 'X' ne sy-Batch ).
      message e000 with 'Only in Batch'(BTC).
    endif.

  • How to validate a filed in a search help which is created in se11

    hi
    i got a requirement that validate a search help. i created a ztable with 3 fileds for that one i have to create a search help so help me to how to validate fields in a search help.
    regards
    krishna

    Hello Krishna,
    What do you mean by validating a field? Usually you use a search help to display possible values for a certain input field based on values in another table. You can restrict the values that are displayed by certain conditions if you need to.
    If you want to allow only values based on complex conditions or authorizations of the user, you can always create a search help exit and in there you have complete control over what the user is allowed to see in the search help and what he is allowed to select.
    Function Module F4IF_SHLP_EXIT_EXAMPLE gives you an idea what you can do in a search help exit.
    Regards,
    Michael

  • How to validate a session object in jsp?

    Hi All,
    i am facing a problem.The problem is how to validate the session object object in jsp.I have written a java script by using a defined function as setInterval and has given 5 mintues if the user is idle and will show a pop up menu before time out the session but in case of page active still this pop up menu is coming. The java script as follows.
    function SetTimer(){
         //How long before timeout (should be a few minutes before your server's timeout
         //set timer to call function to confirm update
         if(timeoutMinutes)
         timerObj = setInterval("ConfirmUpdate()",60000);
    function clearTimerFn(){
              timerCount = 0;
              clearInterval(timerObj);
              //timerObj = setInterval("ConfirmUpdate()",60000);
    function ConfirmUpdate(){
         //Ask them to extend
         if(confirm("Your session is about to expire. Press 'OK' to renew your session.")){
              //load server side page if ok
              var url = "ajaxSessionchecker.do?sessionvalidate=sessionvalid";
              LoadXMLDoc(url);
    And in jsp i am calling this js function as
    <%session=request.getSession(false);
              if(session.getLastAccessedTime()==60000){ %>
              <script type="text/JavaScript">
         clearTimerFn();
    </script>
    <%}else{
    session.setMaxInactiveInterval(-1000);} %>
    could you pls help me out?

    The reason for doing this is when ever i come to this user.jsp from account.jsp with a different account number this user.jsp is not refreshed and i still
    see the same old user.jsp for the previous account that i naviated before. Also please let me know if there is any other approach to acheive this taskDoes refreshing the page by pushing F5 solve the problem?
    If so, then the browser is caching the page, despite your attempts to stop it.

Maybe you are looking for