XI 3.0: XPath check blank condition

Hi
How can i check using XPath that a string value is empty?
Does anybody knows the rigth syntax to use in the condition editor?
Thanks

Hi Alessandro,
You can use Xpath Functions, go through this link:
http://help.sap.com/saphelp_nw04/helpdata/en/92/af463c36a30319e10000000a114084/frameset.htm
Thanks & Regards,
Varun Joshi

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

  • Need help to check multiple conditions and set AD user properties

    hello All,
    I have a data csv sheet where information as follows, using below information I need to update AD account attributes based on below conditions . I have full right and I can set any user properties. So this is not access right issue.   
    samaccountname,Othertelephone,language,employeeId
    abcd                      XXXXXXXXX     EN         SMS
    Now I need to check following conditions:
    Othertelephone =  if this should not be blank ,if so display message " filed is blank " and no changes should allowed in further attributes and  it should abort
    language= this field should only contain  EN or FR value if No display msg " error in language field " and no further changes to  the user attributes and it should abort
    employeeID= this field should only contain OTP or SMS value if Not filled display msg " error in Employee ID field " No further changes to the user attributes and it should abort
    changes to user will permit  when all attributes is filled. I do the testing taking samaccountname , othertelephone and employeeId into consideration but it did not helped. Getting error
    THIS is complete Code Of my Task where you need my focus on conditions
    group=Get-QAdGroup -SearchRoot  "domain/vpn group"
    Import-Csv D:\VPN.csv |
    ForEach-Object{
    if ($_.samaccountname -eq "")
       Write-Host "SAMACCOUNTNAME is blank"   -fore red
    else
     $user=Get-QAduser $_.samaccountname
    if ($user.memberof -contains  $group.DN)
     Write-Host "$($_.Samaccountname) user is allready a member" -fore red
    else
     Add-QADGroupMember $group $_.Samaccountname
    If ($_.othertelephone -eq "")
    Write-Output "$($_.samaccountname) telephone Number is blank"
    else
    if ($_.EmployeeID -notmatch 'OTP' -and 'SMS')
    Write-Output "$($_.samaccountname) EmployeeID field is not correctly field")
    Else
    Set-QADUser $_.SamAccountName -ObjectAttributes @{telephonenumber=$_.othertelephone;EmployeeID=$_.EmployeeID}
    error
    Set-QADUser : Access is denied.
    At C:\Users\g512263\AppData\Local\Temp\5f8facb6-f942-4c3d-b924-8953d9a706da.ps1:37 char:8
    +                    Set-QADUser $_.SamAccountName -ObjectAttributes @{telephonenumber=$_.othe ...
    +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Set-QADUser], UnauthorizedAccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Quest.ActiveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.SetUserCm
       dlet

    <title>Untitled - PowerGUI Script Editor</title>
    Hello JRV,Thank you for your time, There is no comma in my csv file , I double check. below I wrote a simple code.I removed all the conditions and just try to set the EmployeeID and it is working fine with same file.But as soon as I add conditions it gives access denied. as well as if I remove employee Id from your previous code and only try to set telephone No. still it gives access denied.I am just trying to figure out what is causing this.
    $group=Get-QAdGroup -SearchRoot "com/Group"
    Import-Csv D:\VPN.csv |
    ForEach-Object{
    if ($_.samaccountname -eq ""){
    Write-Host "SAMACCOUNTNAME is blank" -fore red
    }else{
    $user=Get-QAduser $_.samaccountname
    if ($user.memberof -contains $group.DN){
    Write-Host "$($_.Samaccountname) user is allready a member" -fore red
    }else
    Add-QADGroupMember $group $_.Samaccountname
    If ($_.othertelephone -ne "")
    Set-QADUser $user.SamAccountName -ObjectAtt Aributes @{telephonenumber=$_.othertelephone}
    } else
    Write-Output "$($_.samaccountname) phonenumber is blank"
    If ($_.EmployeeID -ne "")
    Set-QADUser $_.SamAccountName -ObjectAttributes @{EmployeeID=$_.EmployeeID}
    }else
    Write-Output "$($_.samaccountname) EmployeeID field is blank"
    If ($_.Preferredlanguage -ne "")
    Set-QADUser $_.SamAccountName -ObjectAttributes @{Preferredlanguage=$_.preferredlanguage}
    } else
    Write-Output "$($_.samaccountname) PreferredLanguage field is blank"

  • For the checking the conditions in script element

    Hi,
          I have one element in medruck script like item.in that i have some conditions.how can i check that conditions in that?
    whether in script or print program?
    Rgs,
    Venkat

    Hi,
    You need to check the condition in the text element of the script.
    Regards,
    Raj.

  • Select data by checking two conditions

    Dear every one,
    how to fetch data from database by checking two condition...
    the task , it should check whether both are present , if present "it should break out of loop",if not, then check atleast for atleast one available..
    eg:
    if i give a,b etc applies to above
    PreparedStatement pStmt = con.prepareStatement("select eid from lang where language like ?  ");
    for ( i = 0; i < s3.length; i++)
               if(i < s3.length - 1)
               a=a + s3[i] + ",";
               else
                                 a = a + s3[i]  ;
                           pStmt.setString(1, "%" + a + "%");thanks in advance

    Hi Benny,
    You can use the programme RQMELL10 or RQMELL11.
    Why do want a develop a new report. You can use qm10 or qm11. As far my understanding goes you want the cost to be included in the report. Cn you explain in details why you wan this report.
    we are also a using z- report for qm10, where we select a notification to do the modification the task.
    Regards,
    Satyajit

  • How to check 2 condition types (kschl)

    Hi,
    READ TABLE i_komv WITH KEY kposn = ekPo-ebelp kschl EQ 'JEC1' OR
                                                  KSCHL EQ 'JMO1'.
    how to write this above stmt? I have to check 2 condition types with a single read stmt?
    regards,
    Star Shankar

    I guess Kishan wants to refer as:
    READ TABLE i_komv WITH KEY kposn = ekPo-ebelp .
    if <b>i_komv-</b>kschl EQ 'JEC1' OR
    <b>i_komv-</b>KSCHL EQ 'JMO1'.
    ....<code>
    endif.
    As KSCHL is part of internal table I_KOMV.
    or
    READ TABLE i_komv WITH KEY kposn = ekPo-ebelp .
    check i_komv-kschl EQ 'JEC1' OR i_komv-KSCHL EQ 'JMO1'.
    ....<code>
    Kishan,
    Correct me if i am wrong.
    Regards
    Eswar

  • How to check the Conditional transition while submit the jsp as screenflo

    Hi All,
    I want to know that how to check the conditional transition, which result is used to decide the next Activity while submit the JSP as Screen Flows
    Edited by bpmvasu at 03/27/2007 11:14 PM

    Hi,
    Unlike BPM Object Presentations where the 'selectedButton' is automatically assigned to the predefined screenflow 'result' variable, when using JSP Persentations you need to do the mapping yourself (I don't think there is a way around this).
    Assuming you're using a JSP Presentation with a Fuego Object Interactive Call, click the 'Advanced' button at the bottom of the Main Task dialog.
    Select the 'showOut' argument set, add a new argument mapping. Select 'result' from the Screenflow's instance variables and map it to 'parameters["paramName"]'. Where paramName is the name of the HTML submit input element in your JSP.
    Hope this helps,
    Tim

  • Xpath checker v0.4.4 not installed with firefox v29.0.1

    Hi,
    Which version xpath checker use for Firefox v29.0.1

    Oh, I see
    Most of the times after the release of a new Firefox version, add-ons may become incompatible. It's up to the developer to address these issues and update it accordingly. You can contact the developer from their add-ons page.

  • Checking Multiple condition in Mapping

    Hi ,
    I need to check multiple OR condition in Message mapping should i need to write an U.D.F.
    For example:I has a field
    MATNR where the possible values are WE,WB,AR
    I need to check the condition Using OR condition
    MATNR  
                         EQUALS   
    WE
    MATNR              EQUALS
    WB
    MATNR             EQUALS
    BB

    use boolean function OR  & equal...
    MATNR     
                      ------- equals -------
    CONST(WE)                         |
                                                OR-----------------------
    MATNR                                  |                         |
                     ------- equals ----------                          OR -----------Output?
    CONST(WB)                       MATNR                   |
                                                       ----- equals -----------
                                            CONST(BB)
    Edited by: Anand on Nov 29, 2008 3:04 PM
    Edited by: Anand on Nov 29, 2008 3:06 PM

  • Checking the Condition

    Hi all,
    I need to execute the Interface if at all the condition is satisfied.what I have done is that I have checked the condition on the Root Node.But when the condition is not satisfied XI is throwing an error as the occurance on the target structure is 1.1.
    Can any one help me in resolving this issue...
    Regards
    Gopi

    Hi Gopal,
    Please see the following links
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    And exceptions can be handled by proxies also see below links
    http://help.sap.com/saphelp_nw04/helpdata/en/b1/ca6c3c32ac8754e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/25/a45c3cff8ca92be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/b1/ca6c3c32ac8754e10000000a114084/frameset.htmhttp://help.sap.com/saphelp_nw04/helpdata/en/56/b46c3c8bb3d73ee10000000a114084/frameset.htm
    Regards
    Chilla..

  • Authorization level check for Condition records.

    Hi,
    Hi Gurus,
    Pls help me out in the the following scenario.
    I want to activate Authorization level check for Condition records.
    For example, Product price PR00 is being entered by first level.
    After verification done by second level only, that condition record to be used for sales order processing.
    I have gone through Process status & Release Status. But once it is Blocked  i am not able to release it...
    Rgds,
    Amol

    Amol,
    Please confirm transaction code you are using in this scenario to release. I can help with this, just a little more detail.
    Thanks,
    Jay

  • How can i check the condition of my iphone 4 battery?

    Is there a way to check the condition of a battery in an iphone, to see the number of cycles and present capacity?

    there are some apps in the app store but it's all statistics
    a technology like batteries is soooo analogue the only thing the iphone have access to is
    the volt level the batt can currently provide

  • Where do i  increment counter and check the condition

    Hi experts,
    i worked on standard leave request demo  workflow templette, in that  revise(update), delete the leave request, in that manuually delete the request , that to be extended to when revise the leave request more than 3 times it automatically delete the leave request.i created one container element INDEX of type SYST-INDEX, where do i increment  the counter and where do i check the condition.
    thanks
    sitaram

    You can increment the counter using Container Operation type step in Workflow. You have also Condition step that you can use in Workflow.
    Thanks
    Arghadip

  • Smartform blank condition check problem

    Hi,
    i am printing the address detials in the secondary window.
    I have to suppress  name2 , street to suppress if they are blank.
    Currently i am prininting all the name 1 name2 name3 name4 in a single box.
    I tried to code in the editior like this  
    /:  IF & NAME2& NE &SPACE&
        & NAMEe2&
    /: ENDIF
    But still it is giving blank lines for name2 and street.
    Please suggest is there a any other way to check the IF the conditon.
    Thanks,
    Radhakrishna.

    Hi NIck,
    Thanks for the suggesion.
    Problem is i have 10 to 12 address fields. Currently i put all the fields in a single text node.
    Otherwise i need to create 12 text nodes for each and every field.
    Can't we restrict the blank values with the "IF" condition ?
    Thanks,
    Radhakrishna.

  • XPath Expression at Condition Editor in Receiver Determination

    Hi,
      I have a fixed length flat file coming in into which I have to look at the first line's 4th to 7th positions. Based on that if it is "1234" then I need to route it to the receiver else I will ignore in the receiver determination.
    Example input file -
    M 0123456789ABCDEFGHIJKL
    PR0123456789JIDFJDIFJD0244
    PA0123456789JFDJF9384384K
    We have module configuration where we are converting this to a line value pair something like this -
    <?xml version="1.0" encoding="utf-8"?>
    <ns:GMTLog xmlns:ns="http://sap.com/xi/GMStoreConnectivity">
        <Line>
            <Value>M 0123456789ABCDEFGHIJKL
            </Value>
         </Line>
          <Line>
            <Value>PR0123456789JIDFJDIFJD0244
            </Value>
          </Line>
           <Line>
            <Value>PA0123456789JFDJF9384384K
            </Value>
          </Line>
    </ns:GMTLog>
    When I tried to test my xpath in xpath tester it is working fine with the below xpath expressions -
    1. /ns:GMTLog/Line[Value][1] --> This returned the first record completely
    2. substring(/ns:GMTLog/Line[Value][1], 4, 4) --> This returned exactly what I am expecting "1234"
    But the above 2 are not working in condition editor.
    May I know the exact xpath expression to be used in this case to route the message to receiver when 4th to 7th position is "1234".
    Thanks a lot in advance.
    Regards,
    Sarat

    Good day. Can I please have some clarity on what I need to correct on my Receiver expression test.
    For the number of instances of the Summary segment, I am required to identify and test the Summary amount of SUMME if this is more than 5.00 (a currency amount). SUMME is a string so I thought I should convert this to a "number" value to test it.
    Also ensuring that SUMME is checked when the SUMID is equal to 011.
    Now I hope part of my solution below is correct, but the test of the field value is not being done.
    Please help.

Maybe you are looking for

  • Help! Why is the Pre's speaker ringing an incoming call when I have a headset on?

    Hi all, I just had the most embarrassing thing happen to me today. I was listening to some music on my Pre with the headset (that came with the Pre), and I received an incoming call. I heard it ring and answered the call, no problem what I thought! W

  • Cannot use GET_FILE_NAME in Form Server

    Hi, I'm writing webform using form60 running on application server (IAS9i ), and I have some problems. Is there anyone can help me ? 1. I cannot use built-in function GET_FILE_NAME on webform. Why and what function can I use instead ? 2. I'd like to

  • How to refresh ODI variable as part of a Knowledge Module?

    Hi, I want to know how can i refresh a ODI varaible in a knowledge module using oracle Technology. EX: i have created a variable called VAR_TEST in ODI. In one of the knowledge module steps, i want to refresh as mentioned below: begin select colname

  • Where's the portlet instance for each user?!? (delete a portlet)

    Hi! I'd like to know if there's a place (in WeblogicConsole or PortalAdministration or..) where i can see portlets available for a specific user. Why? Because, if a user permanently delete a portlet (With the delete button on the portlet title bar) b

  • Need Example screenshots : Purchase Order Approval 2/3 steps

    Hi,     I'm new to workflow. Need screen-shots of workflow customization for Purchase order approval with 1, 2 or 3 steps. Also if you could provide detail on the Container element used for purchase order regards, Chandeep Singh [email protected]