Grouping specific Materials together when running heuristics.
Hi,
I'd like to know what options are available to me to for keeping Orders for specific Materials grouped together when running heuristics.
For example, I have three Materials: Material A, Material B and Material C. Now, I want Material C to always be scheduled after Material B, but only if sufficient demand exists for it prior to the next run of Material B.
Maybe this illustration will help explain matters:
Week SKU
1 Material A
2 Material A
3 Material B
4 Material C
5 Material A
6 Material B
7 Material A
8 Material A
9 Material B
10 Material C
11 Material A
12 Material A
13 Material C
So, in week 3, I need to produce Material B, but because Material C is required before I next produce Material B (week 6) and Material C must always follow Material B, a run of Material C is scheduled into week 4.
Is there a strategy I can use that will do this for me? Any pointers welcome.
Thanks,
Matty
Matty
Is this sequence fixed or is it going to vary every week. Like in your example , if you are always going to plan material C before material B , then how about scheudling a heuristic run for material C first and then a second heuristic run for material B (this has to run on success of the first heuristic run).
Thanks
Aparna
Hi Aparna,
Thanks for replying (and apologies for the delay - I've been on holiday!).
The sequence will always be the same: Material B followed by Material C. I can run heuristics indepedently for both Materials, but the problem with doing this is that it will simply schedule orders based on the demand of each, not considering the fact that these Materials need to be produced consecutively.
To confirm: Material B and Material C need to be 'glued' together production timing-wise, and then Material A will be scheduled in the gapsaround to fill up the capacity.
Does this make any more sense now?
Thanks,
Matty
Similar Messages
-
having issues with contacts... groups specifically... when I add contacts to a group and check back there are fewer in group than when i started.. they disappear??
Hi
in this scenarion control is not going inside the condition
if (vo.getRowCount() == 0) and therefore VO is not getting initialized
why u are counting the row of VO to initialize the VO ,if possible pls remove this condition check ,problem will be solved .pls let me know in case of any issues.
thanx
Pratap -
No materials selected when run CK40N
Dear All Expets,
I am trying to use CK40N to run the standcost for 6 semi-finished goods, and we also use transfer control, but when I run the first step for selection, the system shows message as below:
Could you tell me how to solve it?
Thanks !
Xinling ZhangHi Xinling,
Its nice to hear that your issue has been resolved and for your query regarding 'Always Recost Materials",please go through the link provided below for more understanding.
http://help.sap.com/saphelp_470/helpdata/en/7e/cb826f43a311d189ee0000e81ddfac/content.htm
Hope this will help you.
Regards
Eugene -
To run the mrp for the selected 3 or 4 materials together in plant
Hello guys,
Is it possible to run the mrp in a plant for selected 3 or 4 finished material together?
As far as my knowledge is concerned its not possible.In scope of planning or mrp area you can group couple of plants or storage locations but not the materials.Am i right?Hi,
You can use MRP user exit (M61X0001), where you can define user exit key for MRP type, MRP controller or External procurement key. So you can group these materials into one MRP controller and then you can use that user exit key to run MRP for that MRP controller materials.
Thanks, -
I've posted this to the SCCM 2012 forum and only received one response so far that states that this is a known issue that has been discussed before and isn't easy to fix; I was not given any actual solution either. Since this involves SSRS I
thought I would try my luck here as well.
I'm having almost exactly the same problem as is referenced in this article: http://social.msdn.microsoft.com/Forums/uk/sqlreportingservices/thread/587a3319-bc54-4d30-bb3f-bb90a0c6ec50. When
I try to run either of these reports (Computers with specific software registered in Add Remove Programs; Count of instances of specific software registered with Add or Remove Programs) I receive the XML error shown in the attached screenshot. I'm fairly
sure the problem is the same as the other admin was experiencing and I just need to remove the unprintable characters (of the application name) from the dbo.v_Add_Remove_Program column.
The error references 0xFFFF but I could not find what that exactly translates too, other than it appears to be at the end of the spectrum for Unicode characters. I used the following sql query to search for the 0xFFFF entry, but no results were found:
use CM_UV2
Select distinct
CHARINDEX(cast(0xFFFF as varchar(1)),DisplayName0),
DisplayName0
from
dbo.v_Add_Remove_Programs
Where
CHARINDEX(cast(0xFFFF as varchar(1)),DisplayName0) > 0
When I used the original hex value of 0x28 I get plenty of results returned with "(" in them so the query seems sound. One of the articles I was searching mentioned running the query manually using the Management Studio and looking for strange characters
there but I'm not sure how to do that.
Basically I just need help finding the offending character and removing it. I also need to be able to replicate this for other strings as this looks like an error that will reoccur whenever any new software appears that has weird encoding in the title.
Thank you in advance for any help given.
Über RandomHi Uber,
This is a known issue that error occurs when running report "Count of instances of specific software registered with Add or Remove Programs" due to non-printable characters for XML. Based on internal research, the hotfix for this issue will be
included in the System Center 2012 Configuration Manager Service Pack 1.
As a workaround, you can remove the nonprintable character populated into the report parameter by referring to the following KB article:
http://support.microsoft.com/KB/914159
Hope this helps.
Regards,
Mike Yin
Mike Yin
TechNet Community Support -
Grouping, Pegging and Distribution (GPD) when run MRP for PS
Dear all,
As you know, MRP is a core of Planning Process. So when you run MRP for PS, SAP can't check stock in general stock and project stock at the same time. Now, my client have accept to run MRP base on project stock. But there are some problem when they give me requirement and actually situation in their company. One of them as below:
They have 3 WBS element (WBS 1, WBS 2, WBS 3) and they use the same material A. Their requirement is they want to run MRP to plan material for 3 WBS.
Solution 1: use MD51 and run MRP for Project definition and each of WBS element have respective project stock, the system will generate some of planned order for each oder reservation. After that, I will convert all of planned order to PR => PO => Good Receipt for each WBS element. When run MD04, I can see the stock for each project stock for respective WBS element.
Ok, I will talk about the limited of this solution. I suppose after complete technical for all of order reservation in WBS 1 and in project stock of WBS 1 have 3 material A not be use. But in WBS 2 is missing 3 material A. So when I run MRP again for WBS 2 by tcode MD51, the system will generate new planned order for this missing material A. This is not logic because I have enough material A for reservation in WBS 1. So I suggest my client that you should transfer material A from WBS 2 to WBS 1, they agree with me if they don't have many WBS element. But they have about 300 WBS element and they can't do transfer posting between many many WBS element. This solution 1 is not be accept.
Solution 2: I use GPD for this requirement. Firstly I will group WBS 1, WBS 2 and WBS 3 into WBS group. So use tcode MD04, I can see only WBS group and all of order reservation in each WBS 1, 2, 3 be showed on MD04 table. When I run MRP, the system will generate planned order for them. After that, I will conver all to PR => PO => Good receipt to WBS group. And in MD04 table, I can see project stock for WBS group. I begin transfer material from WBS group to each WBS 1, 2, 3. When all of order reservation in WBS 1 is technical complete, the material in WBS 1 have 3 material A not be use. And in WBS 2, I have a new order reservation and it be assigned 4 material A. At this time, project stock on WBS group is 0 but in WBS 1 is 3. But when I run MRP by tcode MD51, the system generate planned order with amount is 4. I wonder that why SAP does not check all material on all WBS element in WBS group to suggest a planned order with amount is 1. If SAP can solve this problem, my client will be accept this solution.
Hoping you support me.
Thanks, Regards
Hoai VuHi Ahmed Rifaee
Thanks for your reply, I will talk about process in SAP.
So, I have 2 WBS element, that's simple because my project is have about 200 WBS element.
WBS1 have 2 order reservation for each actvity and material A0001 be use in 2 order reservation.
Order Reservation 1 needs 3 A0001
Order Reservation 2 needs 5 A0001
WBS2 have 1 order reservation for each activity and material A0001 be use in it
Order Reservation 3 needs 4 A0001
1.) If I don't group 2 WBS1 and WBS2 to one WBS group, SAP will have 2 project stock for each WBS. and when I run MRP, WBS1 and WBS2 run independent base on current project stock at each WBS. So, although project stock WBS1 is run out of A0001 while A0001 still exist A0001 in project stock WBS2, SAP still generat planned order for missing part A0001 in project stock WBS1.
2.) If I use GPD by group WBS1 and WBS2, I can solve this problem easy because they will use only one project stock for WBS group. Ok, after I good receipt A0001 into project stock, I'm sure that I have enough A0001 for 2 WBS1 and WBS2. But I can trace which reservation be ordered to delivery to them exactly. I try to use tcode MD09 to trace from Purchase order to Order reservation but I have just to trace in case PO have not been good receipted. I wonder that Pegging can help me in this case (PO have been good receipted).
Can you give me any idea for these problem
Thanks, Regards
Hoai Vu -
Invalid group section error when running report containing command.
The error is the following (displayed in Dutch, spent some time changing the language settings, but still CR persists in showing the message in my mother tongue, but the gist of it is: invalid group section or something like that) Process error: Ultimo.Services.ReportService.Core.ReportingException: Error creating export file: LtapList02-01.rpt ---> CrystalDecisions.CrystalReports.Engine.InvalidArgumentException: Deze groepssectie kan niet worden afgedrukt omdat het voorwaardeveld van de sectie niet bestaat of ongeldig is. Maak de sectie op om een ander voorwaardeveld te kiezen. Fout in bestand LtapList02-01 {DEE4EF1C-A138-4AE9-8C64-EF8389263782}.rpt: Ongeldige groepsvoorwaarde. ---> System.Runtime.InteropServices.COMException: Deze groepssectie kan niet worden afgedrukt omdat het voorwaardeveld van de sectie niet bestaat of ongeldig is. Maak de sectie op om een ander voorwaardeveld te kiezen. Fout in bestand LtapList02-01 {DEE4EF1C-A138-4AE9-8C64-EF8389263782}.rpt: Ongeldige groepsvoorwaarde. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) --- End of inner exception stack trace --- at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options) etc. The command is phrased thus: select * from {?DatabaseSchemaPrefix}applfn_LtapStructure(). The error is somehow associated with the parameter used in this command. If I remove it and replace it by the value used when running the report, the report runs successfully. Also, strangely, when I define a default value for the parameter in the command and programmatically add a value for it by the method call parameterFieldDefinition.CurrentValues.AddValue(), also the report will run flawlessly. Without the default value it will fail. But when I want to run the command without a value for the parameter (parameterFieldDefinition.CurrentValues.AddValue("")), so for it to be empty, while a default value is defined for it too, also, running the report will result in an error. My question is: has anyone ever seen this type of thing happening? And is there a solution?
Hi
Is it a Date Parameter., ! if so, look for format it is taking. because u said report runs well when default value is assigned. Hope, most probably the problem will be related to data format.
and
try to provide details regarding CR version and all., will be helpful to others to help you. -
Pricing on the basis of specific group of materials by cumulating values
Dear SAP Gurus,
There is a requirement to cumulate the values of a certain group of material AND provide discount on the basis of that on the sales order.For example ,
group 1 =mat A mat B if 1000 give 5%
group 2 =mat c mat D if 2000 give 10%
So at sales order
mat A 1000
mat B 500
mat C 400
In this situation ,group 1should be activated only and discount should be given and distrbuted on A and B.What will be the method and condition type for this situation.
Regards,
Sam AhmedThis is part of standard SAP pricing functionality.
In V/06 check K029.
Important fields to be activated are -
In V/06, for your cond type
Group condition
Scale basis
Create Material pricing gr. = G1
and give it in MMR, MM02, Tab Sales: Sales Org 2, field "Material pricing group" in Materials A, B
Then create the cond record in VK11 for your cond type (e.g. K029) with scales.
If all settings are correct, then for sales order
Mat A shall get discount
Mat B shall get discount
Mat C shall NOT get discount -
Opening PDF in Browser when running in Server 2008 R2 RemoteApp (Terminal Services)
We are running a RemoteApp server that allows users to access an intranet page, through this can can click and open a number of PDF documents.
When connecting and running locally (RDP) the PDFs open in the browser as required, but when running through remoteApp its forcing the PDF to open into Adobe Reader.
Im getting this on all versions of IE 9-11 and Reader 9-11, ive enabled view in PDF and also the IE add-ons but it still forces the file to open in the full application.
Group polciy isnt an issue as Ive tested this on a live users, and also a clean slate test account. Ive even moved the RemoteApp server out of the domain and tried as a local system (with local accounts) and the same behaviour happens.
This is the same if I try and open PDF documents from the internet.
Any Advice would be good
Steve.Hi Uber,
This is a known issue that error occurs when running report "Count of instances of specific software registered with Add or Remove Programs" due to non-printable characters for XML. Based on internal research, the hotfix for this issue will be
included in the System Center 2012 Configuration Manager Service Pack 1.
As a workaround, you can remove the nonprintable character populated into the report parameter by referring to the following KB article:
http://support.microsoft.com/KB/914159
Hope this helps.
Regards,
Mike Yin
Mike Yin
TechNet Community Support -
"UnsatisfiedLinkError: make_statement" when run in debugger
I have a problem retrieving a ResultSet from a REF CURSOR --
apparently due to the JVM failing to locate requisite
native code within Oracle.
The problem is not in the code itself, but somewhere in the
configuration / environment / debugger. I conclude this because
the application runs perfectly outside the debugger (and
has, for years).
It fails only when the JVM attempts to locate a native method
within Oracle, when running the application from an Eclipse debug
launch configuration within the (newly acquired) Eclipse 3.0.1 debugger.
I should mention that we also very recently upgraded to Oracle 9i.
Therefore, I conclude the problem must be some kind
of runtime classpath / library search path mis-resolution,
or a java / oracle client code mis-match.
But I cannot find the cause.
WHAT I'VE ALREADY CHECKED / TRIED:
(1) I have quadruple-checked the jar list within the 'Classpath'
tab of the Eclipse's debug launch configuration dialog -- the
classes12.jar, etc. are those we've been using successfully in
the past.
(2a) Rather than rely on the system Path variable, I resorted to
explicitly specifying the -Djava.library.path as a VM option within
the 'Arguments' tab of the same dialog, as well. The library search
list specified within the Eclipse debug launch configuration is
identical to the system Path variable used when the application
is run outside the debugger. The behavior is the same regardless
of whether -Djava.library.path is specified in the debugger, or not.
(2b) I have modified the -Djava.library.path value specification
with forward slashes rather than backslashes as file separators
-- it made no difference. I also eliminated newlines -- it made
no difference, either.
RELEVANT ENVIRONMENT:
WindowsXP
WebLogic 6.1
Oracle 9i (recent upgrade to this version; the Oracle server is installed)
Eclipse 3.0.1
OCI JDBC Driver
THE CODE:
theStatement.registerOutParameter (1, oracle.jdbc.driver.OracleTypes.CURSOR);
if (inArgs != null)
setInputFields ( theStatement, inArgs.iterator(), 2);
theStatement.execute();
// THROWS 'UnsatisfiedLinkError' FROM THIS LINE:
theResultSet = (ResultSet) theStatement.getObject ( 1 );
Enumeration returnItems = parseResults ( theResultSet );
theStatement.close();
THE ERROR THROWN:
java.lang.UnsatisfiedLinkError: make_statement
at oracle.jdbc.oci8.OCIDBAccess.make_statement (Native Method)
at oracle.jdbc.oci8.OCIDBAccess.RefCursorBytesToDBStatement(OCIDBAccess.java:2373)
at oracle.jdbc.driver.OracleStatement.getCursorValue(OracleStatement.java:3670)
at oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:5792)
at oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:5622)
at oracle.jdbc.driver.OracleCallableStatement.getObject(OracleCallableStatement.java:698)
at appA.common.ADBInterface.executeQuery(DBInterface.java:323)
at appA.common.AEvent.initialize(AEvent.java:233)
at appA.agent.mainDlg.main(AgentDlg.java:759)
THE LIBRARY SEARCH PATH:
(The same path is specified as the value for both as the system Path variable,
and as the -Djava.library.path JVM argument.)
-Djava.library.path="C:\oracle\ora92\bin;
C:\oracle\ora92\jre\1.4.2\bin\client;
C:\oracle\ora92\1.4.2\bin;
C:\Program Failes\Oracle\jre\1.3.1\bin;
C:\Program Files\Oracle\jre\1.1.8\bin;
C:\Windows\system32;
C:\Windows;
C:\Windows\system32\wbem;
C:\Program Files\appA\bin"
ODD THING / CLUE?
Strangely, if I simply move the 'C:\oracle\ora92\bin' directory later
in the Library Search Path, the application continues to run
fine outside of Eclipse, but from within Eclipse,
the JVM now fails to locate the requisite ocijdbc9.dll and the
application produces a different error:
"java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path"
The ocijdbc9.dll is present within C:\oracle\ora92\bin, so I would
have expected the JVM to still be able to find it, despite simply
moving the directory later in the search path.
This must surely be telling me something I am simply too dense /
distracted to pick up on.
I cannot determine why the JVM fails to locate the make_statement
native method when run from within the Eclipse debugging environment.
Should I be looking at version changes to the classes12.jar attendant
to the Oracle 9i upgrade?
Any clues or help out there?
... KBaldwinAnswering my own question:
YES, it was correct to suspect a mis-match between the version of the Oracle jar files used to generate the class files and the Oracle .dll libraries.
It turned out a buddy in the group changed the debugger configuration to use a special directory containing all the third-party jar files the app depends upon, for convenience. Unfortunately, he somehow picked up an old version of one of those jar files (classes12.zip) that came from some pre-Oracle 9i installation. Once I updated the directory to contain the Oracle 9i version of that jar file, the JVM was now able to locate the requisite code at run-time, and the debugger worked.
Now the only mystery is why the hell the app ran fine outside the debugger, but I suspect the launch command is running a different application jar / class file set that was not built with the bogus old classes12.zip. -
Error when running smart issue
Hello,
We are experiencing an error when running most any smart issues in our system. The smart issue 'executes', and then fails, with the following stack trace:
This smart issue request has failed due to the following exception: Error processing Spec Drew Formulation Specification Test 20130322a(5084230-001). Reason: Object reference not set to an instance of an object. Stacktrace: at Xeno.Prodika.GSMLib.Security.SpecPermissionManagerFactory.SpecPermissionManager.UserIsGlobalAdmin(IUserService usrService) at Xeno.Prodika.GSMLib.Security.SpecPermissionManagerFactory.SpecPermissionManager.HasPermission(IPermissionArgs args) at Xeno.Prodika.GSMLib.Security.SpecificationBasedPermissions.HasPermission(String type, EnumPermissions permission, IBaseSpec spec) at Xeno.Prodika.Services.Specification.SpecificationService.HasReadPermission(IBaseSpec spec) at Xeno.P. Please correct the problem and re-issue this request. Smart issue will begin re-issuing where it stopped.
The user performing the smart issue has read permissions on the specifications, and is also in all 3 of the smart issue groups. This happens with multiple users when issuing multiple different specifications. Any thoughts?
Thanks,
DrewSmart Issue Requests are executed by the remoting container. It sounds like the remoting container user doesn't have access to the specifications.
I believe this user is set in environment settings with the Prodika.RemotingContainer.SysUser node. -
PGID is 0 when run from init! (rc script)
When my application is run from an rc3 script, the pgid of
all my processes is 0. (Same for all init created procs).
I like to use the PGID to group my processes together; its
easy to kill them with kill -SIG -PGID .
This works ok on other Unixes. Who is correct ?1) You have a misunderstanding of shell scripts. You don't need to save and restore the path since any changes will not be passed back.
2) Presumably SCHEMA is an executable in directory /opt/resin-2.0.1/webapps/schema_1/bin. So why not just do
cat $1 | /opt/resin-2.0.1/webapps/schema_1/bin/SCHEMA
By doing this, you could even avoid the need for a script file and just use
String[] command = {"/bin/sh","-c","cat file-to-process | /opt/resin-2.0.1/webapps/schema_1/bin/SCHEMA"};
Process proc = rt.exec(command);3) You should only close the output files when the process has terminated i.e. after the
int exitVal = proc.waitFor();4) Since you wait for the process to terminate, you don't need a new thread for both stdout and stderr. You can use the construction thread to process one stream. Something like
FileOutputStream fos = new FileOutputStream(path + fname);
FileOutputStream err = new FileOutputStream(path + "temp2/error.txt");
Runtime rt = Runtime.getRuntime();
String[] command = {"/bin/sh","-c","cat file-to-process | /opt/resin-2.0.1/webapps/schema_1/bin/SCHEMA"};
Process proc = rt.exec(command);
// any error message?
StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(), "ERROR", err);
// any output?
StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), "OUTPUT", fos);
// kick them off
errorGobbler.start();
outputGobbler.run(); // Note run() not start() so it runs in the main thread.
// any error???
int exitVal = proc.waitFor();
out.println("ExitValue: " + exitVal);
fos.flush();
fos.close();
err.flush();
err.close();5) You don't even have to process the stdout and stderr since you could redirect them straight to the files and not have to pass them though Java.
Edited by: sabre150 on Apr 28, 2009 1:54 PM -
Legal Consol: Received CSD Errors when running SPRUNCONSO
Hi All,
I configured Legal Consol application under BPC 7.0 MS and I've below error message when running SPRUNCONSO:
Warning : Nothing Extract From Ownership for OPENING Period
ERROR CSD-130 Problem Extracting data from the Fact
ERROR CSD-135 Problem Extracting data : C_FINANCE
ERROR CSD-140 Problem extracting Data : C_DATA
ERROR CSD-150 Problem extracting Data : C_REPART
ERROR CSD-160 Problem extracting Data : C_CONSO
20091200 - 0 Rows Calculated
20091200 - 0 Rows Updated
Below are my configuration steps:
1. Account Dimension:
- Populate TYPELIM Property for account related to interco elimination.
2. Datasrc Dimension:
- Populate IS_CONSOL Property (value = Y) for source DataSrc (INPUT)
- Populate DATASRC_TYPE Property (value = A) for destination DataSrc (AJ_ELIM)
3. Entity Dimension:
Property ELIM = Y for entity related to elimination
4. Groups Dimension:
Currency_Type = G for Elimination Group
4. Business Rule:
- Automatic Adjustment:
Adjustment ID = ELIM01
Source Data Source = INPUT
Destination Data Source = AJ_ELIM
Adjustment Type = Generic
Adjustment Level = 0
- Automatic Adjustment Detail:
Adjustment ID = ELIM01
Source Account = IC_APAR
Destination "ALL" Account = IC_APAR (same value under TYPELIM Property for account dimension member)
Destination Group Account = IC_APAR_CL (same value under TYPELIM Property for account dimension member)
RuleID = RULE040
4: Business Rule Library:
- Consolidation Rules:
RuleID = Rule040
Rule Type = ALL
- Consolidation Method: 100
- Consolidation Rules Formula:
RuleID: RULE040
EntityMethod: 100
IntcoMethod: 100
"All" Formula: 1
Group Formula: 1
5. Set Ownership data for 2008.Dec until 2009.Dec (data existed in tblfactownership)
6. Set Foreign Exchange Rate from 2008.Dec until 2009.Dec
7. Stored Procedure:
*RUN_STORED_PROCEDURE = SPRUNCONVERSION([%APP%], [%CATEGORY_SET%], [], [%GLOBAL], [%SCOPETABLE%], [%LOGTABLE%])
*RUN_STORED_PROCEDURE = SPRUNCONSO([%APP%], [%CATEGORY_SET%], [%SCOPETABLE%], [%LOGTABLE%])
*COMMIT
I've been trying to crack it but i still received same error message. Can anyone share what i might have missed?
Thanks a lot for the advice,
LiamHi,
I think there is a syntax problem in your SPRUNCONSO call. GROUPS_SET variable is missing. The syntax should be like this:
*RUN_STORED_PROCEDURE = SPRUNCONSO([%APP%],[%CATEGORY_SET%],[%GROUPS_SET%],[%SCOPETABLE%],[%LOGTABLE%])
In addition, not sure if it's a typo problem or not, but it seems that your call for the SPRUNCONVERSION is also wrong. Some variables are also missing:
*RUN_STORED_PROCEDURE=SPRUNCONVERSION([%APP%],[%CATEGORY_SET%],[%CURRENCY_SET%],[GLOBAL],[%SCOPETABLE%],[%LOGTABLE%])
Then, for all the error codes, you can get rid of those one using the ON_ERROR_CONTINUE, at the end of the line.
Normally, those kind of error message are generic, and informed the user that there is actually no records that should be the source of the SPRUNCONSO stored procedure.
Hope this will help you.
Kind Regards,
Patrick -
Getting Access is Denied when Running Script in OSD Task Sequence
I am attempting put in a script that will move the computer account to the proper OU in AD. I have the script but when it launches inside of the TS I get "CScript Error: Loading script "C:\_SMSTaskSequence\WDPackage\Scripts\MoveOU.vbs" failed
(Access is denied. )."
I am using the Run Command Line, and using the "Run this step as the following account" I have verified that the account has access to do what I need it to do in AD. I have attached the logs as well.
PackageID = 'WI10015A' InstallSoftware
3/21/2012 8:46:53 AM 3316 (0x0CF4)
BaseVar = '', ContinueOnError='' InstallSoftware
3/21/2012 8:46:53 AM 3316 (0x0CF4)
SwdAction = '0001' InstallSoftware
3/21/2012 8:46:53 AM 3316 (0x0CF4)
Getting linked token InstallSoftware
3/21/2012 8:46:53 AM 3316 (0x0CF4)
failed to get the token information InstallSoftware
3/21/2012 8:46:53 AM 3316 (0x0CF4)
Get RunAs private desktop SMSTS-169042\SMSTSDesktop
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Run command line under a user account InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Found the location for the package _SMSTSWI10015A. The location is on \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
nPos != CCM::Utility::String::npos, HRESULT=80004005 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,253)
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Creating a connection to \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\ with default account
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Connection request for "\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A"
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
No credentials available for connecting to "\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A". See whether the share has already been connected.
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Connecting to "\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A"
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Successfully connected to "\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A"
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Resolved source to '\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A'
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Command line for extension .exe is "%1" %* InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Set command line: Run command line InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Working dir '\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A'
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Executing command line: Run command line InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Create a process under given user token InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Process completed with exit code 1 InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Microsoft (R) Windows Script Host Version 5.8
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Copyright (C) Microsoft Corporation. All rights reserved.
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
CScript Error: Loading script "C:\_SMSTaskSequence\WDPackage\Scripts\MoveOU.vbs" failed (Access is denied. ).
InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Command line returned 1 InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Entering ReleaseSource() for \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
reference count 1 for the source \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\ before releasing
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Released the resolved source \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Process completed with exit code 1 TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
TSManager 3/21/2012 8:46:54 AM
2520 (0x09D8)
Failed to run the action: Move Computer to Correct OU.
Incorrect function. (Error: 00000001; Source: Windows)
TSManager 3/21/2012 8:46:54 AM
2520 (0x09D8)
Sending status message . . . TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
Send a task execution status message SMS_TSExecution_ActionFailError
TSManager 3/21/2012 8:46:54 AM
2520 (0x09D8)
MP server <SCCMSERVERNAME> and port 80. SSL=false. CRL=false.
TSManager 3/21/2012 8:46:54 AM
2520 (0x09D8)
Site code: WI1 TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
Client machine name: 1J44KQ1 TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
Client Identity: GUID:6ffb32d4-1184-4e40-a1c8-26272a707a72
TSManager 3/21/2012 8:46:54 AM
2520 (0x09D8)
Advertisement ID: WI12029D TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
Package ID: WI1001E7 TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
Sending StatusMessage TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
Formatted header: TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>ABB94CBE-33F4-4EB9-A151-34EE3474A0F9</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2012-03-21T12:46:54Z</SentTime><Protocol>http</Protocol><Body
Type="ByteRange" Offset="0" Length="4174"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>
TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
CLibSMSMessageWinHttpTransport::Send: URL: <SCCMSERVERNAME>:80 CCM_POST /ccm_system/request
TSManager 3/21/2012 8:46:54 AM
2520 (0x09D8)
The request has succeeded. 200 OK TSManager
3/21/2012 8:46:55 AM 2520 (0x09D8)
Set a global environment variable _SMSTSLastActionRetCode=1
TSManager 3/21/2012 8:46:55 AM
2520 (0x09D8)
Set a global environment variable _SMSTSLastActionSucceeded=false
TSManager 3/21/2012 8:46:55 AM
2520 (0x09D8)
Clear local default environment TSManager
3/21/2012 8:46:55 AM 2520 (0x09D8)
Let the parent group (Testing) decides whether to continue execution
TSManager 3/21/2012 8:46:55 AM
2520 (0x09D8)
The execution of the group (Testing) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows)
TSManager 3/21/2012 8:46:55 AM
2520 (0x09D8)
Failed to run the last action: Move Computer to Correct OU. Execution of task sequence failed.
Incorrect function. (Error: 00000001; Source: Windows)
TSManager 3/21/2012 8:46:55 AM
2520 (0x09D8)
Any suggestions would be greatly appreciated!
"You can't fix stupid!"I'm having the exact same issue. I'm using AutoIT for my script to move the computer account. I've tried using ADO, LDAP, and LDAP/ADSystemInfo object. They all fail with access denied. In fact the ADO version of my script fails just
trying to create the "ADODB.Connection" object which I know for a fact doesn't require elevation or administrator access. However, all three versions of the script work correctly when run manually outside the TS. They also work correctly on XP
machines during OSD. Only when deploying a Win7 machine do they fail during the TS. I've tried adding the runas user to the local administrators group beforehand but no dice. Did you have to restart the computer after doing the net localgroup
change? There has to be some other security config in Win7 that is set somewhere doing this. I just can't figure out what. I've even started looking at DCOM/COM permissions to see if something isn't right there.
I don't see why but maybe the script needs to be run locally? Any other ideas? -
Sales analysis report differences when run by Sales Empl as opposed to Item
My client is running Sales analysis report and notices differences when run by Sales Employee as opposed to by Item.
I explained that:
When run by item, the report does not include service type invoices or non-inventory items.
When run by sales employee it DOES include service type invoices and non-inventory items.
Are there any other differences I should be aware of?
Does someone have a query I can run to prove this difference i.e...invoices for non-inventory items for a period? To prove where the difference comes from between the two reports?
ThanksYou may try this first:
SELECT S.ItemCode,
MAX(S.Description) as 'Item Description',
SUM(S.LineTotal) as 'Amount(LC)'
FROM
(SELECT T1.ItemCode AS 'ItemCode',
T1.Dscription AS 'Description',
T1.LineTotal AS 'LineTotal'
FROM dbo.OINV T0
INNER JOIN dbo.INV1 T1 ON T1.DocENtry = T0.DocENtry
WHERE T0.docdate >= [%0] and T0.docdate <= [%1]
AND T0.doctype = 'I'
UNION
SELECT T1.ItemCode AS 'ItemCode',
T1.Dscription AS 'Description',
-T1.LineTotal AS 'LineTotal'
FROM dbo.ORIN T0
INNER JOIN dbo.RIN1 T1 ON T1.DocENtry = T0.DocENtry
WHERE T0.docdate >= [%0] and T0.docdate <= [%1]
AND T0.doctype = 'I') S
GROUP BY S.ItemCode
This is by item type transaction only.
Thanks,
Gordon
Maybe you are looking for
-
Hi! please help me this is urgent.. i try to delete pdf file from my local pc how to do that ?? can some one help me i need it by today please help me .. thanks to all of you... from: newbie
-
Trouble with Display fitting to Samsung Monitor
Hey, I just got a HDMI Samsung 27" monitor to connect to my Mac Pro. I set the setting in the system preferences to 1920x1080 like the monitor is, but it still streches things. It makes the circles into ovals. It also doesn't take up the whole monito
-
Issue with TextArea resize event
Hi, In the following sample there is a button and a textarea in a VDivideBox. If you move the divider, the Textarea is resized and in its resize event I change the fonts size. It works very well except in one case: If the Textarea is given the focus
-
Multiple aperture libraries?
I am a dentist and take many before and after photographs of cosmetic cases I complete. I also take many family photos. I have one library for both with many projects but would love to have a "family only" library and one for my dental practice. Is i
-
Selection Tool / Masking Feature
Lightroom needs a way to make individual adjustments to selected areas of an image. Currently, I create three or more versions of each image with different adjustments, export those images as TIF, import them into photoshop layers, mask the layers an