Sales document: best way to validate changes.

Hi Gurus.
These are the steps of the process:
Sales Document data will be exported to an external platform and in the platform changes will be done to this data- such as material, quantity, etc.
Once the changes are done on the external platform, the data is sent back to the ERP with the goal of updating the Sales Document with the changes made in step 1.
BUT, before being able to update the Sales Document, I need to make sure that there were no changes (modifications) made to the document as step 1 took place. In other words, make sure that nobody else changed the Document as I was modifying it in the external platform.
I can think of two possibilities:
Consult tables CDHDR and CDPOS to see if there are entries with date and time that indicate changes as I was modifying the data in the external platform, or
At the moment of exporting from ERP to the external platform (step 1), save in a custom table (Z table) an "image" or "picture" of the document so I can make comparisons between the document at the moment of exporting and the document at the moment of updating, see if there are differences and if not, then update it.
I hope I was able to explain myself.
Please let me know what do you think and also if there is another solution for this. I would really appreciate it.
Thanks!
Best regards.

Hi Guillermo,
I do believe you are correct with your options.
Thinking of helping you with this point, I believe a third option would be instead of extracting the data, create an RFC to capture data in real time, using up the lock in the sales document and following this external system already make the change data again.
I hope it helped you.
Best Regards,
Rafael Sá

Similar Messages

  • Best way to validate and xml file against a schema?

    As the subject states, I want to validate my xml file against a given schema....
    Currently my code looks like this:
    InputSource ipSource = new InputSource(new ByteArrayInputStream(bytesData)); // my xml file
    DOMParser parser = new DOMParser();
    parser.parse(ipSource);
    Document doc = parser.getDocument();
    I see that there is a setFeature method on DomParser.... but from what I read that doesnt support
    xml schema's, just DTD's. So what is the best way to validate with schema's?
    Any help would be appreciated

    This is the other way I tried doing it.... the problem with this way is I am building my xml file through DOM
    operations... and I haven't figured out how to add the schema line to the xml file through DOM manipulations.
    Has anyone done this bofore?
    try
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         factory.setNamespaceAware(false);
         factory.setValidating(true);
         InputSource ipSource = new InputSource(new ByteArrayInputStream(bytesData));
         DocumentBuilder builder = factory.newDocumentBuilder();
         doc      = builder.parse(ipSource);
         return doc;
    catch(Throwable t)
         System.out.println("parse error: " +t);
    return doc;
    }

  • What is the best way to validate?

    This image is a template Im using to create an expense form.
    http://img160.imageshack.us/img160/963/form25vp.jpg
    I have a specials item section which is just totaled from all the Special Items fields.
    Was able to create a totals script to but could not get it to leave the field blank. Thanks to Justin Klei using this script it totals without a problem.
    This has been placed it the Calculate section of the Total field.
    var totalval = form1.costs.spei1.rawValue + form1.costs.spei2.rawValue;
    if (totalval == 0 || totalval == null || totalval == "")
    this.rawValue = "";
    else
    this.rawValue = totalval;
    If the user types $12.00 into the Special Items 1 field they then are able to transfer this to the main table by clicking on any of the Special column fields. In each field Ive got the following script that will allow the user to click on any of the Special column fields and only apply the total once. If the user clicks on the Tuesday field and then decides to move the total to Sunday all they have to do is click on the Sunday field.
    This have been placed in the mouse down event (will create a transparent button later).
    if (this.rawValue)
    sunspe.rawValue = ""
    } else {
    sunspe.rawValue = spetot.rawValue
    monspe.rawValue = ""
    tuespe.rawValue = ""
    wedspe.rawValue = ""
    thuspe.rawValue = ""
    frispe.rawValue = ""
    satspe.rawValue = ""
    Ive just reused the script for each field and moved the spetot.rawValue to the appropriate day.
    Here is my question.
    If the user types a figure in Special Items 1 and then applies that figure to the Special column and then decides to add another figure to Special Items 2, what is the best what to validate the Special column?
    Would having a message pop up be the best?
    This has been placed in the Validate section of the Total field.
    if (spetot.rawValue != sunc1.rawValue)
    app.alert("There has been a change to the Special Item Total \n Please update the Special column.");
    Is it possible for the form to automatically update the figure if it has been applied to the Special column?
    The problem I have with the message currently is obviously it pops up every time you add a figure into the Special Items. Is there a way to compare only if there is a figure in the field?
    Any suggestions would be appricated.

    Hi,
    it was the same i built my small proj with the user authentication with SQL server and JSP.
    u should first create a table with 2 fields "user" and "pass"
    in ur jsp the name of the textboxes for the user and pass should b the same .
    use some other name to retrive the data form the table say "user1"and "pass1".
    u need 2 write some connections say "
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("user", "Pass");
    i'll post u the entire code soon.
    thankx.

  • Best way to validate multiple entity objects with each other

    I have the following scenario.
    There is one entity object with the following fields.
    Name
    Start Date
    End Date
    My requirement is to validate the dates in the entity do not overlap.
    What is the best way to achieve the same.
    This validation should be fired when we commit, since the user should be allowed to change the dates freely between entities.(Validation should not kick off when the current row changes)
    Thanks

    For this to achieve there is a concept called Effective Dated Entity Objects in Oracle ADF.
    Official ADF Documentation: http://docs.oracle.com/cd/E37975_01/web.111240/e16182/bcentities.htm#ADFFD20110
    Some blogs to help you
    http://one-size-doesnt-fit-all.blogspot.co.uk/2008/11/jdev11g-new-feature-effective-dated.html
    http://adfblogs.blogspot.co.uk/2011/09/understanding-effective-dated-entities.html
    Regards,
    Peddi.

  • Best way to track changes

    I have a table that has some project info in it. what is the best way to track when changes are made ?
    Here is an example.
    create table testing1 (
    projectid varchar2(50),
    value1 varchar2(50),
    value_date date
    insert into testing1 (projectid,value1)values ('1a2a3','12345');
    insert into testing1 (projectid,value1)values ('1a2a4','12645');
    insert into testing1 (projectid,value1)values ('1a2a5','17345');
    --select * from testing1every day this table is dropped and recreated via a stored procedure I have running.
    I would like to create a new table and procedure that does the below.
    If there is a change in value1 i would like a new insert to be done with the projectid, the new value1, and the sysdate in the date column. if there is no change, there is no insert.
    any help is appreciated.
    im not looking for someone to write everything for me (although that would be amazing), just looking for some ideas on the best way to do it.thanks again.

    Jay wrote:
    I have a table that has some project info in it. what is the best way to track when changes are made ?
    Here is an example.
    create table testing1 (
    projectid varchar2(50),
    value1 varchar2(50),
    value_date date
    insert into testing1 (projectid,value1)values ('1a2a3','12345');
    insert into testing1 (projectid,value1)values ('1a2a4','12645');
    insert into testing1 (projectid,value1)values ('1a2a5','17345');
    --select * from testing1every day this table is dropped and recreated via a stored procedure I have running.
    I would like to create a new table and procedure that does the below.
    If there is a change in value1 post SQL & results that properly identify when above is true.
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • Best way to push change data from sql server to windows/web application

    i apologized that i do not know should i ask this question in this forum or not.
    i have win apps which will load all data initially from db and display through grid but from the next time when any data will change in db or any data will be inserted newly in db then only change or newly inserted data need to be pushed from db side to
    my win apps. now only sql dependency class is coming to my mind but there is a problem regarding sql dependency class that it notify client but do not say which data is updated or inserted.
    so i am looking for best guidance and easy way to achieve my task. what will be the best way to push data from sql server to win or web client.
    there is two issue
    1) how to determine data change or data insert. i guess that can be handle by trigger
    2) next tough part is how very easily push those data from sql server end to win apps end.
    so looking for expert guide. thanks

    Hello,
    Yes, you can create DML trigger on INSERT and UPDATE to get the changed data into a temp table. And then query the temp table from application.
    If you are use SQL Server 2008 or later version, you can also try to use
    Change data capture, which
    can track insert, update, and delete activity that is applied to a SQL Server table and store the changed values on the Change Table.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Best way to validate a name field... (PHP)

    Hi,
    I'm trying to improve my contact form and as it is now I do
    the
    following with the first last name input field....
    I limit the input (40 characters)
    I only allow one space between first and lastname
    I strip and add slashes
    I'm not sure the "one space" thing is good. What are your
    opinions on
    this? How do you do it?
    Is this the best way to do it or is there something very
    clever I missed?
    Kim
    http://www.geekministry.com

    .oO(Kim)
    >I'm trying to improve my contact form and as it is now I
    do the
    >following with the first last name input field....
    >
    >I limit the input (40 characters)
    >I only allow one space between first and lastname
    >I strip and add slashes
    >
    >I'm not sure the "one space" thing is good. What are your
    opinions on
    >this? How do you do it?
    Validate, but don't over-validate. There are some things you
    can fix
    silently, for example multiple spaces - just replace them
    with a single
    one and move on. Length limit is OK if you want to insert the
    data into
    a database.
    Slashes - you should remove them if magic quotes are enabled
    (check with
    get_magic_quotes_gpc()) and then use an appropriate escaping
    function if
    necessary, for example mysql_real_escape_string(),
    htmlspecialchars() or
    whatever. It just depends on what you want to do with the
    data.
    Micha

  • Best way to capture changes on VBPA table.

    Hi:
    Which is the best way to have an extractor based on VBPA table, but including the "changed on" date to have the appropiate delta in BI?

    Hi,
    When you check :SE11 is that VBPA is a child table to VBUK and VBUK is having Last Changed date.
    May be you can create a view between these 2 tables by selecting all the columns from VBPA and Last Changed date from VBUK.Here my assumption is that there should be a transaction which updates both table together and whenever any field is getting changed in the VBPA the Last Changed Date in VBUK is also getting updated.
    If the above is true and tested based on the view you can achieve the delta.
    Hope this helps,
    Regards
    CSM Reddy

  • What is the best way to get/change data in R/3 from external interface?

    Hi SAP gurus,
    I have a problem to know what is the best technology to access and maintenance all SAP functionality and data too in R/3 systems.
    Anyone know if connectors (.NET or JCO) are the only solution to manipulate all SAP system data or exist other way?
    One thing more, what is the best connector, with more functionality?
    E.g. The screen painter was made in C++ and is executed by user event in R/3 system, so would like to know if it's exist any way to do the same but replace the screen painter to another custom application?
    Regards

    Hello Vitor
    Not all functions and data are externally accessible. Only those business objects (e.g. like sales order, customer, material) for which BAPIs are available (transaction BAPI ) can be accessed via RFC.
    Regards,
        Uwe

  • Best Way to Set Change Bars on Right Margin

    I'm an InDesign newbie and need to set change bars on the right margin. I have a two-part question.
    First: from looking around at relevant blogs/tutorials that I've found, I've come to the conclusion that my best approach is to:
    1. Creat an (rectangle) object
    2. Draw a line with the desired change bar properties
    3. Cut and paste the line into the object
    4. Cut the object
    5. Use Object > Anchored Object > Insert to set the size and location of the object
         5a. X = aligned to page margin at negative width of containing frame (e.g., -45p0)
         5b. Y = alingned at baseline
    Does this sound right? Are there alternative/better ways?
    Second: I need a way to automate the above so that it can be applied to many instances of change. I have character style that marks every change which comes into InDesign from InCopy. From what I've seen, it doesn't look like it will be too hard to write a (javascript) script that does the above for every occurrence of the character style, thus automatically inserting my change bar/anchored object in every location where it's needed.
    Does this sound right? Any suggestions or references to existing scripts that do something like this?
    Thanks

    I think they need a visual in the layout - not just Story Mode.
    There's this script here
    http://www.kerntiff.co.uk/free-stuff/editmarksviewer
    http://www.kerntiff.co.uk/products-4-indesign/editmarks
    http://www.kerntiff.co.uk/products-4-indesign/editmarks/editmarks-navigator

  • Collecting Signatures on a Document - Best Way to Implement?

    I need some help designing solution in SharePoint for a (currently paper) request process:
    Current Paper-method IT Equipment Request
    Requestor downloads blank form
    Requestor Prints and fills out the blank form
    Requestor has supervisor sign the form
    Requestor delivers form to person who places orders for equipment
    Here is what I have been able to come up with so far:
    User downloads the "blank" Docx form from "IT Request Forms" document library
    User fills out the form and saves the "filled out" docx to the "IT Equipment Requests" document library
    User manually starts (or new document triggers) the Collect Signatures workflow and types in the supervisor name on the start workflow form.
    supervisor gets email to sign and opens the task, signs the document.
    The form is now saved in the IT Equipment Requests document library for future reference
    IT person who makes equipment orders gets a confirmation with a link to the signed request
    One problem I see is that the Requestor would have to name their "filled out" document uniquely when saving to the IT Equipment Requests. Seems like that could be an issue...
    Is there a better simpler way to do this using workflows? I am open to suggestions :)
    Thanks in advance

    If you use a third party signing control then you would not have to name the form uniquely because the control captures the signature and shows shows it on the form. The signature is not dependent on the form name. In other words you don't have to give
    unique name to the form. Adobe Acrobat XI Pro lets you sign documents in SharePoint. Each approver can add their signature. There are other third party products also available for this. OR the easiest solution is to include Signature field on the form and
    ask users to simply type their name in the field and automatically record date and time (and show with signature) when they add their name and submit.
    Saifullah Shafiq
    Blog:  
    Twitter:   LinkedIn:
      Facebook:
      Google+:
      Latest Book:
    A Practical Guide to SharePoint 2013

  • Best way to see changes done to jsps/servlets/ejb/xmls in EAR

    I am using iPlanet app server with iPlanet web server. Everytime i make any change jsp/servlet/ejb i have to redeploy whole ear application again. This takes a long time. Even when i use the "iasdeploy redployapp " command to deploy, it takes same amount of time as it takes for the orignal deployment.
    So Is there any way to decrease the amount of the time it needs for me to re-deploy the applications when slight changes are made to application. I would really be thankful to anybody who can help me.

    Hi,
    I am facing this problem with a simple EAR file also. It does not contain any EJBs.
    It has just JSPs, XML, and JAVA Classes.
    The file size is about 481Kb.
    Earlier this used to get deployed using the "iasdeploy" command within 1 minute.
    Now it is taking more than 5 minutes to deploy the EAR file.
    I am using the following command :
    iasdeploy deployapp -verbose XYZ.ear
    The same holds true for the "iasdeploy removeapp -verbose XYZ.ear" also.
    Please help.
    Thanks,
    Samar

  • Best Way to Validate a Path

    I am writing a cross platform app that contains file path references. I would like to validate these, but since they may not exist, I can't just use a File object.
    Has anyone had experience with this problem? I wanted to see if there is a better way than coming up with a regex for each platform, although, if someone has done this using regex, I would love to see them[the regexs];)

    I want to check for a valid path (ie no characters such as ^&*(), etc) whether or not it exists. For example, if I do a File.exists() on the following path: c:\window$%\stuf# - I will get back false. If I do the same thing on c:\windows\whatever, I still get back false, but it is a valid output path for my tool.

  • Best way to permanently change permissions on stuff in /sys?

    I know this is generally considered a terrible idea... Nonetheless, is there a "correct" way to do it?
    I'm aware I could put something like
    chown root:power /sys/power/state
    chmod g+rw /sys/power/state
    in rc.local, but that seems terribly crude. Even for doing something that's... Well, crude.

    I think they need a visual in the layout - not just Story Mode.
    There's this script here
    http://www.kerntiff.co.uk/free-stuff/editmarksviewer
    http://www.kerntiff.co.uk/products-4-indesign/editmarks
    http://www.kerntiff.co.uk/products-4-indesign/editmarks/editmarks-navigator

  • Best way to validate currency field based on two picklists

    Hi,
    Im having a great deal of trouble creating validation for the following statement:
    If (Task type =”Call” or “Callback”) and (‘Outcome Category’ is “In Progress” or “Tried and Failed to Save” or “Saved”) then (‘Total Value of Policy’ must be > 0)
    Both task type and outcome category are picklist items.
    What is the easiest way for me to do this? Ive created something horribly complex which only works when I first create the record (possibly because of the use of FieldValue rather than stored values). Ive seen people use the NOT function before to do this - could this be an option?! Ive had no luck with anything Ive tried so far.
    My current expression is as follows:
    (FieldValue('<cTotal_Value_of_Policy_ITAG>') > 0
    AND FieldValue('<Type>') <> LookupValue("TODO_TYPE", "Investigation") - - Because call or callback are the only other options in the list.
    AND (FieldValue('<IndexedPick2>') <> LookupValue("OCC_INDEX_CUST_LOV_EVT_ACT_2", "In progress")
    OR FieldValue('<IndexedPick2>') <> LookupValue("OCC_INDEX_CUST_LOV_EVT_ACT_2", "Tried & failed to save")
    OR FieldValue('<IndexedPick2>') <> LookupValue("OCC_INDEX_CUST_LOV_EVT_ACT_2", "Saved")))
    OR FieldValue('<Type>') = LookupValue("TODO_TYPE", "Investigation")
    OR (FieldValue('<Type>') = LookupValue("TODO_TYPE", "Call")
    AND (FieldValue('<IndexedPick2>') <> LookupValue("OCC_INDEX_CUST_LOV_EVT_ACT_2", "In progress")
    AND FieldValue('<IndexedPick2>') <> LookupValue("OCC_INDEX_CUST_LOV_EVT_ACT_2", "Tried & failed to save")
    AND FieldValue('<IndexedPick2>') <> LookupValue("OCC_INDEX_CUST_LOV_EVT_ACT_2", "Saved")))
    Sorry for including this confusing chunk of code, but I think it explains how more complex i have made this than i probably need to!!
    Any help would be greatly appreciated as this is quite an urgent issue..
    Many Thanks
    AJ

    Anon,
    In your edit form, create two hidden items p10_ha, p10_hb (for e.g.) Make the default values for these items as values of p10_item_a and p10_item_b respectively. So when you are processing the update, you have old values in hidden items and new values in p10_item_a and b.
    Now create 'after submit' pl/sql computation and put similar code
    if p10_ha !=1 and p10_hb !=1 then
        if p10_item_a = 1 and p10_item_b = 1 then
        -- your business logic here   
       :p_date_item := sysdate;
       end if;
    end if;Hope it helps
    Cheers
    Hari
    Edited by: Hari_639 on Oct 27, 2009 9:21 AM

Maybe you are looking for

  • DBIF_RSQL_INVALID_CURSOR error when using PA20/PA30 transactions

    Has anyone encountered ABAP error DBIF_RSQL_INVALID_CURSOR while trying to use transaction PA20 or PA30. We started seeing this error this morning and we currently cannot figured why. Please see the information below and from ST22 and SM21. <b>---- /

  • How do I open a WORD document which is password protected?

    I need to open a word document, which is password protected.  I can't even get to a page that'll allow me to put in the password!!!  Can anyone advise how I can do this? Thanks.

  • Excise duty to be inventoried

    Hi Gurus, I have a scenario where excises will be inventoried i.e. will be taken on material cost.At the same time , VAT is deductible. So during MIGO the following are the postings: Stock A/c Dr. ( Basic Price + Excises) Gr/ir clearing A/c Dr. by th

  • Input file problem

    i use jdeveloper 10.1.3.4.0 i use input file to upload employees images to server i made the configuration in web.xml file it works good but with some images are damaged on server with the same size as on client but daamged !!!!!!!!!!!!!!!!! here is

  • Winamp toolbar's installed but not showing up in Firefox

    I just installed Winamp on my Laptop. When I opened Firefox, cause I had used Chrome to download, it gave me the option to add the Winamp toolbar but I goofed and hit cancel, or decline, by accident and now I can't get it to come up. I can't find any