Get change document data

How do we get the change document data to be used in a workflow,
I have made entry in swec , there i associated the change object and my zbo delegeted from standard bo and specified the event as "on change". now i want to send a mail using this changed data.
I have two options either i use an exit fm to trigger the mail or use a workflow to trigger tha mail, but how do i use the changed data that i get from cdhdr, i need to specify these fields in tha mail body.
or if i choose to use an exit fm how to do it.
regards,
кu03B1ятu03B9к

Hello,
Create a new background method in the ZBO to get all the required details from CDHDR and CDPOS tables. Export them from the method as separate variables or as an internal table.
Create a task in the workflow to execute this method before the sendmail step. Once the data is exported from the method, it is going to be available in the workflow container and so you can use the same in the SENDMAIL step.
Hope this will help.
Thanks,
Samson

Similar Messages

  • UCCX GET XML Document data - how to force language path

    Hi,
    I saw that with UCCX, If the trigger have is language FR_CA, when I will use the Get XML Document Data (docTemp, etc,etc )
    It will get the value of the file located in the path of  FR_CA in the document management.
    Lets say, If the trigger language is FR_CA, Is there any way I can use the GET XML Document to open a file in the EN_CA in the document management ?
    How can I do that ?
    ps : The upload document have this function, we can force a language but I have no idea how to handle this with the Get XML Document.
    Thanks

    I will attach a screenshot of how you can specify the language folder that the Document lives in, regardless of the language of the Trigger or Contact.
    Notice that in the variable I am simply referencing the Document filename.  This will assume the language of the Contact.
    But also notice that within the step, I am saying that the Source document should be found in the L[en_CA] language folder. This does not change the language of the Contact; it simply tells the system to look in a different folder for the file.
    Of course, if your Document is not language specific, you could always put it in the Default language folder and then it will be available to all Contacts regardless of Language setting.
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • In CO11 Procedure to change document date

    Hi Experts,
                       I make production order confirmation through CO11 & GI / GR is done automatically.
    There is no option to change Document Date against GR/GI. Whenever i post entry in back date
    i can chage posting date but as there is no option of changing doc date i can't change.
    but my client wants to change that doc date along with posting date.
    plz suggest me regarding above.
    Harman

    Hi Ramesh..
    Ok..I agree with you..But there is a problem..When I make to send the PO to R/3 with the posting date in the past, In RZ20 there is a message '' the posting date is in the past'' this problem ocurring because the posting date in the past for PO. For ex: I create a PO in 04.08.08 and i try to send to R/3..but i can't send to R/3 becasue others problems ..the Po status change to ''Process Error'' . I fix the ''errors''  and i try to send the Po to R/3 again, I make this procedure in 05.08.08...but in purchase monitors show me up a message ' the posting date is in the past''
    How I can solve this? I need to send a PO with a past date to R/3. Can I change this configuration in R/3?
    Thanks

  • How to read service order change document data

    Hi Experts,plz help me,my requirement is to read the service order change document data,for that one i need to read from cdhdr and cdpos tables,so what i need to do.in input parameters for cdhdr table in place of ibjectclass and objectid what i need to pass.plz help me.

    Same for CDHDR and CDPOS.
    OBJECTCLAS = 'ORDER'
    OBJECTID = combination of client(AUFK-MANDT) + Order category(AUFK-AUTYP) + Order number (AUFK-AUFNR)
    for example
    OBJECTCLAS = 'ORDER'
    OBJECTID = '10030004001108788'
    Chaiphon

  • How to check empty return from Get XML Document Data?

    If Get XML Document Data doesn't return a result, how do you test it? String.isEmpty() doesn't do the trick, it still throws the exception "java.lang.NullPointerException". I can't seem to be able to match that up to a cisco exception with a "On Exception Goto" step (which I put right before the XML Document Data step). Any clues anyone?

    Hi,
    Try this:
    variable=Get XML Document Data ()
    if(variable == null) then
         true
         false
    Gabriel.

  • Cisco UCCX 10.6 Get XML Document Data XPath count() function

    Hi
    I'd like to retrieve the number of XML nodes in a document to make a script more efficient.
    e.g. with this XML, I'd like to know how many <message> nodes there are:
    <messages>
    <message>contentA</message>
    <message>contentA</message>
    <message>contentA</message>
    </messages>
    I've tried iNodeCount = Get XML Document Data (inputXMLfile, "count(//messages/message)")
    If I try this in an XPath expression tester then I get the result I'm expecting - an integer of 3. However, in UCCX this produces the error "Can not convert #NUMBER to a NodeList!"... What am I doing wrong?
    Thanks

    Hi, 
    you may want to use a Set or a Do step to execute Java code. 
    First, reference the XML file (within the repository) by calling DOC[myFile.xml] and of course, assigning this value to a Document type variable, e.g.: 
    Set myDocument = DOC[myFile.xml]
    Then add a Do step that actually does the XPath part of the job. 
    There's a nice step by step explanation of it here: http://viralpatel.net/blogs/java-xml-xpath-tutorial-parse-xml/
    Remember, you can get the Inputstream object of the myDocument variable using the getInputStream() method on it.
    G.

  • UCCX XPath on Get XML Document Data Step always returns null

    Hello,
    Can someone tell whats wrong with my XPath, because it always returns null. I have tried different variations and nothing. I'm using UCCX 7.0
    XML
    <?xml version="1.0" encoding="utf-8" ?>
    <GetManagersResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.labdomain.com/">
      <ClaimManagersList>
        <X_CLAIM_MANAGER>
          <ClaimManagerUserName>test</ClaimManagerUserName>
        </X_CLAIM_MANAGER>
      </ClaimManagersList>
    </GetManagersResult>
    XPATH
    "/descendant::GetManagersResult/child::ClaimManagersList/child::X_CLAIM_MANAGER/child::ClaimManagerUserName"
    During debug, this is the value of the xml document when it reaches the Get XML Document Data step:
    TEXT[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<GetManagersResult xmlns=\"http://www.labdomain.com/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n  <ClaimManagersList>\r\n    <X_CLAIM_MANAGER>\r\n      <ClaimManagerUserName>test</ClaimManagerUserName>\r\n    </X_CLAIM_MANAGER>\r\n  </ClaimManagersList>\r\n</GetManagersResult>]

    It's your XML namespace in the root element.
    First off, I have never seen the CRS Editor play nice when XML namespaces are involved.
    Secondly, with your namespace in place, not even a generic xpath expression tester can find your data.  See attachements.
    I think that if you find a way to either: not send, or remove the namespace from your document, your xpath expression will work.
    With Namespaces
    Without Namespaces

  • Xpath and Get XML Document Data

    Good Morning,
    I have just recently gotten involved in a project that requires communicating with some web services (axis2). We have existing scripts that handle this already, but they were built when we weren't on axis2 so now the XML output from the web service call is slightly different and i am no longer able to use the same xpath statement in the Get XML Document Data step.
    I am receiving either null values or a prefix namespace error. I am new to xpath and have been reading as best i can from http://www.w3schools.com/xpath/ to try and understand how to write my statements to pull out the data i want correctly.
    I have read that sometimes the editor has problems if the XML contains namespace declarations, etc.
    Below is an example XML output where I'd like to be able to read the value in the ax211:success. My xpath gets prefix namespace errors as it doesn't recognize ax211.
    Xpath: /descendant::ns:validateCertificationResponse/child::ns:return/child::ax211:success
    Perhaps my xpath statement is just incorrect and wouldn't retrieve what i expect it to....
    Any advice is appreciated.
    Thanks,
    Kevin

    Hi,
    well, it appears that text() is automatically appended to the XPath query for some reason in UCCX, this is why you actually see the text node within the ax211:success element. This //*[local-name()="success"] select the whole node, not its first child (which is actually the first element, which also happens to be a text).
    Anyway,
    // - anywhere
    * - any node
    And within this "everything" you actually search with the condition within the angular brackets.
    G.

  • Get XML Document Data Issue

    After tweak bunch of times the argument inside "Get XML Document Data" I´m still not able to obtain a no null value. Could someone help me to find out what i´m doing wrong?
    <?xml version="1.0" encoding="UTF-8"?>
    <Holidays>
      <Holiday>Date=1/2/2013</Holiday>
      <Holiday>Date=1/2/2013</Holiday>
      <Holiday>Date=8/4/2013</Holiday>
      <Holiday>Date=9/4/2013</Holiday>
      <Holiday>Date=1/5/2013</Holiday>
      <Holiday>Date=17/5/2013</Holiday>
      <Holiday>Date=27/5/2013</Holiday>
      <Holiday>Date=6/6/2013</Holiday>
      <Holiday>Date=23/6/2013</Holiday>
      <Holiday>Date=6/4/2013</Holiday>
      <Holiday>Date=25/12/2013</Holiday>
      <Holiday>Date=26/12/2013</Holiday>
    </Holidays>
    Xpath:
    "/descendant::Holidays/child::Holiday[attribute::symbol='DateString']/child::LAST"
    thank in advance.

    Hi,
    The script first obtain today´s date in this format 1/2/2013 and stores in DateString variable. Then create a XML document based on this:
    <?xml version="1.0" encoding="UTF-8"?>
      Date=1/2/2013
      Date=1/2/2013
      Date=8/4/2013
      Date=9/4/2013
      Date=1/5/2013
      Date=17/5/2013
      Date=27/5/2013
      Date=6/6/2013
      Date=23/6/2013
      Date=6/4/2013
      Date=25/12/2013
      Date=26/12/2013
    that i´ve upload to uccx. it uses get XML Document Data function and stores the result in DataResult variable.
    if
    DataResult == null meets True it makes a call redirect to an extension
    if false that means "1/2/2013" was found inside the XML archive and sends to another extension.
    The problem i see through reactive debug is that always return null,
    In brief: I do not know how to tell using the function "find 1/2/2013 inside Holidays.xml document"
    this is what I putted inside get XML Document Data function:
    "/descendant::Holidays/child::Holiday[attribute::symbol='DateString']/child::LAST"

  • How to change Document Date on a Old Purchase Order

    We are having issues with about 57 purchase orders document date set at 12/31/2999 that is causing issues implementing Business Intelligence.  Is there a program that I can use to change these dates back to 12/31/2019 or something.  Due to calendar year 2999 not being setup BW can not bring this information into their queue.  I hate to do this via debug.  Are there any options.  Thank you for your help.
    Chandra

    According to SAP, since purchase order is a legal document they do not support the process of changing document number.  They suggested I do the change with debug and replace at my own risk.  In ME22N go to debug and type MEPO_TOPLINE-BEDAT.  The values for this field show up as 29991231 that should be changed to 20191231 and press F8, then save the purchase order.

  • FB1S - Change Document Date

    Hello ABAP experts
    I've been asked by our client to make a modification when posting open items through txn FB1S (or in their case F-03).  When posting a document through this txn, the document date is set as equal to the posting date.  The users want to change this so that the document date equals the document date of the earliest open item to be posted.  I'm on an ERP Central Component 5.0, Basis version 640 and SP15 I think.
    I've already written up a piece of code that I think should work, my problem right now is finding where exactly I can place it.  I tried first in customer exit SAPLF051, but the exit wasn't called (I set up breakpoints to check).  I'm currently trying in a Z implementation of BADi FI_HEADER_SUB_1300, but I have my doubts if it will work because the documentation does not mention txn FB1S and says the BADi is for changing the posting date, not the document date.
    What other places exist where I might put the code in, such as substitutions, customer exits, etc?  Are those better places than the BADi I'm currently trying?  Thanks for your help in advance.
    Regards,
    Juan Ramos

    Hello
    Well, I was trying the substitution, but afterwards the user decided that they needed a completely new transaction to satisfy their business requirement.  I'm closing this thread so as to not leave it open.  Thanks again for the help, your suggestions will be something to keep in mind if another requirement like this comes up later.
    Regards,
    Juan Ramos

  • Changing document date and posting date by SE16N

    Hi All,
    an user has posted some customer documents (with tax codes) with wrong document date and posting date.
    I have to modify these data by se16n.
    In which tables I have to fill in?
    Thanks
    Gandalf

    Hi,
    It is not advisable to change the document date and posting date. Instead, try to reverse the document and post the correct one.
    Regards,
    Jigar

  • Get change documents log

    Hi Experts,
    I need to get the same log that we get in transaction CRMD_ORDER when we go to 'Extras->Change Documents'.
    This log didn't seemed to be quite difficult to find but I can't find a way to get it by code.
    I have searched for many BAPIs and I have also searched the forum. There are many similar questions but I don't find an answer for this, so I'm asking you.
    Can anybody help me with this?
    Thanks in advance,
    I won't forget the reward points.

    Well, this has been a little hell.
    I tried the CHANGEDOCUMENT functions before and it seemed I couldn't use those. I have been debugging for a long while and finally I have found this function:
    CRM_CDORDER_DISPLAY
    It's exactly the function I was looking for, it's the one the system uses to display the log. The only problem was that you have to mark the 'I_NO_DIALOGUE' flag to avoid the dialog window where you get the log and that you have to know which is your object type.
    No problem with that so, question answered. I am writing this for people to know the solution.
    Thanks anyhow to everyone who has replied.

  • Get XML Document Data step always returns NULL

    Hi All,
    I was hoping someone might be able to help with this.
    I'm writing a holiday script, it uses XML to check whether the date is a holiday or halfday. XML below
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Holidays>
      <Holiday Date="1/1/2012">Holiday</Holiday>
      <Holiday Date="3/1/2012">Halfday</Holiday>
      <Holiday Date="6/1/2012">Holiday</Holiday>
      <Holiday Date="5/4/2012">Halfday</Holiday>
      <Holiday Date="6/4/2012">Holiday</Holiday>
      <Holiday Date="8/4/2012">Holiday</Holiday>
      <Holiday Date="9/4/2012">Holiday</Holiday>
      <Holiday Date="30/4/2012">Halfday</Holiday>
      <Holiday Date="1/5/2012">Holiday</Holiday>
      <Holiday Date="17/5/2012">Holiday</Holiday>
      <Holiday Date="27/5/2012">Holiday</Holiday>
      <Holiday Date="6/6/2012">Holiday</Holiday>
      <Holiday Date="23/6/2012">Holiday</Holiday>
      <Holiday Date="6/4/2012">Holiday</Holiday>
      <Holiday Date="3/11/2012">Halfday</Holiday>
      <Holiday Date="25/12/2012">Holiday</Holiday>
      <Holiday Date="26/12/2012">Holiday</Holiday>
      <Holiday Date="19/10/2012">Halfday</Holiday>
    </Holidays>
    However when I debug the script the result of the Get XML Document step always returns null.
    Xpath work great in notepad++
    My code is attached, anyone with any pointers?
    Regards,
    Andy

    Your XPATH of:
    "/Holidays/Holiday[@Date='+DateString+']"
    Needs to be:
    "/Holidays/Holiday[@Date='"+DateString+"']"
    Good luck and happy scripting!
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • How to get change documents for Equipment Master Records of a document?

    Hi experts,
    I need a report for changes of Equipment Master for a document.
    There is a way to reach this for every document : Environement - > Display Changes. Then I can get a report for "Changes to Object Links". But this can only show me that which equipments are linked to this document. What I want to search is which documents are linked to the equipment. I want to search with equipment number and get the history of changes for documents, Which documents are attached to this equipments and when did these documents attach to the equipment.
    Can I get this report with standard SAP queries / reports? Where can I get this informations? From which tables?
    PS: If i run a search with Equipment Master Data form CV04N, I can see which documents are linked to this equipment but I can't see when they are attached.
    Thanks in advance.

    .. but I can't see when they are attached...
    In CV04n,in Object Links tab,provide your search input criteria.Once the results are displayed,navigate to Current Layout button.Herein,move the 'Output Date' value to Displayed Column list.
    Once done,you should be able to view the date on which the DIR with associated objects(Eg: Equipment Master) was created.Hope this helps!!
    Regards,
    Pradeepkumar Haragoldavar

Maybe you are looking for