How to aggregate the PO history in batch

How to aggregate the PO history in batch? thanks !

I know this transaction,but it can't select all items to aggregate,i must select one item and aggregate, so it is not very convenient,so i write a program to batch process it
Thansk!

Similar Messages

  • How to download the log history for batch session?

    Anyone know how to download the log history from SM35?

    Hi ONG ,
    first u have to get the Q.ID , then u can use there Fms to get the Log of Sessions.
    CALL FUNCTION 'RSTS_OPEN_RLC'
      EXPORTING
        NAME         = LOG_NAME
        CLIENT       = LOG_CLIENT
        AUTHORITY    = 'BATCH'
        PROM         = 'I'
        RECTYP       = 'VNL    '
      EXCEPTIONS
        FB_CALL_HANDLE =  4
        FB_ERROR       =  8
        FB_RSTS_NOCONV = 12
        FB_RSTS_OTHER  = 16
        NO_OBJECT      = 20
        OTHERS         = 24.
    CALL FUNCTION 'RSTS_READ'
      TABLES
        DATATAB  = LOG_TABLE
      EXCEPTIONS
        FB_CALL_HANDLE =  4
        FB_ERROR       =  8
        FB_RSTS_NOCONV = 12
        FB_RSTS_OTHER  = 16
        OTHERS         = 16.
    CALL FUNCTION 'RSTS_CLOSE'
      EXCEPTIONS
        OTHERS = 4.
    <b>check the same steps how sap doing in SM35P</b>
    Regards
    Prabhu
    Message was edited by: Prabhu Peram

  • How to Clean the Command History in SAP Logon Screen

    Hi
    Can any one let me know on how to clean the Command History (Where we generally enter the T Codes) in SAP Logon Screen.
    I dont want to List/see all the Previous command Hits in drop down box.
    Thanks
    Dan

    Hi Eric and Markus,
    We found the Solution and off course we did good R & D, Finally I am able to implement the fix to Clear the Command Line History.
    All I did is I Disabled the Permissions for Code Folder (Right Click > Permissions > Deny) in Regedit.
    Thats It, The Commands stopped storing in the History.
    Thank you Erick and Markus.
    Rg
    Dan

  • How to have the Chat history without the Exchange server?

    How to have the Chat history without the Exchange server?

    Hi,
    You can try Archiving server. Archiving is the storing of IM and conferencing data in an SQL backend database. This data is not instantly readable / searchable. The Lync users are not able to read it directly. The admin can export the data using Lync powershell
    and then convert it into a readable format.
    Kent Huang
    TechNet Community Support

  • How to aggregate the measue when click '∑' ?

    Hi Experts,
    How to aggregate the measue when click '∑' ?
    For example:
    In table view.
    A-----------A1-----------2
    A-----------A2-----------3
    ATotal-------------------5
    B-----------B1-----------2
    B-----------B2-----------3
    BTotal-------------------5
    GrTotal------------------10(It is not my expected result.)
    However, GrTotal is not my expect result, the correct result is 5 , not 10. How to implement my requrement? Thanks.

    Hi,
    If you want the result to be the average of your sub-totals (?) then I think the only way you can do is is by using a union query to give the 'illusion' of a grand-total.
    Using this mechanism you can create a grand-total using whatever logic you wish, you then just combine the result and with cunning use of headings / formatting make it look exactly like a standard functionality total.
    Helpful?
    regards,
    Robert.

  • How to delete the payroll result by batch? have any program to do this?

    Hi,
    how to delete the payroll result by batch? have any program to do this?

    With standard payroll deletion (PU01), SAP  will not allow payroll results to be deleted if it already reaches certain steps of payroll process (e.g. Pre-DME, DME); instead, you would have to do payroll a void or payroll reversal. This utility doens't check for that, and only delete payroll results based on the criteria given. This therefore could cause inconsistency in production if your payroll process already surpasses certain steps.
    Rgds.

  • How to remove the job history on P1102W

    Hi, may i know how to clear the job history on the e Print? i'm using P110w. Besides, is there any max space to keep the job history?

    Hello ccyee425,
    The is no way unfortunatly To clear your Job history.
    but it does after a month or so, Clear out and only show recent jobs and so on
    I am an HP employee.
    __ if this Solution has helped Please Mark as Resolved and feel free to Provide a Kudos__

  • How to get the sms history for iphone 4S

    Hello,
    I would like some help to find out how to ressurect the message history for messages that I have received on my phone and never backed up anywhere. The messages have dissapeared by themselves, without having me deleting them or changing any default settings. Please help me to get the message history back.
    With regards,
    Caroline

    Apple does not sell parts. You may be able to find something out there, but what you will get is either something stripped from a damaged phone, a knockoff, or marginal parts that failed factory inspection and are now being illegaly sold.

  • How to change the characteristics of a Batch

    Dear All,
    We have maintained a batch sort sequence based on Batch Manufacturing date.
    But now customer wants the batch to be sorted out based on Batch Number.
    How to change the Characteristics from Batch Manufacturing date and Batch Number?
    Please do suggest.
    For example, we have two characteristics assigned to the Class One is Manufacturing date and another is Batch Number.
    How system will sort out a batch based on these two logic.
    Kindly explain.
    Regards,
    Mullairaja

    Hi Mullai,
    I hope you know what do you mean by "Dependencies" in variant configuration. These are created for automatic update of characteristic values.  If you want to delete the characteristic from the class, please do teh following.
    1. Find out that there are any dependencies assigned to this characteristic. If so remove the assignment
    2. Then you have to check if this characteristic is used in any dependency in the code. If so, find the implications of the same.
    In case, you dont know what is dependency, may be they are not used in your project. In this case, you can just remove the characteristic from the class.
    It has got one effect.
    At present, a configured batch will have this characteristic. If you go to the batch master in change mode, then the old classification will be replaced by the new classification. So the deleted characteristics will not be available to you anymore. I hope that is fine with you. If this is fine, then you dont need to worry about removing the characteristic from the class.

  • How to get the Version History of a stored document?

    Hi,
    I am trying to store and retrieve the content using Content Services features of ADEP 10.0.
    I am able to store and retrieve content where as I am not able to get the version of the document. I am trying to store same or different document, but I donot get the version history or version label. Please guide me how I can get  the version of a stored document.
    Also, please advise me if there are simple alternative to do the same in ADEP10.
    Please see below my sample code below:
    package test.sample;
    import java.io.File;
    import java.util.*;
    import com.adobe.idp.Document;
    import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
    import com.adobe.idp.dsc.clientsdk.ServiceClientFactoryProperties;
    import com.adobe.livecycle.contentservices.client.CRCResult;
    import com.adobe.livecycle.contentservices.client.impl.DocumentManagementServiceClientImpl;
    import com.adobe.livecycle.contentservices.client.impl.UpdateVersionType;
    public class AddContent {
        public static void main(String[] args) {
            try{
                //Set connection properties required to invoke Document Services in EJB mode                                
                Properties connectionProps = new Properties();
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://localhost:1099");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,Service ClientFactoryProperties.DSC_EJB_PROTOCOL);          
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
                //Create a ServiceClientFactory object
                ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
                //Create a DocumentManagementServiceClientImpl object
                DocumentManagementServiceClientImpl    docManager = new DocumentManagementServiceClientImpl(myFactory);
                //Specify the store and node name
                String storeName ="SpacesStore"; 
                String nodeName = "/Company Home/Test Directory";
                //Retrieve the document to store in /Company Home/Test Directory
                Document contentA =  new Document(new File("C://Adobe/New files/Data-A.pdf"), false);
                Document contentB =  new Document(new File("C://Adobe/New files/Data-B.txt"), false);
                Document contentC =  new Document(new File("C://Adobe/New files/Data-C.xlsx"), false);
                //Create a MAP instance to store attributes
                Map<String,Object> inputs = new HashMap<String,Object>();
                //Specify attributes that belong to the new content
                String creator = "{http://www.alfresco.org/model/content/1.0}creator";
                String description = "{http://www.alfresco.org/model/content/1.0}description"; 
                inputs.put(creator,"Veeraganteppa Sajjan");
                inputs.put(description,"A sample application form");
                //Store MortgageForm.pdf in /Company Home/Test Directory
                CRCResult resultA = docManager.storeContent(storeName, 
                         nodeName,
                        "dataA.pdf",
                        "{http://www.alfresco.org/model/content/1.0}content", 
                        contentA,
                        "UTF-8",
                        UpdateVersionType.INCREMENT_MAJOR_VERSION,
                        null,
                        inputs); 
                CRCResult resultB = docManager.storeContent(storeName, 
                        nodeName,
                       "dataB.pdf",
                       "{http://www.alfresco.org/model/content/1.0}content", 
                       contentB,
                       "UTF-8",
                       UpdateVersionType.INCREMENT_MAJOR_VERSION,
                       null,
                       inputs);
                CRCResult resultC = docManager.storeContent(storeName, 
                        nodeName,
                       "dataC",
                       "{http://www.alfresco.org/model/content/1.0}content", 
                       contentC,
                       "UTF-8",
                       UpdateVersionType.INCREMENT_MAJOR_VERSION,
                       null,
                       inputs);
                //Get the identifier value of the new resource
                String idA = resultA.getNodeUuid();
                String idB = resultB.getNodeUuid();
                String idC = resultC.getNodeUuid();
                System.out.println("A -The identifier value of the new content is "+idA);
                System.out.println("B - The identifier value of the new content is "+idB);
                System.out.println("C - The identifier value of the new content is "+idC);
               System.out.println("A - The Browse Link is "+resultA.getBrowseLink());
                System.out.println("B - The Browse Link is "+resultB.getBrowseLink());
                System.out.println("C - The Browse Link is "+resultC.getBrowseLink());
              System.out.println("A-The Version Label is "+resultA.getVersionLabel());
              System.out.println("B-The Version Label is "+resultB.getVersionLabel());
              System.out.println("C-The Version Label is "+resultC.getVersionLabel());
              System.out.println("The Version History is "+docManager.getVersionHistory(storeName,nodeName, true));
        }catch(Exception e)
            e.printStackTrace();
    Message was edited by: V B Sajjan

    Sorry I did not attach the output and errors. Please find the same below.
    A -The identifier value of the new content is f5427f5b-c7c1-4c3c-b959-cb84e4e49a13
    B - The identifier value of the new content is b237d22c-5ff5-4628-a83a-23f5e49ae48e
    C - The identifier value of the new content is 34a9992c-3705-4488-bb55-6dd7ddfa0517
    A - The Browse Link is http://localhost:8080/contentspace/wcs/api/node/content/workspace/SpacesStore/f5427f5b-c7c 1-4c3c-b959-cb84e4e49a13/dataA.pdf
    B - The Browse Link is http://localhost:8080/contentspace/wcs/api/node/content/workspace/SpacesStore/b237d22c-5ff 5-4628-a83a-23f5e49ae48e/dataB.pdf
    C - The Browse Link is http://localhost:8080/contentspace/wcs/api/node/content/workspace/SpacesStore/34a9992c-370 5-4488-bb55-6dd7ddfa0517/dataC
    A-The Version Label is null
    B-The Version Label is null
    C-The Version Label is null
    ALC-CSV-30015-000: com.adobe.livecycle.contentservices.client.exceptions.CSInvocationException: ALC-CSV-030-015-The node [/Company Home/Test Directory] is not versioned.
    at com.adobe.contentservices.webscripts.impl.AbstractContentManager.doGetVersionHistory(Abst ractContentManager.java:1362)
    at com.adobe.contentservices.webscripts.impl.ContentManagerImpl.executeParams(ContentManager Impl.java:198)
    at com.adobe.contentservices.webscripts.impl.CSRetryingTransactionCallback.execute(CSRetryin gTransactionCallback.java:45)
    at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransacti onHelper.java:326)
    at com.adobe.contentservices.webscripts.impl.ContentManagerImpl.execute(ContentManagerImpl.j ava:114)
    at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:333)
    at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransacti onHelper.java:326)
    at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContaine r.java:386)
    at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContai ner.java:404)
    at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java: 246)
    at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:294)
    at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:172)
    at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.adobe.idp.um.auth.filter.CSRFFilter.doFilter(CSRFFilter.java:86)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:183)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEs tablishmentValve.java:126)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEst ablishmentValve.java:70)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java: 158)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:598)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
    at java.lang.Thread.run(Thread.java:662)

  • How to clear the location history in reminder?

    heyy guys. serious talk here. please please and please help me to figure this out. how to clear the location that had i been used in reminder? i've search from day to day. but there aren't answer yet. grr

    delete single message or delete entire thread?
    Single message: open messages, then open the thread, then press and hold on the message that you want to delete.
    Entire thread: Open messages, then press and hold on the thread you want to delete.
    When you go through text message and you click on button to bring up Roller Top Chain contacts, there is couple choices (groups, contacts, favorites & logs) you can choose. Under logs, how to you delete the information in logs section????? It appears to only go back a few days, but can't find option to erase logs. If you check box it just adds that person to your send to Sushi Chains. I also tried deleting history for phone calls, but its still there. Any help would be great!!!

  • How to get the output of my batch file or script file

    Hello,
    I am a beginner in java and I have to run a batch file(in win) or a script(in linux). I want the output of the file in my java program. How to read the output. I used the following code and it always gave me the empty string output
    Runtime r = Runtime.getRuntime();
    Process p = null;
    p = r.exec("./test.bat"); //./test.sh
    int res = p.waitFor();
    BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
    String tempStr = "", str = null;
    while((str=br.readLine()) != null) {
    tempStr += str + "\n";
    System.out.println(tempStr);
    I know this is a simple one but it's taking a lot of time. Can any one there help me quickly.

    hi
    the below function works well for me..
    just make a try with it
    protected String runConsoleCommand(String command) throws IOException {
    Process p = Runtime.getRuntime().exec(command);
    InputStream stdoutStream = new BufferedInputStream(p.getInputStream());
    StringBuffer buffer = new StringBuffer();
    for (; ; ) {
    int c = stdoutStream.read();
    if (c == -1)
    break;
    buffer.append( (char) c);
    String outputText = buffer.toString();
    stdoutStream.close();
    System.out.println("the output to file is:"+outputText);
    return outputText;

  • Md63- How to clear the Item history

    Hi Folks,
    In MD63 I have got the item history which dates back to 10 years and user wants to get rid off this long history.
    Could any body susggest how to clear this history.
    Thanks,
    Sunil

    Use MD76 tcode to delete the history. enter the key date and plant material or just key date and plant and req type etc.

  • Handling Notes: How to track the whole history with filters

    Hello Everyone,
    In SAP Enhancement Package 2 (Including SP12) for SAP CRM 7.0, there is a new function available concerning Text management.
    Within business function CRM_ITSM_COM it seems possible to "Filtering and sorting of the notes history by several text attributes" and also "Classifying texts by tagging a note with up to 8 keywords"
    We did activate the business function required and customized the Keyword customizing point as defined in the SPRO.
    First of all, we cannot add a keyword to a text intothe view of the service request. How the tag is supposed to work?
    In addition, in the following link, Handling Notes - Service Request Management - SAP Library, it says that Notes History log can be filters with some attributes such as :
    Type
    Creation Date
    Created by
    Keyword
    Language
    We are not able to view the filters in our assignement blocks. Only the text type is a criteria. The keywords defined in the customizing are not shown on any blocks (GSTEXT, TEXT or TEXTLOG), and we have no idea on where to add the filters Creation Date/Creation by, etc....
    Has anyone already implemented those changes? Would there any customizing modification to make ?
    Thanks a lot for your help,
    Regards,
    Anaïs

    The problem has been solved.
    After activating business function, there is a program error handled by OSS note 1796247 - ITSM enhancements - certain functions are not active . Some entries have to be maintained manually in table CRMV_ITSM_SWITCH.
    Regards,
    Anaïs

  • How long does the Safari history go back?

    Does anyone know how long the browser history in Safari goes back/remains?
    I know that one can clear the entire history if one wants to. But if one doesn't, do old entries go away either with the passage of time or with reaching some limit as to the number that can be kept at any time?

    i think about a week

Maybe you are looking for