Urgent :CHECK BLANK VALUES

Hi
I am fetching some data into a date IO but the problem is that some records contain a blank value for that fild.
So i am using a routine to assign some value to that field based on some logic.
i have used
if DATEIO is intial...
then codn..
but the code doesnt seems to work.
Is this the right way to check. or shud i use if DATEIO = '00000000'.

Hi,
What you put is correct, but let me review your code:
Assumptions: You are using the code in update/field routine.
if comm_structure-date is initial.
logic......
endif.
Cheers,
Rewards accepted

Similar Messages

  • XPATH expression to check blank value

    Hi,
    I have xml File to IDocs scenario. Single xml file will contain the data related to Order Create and Order Change. I have implemented the same using Conditional Interface Determination. Depending upon following conditions the data needs to be sent to either ZORDERS.ORDER05 or ZORDCHG.ORDERS05 IDoc
    1. if servicetemplateid = 'SRNonStandard' and myerpordernumber = blank  then create order.
    2. if service templateid = 'SRForEvents' and myerpordernumber <> blank then change sales order.
    I tried all possible functions of xpath but couldnt determine the interface.
    The source file will look something like this. So the first record must be sent to ZORDCHG.ORDERS05 and second record to ZORDERS.ORDERS05
    <all>
         <table name="SvcMyServiceRequestNLExpView">
              <record id="1">
                   <datacol name="client">010</datacol>
                   <datacol name="salesorg">0702</datacol>
                   <datacol name="servicetemplateid">SRForEvents</datacol>
                   <datacol name="myerpordernumber">123</datacol>
              </record>
              <record id="2">
                   <datacol name="client">010</datacol>
                   <datacol name="salesorg">0702</datacol>
                   <datacol name="servicetemplateid">SRNonStandard</datacol>
                   <datacol name="myerpordernumber"></datacol>
              </record>
         </table>
    </all>
    I have given the following conditions in interface determination
    1. for ZORDERS.ORDERS05
    (/all/table/record[(datacol/@name = 'servicetemplateid') and (datacol = 'SRNonStandard' or datacol = 'SRForEvents')] EX  AND /all/table/record[(datacol/@name = 'myerpordernumber') and (datacol='')] EX )
    2. for ZORDCHG.ORDERS05
    (/all/table/record[(datacol/@name = 'servicetemplateid') and (datacol = 'SRNonStandard' or datacol = 'SRForEvents')] EX  AND /all/table/record[(datacol/@name = 'myerpordernumber') and (datacol!='')] EX )
    I have tried not(datacol = '') instead of !. I have also tried string-length function but it doesnt determine the interface correctly. i.e if the file contains only Order create Idocs, it will still call orders change interface mapping
    The problem is that XPath is not able to compare the blank properly.
    Please suggest.
    Thanks Nilesh.

    Hey Thanks Alex,
    Your solution helped me a lot to place the brackets and work with attributes. However, XPATH doesnt determine a blank. But I kept the blank condition in the operator itself(i.e outside xpath) and checked only the attribute in the XPATH and it works fine now. I used the following:
    In condition editor one condition to check servicetemplateid attribute using exists. And second condition to check myerpordernumber = blank using equals operator.
    For Orders Create
    (/all/table/record[(datacol/@name = 'servicetemplateid') and (datacol = 'SRNonStandard' or datacol = 'SRForEvents')] EX  AND /all/table/record/datacol[@name = 'myerpordernumber'] = )
    For Orders Change
    (/all/table/record[(datacol/@name = 'servicetemplateid') and (datacol = 'SRNonStandard' or datacol = 'SRForEvents')] EX  AND /all/table/record/datacol[@name = 'myerpordernumber'] u2260 )
    Thanks Nilesh

  • 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

  • Remove Blank Values from Slicer in Power View

    Hi all,
    I am trying to create a power view report from a power pivot data model. After creating the model when I try to use the slicer in power view I am seeing the Blank record. Then I checked that dimension in model where I don't have any blank value in there.
    Also I checked in fact table where it has a relationship with that dimension and I don't see any blank value there as well.
    I am currently blocked with this issue. Experts please jump in and give some ideas how to remove blank value from there.
    Thanks

    As MM-99 already stated correctly, the BLANK-member is created if there is one or more non-matching row in your fact-table that does not exist in the dimension-table
    maybe you have some issues with upper and lower case?
    or maybe there are some whitespace characters contained in the text?
    to identify the issues you may want to create a calcuated column in your fact-table as =RELATED('DimTable'[MyKeyColumn])
    then you can filter on that column and see if any blank values appear
    hth,
    gerhard
    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

  • Blank value in "Assignment" field in FBL3N transaction output

    Hi experts,
    When i exeucted FBL3N transaction, the assigment field gets displayed as blank in the output screen. 
    I have given input for GL Account, Company code and Posting date in FBL3N transaction input screen and executed. Iin the output, the "Assignment" field (field ZUONR) gets displayed with empty value.
    recently the system is upgraded from 4.6C to ECC 6.0.  When we checked in our 4.6C system, this FBL3N transaction displays value for Assignment field. But when we checked in ECC 6.0, this "Assignment" field gets displayed with blank value.
    Could anyone suggest the reason why the Assigment gets displayed with blank value..
    Is any OSS note to implemented for solving this issue?. If so, pls share the Note details..
    regards,
    Shanthi

    Hi,
    Yes, there is a SAP note. Check SAP note # 322910.
    You should have posted it in FI forums.
    Hope this helps.

  • Getting only Blank Values in Crystal Reports

    Hello Experts,
    I have crystal Reports on top of R/3. I am using table called EKKO, When I dragged the LIFNR (Vendor Number) in the report, It's bringing only blank values, I checked in SAP and it has 7000 records.
    For testing I created report with only this EKKO table, but the same thing, it's bringing only 91(Blank) records, I don't have any conditions or anything in my report.
    We are using Business Objects XI3.1, Crystal Reports 2008.
    Could anyone please help me?
    Thanks
    Ravi

    Yes, I created crystal report with only EKKO table. I haven't used any conditions or any parameter, I just dragged LIFNR (vendor Number) in the report and I see only blank values. When I checked in SAP, I have around 8000 records out of 91 records are blank values. So It is bringing only blank values.
    Thanks,
    Ravi

  • Issue with Blank Value selection in Dropdown List

    Hello Experts,
                        I am facing one strange issue in Adobe Forms Drop Down(DD) list. Foll. is the list data which contains a several item data & blank value. After item data selection user must be able to select blank value in case he doesn't want to set the value to Order Unit as shown in screen shot below.
                                  Now my issue is after any of the item values selection (for ex. BAG - BAG)  user is not able to set the blank value again at my client system. However its working fine in mine. When checked client is using Adobe Reader 8.0 which is same as mine.
    Thanks in advance.
    Regards,
      Amit

    Hi Steve,
                   Thanks for the reply. We have a blank value in the DD as a list item, where key & description is empty space. As i posted above user must be able to select that blank item if doesn't want any value for Order Unit. This selection is working fine in my sytem, but my client facing the issue where he can not select the blank value from DD.
    Thanks,
    Amit

  • Capturing blank and non blank values in parameter

    In one of the report there is only one parameter “BU VP Name”, now the business has added one more field “Director” to the application and they want this to be as a parameter. Now all the new records will have Director name
     and old records will be blank for Director. How can I create a multi parameter with blank and relevant values for my report. Please note I am using sharepoint list to create the report.
    SFH

    Hi Syedfpl,
    According to your description, you want to add a parameter which include a blank value.
    In Reporting Service, we are allowed to use blank value for a multivalue parameter, but we are not allowed to use null values. So in this scenario, you should insert some blank values(‘’) into column “Director” so that we don’t need convert null values into
    string at query level. Besides, in order to be allowed to use blank values in a parameter, we should choose the option "Allow blank value ("")". Also “Allow multiple values” option should be checked. As we tested in our environment, the
    final result looks like below:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • How to show text instead of blank value in SelectOneChoice list.

    Hi,
    I have a requirement where I need to show some string like 'Please Select Value' instead of blank item in the select one choice list. So instead on blank value, this string will be displayed in the choice list and if user doesnt select any value it should be treated as normal blank value and validation should be fired.
    May I know is there any property which we can set declaratively or any workaround for this?
    My JDev version : 11.1.1.7.0
    Many thank in advance.
    Regards,
    Dileep.

    Hi,
    In the VO list of values, check "Include no selection item", choose "Labelled item first of the list" from the drop down and give your custom label.
    Thanks

  • Blank values in RAR Rules - RAR (SAP GRC AC 5.3)

    Hello,
    We are working on the deployment of a GRC Access Control 5.3 system in a main customer and we have found next issues about AC 5.3:
    When a rule with a Blank value in u201CValue Fromu201D and u201CValue Tou201D columns is set, RAR is not taking users with any u201CValue Fromu201D / u201C Value Tou201D for that rule. In fact we are seeing that only users with value: * in u201CValue Fromu201D column are taken. It doesnu2019t fit with the standard SAP practices. Could you confirm this issue? How could we set a rule for taking any value?
    Rule Example:
    Object: F_BKPF_BUK   Field: ACTVT    Value From:      Value To:         Condition: AND            Status: ENABLE
    User1 value:
    Object: F_BKPF_BUK   Field: ACTVT    Value From: 4   Value To:         (Itu2019s NOT taken)
    User2 value:
    Object: F_BKPF_BUK   Field: ACTVT    Value From: 5   Value To:         (Itu2019s NOT taken)
    User3 value:
    Object: F_BKPF_BUK   Field: ACTVT    Value From: *   Value To:         (Itu2019s taken)
    Best regards.

    You need to distinguish between the value in the authorization field of the object and the search pattern.
    is only looking for the field name. It does not even care about the value.
    Values '4' and '5' are not valid for F_BKPF_BUK (see table TACTZ) so unless you populate UST12-BIS (what you call "Value To:" then you won't get a result.
    I faintly suspect that you are "cooking the books" at the file level, and are expecting the GRC system and possibly the ABAP system as well to use the same logic?
    Can you explain what User1 + User2 are expected to achieve with these values.
    The system does sometimes make DUMMY checks (see the ABAP key word documentation in transaction ABAPDOCU) but this is not the correct strategy to pass those checks in my opinion.
    I also suspect that this is an "action" in the customer name space. Perhaps you are using an unreleased FM instead of a BOR object? See transaction BAPI for more infos and finding the correct BOR (Business Object Repository) so that your RAR is not confused by dodgey coding....
    Cheers,
    Julius

  • 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.

  • How to check a value for paramter query

    I am passing a paramter value from my text box to my sql statement and I would like to check if the value is entered into a text box. If you have any idea please share it with me, i have been struggling with this for many days.Code below is how i try to check if the value is entered but I do not know how to check the value in the :VendorName
    thanks
    If Not txtVendorName.Text = "" Then
    Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
    End If

    Sorry guys english is not my first language and i will try to be clear and specific.
    I have a search page where customeres can do searching either using a text box or two dropdowns i have on my page. they have the option of doing search either using a text box or dropdowns or both.Everything seems to work fine but if users does not leave the text box blank. but they leave the text box blank and do searching using the two dropdowns then the page comes up empty and i checked my query and i should get a value. Attacehed my code for you to look at it.
    <pre>
    Sub VendorSearch()
    gvSearch.Visible = True
    Dim MinPDate As String = drPur.SelectedItem.ToString
    Dim MaxMDate As String = drPurM.SelectedItem.ToString
    Dim liThisOne As ListItem
    Dim strState As String = ""
    For Each liThisOne In lstState.Items
    If liThisOne.Selected Then
    strState = strState & "'" & liThisOne.Value & "'" & ","
    End If
    Next
    Dim Sql As String = " SELECT distinct V.VENDOR ""Vendor Id"",R.ADDRNUM,V.VNAMEL ""Vendor Name"",R.AADDR1,R.ACITY,R.VASST1, "
    Sql = Sql & "R.ASTATE State,R.AZIPCODE, to_char(Max(P.DATEPUR),'YYYY/DD/MM') ""Plan Purchased Date"" , "
    Sql = Sql & "TRIM (r.aaddr1 || decode(trim(r.aaddr2),null,'',' - ') || r.aaddr2) Address,"
    Sql = Sql & " substr(decode(trim(r.vasst1),null, 'N/A','000/000-0000?','N/A','000/000-0000','N/A', r.vasst1),1,12) Fax, "
    Sql = Sql & " substr(decode(trim(r.aphone),null, 'N/A','000/000-0000?','N/A', r.aphone),1,12)Phone "
    Sql = Sql & "FROM VENDOR V,VENDADDR R, PLANHOLD P "
    Sql = Sql & "WHERE V.VENDOR = R.VENDOR AND P.VENDOR = R.VENDOR "
    Sql = Sql & " AND (P.DATEPUR >= TO_DATE('1999-01-01','YYYY-MM-DD')) "
    Sql = Sql & "AND P.DATEPUR In ( select Max(P.DATEPUR) from PLANHOLD P where P.vendor = R.VENDOR) "
    'If txtVendorName.Text <> "" Then
    ' Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
    'End If
    If (strState.Length > 0 And lstState.SelectedIndex <> 0) Then
    strState = Left(strState, strState.Length - 1)
    strState = "(" & strState & ")"
    Sql = Sql & "AND R.ASTATE IN " & strState
    End If
    If (drPur.SelectedIndex <> 0 And drPurM.SelectedIndex <> 0) Then
    Sql = Sql & " AND to_number(to_char(p.datepur, 'YYYY')) between " & "'" & MinPDate & "'" & " AND " & "'" & MaxMDate & "'"
    End If
    ' Dim Para As String
    ' SqlDataSource1.SelectParameters.
    If Not txtVendorName.Text = "" Then
    Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
    End If
    'If Not IsDBNull(SqlDataSource1.SelectParameters(":VendorName")).val Then
    ' Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
    'End If
    Sql = Sql & " AND V.VOBSOLET = 'N' "
    Sql = Sql & "GROUP BY V.VENDOR, R.ADDRNUM,V.VNAMEL,R.AADDR1,R.AADDR2,R.ACITY,R.ASTATE, R.AZIPCODE, R.APHONE, R.VASST1, P.DATEPUR "
    Sql = Sql & "ORDER BY V.VENDOR "
    Response.Write("Sql " & "<br/>" & Sql & "<hr/>")
    SqlDataSource1.SelectCommand = Sql
    End Sub
    </pre>

  • 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

  • Restrict Blank value in a custom table field.

    Hi All,
    I have a custom table with some fields with check table search help. One of the field I want to make it value required field. For example Field u2018Cu2019 should have value (no blanks or Spaces). Field u2018Cu2019 has a check table search help and master data table does not have any blank value. Field u2018Cu2019 is not a key field. Suggestions in this is highly appreciated.
    Ram.

    Hi Ram,
    You can create a Table Maintenance Generator for you custom table and you can use to TMG events to put a check the the field 'C' should not be initial.
    Refer to the link for TMG events
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=93454609
    Regards,
    GP

  • 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.

Maybe you are looking for