Service PO created missing service list, with LSMW BUS2012

Hi experts,
After days fighting against the Service PO creation with the service list filled, I decided to insert this post.
I hope it should be a simple issue for someones. The problem is, I'm able to create a Service PO, but the service
list for the item is not filled, so, I have a PO item without service list itens.
I'm using a LSMW through a BAPI structure
Business Object - BUS2012
Method            - CREATEFROMDATA
Message Type    - PORDCR
Basic Type      - PORDCR05
Talking about the service list filling process. I'm doing the following:
E1BPEKET-PREQ_NO = EBAN-BANFN    (PR number)
E1BPEKET-PREQ_ITEM = EBAN-BNFPO    (PR item)
E1BPEKPOC-PCKG_NO and  E1BPESLLC-PCKG_NO = EBAN-PACKNO    (Package Number)
E1BPESLLC-LINE_NO = ESLL-INTROW (0000000001)            (Internal Line)
E1BPESLLC-EXT_LINE = ESLL-EXTROW (0000000000)            (External Line)
E1BPESLLC-OUTL_IND = X                                    (Indicator: Outline line)
E1BPESLLC-SUBPCKG_NO = ESLL-SUB_PACKNO (3004105609)        (Subpackage)
E1BPESLLC-SERVICE = SRVPOS (found with the SUB_PACKNO value in ESLL-PCKG_NO) (Service code)
I'm not filling out the fields OUTL_LEVEL and OUTL_NO. I don't know how.
So, after that the service PO is created, even if I put out the PR number. But in any case with the service line filled.
Important: The process above was tested with a PR reference, my intention is to create this PO service without PR reference if it is possible, because,
the PR migration is out of scope for me.
I don't know what is happening and what I need to do to fill the service line.
Thanks in advanced
Antonio Rocha

Hi,
In service documents and blanket PO's the "goods recipient" can not       
be used. Please read the information from the note 118008:
The system does not display the goods recipient and unloading point        
fields in the account assignment block for a service line even though      
they are set as input fields in Customizing.                               
You cannot display fields 'Unloading Point' and/or 'Goods Recipient' in       
the R/3 system. The reason for this is that every account assignment          
object for each service specification can have several unloading points       
and/or goods recipients.                                                      
In particular, only one cumulation for each account assignment object is      
possible and useful at purchase order item level.                             
As of Release 4.0, user fields are available in external services     
management.                                                           
You can name these user fields, for example, 'Unloading Point' and    
'Goods Recipient'.                                                    
A user field belongs to the service line and is purely informative.   
Regards,
Edit

Similar Messages

  • How do I create an unordered list with three items and link to id's

    How do I create an ordered list with three items and linl to id's on my page

    Thanks, I guess what I was really asking, Is there a n option in the insert menu or somewhere where Dreamweaver does it for you.
    I am not clear on what you are wanting DW to do for you?  Is it that you want it to insert a three item unordered list?  No - there's no such function.  You would need to click in Design view where you want the list to go, click on the bulleted list icon on the Property inspector, and then enter the three items separated by carriage returns.  Then you'd have to link each item specifically.
    To enter the named anchors to element ID values, CS5 has no way to do this.  You'd have to enter those links manually.

  • How create LOV(select List) with all LDAP users

    Hello,
    I am trying to create a selected list with all the users in my LDAP, note my LDAP is synchronized with my OID.
    Any suggestions, I'm searching the the pl/sql statment?
    Thanks
    Hussam

    Hi Hussam,
    Take a look at my comments in the following two threads -
    Re: LDAP
    Re: Cookie And LDAP
    The two different threads discuss the methods I use to do what you want to do (so you really need to 'combine' the two different threads).
    Hope this helps

  • Problems while uploading Task List - Service Pack with LSMW

    We are trying to upload General Maintenance Task List using LSMW. We are using Standard Batch/Direct Input method with Object 0490.
    We need to upload task list header, operations, maintenance pack, component and service pack for operations.
    We have created separate files containing data for different structures and they are linked using Group, group counter and operation number according below
    Header
    |----Operations
    .......... |----Long Text
    ..........|----Maintenance Pack
    ..........|----Components
    ..........|----Service Pack
    We have multiple operations per task list and multiple services per operation. The service pack is required only for a specific control key - PM03.  As per the configuration this screen (PROGRAM - SPLMLSP, Screen Number - 0200) is accessible only when the value PM03 is entered in the operation. We are able to upload all other details except service pack details. We have tried using structure IBIPBDCD for the same.
    While uploading the task list in foreground, when control key is entered as PM03 in an operation, service pack screen is displayed with error u201CNo batch input data for screen SAPLMLSP 0200u201D. The data provided in structure IBIPBDCD does not get processed at this time.
    On exiting the screen using back button, the data in IBIPBDCD structure is passed incorrectly to fields in screen 3400 (SAPLCPDI)
    Are we doing something incorrect? Is there a way to use this standard functionality to upload task lists with service packs?
    Thanks
    Edited by: jvalitp on Dec 15, 2011 12:46 PM

    Hi,
    When loading the tasklists you need to define a source structure as per the IBIP structure. You have different levels for example level 1 - header then below that level 2 - Operations, Header Long text then below that you have level 3 - Operation Long text, Operation Package assignments, operation component allocation.
    For each of these levels you need an identifier that links then together. In your source file specify identifier 1 for header, Identifier 1 and Identifier 2 for operations, identifier 1 identifier 2 and identifier 3 for packages. This way the system can create the correct structure when it reads the data from the text file.
    The identifiers are numeric and will dissapear once the files are loaded. specify then in the source structure as 2 characters and remember to set the xcel file up to have a 2 character field.
    For the header file each line will be a new identifier 1,2,3,etc.
    The operations are assigned to the header and have 2 identifiers. The first corresponds to the header identifier the next is a sequential number stating at 1 and incrementing for each line e.g Header 1 op 1, header 1 op 2, header 2 op 3, header 2 op 4, header 2 op 5 (this would be 2 header records. The first with 2 operations on it the second with 3 operations)
    The package is assigned to the operation and as such needs to have a third identifier. Header (identifier 1), Operation (identifier 2), Package (identifier 3) Example Header 1 op 1 pack 1, header 1 op 2 pack 2, header 2 op 3 pack 3, header 2 op 4 pack 4, header 2 op 5 pack 5
    I have a loading file for each of the items i.e. Header file, Operation file, maintenance package file. This is then assigned to the respective source structure.
    Regards,
    ravi

  • How can I create a XMP List with multiple selection

    Hello,
    I try to build my own XMP custom panel. Herefore I need a couple of lists with the possibility for multiple selections (e.g. the choice for one language or multiple languages).
    But how is it possible to integrate a list into a panel? There is no XMPList inside the custom folder. I have experimented with the standard mx:list and an array collection for data binding into the list. But how can I write the user selection into an XMP field? Example: In the List the user choose three languages (DE, EN, FR). Is it possible to collect the choice into a string and to write the result into an XMP standard field (e.g. dc:description)?
    A further question is, if it's possible to use the "HTTPService" to bind an external xml-file with the languages and other informations into the panel or is it only possible to work with an array collection inside the code?
    Here is my code:
    <?xml version="1.0" encoding="utf-8"?>
    <fi:XMPForm
              xmlns:mx="http://www.adobe.com/2006/mxml"
              xmlns:fi="com.adobe.xmp.components.*" width="100%" height="100%"
              xmlns:Iptc4xmpCore ="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
              label="XMP-Custom Panel"
              initialize="ds.send()"
              >
         <!-- Each namespace prefix that is used within an xmpPath-attribute,
               MUST BE registered at the top of EACH panel where it is referenced -->
         <fi:XMPNamespaces>
              <fi:XMPNamespace prefix="dc" value="http://purl.org/dc/elements/1.1/"/>
         </fi:XMPNamespaces>
         <fi:XMPForm>
              <mx:HBox width="100%" height="26" verticalAlign="middle">
                   <mx:HRule width="50%"/>
                   <mx:Label text="Allgemeine Metadaten" fontSize="12" fontWeight="bold"/>
                   <fi:XMPSeparator width="50%"/>
              </mx:HBox>
              <fi:XMPFormItem
                        label="Titel"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Titel"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Druckkennzeichen"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Verfasser"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%">
                   <fi:XMPComboBox xmpPath="dc:creator" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Versionsnummer"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPComboBox xmpPath="dc:creator" width="100%"/>
              </fi:XMPFormItem>
              <mx:HBox width="100%" height="26" verticalAlign="middle">
                   <mx:HRule width="50%"/>
                   <mx:Label text="Enthaltene Sprachen" fontSize="12" fontWeight="bold"/>
                   <fi:XMPSeparator width="50%"/>
              </mx:HBox>
              <!-- Beginn der Auswahl-Liste für die Sprachen -->
                 <mx:Script>
            <![CDATA[
                import flash.events.MouseEvent;
                import mx.controls.Alert;
                import mx.collections.ArrayCollection;
                private const NL:String = "\r";
                // A data provider created by using ActionScript
                [Bindable]
                private var subscriptions:ArrayCollection =
                    new ArrayCollection
                            {data:0, label:"Deutsch"},
                            {data:1, label:"Englisch"},
                            {data:2, label:"Französisch"},
                            {data:3, label:"Italienisch"}
                [Bindable]
                private var market:ArrayCollection =
                    new ArrayCollection
                            {data:0, label:"(Bitte Marktversion auswählen)"},
                            {data:1, label:"Marktversion Deutsch (M_DE)"},
                            {data:2, label:"Marktversion Englisch (M_EN)"},
                            {data:3, label:"Marktversion Frankreich (M_FR)"},
                            {data:4, label:"Marktversion Italien (M_IT)"}
                [Bindable]
                private var documenttyp:ArrayCollection =
                    new ArrayCollection
                            {data:0, label:"(Bitte Dokumenttyp auswählen)"},
                                  {data:1, label:"Gebrauchsanweisung"},
                            {data:2, label:"Ersatzteilkatalog"},
                            {data:3, label:"Service-Anleitung"},
                            {data:4, label:"Etikett"}
            ]]>
        </mx:Script>
                    <fi:XMPFormItem label="Sprachauswahl" width="100%">
                    <mx:List
                        id="userSubscriptions" rowCount="4"
                        allowMultipleSelection="true" width="100%"
                        dataProvider="{subscriptions}"
                    />
                </fi:XMPFormItem>
                    <mx:Text text="* Mehrfachauswahl möglich." fontWeight="normal" fontSize="10"/>
                <!-- Ende der Liste für die Auswahl von Sprachen -->
              <fi:XMPFormItem
                        label="Marktvariante"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPComboBox xmpPath="dc:creator" width="100%" dataProvider="{market}"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Dokumenttyp"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPComboBox xmpPath="dc:creator" width="100%" dataProvider="{documenttyp}"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Stichworte"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%">
                   <fi:XMPTextArea/>
              </fi:XMPFormItem>
              <mx:HBox width="100%" height="26" verticalAlign="middle">
                   <mx:HRule width="50%"/>
                   <mx:Label text="Metadaten Photoshop" fontSize="12" fontWeight="bold"/>
                   <fi:XMPSeparator width="50%"/>
              </mx:HBox>
              <fi:XMPFormItem
                        label="Originalname FA"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%" id="PS1">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Fotoauftragsnummer"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%" id="PS2">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Interne Anmerkungen"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%" id="PS3">
                   <fi:XMPTextArea/>
              </fi:XMPFormItem>
              <mx:Text text="* hier steht eine kleine Erläuterung" fontWeight="normal" fontSize="10"/>
         </fi:XMPForm>
    </fi:XMPForm>
    Any suggestions?
    Thank you in advance.
    Markus

    Hi Markus,
    the FileInfo SDK does not offer a ready-made list component allowing for multi-selection.
    So you would need to implement one using the FileInfo SDK API. Your component "XMPList" would inherit from mx:list and would need to implement the XMPRead and XMPWrite events and talk to the XMP using the IXMPAccess interface within those event handlers.
    Please have a look at the Programmer's Guide, section "XMP Flex components" and at the API description available in "docs" for further guidanc.
    Hope this helps
    Kind Regards
    Jörg
    Adobe XMP

  • Error while uploading the general maintenance task list with LSMW

    Hi friends,
    I am uploading the general maintenance task list with the help of Standard Batch/Direct input method in LSMW. I am using the internal number range for task list.
    First task list is getting created properly, but while creating second task list, system is giving the error as "external number range is not assigned for task list and task list with this group ID is already created in the system."
    This is because, on initial screen, system automatically takes the group ID of the task list that is created earlier.
    My question is
    1. How to get rid of the group number that is automatically gets populated in group field of initial screen, while creating the next task list?
    2. Is it possible to assign a common identifier in all structure (Header, Operation etc) for single task list, so that system can differentiate between two task lists?
    In Equipment task list, we can differentiate the task list with equipment id and group counter.
    Please note the following point before replying to my question.
    1. I don't want to upload the general maintenance task list with external number assignment.
    Thanks in advance for early reply.

    I have the same problem....
    Please can somebody help me?

  • Q: Creating a drop list with dynamic content?

    Hi,
    Like to start off by saying that I am new to this so be gentle...
    I want to create a JSP which contains a search form.
    To limit the search options I want to present some of
    them as drop lists with pre-defined values.
    As the drop list values need to be easiliy updated
    I want to be able to control the content (using a servlet or a JB).
    What would be the best way of implementing this?
    Examples would be helpful.
    Regrads
    //Jimmy

    This is pretty easy to do. All you have to do is below:
    In the option tags place the jsp variable:
    <option><%=variable%></option>
    Good Luck,
    J.Clancey

  • Need help on creating a linked list with array...

    I want to create a linked listed using array method. Any suggestion on how would I start it.
    thanks

    That means I want to implement linked list using an
    array.I believe you mean you want to implement list using an array. Linked list is a very different implementation of a list, which can be combined with arrays for a niche implementation of list, but I don't think this is what you're talking about.
    Do you mind if we ask why you don't want to use ArrayList? It does exactly what you specify, plus it will increase the size of the internal array as necessary to ensure it can store the required elements.
    If you really want to make your own, have a look at the source for ArrayList (in src.jar in your JDK installation folder) - it will answer any questions you have. If you don't understand any of the code, feel free to post the relevant code here and ask for clarification.

  • Is it possible to create a numbered list with text label?

    I'm using Pages 5.0 on Mac OS X Mavericks.
    I'm writing a document that consists of tables and figures, which I'd like to number. For both objects I use a numbered list, which I prepend to the caption for easy reference. Ideally I'd like to have two lists (one for each type) with a label which contains both a text and a number, the tabels would look like this:
    For tables: "TABLE <number>:"
    For figures: "FIGURE <number>:"
    While it's not hard to create lists with either a text or a number label, I can't figure out how to combine the two.
    So my question: is what I'm trying to do possible and if yes, how do I achieve the desired effect?

    What you are asking for has never been a feature in Pages. I don't think that is an added feature in Pages 5.0 either.

  • Migrating PM task lists with lsmw

    can someone help?
    we are migration task lists with operations that have long texts:
    the source is the MPLA and MPOS tables, entered in excel sheet and we have STXT as well, with a few lines of text per operation
    when the data is migrated with lsmw, the text comes out weird....strange symbols, no new lines etc etc.
    does anyone have experience with migration PM task lists and can give me an idea of what to do?
    by the way, the end of the lsmw is BI.
    thanks
    Alisa

    I have the same problem....
    Please can somebody help me?

  • How do I Create a SharePoint List with two Attachment fields

    Hi Everyone
    I am using SharePoint 2013 Enterprise and Visual Studio 2013.
    I need to create a SharePoint list that has two fields of attachment type.
    Possible is a list supports this functionality natively?
    Tanks in advance.
    Eduardo

    Hi Muruguesa!
    When I customize the form in InfoPath Designer the following message appears:
    The publish operation Could Not Be completed. It can not be determined if the form template was successfully published. Try publishing the form template again, or change the settings to list
    Catastrophic failure
    I reported this error recently but not yet success in solving the problem:
    https://social.msdn.microsoft.com/Forums/office/en-US/687f2282-ad3d-4d13-a548-d25641b6b293/cannot-edit-form-in-infopath-when-list-was-created-in-visual-studio?forum=sharepointcustomization
     Do you have any ideas on how I can solve this case.
    PS: My list was created on Visual Sudio an Im using  SharePoint 2013 Enterprise and Visual Studio 2013.
    Thanks

  • How can i Create Dynamic mailing lists with Iplanet Delegated Administrator

    Hello people,
    Could anyone help me in this matter please?
    I am running IMS5.2 with Netscape Directory4.16. I need help about how to create a Dynamic Mailing list using de Iplanet Delegated Administrator, not using the traditional Netscape Console.
    If someone can help me, i will apreciate.
    bye.
    Azim Lakha

    In 24.4.0 there is no File|New|Address Book. There is File|New|Address Book Contact. How do I create a new address book ?

  • Creating a dynamic list with a sort by function

    Hello again,
    I've been steadily working my way through David Powers book, Essential Guide to DW4..... in order to gain a better understanding of how to update my website and make administration (slightly) easier through the creation of tables, etc., so my question is very much a newbie one.
    I have two tables in my site, one identified as country (consisting of a primary key and a list of countries by names as table) and one collector (consisting of a primary key, first name, surname, email address and foreign key for country).
    I have been able to follow the lesson guides and have had good success in modifying these for my own purposes.
    I have been able to create a form for inputing, modifying, deleting and listing collectors. In creating the list of collectors I have used SQL to order the list of collectors by country name in ascending order. All good so far.
    What I would like to do (for both administration side of site and public side) is to list the collectors as above, with one slight variation: A line break between each group of collectors with the country at the start of the list appearing only once, like as follows:
    Instead of:
    Bill Smith
    David Tray
    George Blow
    Something like:
    USA
    Bill Smith
    David Tray
    Zambia
    George Blow
    Again, many thanks for your time and assistance.
    Sincerely,
    John de Belle

    This is very easy to do. All that's necessary is to create a variable that keeps track of the country name so that it's displayed only once. Use an <h2> tag or similar (plus CSS if necessary) to create the extra space between countries.
    <?php // initialize variable to track country name
    $currentCountry = '';
    do {
      // display country name if it's not the same as the current value
      if ($row_recordsetName['country'] ! = $currentCountry) {
        echo '<h2>' . $row_recordsetName['country'] . '</h2>';
      // set the current value of the country name
      $currentCountry = $row_recordsetName['country'];
    ?>
      <p><?php echo $row_recordsetName['firstname']; ?> <?php echo $row_recordsetName['surname']; ?></p>
    <?php
    } while ($row_recordsetName = mysql_fetch_assoc($recordsetName));
    ?>

  • Creating Select List with multiple columns

    I want to create a select list with multiple columns. I followed the demo application model described in the by Denes Kubicek (Currently my reference for APEX !!)
    The code is as follows:
    CREATE OR REPLACE FUNCTION getcrops(p_cropid IN NUMBER)
    RETURN VARCHAR2
    IS
    v_cropid VARCHAR2 (400);
    v_fcode VARCHAR2 (400);
    v_product VARCHAR2 (400);
    v_var VARCHAR2 (400);
    v_fname VARCHAR2 (400);
    v_acres VARCHAR2 (400);
    v_style_start VARCHAR2 (400);
    v_style_end VARCHAR2 (400);
    v_return VARCHAR2 (400);
    BEGIN
    FOR c IN (select "CROP"."CROPID" as "CROP ID",
         "CROP"."FIELDCODE" as "FIELD CODE",
         "CARROTPRODUCTLIST"."CARROTPRODUCTNAME" as "PRODUCT",
         "VARIETYLIST"."VARIETYNAME" as "VARIETY",
         "FIELD"."FIELDNAME" as "FIELD NAME",
         "CROP"."SIZEINACRES" as "ACRES"
    from     "FIELD" "FIELD",
         "CARROTPRODUCTLIST" "CARROTPRODUCTLIST",
         "VARIETYLIST" "VARIETYLIST",
         "CROP" "CROP"
    where "CROP"."CARROTPRODUCTTYPE"="CARROTPRODUCTLIST"."CARROTPRODUCTID"
    and     "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
    and     "CROP"."FIELDID"="FIELD"."FIELDID")
    LOOP
    v_cropid := TO_CHAR (c.'CROP ID', 'FML999G999G999G999G990');
    v_fcode := c.'FIELD CODE';
    v_product := c.'PRODUCT';
    v_var := c.'VARIETY';
    v_fname :=c.'FIELD NAME';
    v_acres :=c.'ACRES';
    FOR i IN 1 .. 12 - LENGTH (c."CROP ID")
    LOOP
    v_cropid := v_cropid || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'FIELD CODE')
    LOOP
    v_fcode := v_fcode || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'PRODUCT')
    LOOP
    v_product := v_product || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'VARIETY')
    LOOP
    v_var := v_var || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'FIELD NAME')
    LOOP
    v_fname := v_fname || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'ACRES')
    LOOP
    v_acres := v_acres || ' ';
    END LOOP;
    v_return := v_cropid || v_fcode || v_product || v_var || v_fname || v_acres;
    END LOOP;
    RETURN v_return;
    END;
    I created this anonymous Pl/SQL function at a application level ..Then I followed up to create a select list with a function inside. However I could not create select list with the command suggested in the demo which is
    select getcrops(cropid) d, cropid r from crop;
    APEX (2.1) returns a error message. What am I missing ? Should the function be called from somewhere else after creating a regular select list..? Where the functions (Pl/SQL) should be ideally stored for application level access..? and for across application level access ? How can I check the function works good. Help is appreciated.

    Still really one column.
    If they need to be independent then you've got to have three selection lists.
    %

  • Create a list with associated workflow from a list template.

    Hi,
    I have a calendar list with two workflows and I saved it as list template. Also I have an event receiver which creates a list based in this list template I created, but I noticed that the list is created without workflows. If I create the list
    using the list template using SharePoint it does it with the workflows but my event receiver does not.
    Here is my code:
    if
    (list == null){
    web.AllowUnsafeUpdates =
    true;
    var lstTemp = web.Site.GetCustomListTemplates(web);
    var template = lstTemp[listTemplate];
    var listId = web.Lists.Add(listName,
    string.Empty, template);
    list = web.Lists[listId];
    list.Title = listName;
    list.OnQuickLaunch =
    false;
    list.Update();
    web.AllowUnsafeUpdates =
    false;
    Thanks anyway.

    Hi,
    According to my understanding, you have a list template contains workflow, you can create a new list with this template from UI. However, when create a list with this
    template in Event Receiver, the workflow is missing.
    I tried to reproduce by creating a list template contains an OOTB Approval workflow, then use an Event Receiver to create a list with this template, it turned out
    that the workflow is attached to the newly created list.
    I would suggest that you create another Event Receiver with the code snippet below to see if it is an issue of Event Receiver:
    public override void ItemAdded(SPItemEventProperties properties)
    base.ItemAdded(properties);
    createListWithTemplateWithWF(properties);
    public static void createListWithTemplateWithWF(SPItemEventProperties properties)
    using (SPSite site = properties.Site)
    using (SPWeb web = site.RootWeb)
    SPListTemplateCollection listTemplates = site.GetCustomListTemplates(web);
    SPListTemplate listTemplate = listTemplates["ListTemplate_List001_withWF"];
    web.Lists.Add("List005", "List005", listTemplate);
    Feel free to reply with the test result or if there any questions about this.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

Maybe you are looking for

  • Links no longer working

    Last year I created a small website with Dreamweaver CS3.  I had to update it - Using CS5 and now my links do not work. Mainly, I was changing the dropdown menu under the Levies and Bonds Explained tab.  Can anyone take a look at my template code and

  • How to clean an ipod touch

    When I took the protective cover off my ipod touch after recieveing it, it left a sticky residue. Whats the best thing for cleaning it??

  • Unable to safe boot

    I am unable to safe-boot my new iMac. I hold down the shift key while rebooting until I see the gray apple and the progress indicator. After about 30 seconds, with the progress bar at 40% the screen blanks and the system restarts (chimes and starts o

  • I believe I opened a link to a phishing email.

    I believe I opened a link to a phishing email. After opening, it took me to some bogus webpage and I quickly closed out of it and deleted the email. I didn't enter any information onto the webpage. Am I in any danger of identity theft? If so, what sh

  • Trying to open rosetta but not an option in menu

    I'm trying to open black and white the game using rosetta as it is a power pc game and not intel. I cant seem to find the option to use rosetta in the 'get info' menu. However i can find it for almost every other application. What am i doing wrong? I