How to programmatically write a step/sequence requirement ?

Hi,
I think everything is in the title ! 
I guess I'll have to directly write in Step.TS.Requirements.Links ? Because I didn't find anything in the Step properties / methods to this...

Ok, indeed it works !
My suggestion too...
I didn't try to use the ref on the Requirements from the step because in the API poster, Requirements is set as Read Only... and there's nothing on 'Links'. I should have better looked at it 
Thanks !

Similar Messages

  • How do I add a step to run at the beginning of an existing task sequence?

    I need a way to add a step to run at the beginning of an existing task sequence like you see up above. We need to do so to all task sequences that install software in our environment. I understand PowerShell very well but, I am not sure of how I would modify
    (if possible) an existing task sequence, let alone add a step to the beginning.
    This is super important and would most appreciated for any help. Thanks! :)
    http://i61.tinypic.com/2nlv8zb.png

    I understand how to perform the above action. I need to have that in a PowerShell script. I need to insert a "Install Package" step at the top of all 900+ task sequences with a specific package. I am good with PowerShell, just not that good.
    ActionInProgress : 1
    AlternateContentProviders :
    BootImageID :
    Category :
    CustomProgressMsg :
    DependentProgram :
    Description : ML - 1/5/15
    Duration : 360
    ExtendedData :
    ExtendedDataSize : 0
    ForcedDisconnectDelay : 5
    ForcedDisconnectEnabled : False
    ForcedDisconnectNumRetries : 2
    Icon :
    IconSize : 0
    IgnoreAddressSchedule : False
    ISVData :
    ISVDataSize : 0
    IsVersionCompatible :
    Language :
    LastRefreshTime : 2/16/2015 10:18:25 AM
    LocalizedCategoryInstanceNames :
    Manufacturer :
    MIFFilename :
    MIFName :
    MIFPublisher :
    MIFVersion :
    Name : TS: Adobe_ReaderXI_11.0.10_R01-Install
    NumOfPrograms :
    PackageID : P12005DB
    PackageSize :
    PackageType : 4
    PkgFlags : 0
    PkgSourceFlag : 1
    PkgSourcePath :
    PreferredAddressType :
    Priority : 2
    ProgramFlags : 152084496
    References : {
    instance of SMS_TaskSequence_Reference
    Package = "P1200541";
    Program = "Adobe_Cleaner_9_R01";
    Type = 0;
    instance of SMS_TaskSequence_Reference
    Package = "P1200542";
    Program = "Adobe_Cleaner_10_R01";
    Type = 0;
    instance of SMS_TaskSequence_Reference
    Package = "P1200598";
    Program = "*";
    Type = 0;
    instance of SMS_TaskSequence_Reference
    Package = "ScopeId_5E2F018E-6A55-4DF6-BC64-43B2E205E619/Application_d5c1b17b-12e1-
    4ad6-9916-72fdefc834b8";
    Program = "";
    Type = 1;
    ReferencesCount : 4
    RefreshPkgSourceFlag : False
    RefreshSchedule :
    Reserved :
    SecuredScopeNames : {Default}
    SedoObjectVersion : EF958AC5-D6E3-460E-A666-6A8CAF4AEB8C
    Sequence : <sequence version="3.00"><referenceList><reference package="P1200598"/><reference
    package="P1200541" program="Adobe_Cleaner_9_R01"/><reference package="P1200542"
    program="Adobe_Cleaner_10_R01"/><reference application="ScopeId_5E2F018E-6A55-4DF6-BC6
    4-43B2E205E619/Application_d5c1b17b-12e1-4ad6-9916-72fdefc834b8"/></referenceList><ste
    p type="SMS_TaskSequence_RunPowerShellScriptAction" name="SDLSetupWait"
    description="ML - 2/16/15" runIn="WinPEandFullOS" successCodeList="0" runFromNet="fals
    e"><action>OSDRunPowerShellScript.exe</action><defaultVarList><variable
    name="OSDRunPowerShellScriptExecutionPolicy"
    property="ExecutionPolicy">Bypass</variable><variable
    name="OSDRunPowerShellScriptPackageID"
    property="PackageID">P1200598</variable><variable
    name="OSDRunPowerShellScriptParameters" property="Parameters"></variable><variable
    name="OSDRunPowerShellScriptScriptName"
    property="ScriptName">SDLSetupWait.ps1</variable></defaultVarList></step><step
    type="SMS_TaskSequence_InstallSoftwareAction" name="Purge Adobe 9.x -"
    description="ML - 1/5/15" runIn="FullOS" successCodeList="0"
    runFromNet="false"><action>smsswd.exe /pkg:P1200541 /install /basevar:
    /continueOnError:</action><defaultVarList><variable name="PackageID"
    property="PackageID" hidden="true">P1200541</variable><variable
    name="_SMSSWDProgramName"
    property="ProgramName">Adobe_Cleaner_9_R01</variable></defaultVarList></step><step
    type="SMS_TaskSequence_InstallSoftwareAction" name="Purge Adobe 10.x+"
    description="ML - 1/5/15" runIn="FullOS" successCodeList="0"
    runFromNet="false"><action>smsswd.exe /pkg:P1200542 /install /basevar:
    /continueOnError:</action><defaultVarList><variable name="PackageID"
    property="PackageID" hidden="true">P1200542</variable><variable
    name="_SMSSWDProgramName"
    property="ProgramName">Adobe_Cleaner_10_R01</variable></defaultVarList></step><step
    type="SMS_TaskSequence_InstallApplicationAction" name="TS:
    Adobe_ReaderXI_11.0.10_R01-Install" description="ML - 1/5/15" runIn="FullOS"
    successCodeList="0" runFromNet="false"><action>smsappinstall.exe /app:ScopeId_5E2F018E
    -6A55-4DF6-BC64-43B2E205E619/Application_d5c1b17b-12e1-4ad6-9916-72fdefc834b8
    /basevar: /continueOnError:False</action><defaultVarList><variable name="OSDApp"
    property="AppInfo" hidden="true">1</variable><variable name="OSDApp0Description"
    property="AppInfo0Description">Valid</variable><variable name="OSDApp0DisplayName"
    property="AppInfo0DisplayName">Adobe_ReaderXI_11.0.10_R01</variable><variable
    name="OSDApp0Name" property="AppInfo0Name">ScopeId_5E2F018E-6A55-4DF6-BC64-43B2E205E61
    9/Application_d5c1b17b-12e1-4ad6-9916-72fdefc834b8</variable><variable
    name="ApplicationName" property="ApplicationName" hidden="true">ScopeId_5E2F018E-6A55-
    4DF6-BC64-43B2E205E619/Application_d5c1b17b-12e1-4ad6-9916-72fdefc834b8</variable><var
    iable name="ContinueOnInstallError" property="ContinueOnInstallError"
    hidden="true">false</variable><variable name="OSDAppCount"
    property="NumApps">1</variable></defaultVarList></step><step
    type="SMS_TaskSequence_RunCommandLineAction" name="Change Reg Key" description="ML -
    1/5/15" runIn="WinPEandFullOS" successCodeList="0 3010"
    runFromNet="false"><action>smsswd.exe /run: reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classe
    s\Installer\Products\68AB67CA7DA73301B744BA0000000010 /v ProductName /d
    Adobe_ReaderXI_11.0.10_R01 /F</action><defaultVarList><variable name="CommandLine"
    property="CommandLine" hidden="true">reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Insta
    ller\Products\68AB67CA7DA73301B744BA0000000010 /v ProductName /d
    Adobe_ReaderXI_11.0.10_R01 /F</variable><variable name="SMSTSDisableWow64Redirection"
    property="DisableWow64Redirection">false</variable><variable
    name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable><variable
    name="SuccessCodes" property="SuccessCodes" hidden="true">0
    3010</variable></defaultVarList></step></sequence>
    ShareName :
    ShareType : 1
    SourceDate : 1/5/2015 10:14:08 AM
    SourceSite : P12
    SourceVersion : 1
    StoredPkgPath :
    StoredPkgVersion : 1
    SupportedOperatingSystems : {}
    TaskSequenceFlags : 0
    Type : 1
    Version :

  • How to extract   OHC_C21    detail step required FOR THIS

    how to extract   OHC_C21    detail step required FOR THIS

    Hi Deba,
    Check the following URL
    http://help.sap.com/saphelp_nw70/helpdata/en/ba/a3463c9c9ffc3ae10000000a114084/frameset.htm
    Regards,
    Tom

  • How to over write VBBE data when Delivery is created if at the time of SO creation stock blocking is there

    Hi,
    I want to know how to over write VBBE data after delivery creation if stock blocking is there at the time of SO creation.
    That means I want my confirmed delivery quantity to over write the SO quantity in VBBE table after delivery creation. Please help me with your valuable suggestions...
    Thanks
    Tanmoy

    Hi Tanmoy,
    This should happen automatically. The VBBE entry should reflect the quantity of the delivery requirement. Is it possible for you to post screenshots illustrating exactly what is happening on your system?

  • How do I write to an SDHC card? My iMac doesn't seem to recognize it.

    How do I write to an SDHC card? It read a couple of my cards from camcorders, but I have others that it won't recognize. I don't see any software for writing. I can read and write CDs OK.

    Hi -
    My two cents -
    have +the camera+ format the card whenever possible. It will save you many, many headaches later.
    There have been many posts about memory cards with corrupted directories and the machinations required to recover the media.
    I make it a Standard Operating Procedure - once the media files are off the card, the card gets formatted by the camera before the next use.
    MTD

  • I am connecting an external USB HDD and I can see it on my Apple Macbook Air. BUT this drive is READ only. How can I write to it?

    I am connecting an external USB HDD and I can see it on my Apple Macbook Air. BUT this drive is READ only. How can I write to it?

    Drive Partition and Format
    1.Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    Steps 4-6 are optional but should be used on a drive that has never been formatted before, if the format type is not Mac OS Extended, if the partition scheme has been changed, or if a different operating system (not OS X) has been installed on the drive.

  • How can I write to an OPC Server?

    Hello!
    I was busy a few days with LabVIEW 8 to finish a special task, but now I've got problems to solve the following problem:
    I have an OPC connection between a frequency converter and LabVIEW 8. With the example vi's I get the data out of the OPC Server (revolutions per minute).
    So I can read data out of the OPC Server, but how can I write? I want to write several voltage values to the OPC Server that the frequency converter gets the required revolutions per minute.
    Have you got any ideas? Are there existing example vi's to write data to an OPC Server?
    Best regards and Thanks in advance!

    So here it is - a little bit modified, but you should get the idea out of it.
    If you have questions, I'll try to answer them .
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    IOControl.llb ‏168 KB

  • How to get the loaded client sequence file path/name?

    I added a step in Process model, and wanted to get currently loaded client sequence file name/path. I used the variable of "SequenceFile.Path" but then I realized what I would get is the process model file path, not loaded client sequence file path/name. How can I get loaded client sequence file path/name?
    Thanks!
    Jacky

    I dont understand what you are trying to achieve.  Can you provide more information.
    If you are trying to dynamically load and run a client sequence file at run time you need to make a couple of calls to the TS API from inside the process model, Engine.GetSequenceFileEx to get a reference to your sequence identified by its pathname, and then Execution.ClientFile to tell the process model which sequence you want to run.
    Steve
    There are 10 types of people in the world that understand binary, those that do and those that don't.

  • How can i write a code to get sume of value from days.

    Hi,
    how can i write a code to get the sum of value of days(example 1 to 30).
    This is in BPS ...
    i created multi planning area and creted planning function with {keyfigure name,planning area,days}.
    now i want to read all the actual values  from basic planing area(basic cube) and calculate the sum of the value.if you have idea can you share the code.
    ENTRIES = VARC ( 'zvardays' ).     ex(zvardays like 28 days or 29 days or 30 days or 31 days)
    COUNT = ENTRIES.
    *Get the all the days value from actual
    FOREACH PAREA = 'basic planning area'.
      COUNT = 1.
    DO
         SUM = SUM + {amount, count}      (amount is a keyfirgure value)
    ENDDO.
    COUNT = COUNT+1.
       SUMACT =  SUM.
    ENDFOR.
    can you correct the above code ....to read the values and sum of the those value.
    Thanks...

    Hi ..
    That is ok..
    Can you provide sample code for my requirement..
    and also how can i pass the error message (can you help me syntax )
    and if my acutal-total  is not equal to plan-total  then
    i have to pass the error message and then  i have to restrict save the data  how i can i restrict(user can not save the data until the values should be equal) .
    Can you help me it is very urgent..
    thanks.//
    Edited by: Eyda rose on Jun 4, 2008 9:29 PM

  • How can i write two ?DDL in one query

    how can i write two ?DDL statment in one query?

    Issuing two DDL statements requires two edxecutions. Getting around it is possible by creating a procedure that issues the two DDL statements. But they would still have to be issues one at a time, but you would only have to write one statement to invoke it.

  • Hi I am a beginner to ABAP HR .Can anybody suggest how one will write

    Hi I am a beginner to ABAP HR .Can anybody suggest how one will write a program to gat SSN number from the infotype and display it.What are the infotypes used for getting SSN numbers and the various steps involved in doing that.Thanks everybody in advance.

    you can use
    HR_READ_INFOTYPE funtion module for IT0002
    and
    By using LDB PNP
    Get Pernr
    Start of selection
    RP_PROVIDE
    End of selection

  • How can I write bits through the COM1 serial port?

    I'm trying to write bits through the serial port COM1.
    Labview "Write VI" only writes everything in string. It seems. How can I write bit by bit through COM1?
    Thank you,
    Van

    Serial transmission (COM port) protocol requires sending a group of bits at one time. You cannot just send one bit. Standard COM port settings must be either 7 or 8 data bits, 1 or 2 stop bits, etc... You have to group your bits 7 or 8 at a time. You could probably send a 0 byte or a 1 byte. This would be like sending 0000 0000 for a low bit and 0000 0001 for a high bit. Your receiving end would have to know how to interpret what you are sending if you choose this method. Of course you have to convert your byte into a string before sending to COM port. Wire a U8 data type to a Build Array input. Then wire the array output to a Byte Array to String input. The output of this function will be the character representation of your byte suitable for sending acr
    oss a serial port.
    - tbob
    Inventor of the WORM Global

  • How to decide the no.of models required for our application implemention

    Hi ,
    i ahve one basic quetion in WD development.
    how to decide the no.of models (aRFC ,EJB..etc )  required or needed to get the functionality of our application ?
    for Ex:
    my application consisits of belwo functionalities.
    1. serach for the country
    2.display the bank lis for the above country
    3.display the bank details of the selected bank in the step no.2
    any one of you explain me how to decide the no.of models required for avoe functionalities .
    or is it  in a single model  we can include the all the above functionalities ?
    Regards,
    Govindu

    Hi
    It all depends on application to application and requirements better to consult with functional guys or team lead what exectly they want to implement .All could be possible with RFC or EJB , some alternatives are
    1. serach for the country  :  For this standard java API is there which populate all country (no need any rfc or ejb)
    2.display the bank lis for the above country : (Check if there  any webservices for this or create manually value help for this , even if u will use the RFC abaper guys will do the same )
    3.display the bank details of the selected bank in the step no : step 2 will solve this also with one additional field i.e address and details.
    I hope you agree with the point that stand alone WD app can do these all thing without any model.
    Best Regards
    Satish Kumar

  • How can i write code in Inbound ABAP proxy method

    Hi,
    All
    Iam doing server proxy ascenario
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    i have done
    steps:
    1:I have done inbound  proxy interface in xi
    2:i have created a inbound abap proxy in my SAP WEB AS6.4 using SPROXY.
    3:I need to write code in Z11_EMPDETAILS_IN~EXEXUTE_ASYNCHRONOUS method
    if i double click on that method it is not opening how can I write code.

    Hi,
    You have to goto the class
    <b>ZCL</b>_EMPDETAILS_IN~EXEXUTE_ASYNCHRONOUS not
    <b>Z11</b>_EMPDETAILS_IN~EXEXUTE_ASYNCHRONOUS
    Check on the third step.
    Regards
    Vijaya

  • How to programmatically mimic the user action of selecting a button ?

    I am using JAVA Swings to build a desktop application. The application has many buttons, lists and text boxes etc. I have created actionPerformed methods that monitor the source for user action. I am able to execute the code whenever an action is performed by user manually.
    I also require to save the choices, and texts entered by a user during his active run with the application. This is to avoid user to re-enter all the information once again.
    The problem is to programmatically select those buttons and lists which were saved during users earlier session. How can I perform the action event of selecting a radio button from my java code.

    Kiran,
    Your approach is missing the whole idea of Model-View-Controller. I suspect that somewhere you are saving the data of the user's choices. For example, if you have a checkbox, I suspect you have a java bean somewhere containing a boolean value that is set to true when the checkbox is selected, and false when the checkbox is unselected. This process is mediated by a controller, which has a references to the model (the data) and the view (the UI). The controller sets up as a listener to the actions within the UI, and, when notified, sets the appropriate properties of the data, usually into one or more java beans.
    So, on the reverse side of things, the data is read into the java bean(s), and the controller uses that data to set the state of the UI elements. So, your controller can do something like this:
        uiThing.initUI(yourBean);And in the initUI method you have:
        public void initUI(DataBean data) {
             cbxBlue.setSelected(data.isBlue());
             txtLastName.setText(data.getLastName());
             // etc...
        }If you take that general approach, you'll find you don't need to simulate user actions.
    In the few cases within the UI where you think you do, you really don't. An ActionListener is just a receiver of when something like a button is pressed. If your program needs to do the same thing as when the button is clicked, create a method to perform the processing, and invoke it directly, rather than trying to figure out how to programmatically press a button.
         public void actionPerformed(ActionEvent e) {
              if (e.getActionCommand().equals("BlueButton"))
                  this.setBlue();
              //... etc.
         private void setBlue() {
             // whatever
         // somewhere else in the code
         private void someProcess() {
              // other work
              // other work
              if (someCondition) this.setBlue();  // rather than forcing an action event
              // other work
              // other work
         }

Maybe you are looking for