APO DP Macro for Blank Values

HI all
In SCM 5.0 the system now distinguishes between 0 values and Blank values.
I am trying to get a macro to run if a value in DP is Blank (not Zero)
I cannot find a function in the Macro builder to do this. 
Can anyone help?
regards

somemore information on IS_INITIAL macro funtion
IS_INITIAL()
Syntax
IS_INITIAL( Key Figure )
Key Figure: Row, column, or cell element (data source = row attributes)
Description
The IS_INITIAL function returns the value 1 if the cell is initial. (The column results from the current step iteration; the row is determined by the Key Figure parameter.) Apply this function for key figures that can distinguish between zero values and initial values. This function is not available if the compatibility mode is activated for the macro book.

Similar Messages

  • Removing # sign in the Report for Blank Value

    Guys,
    I was trying to use the below code VB, but i am getting error like Expected: End of statement.
    I am new to VB, do anyone have step by step guide to implement the below macro for Excel and remove the # from BEx analyzer.
    Do i need write this macro for each query? I totally dont understand the link.
    Kindly guide to run the macro and avoid # in reporting.
    Do I need to implement this macro on each end user client server ?
    Removing '#' in Analyzer (Report)
    In ODS, there are records having a value BLANK/EMPTY for some of the fields. EX: Field: `Creation Date' and there is no value for some of the records.
    For the same, when I execute the query in Analyzer, the value `#' is displaying in place of `BLANK' value for DATE and other Characteristic fields. Here, I want to show it as `BLANK/SPACE' instead of `#'. How to do this?
    I had a similar problem and our client didn't want to see # signs in the report. And this is what I did. I created a marco in Workbook as SAPBEXonRefresh and run my code in Visual Basic editor. You can run same code in query also as when you will refresh query this # sign will be taken care. You can see similar code in SAP market place.
    I will still suggest not to take out # sign as this represent no value in DataMart. And this is SAP standard. I did convince my client for this and later they were OK with it.
    The codes are below:
    Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
    If queryID = "SAPBEXq0001" Then
    resultArea.Select
    'Remove '#'
    Selection.Cells.Replace What:="#", Replacement:="", LookAt:=xlWhole, _ SearchOrder:=xlByRows, MatchCase:=False, MatchByte:=True
    'Remove 'Not assigned'
    Selection.Cells.Replace What:="Not assigned", Replacement:="", LookAt:=xlWhole, _ SearchOrder:=xlByRows, MatchCase:=False, MatchByte:=True
    End If
    ' Set focus back to top of results
    resultArea(1, 1).Select
    End Sub
    Regards,
    Anand
    Edited by: araj123 on Oct 19, 2010 4:51 PM
    Edited by: araj123 on Oct 19, 2010 4:58 PM

    Anand,
    This is what I have used in the past and works just fine
    Sub HashRemoval()
        Application.ScreenUpdating = False
        Cells.Replace What:="#", Replacement:="", LookAt:=xlWhole, SearchOrder:= _
            xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
        Application.ScreenUpdating = True
    End Sub
    But I have this as a separate macro that can be called any time.
    Cheers
    Craig

  • Blank Values in Master Data

    Hi,
    We have observed that '#' and '-' as part of Netweaver 2007 i.e BI 7.0 but in BI 3.5 we can only see '#'.
    What is the difference between '#' and '-'. Can somebody illustrate this.
    Thanks
    Amit

    I have not seen <b>-</b> for blank values so far in 7.0....jst in case have you checked the MD tables how it is stored.

  • Handling blank values in Database Procedure

    Hello Guys,
    I am building an application with HANA on ABAP. Here, I have created a database procedure which we are consuming from ABAP via database procedure proxy. In this case, we are facing issues on the below point:
    As in conventional ABAP program, within the 'Where Clause' of a select statement if we pass a select-options/parameter with no value, then it will get all the data from the table. However, while passing blank value to database procedure, then it is unable to fetch the data from underlying HANA database tables/views.
    In this regard, it will be really helpful, anyone could guide me on how to handle the blank value like we do in ABAP.
    With Regards,
    Arnab

    Have a look on the discussions in this thread.
    How to keep filter for Blank values in Calculation view
    Regards,
    Krishna Tangudu

  • Default the blank value for MessageChoice

    Hi,
    I have created a Message Choice Bean and I require to have a blank value as the first value followed by the original values. How to achieve this ?
    I have also tried setting through personalization 'Add Blank Value' to 'true' and also tried with the function 'setAllowBlankValue(true)' for the messagechoice bean. But its not working.
    Please help me by giving the valuable suggestions to achieve the above.
    With Thanks,
    Thiyagarajan

    The only possible case of this happening, is you might have made required property as true, which removes blank value because if value is required in messagechoiceebean, then blank alue can not be included.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Tab delimition for the blank values

    Hi experts,
    I need to generate the tab delimited file.
    I m using FCC for the same.
    if there are 3 fields in my structure and values are coming for all, then its working fine, but if any of the blank value is coming as blank, the its giving prb.
    I am facing the below problem.
    if  Input is - Jack  Michael  Richard
    output file is generated prorperly
    if input is- Jack           Richard
    then output is coming as - Jack  Richard 
    But I want result as - Jack                  Richard
    Please advise.
    Thanks in advance.

    Hi,
    Try this mapping:
                                                                                    InputField----
    >
    InputField --->
                           equalS  -
    >ifThenElse
    Constant[] --->                              Constant(with blank -
    >
                                                          spaces equal to length)
    -Supriya.

  • Preventing blank values for dDocAccount

    We are using Oracle Services using RIDC. I have few questions regarding dDocAccount:
    1. How do you make dDocAccount a required parameter using the UCM configuration manager?
    2. During document checkin, the dropdown for account displays a blank value along with some custom accounts. How do I prevent the blank value from appearing?

    1) You can achieve this by removing the ability of users to checkin 'documents without accounts'
    You can access this setting from User Admin Applet >Users tab > Edit > Accounts tab > documents without accounts ()
    you can leave them with documents without accounts (R) if you like.
    This does mean everything must be checked in a named account byt this user.
    You will notice the Account field goes red on the checkin page to symbolise that it is mandatory
    2) Without a customization I am not sure you can do this...it would be very easy to est a default value via profiles/rules however.
    Tim
    Edited by: Tim Snell on 15-Feb-2011 06:14

  • How to return blank value for a column

    Hi All
    We would like to create a short version of the BI report for the scorecards that has the same number and order of the columns, but far less rows. This will improve the size and performance of the Overhead, Services scorecard.
    For some columns, we need blank values , which means the content should be blank , but the column should appear in the report.
    I have tried checking some options in "column format" tab under column properties and played with "column header interaction" and "value interaction" , however i couldnt get the desired results.
    Can we achieve this?
    Please suggest me on the same.
    Regds
    Mano

    Mano wrote:
    For some columns, we need blank values , which means the content should be blank , but the column should appear in the report.Can you not just add any colulmn from the subject area and change its formula to '' ? You can rename the column name, and it will show blank values for all the records.
    Assign points if helpful.
    Regards,
    -Amith.

  • Description is showing for blank key values in master data

    Hello experts,
    I have loaded master data text. In general the first record of master data will be blank. But my case its showing description (short, medium) for blank key value.
    Could any one help me in this matter?
    Thanks
    Prathap

    Hello,
    Did you check the data source for this in the source system and check in RSA3 or in the underlying tables if anything like that is mainatained...if its a full load then the same thing may get loaded again even if you have changed it in BW.
    May be you can try to write a condition in the update rules on not to load the records with blank keys.
    If there is no such records in the source system then you can change the master data in the BW and make the text as blank.
    Thanks
    Ajeet

  • Displaying blank value for the Rounding Value field in MM03 transaction

    Hello All,
    We are using BDC to create a material master record.Some users are not loading the rouding value in the MRP1 screen. The rounding value is stored in the MARC table which has the data type as QUAN. Thus when there is no value being passed it implicitly converts the blank value to 0.00. The users do not want the rounding value to be displayed as 0 when they view the material record using mm03. Kindly let me know if there is any way to display the rounding value as blank if no value is present.
    Thanks in Advance.
    Regards,
    Avinash Sai N S

    Hai siddharth,
    I have enabled the BADi HRPBSIN_ADDITIONAL_CHECKS to do validations for loans. Can u pls explain is there any FM or wat can be used to set default value for the field in portal.
    Pls give some suggestions,
    thnaks,
    Nalla B.

  • How to find average for non blank values

    I need to calculate avarage for each restricted key figures. There are some blank values in this restricted key figures. Now I need to sumup and divide by non blank count. Do you know how to do it? How to count non blnak values and find avereage.
    Thanks,
    Phani

    In the properties of Key figure used in column/row, Calculations section, you can maintain calculation type for result as well as single value. There is "Average of all values not equal 0" option is available.
    Rgds,
    Vikram.
    Edited by: Vikram Kate on May 22, 2008 11:23 AM

  • Difference between zero and blank values

    Is there a way for the system to determine the difference between zero and blank values. One can have a zero allowed for the 0 value to actualy be there in the KF but is there a way that a macro can be written by which we can use the differentiation between the zero ( a value) and blank (no value) in the KF
    I have tried to look for an explanation on the service.sap.com and sdn but was not able to find anything.
    Thanks in advance

    Thanks for your reply. You mentioned something about the "fixing" setting that could make the "0" displayed in the planning book. Could you elaborate?
    Also, in the post from user "APO APO" on 5/8, the author seemed to indicate they could see the "0" in the planning book, as quoted below:
    "I have already made the zero allowed arrangement for that in the planning area and can see the 0 values in the planning book but I am not being able to make the macro get the results."
    I just want to find out if there is any way the user can visually distinguish b/w the "0" and blank values. If not, it'll be very confusing to the users. I understand the macros can distinguish b/w them.
    Thanks in advance.

  • Problem with BLANK Value in SSRS Subscription

    I have a report that I designed in Vis Studio 2005 and have deployed to SSRS 2005.  I have no issues what so ever when running it interactively out of Report Manager.  However when running it scheduled via a subscription, I am running into trouble.
    This report has a parameter called "Label".  It is set up as a String parameter, Allow Blanks, and Multi-Value.  (It does not allow me to select Null values...tells me "The properties for the currently selected item are not valid.")  I am getting Available and Default values from a query I have created in a separate dataset.  This query pulls in all possible values for Label, including a BLANK value (there are values that are and should be Blank).
    In my subscription, I want to select all Labels but label 98, including the BLANK.  So when I go in to create or edit a subscription, I simply uncheck the 98 label.  I can see a blank checked as well.  However when the subscription runs, the subscription status tells me " Failure sending mail: Default value or value provided for the report parameter 'Label' is not a valid value."   This ONLY occurs when I have the BLANK label selected in my dropdown list!
    However, when I run this interactively out of Report Manager, doing the exact same thing (selecting all labels other than label 98, INCLUDING the Blank), it works properly.
    What could be going on here?  Kinda new at this and totally stumped.
    Tony

    Hi Tony,
    I met a similar issue before. If I understand correctly, there has Null values in the list not Blank values.
    Using Null values in a parameter in subscription is not allowed.
    To solve the issue, please change the Null values to Blank values by modifying the query statement of report:
    SELECT ... IsNull(column, "") FROM...
    By the way, please update the SQL Server Reporting Services to latest version too.
    For SQL Server 2005, the latest version is Cumulative Update package 6 for SQL Server 2005 SP3.
    SQL Server 2005 SP3: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=ae7387c3-348c-4faa-8ae5-949fdfbe59c4
    Cumulative Update #6 for SQL Server 2005 Service Pack 3
    For SQL Server 2008, the latest version is Cumulative Update package 4 for SQL Server 2008 SP1.
    SQL Server 2008 SP1: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=66ab3dbb-bf3e-4f46-9559-ccc6a4f9dc19
    Cumulative Update #4 for SQL Server 2008 SP1
    Please feel free to ask, if you have any more questions.
    Thanks,
    Jin ChenJin Chen - MSFT

  • Checking for null value in arraylist

    Hi
    i have an excel file which i i am reading into an arraylist row by row but not necesarrily that all columns in the row mite be filled. So how do i check for null values in the array list.
    try
                        int cellCount = 0;
                        int emptyRow = 0;
                        HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(file));
                        HSSFSheet sheet = workbook.getSheetAt(0);
                        Iterator rows = sheet.rowIterator(); 
                        myRow = new ArrayList();
                        int r = 1;
                             while (rows.hasNext())
                                  System.out.println("Row # " + r);
                                  HSSFRow row = (HSSFRow) rows.next();
                                  Iterator cells = row.cellIterator();          
                                  cellCount = 0;
                                  boolean isValid = false;
                                  while (cells.hasNext())
                                       HSSFCell cell = (HSSFCell) cells.next();
                                       switch (cell.getCellType())
                                            case HSSFCell.CELL_TYPE_NUMERIC:
                                                 double num = cell.getNumericCellValue();     
                                                 DecimalFormat pattern = new DecimalFormat("###,###,###,###");     
                                                 NumberFormat testNumberFormat = NumberFormat.getNumberInstance();
                                                 String mob = testNumberFormat.format(num);               
                                                 Number n = null;
                                                 try
                                                      n = pattern.parse(mob);
                                                 catch ( ParseException e )
                                                      e.printStackTrace();
                                                 System.out.println(n);
                                                 myRow.add(n);                                             
                                                 //myRow.add(String.valueOf(cell.getNumericCellValue()).trim());
                                                 //System.out.println("numeric: " +cell.getNumericCellValue());
                                                 break;
                                            case HSSFCell.CELL_TYPE_STRING:
                                                 myRow.add(cell.getStringCellValue().trim());
                                                 System.out.println("string: " + cell.getStringCellValue().trim());
                                                 break;
                                            case HSSFCell.CELL_TYPE_BLANK:
                                                 myRow.add(" ");
                                                 System.out.println("add empty:");
                                                 break;
                                       } // end switch
                                       cellCount++;
                                  } // end while                    
                                  r++;
                             }// end while
                   } myRow is the arrayList i am adding the cells of the excel file to. I have checked for blank spaces in my coding so please help with how to check for the black spaces that has been added to my arraylist.
    I have tried checking by looping through the ArrayList and then checking for null values like this
    if(myRow.get(i)!=null)
      // do something
    // i have tried this also
    if(myRow.get(i)!="")
    //do something
    }Edited by: nb123 on Feb 3, 2008 11:23 PM

    From your post I see you are using a 3rd party package to access the Excel SpreadSheets, you will have to look in your API for you 3rd party package and see if there is a method that will identify a blank row, if there is and it does not work, then you have to take that problem up with them. I know this is a pain, but it is the price we pay for 3rd party object use.
    In the mean time, you can make a workaround by checking every column in your row and seeing if it is null, or perhaps even better: check and see if the trimmed value of each cell has a lenth of 0.

  • Date fields are showing as  /  /   in DSO for blank dates or no dates

    We are loading flat file data to DSO and the date fields are showing as  /  /   in DSO for blank dates or no dates in the flat file source system.  We don't want to see this / /  and instead of this, we would want to this field in DSO to be in blank. Please help how to achieve this. Is there any way to do this transformation. If yes, then can you please provide  the sample coding.
    Advance Thanks,
    Christy

    I have added the code and data loading is successful. while DSO activation, it is failing. The error message is,
    Value '#' of characteristic 0DATE is not a number with 000008 spaces.
    It seems that we need to change the code. Can you provide me the corrected code please. Thanks.
    Christy

Maybe you are looking for

  • Why can't I connect to wi fi on iPhone 5 at sons house.   Join icon won't light up

    WWhy can't I join wifi at sons house.  Join icon doesn't light up to allow me to join

  • Borderless printing, Aperture=Fail?

    Howdy! The short of it- Nothing I shoot (Canon EOS 7D), regardless of the settings I choose in Aperture, will print borderless. I can import an image to the Desktop, pull it into iPhoto and print borderless 13x19 prints without a 2nd thought. I drop

  • Playback Video (format 3GPP) on j2me midp 2.0

    Hi all, By now all recent mobile phone should playback many video type included le format 3GP. But I can't playback any Video from J2me midp 2.0 API. Are there someone here who know a solution independent of device to playback video on j2me midp plat

  • In SC back to monitor  button is not working

    Hi SRM Gurus, in SC the button back to monitor is not working for user employee01 but same is working for purchaser01. and same code is get executing both times. Please assists me in this regard. Its urgent. Regards, Vasu

  • Tabla a fichero excel preconfigurado

    Hola, Estoy intentando guardar una tabla a un excel previamente configurado con un determinado formato (encabezados, otros datos ya incluidos...). He estado buscando ejemplos, pero sólo he visto el ejemplo " Excel - Write Table.vi" que te crea un nue