Creating a Work Order List with a BLS Transaction

I'm trying to create a list of work orders at a specific plant with a BLS transaction.  I'm running 4.6c.  I'm having trouble finding a BAPI that I can use for this.  The BAPI list in BAPI Explorer seems rather abbreviated when it comes to plant maintenance functions.  Any ideas?

I did find one BAPI that looked promising 'BBP_PMORDER_GET_LIST' but unlike other BAPI's that had an INPUT section and an OUTPUT section, this one just had a TABLES section (and I couldn't find any documentation with it)
What is involved in creating a custom BAPI?
(We'll be on ERP2005 next spring so these 4.6c issues are temporary.)
I appreciate your help with this.

Similar Messages

  • When Creating a Work Order Import Standard Operations

    A client is requesting the following functionality when creating a Work Order: Create the first nine operations with different work centers and number operations 0001 u2013 0009.  For operation ten continue numbering with 0010 and increase by 10, ie, 0020, 0030, etcu2026 .   And operation 0010 would default header data.
    Can this be accomplished through standards configuration or would this entail a user exit?
    Thanks in advance!!
    JAM

    It can be possible, depending on how you create the Work Order.   If these operations are used often and are in a task list, you can create a work order and import the task list operations by using the menu "extras -> task List selections" inside the work order.    If it is part of a preventative maintenance plan, you can configure that your task list is automatically copied to the notification/work order when generated by your maintenance plan.  Of course in the task list you could save all the increments and work centers as you want.   But this would never be a dynamic check to your header data, it would only be as accurate as your task list.

  • BAPI for transaction IW31 (creating a work order)

    Hi all,
    I need to be able to create a work order ( IW31) using ABAP code and was wondering if any knew if there was a BAPI that should be used for this functionality.
    Thanks in advance
    Mart

    hi,
    You can use
    BAPI_ALM_ORDER_MAINTAIN.
    Have a look at the following documentation.
    FU BAPI_ALM_ORDER_MAINTAIN
    Text
    Process Maintenance-/Service Order
    Functionality
    This Business Application Programming Interface (BAPI) is used for changing maintenance- or service orders and their lower-level objects. The following objects of an order can be processed (for restrictions, see the note at the end of the documentation):
    Order header
    Partner
    User status
    Order operations
    Relationships
    Components
    Long texts for order header, operations, and components
    Function
    Calling up this BAPI once allows you to perform all the operations. For this the system supplies the function module with a method table containing the methods to be performed. The entries in the method table refer to data records in the optionally filled-out data tables. All the methods from the method table are performed. Alternatively, just lower- level objects from existing orders can be changed.
    You can process the transferred data with the Business Add-In (BAdI) IBAPI_ALM_ORD_MODIFY to, for example, merge data from the external system with data from the R/3 system. The BAdI is called up as soon as the transferred data is converted into the internal format. The tests then take place after this.
    Construction of Method Table
    REFNUMBER Reference number for linking object methods - attributes
    The reference number is the line of the database which contains the corresponding data. The data table is determined by the object type.
    OBJECTTYPE Object category
    The object category specifies which object from the order should be processed. The key words listed here are not language-dependent and must be transferred exactly as they are. The following objects exist:
    HEADER Order header
    PARTNER Partner data
    USERSTATUS User status
    OPERATION Operation data
    RELATION Relationships
    COMPONENT Components
    TEXT Long texts
    (empty) ,General BAPI functions (save)
    METHOD Methods
    The methods with which the data should be processed. The following functions exist:
    CREATE Create objects
    CHANGE Change objects
    DELETE Delete objects
    RELEASE Release
    TECHNICALCOMPLETE Technically complete
    ATPCHECK Availability check
    CALCULATE Calculate
    SCHEDULE Schedule
    DELELTEDSEX Delete the status for external scheduling at operation level
    SAVE Save all data
    DIALOG Call-up dialog. See explanation below.
    TRACE Write trace file in the specified file to the frontend
    OBJECTKEY SAP external object key
    This key is for assigning the lower-level objects correctly to the corresponding objects, as there is always just one key in the data table. The key must have the following structure:
    1-12 Order number
    When creating orders with internal number assignment, a reference number beginning with % must be entered here. The BAPI then returns this number and the number actually assigned.
    13-16 Operation number
    17-20 Sub-operation number
    For relationships, the key is structured as follows:
    1-12 ,Order number from
    13-16 Operation number from
    17-28 Order number to
    29-32 Operation number to
    The following methods are permissible for the individual objects:
    HEADER:
    CREATE, CHANGE, RELEASE, TECHNICALCOMPLETE, ATPCHECK, CALCUALTE, SCHEDULE
    OPERATION
    CREATE, CHANGE, DELETE, DELETEDSEX
    PARTNER, RELATION, COMPONENT, USERSTATUS, TEXT:
    CREATE, CHANGE, DELETE
    (empty):
    SAVE, DIALOG, TRACE
    Data tables and update tables
    The objects have one or more data tables. For some objects you can specify which of the fields specified in the structure should be changed. For this you must set the field in the corresponding table to X as in the data table. If no update-table is transferred, then only those fields are set that have a value that is not initial. This simplifies the transfer data. However, this means it is not possible to delete fields. If an update structure should only be specified for some data records, the table with the update fields must nonetheless have the same amount of lines as the data table. The empty lines are then treated as if no update structure was transferred. The objects "Partner", "User Status", and "Text" have no update tables. The whole data record is always copied here.
    References
    The objects use the field REFNUMBER from the method table to refer to the lines in the data table. Counting always begins with 1. In doing this, REFNUMBER also refers to the update table. However, in the method table there is a second reference to higher-level objects for lower-levels objects. The field OBJECTKEY must be filled with order number, operation number, and sub-operation number, as specified above. If lower-level objects of a newly-created order should be changed, then you must enter a temporary order number that must begin with %. Several orders can be numbered serially, for example, with %00000000001, %00000000002 ... .
    The following objects have special treatment for REFNUMBER:
    Partner
    Texts
    Partners have an order number in the data table. During processing of the method table, all those entries in the data table are processed which have an order number that is the same as that in the line to which the method refers. Thus, through just one entry in the method table, several partners can be changed.
    Texts are composed of two tables. The first table (IT_TEXT) is made up of the header data of the text. Here you must specify the object and the first and last line of the text table (respectively inclusive, counting from 1). Through this, a line segment is specified in the text line table (IT_TEXT_LINES).
    Peculiarities in processing
    The BAPI processes the transferred methods in a particular sequence, which must not correspond to the sequence in the methods table.
    Write trace file
    Change user status time period 1
    Delete objects (dependent first)
    Create new objects
    Change existing or newly-created objects
    Change user status time period 2
    Status change of order
    Save data
    The methods are performed such that lower-level objects can also be assigned to newly-created objects. For example, first the operations are created, and then the components. Long texts can also be created for the objects.
    Components have an exceptional position. Components are created through the assignment to an operation, that is, using the "key" order/ operation (item number). However, as this is not the unique component key, you can only access the components to change them, delete them, or add long texts by using the reservation number/-item, which is only given after saving. This means that, for example, you cannot create a long text when you create the component.
    User status changes can take place at two different time points. Time point 1 is before the object changes, time point 2 is after the object changes and before the status change of the system. These time points should be defined in the transfer table in the field CHANGE_EVENT. The field documentation contains the possible values.
    The external scheduling is offered by the BAPI as a special function. THe BAPI can set the date field directly at the operation level, and select the operation with the status DSEX "Date set by external system". This status prevents any further scheduling of the operation, it keeps the transferred dates. For this, set the category 'X' in the restriction categories. When reading the operation, this category is also returned, independent of the category of restriction set in the dialog. To delete the status, you can call up the method DELETEDSEX for the object operation. The external scheduling cannot be influenced in the dialog. All changes to the scheduling restrictions in the dialog are saved as normal, but are not relevant for the scheduling as long as the status DSEX is active.
    Every time the BAPI is called up, a SAVE or DIALOG method must be transferred. Normally, calling up a BAPI is seen as a transaction. All data that is changed in the BAPI should be saved to the database immediately. The BAPI checks whether a SAVE method exists, otherwise it terminates processing. A test run of the BAPI is composed of a normal call-up using the SAVE method and a subsequent BAPI_TRANSACTION_ROLLBACK. To call up the BAPI without the SAVE method, for example, to realize dialog transactions, the BAPI can be called up with the DIALOG method. This switches off the check for the SAVE method. The processor must then ensure that later either a SAVE method or a BAPI_TRANSACTION_ROLLBACK is called up.
    A BAPI_TRANSACTION_COMMIT without SAVE method terminates processing in the update to ensure that no inconsistent data is written to the database. The processor who called up the BAPI does not receive any confirmation for the termination of the update in the target system. This logic is necessary as the order data was flagged for updating with BAPI_TRANSACTION_COMMIT through the SAVE method. However, the status information was already flagged for updating when the BAPI was called up. A BAPI_TRANSACTION_COMMIT without SAVE method then just saves the status information and would generate inconsistent orders, if the updating was not terminated.
    Customer Enhancement
    The BAdI IBAPI_ALM_ORD_MODIFY can be used to change the transferred data. The BAdI is called up after the conversion of the transfer structure into the structures used internally. Additional data can be transferred using the table EXTENSION_IN. Only then is the data checked.
    Example
    The following examples should clarify the use.
    Creating an order
    OBJECTKEY should be filled with a temporary key. The BAPI returns this key together with the assigned order number in the return table ET_NUMBERS . The order number in the HEADER table should also be filled with the number. For external number assignment, the external number should be specified. The update structure can be transferred if necessary.
    Methods table
    REFNUMBER OBJECTTYPE METHOD OBJECTKEY
    1 HEADER CREATE %00000000001
    IT_HEADER
    ORDERID ORDER_TYPE PLANPLANT ...
    %00000000001 PM01 1000 ...
    Creating an order with operation and long text
    Methods table
    REFNUMBER OBJECTTYPE METHOD OBJECTKEY
    1 HEADER CREATE %00000000001
    1 OPERATION CREATE %00000000001
    1 TEXT CREATE %000000000010010
    IT_HEADER
    ORDERID ORDER_TYPE PLANPLANT ...
    %00000000001 PM01 1000 ...
    IT_OPERATION
    ACTIVITY SUB_ACTIVITY CONTROL_KEY WRK_CNTR ...
    10 PM01 MECHANIC ...
    IT_TEXT
    ACTIVITY ... TEXTSTART TEXTEND
    10 ... 1 2
    IT_TEXT_LINES
    TDFORMAT TDLINE
    Longtext for operation 10, line 1
    Line 2 of the long text
    Notes
    Using the BAPI to process the order data cannot support all the functions of the transaction. This applies in particular for the following functions:
    Order header data
    The object list cannot be processed.
    Refurbishment orders are not supported.
    The estimated costs cannot be processed - only the estimated overall costs of the order.
    Notification data cannot be processed with the order BAPI. Even if the settings in Customizing are such that the orders and notifications can be maintained on one screen, no notification is created for the order.
    Permits cannot be processed.
    The order addresses cannot be processed.
    Individual partner addresses cannot be maintained.
    The settlement rule cannot be maintained.
    Order functions
    Printing the papers is not possible.
    Locking and unlocking the order is not possible.
    Accepting and rejecting quotations is not possible.
    Business completion is not possible.
    Flagging for deletion is not possible.
    The log cannot be displayed.
    User default values are not used.
    The field selection is not checked.
    The Customer Exits/BAdIs are not executed completely.
    Joint ventures are not supported.
    Funds Management is not supported.
    Investment orders are not supported.
    No integration of service products with task lists possible.
    No integration of configurable service products possible.
    Assignment of sales document items with service products in accordance with the aforementioned conditions.
    Operation data
    A change of the control key in the operation is not possible, if this leads to a change of the processing type (internal-/external processing)
    User status change not possible.
    Production resources and tools cannot be processed.
    Service lines cannot be processed.
    Task list integration is not supported.
    Linking operations with object list is not supported.
    Component data
    User status change not possible.
    BOM data cannot be processed.
    The delivery address cannot be processed.
    Further Information
    See also the documentation for the individual transfer tables.
    Parameters
    IT_METHODS
    IT_HEADER
    IT_HEADER_UP
    IT_HEADER_SRV
    IT_HEADER_SRV_UP
    IT_USERSTATUS
    IT_PARTNER
    IT_PARTNER_UP
    IT_OPERATION
    IT_OPERATION_UP
    IT_RELATION
    IT_RELATION_UP
    IT_COMPONENT
    IT_COMPONENT_UP
    IT_TEXT
    IT_TEXT_LINES
    EXTENSION_IN
    RETURN
    ET_NUMBERS
    Exceptions
    Function Group
    IBAPI_ALM_ORDER
    ~~Guduri

  • Create a work order using the BAPI for IW31

    Hi,
          I want to create a work order using the BAPI for IW31 tr. can any one help me with the program description.
    Full points will be awarded for the useful answers.
    Thanks and regards,
    Sunil

    hi,
      first use fm "bapi_po_create".
      then use fm "BAPI_ACC_GL_POSTING_POST"
    The demo environment was made with real business scenario in mind, but following subjects need to be addressed in a live implementation:
    •     No exceptions and error handling is implemented, except the order rejection (e.g. partly delivery);
    •     In Navision both XML Ports and the XML DOM has been used to integrate with SAP XI, because XML ports has some drawbacks regarding to Namespaces in XML Documents (mandatory in SAP XI);
    •     A minimum of SAP and Navision customization is required to implement this solution. (e.g. user exit in SAP, Navision XML DOM).

  • Customization for create 2 Work orders for different vendors against 1 PR

    Hi,
    What are the customization settings  to create 2 work orders for 2 different vendors against 1 PR with half-half quantity?

    thank you Mario.
    Actuly its infrastructure cmpany & user wants create Purchase order(service work order) for two different vendors with reference to single PR with alocating 60% quantity to 1st vendor & remaining 40% to another vendor.
    user allready created Po for 1st vendor (60% Quantity).
    Now system showing error " Quantity is allready full for reference PR"
    I want to know what is the procedue to solve this issue & customization.

  • I have created a quotation in CRM system. I want that to be downloaded into ECC, so that, I can create a sales order there with reference to that quotation. So, what are the parameters that I need to set in CRM system so that my quotation gets replicated?

    Dear Experts,
    I have created a quotation in CRM system. I want that to be downloaded into ECC, so that, I can create a sales order there with reference to that quotation. What are the parameters that I need to set in CRM system so that my quotation gets replicated without any error?
    Please help me in this regard. An early and in detail step by step guidance is highly appreciated.
    Thanks,
    SMTP

    It may be best to recreate the folder and the smart playlists from scratch.
    tt2

  • How to create a 2 column list with bullets

    How can I create a 2 columned list with bullets? When I hit tab button, the whole word and bullet moves. I am trying to create a checklist with 2 columns with a visual bullet in front of specific list items. Thanks for any help! chris

    Why not just use 2 columns?
    Or if they need to stay in step, a table?
    Peter
    btw A tab in a list changes its level, option tab moves it to the next tab on the ruler. A silly choice to make it the opposite of common sense, but they followed the lead of MsWord on this one.

  • Creating new work order - error on %001

    Hi all,
    Creating a new work order from the SAP Work Manager 6.0 application should be a standard functionality,
    However, on the system of our client, this goes wrong.
    Upon creating a new work order, we get the error 'Enter a numerical operation number'.
    New objects get an ID that starts with 'LOCAL_xx:xx:xx', which is converted to %001.
    SAP should recognize this and convert this automatically to 0010, 0020, ...
    how come this does not happen?
    it works fine on our SAP system, our customer's system gives an error.
    Kind regards,
    Judith

    Have you done any enhancement to  standard  product "specifically create method of  Work  Order Class handler" . or the standard product functionality itself is not working ?
    I don't see any reason why it works in your system but not in customer system. Try to put break point in create method of Work order class handler and check what  values are passed  for operation  number before invoking Work  Order create BAPI. 
    Infact Work Manager product converts local numbers to incremental  sequential  numbers before invoking create BAPI for Work Order.
    BR,
    Manju - SAP CEG UX/Mobile

  • IW37N- Work Order list layout- PR and PO fields are blank.

    Hello,
    We are using IW37n to view workorders list. When we add the PO and PR fields to the view list  they are left blank but we know there are PR and PO related to workorders.
    Does anyone know how to make them display.
    Thanks.

    Hi Pete ,
    I am also facing the same issue .
    I have created a PM order with an external service operation with key ZPM3 .
    Now I have created a service PR from it and then service PO is created and then service entry sheet is done .
    I am using IW37N and I am able to see PR against the PM order but
    under the column" PO Number " there is no value .
    My requirement is to see the list of PM orders ,with PR from them,PO against those PR's , service entry sheet doc no against those PO's.
    which report could show me all these fields and why IW37N is not showing value under PO number.
    Plz help
    REgards
    AM

  • How to Create one TLB Order manually with multiple deployed STR's

    Hello,
    We are currently facing an issue when trying to make a TLB manually by right clicking on the deployed STR's.
    APO generates multiple orders for each item.
    Business requirement is to generate one TLB Order.   
    For example there are 10 Confirmed STR's and the  planner wants to choose the deployed STR's manually from the list of 10 products.   When we right cliick and select each product (for either partial or full ) it moves to the TLB order, but generates multiple orders.
    Is there a way to restrict the requested lines to be in one Order?  So that when the order is CIFed to ECC, there's only one STO generated with multiple lines.
    Regards,
    Bhavesh

    Hi Bhavesh,
                   By manual TLB process only you can create stock transfer order with SINGLE line item. because your deployed STRs always will have single line item and you are selection one by one and converting manually. in STD process you can not club items manually...
    Yes it can be very much possible by automatic TLB run. it will take all the deployed orders and converting as TLB order by considering TLB profile where min , max limits maintained. also there is concept if you maintain loading group in product master based on that materials will be grouped together.....
    Clubbing items into one order is done by TLB heuristics.. but when you do manually you are deciding how to do it?....
    You can do one thing... after creation of TLB order with single item..you can edit and include some more items manually. Accordingly you need to delete deployed STRs.......
    If you want to automate this then you need to look out for BADI... not sure possible or not
    Regards
    Thennarasu.M

  • BAPI for Creating a PM order(iw34) with reference to a Notification

    Hi All,
    Could anyone help to find the BAPI for creating a PM order with reference to a notification Number.
    I will explain my requirement :
    I want to create a notification from an external Application where i got the BAPI BAPI_ALM_NOTIF_CREATE and keeping this created notification number as Referece or for this notification number  i need a create a PM order.Usually this process in done transaction IW34 in R/3.
    But with the BAPI BAPI_ALM_ORDER_MAINTAIN i can create a PM order but this BAPI doesn't have a input parameter "Notification number ".So i can't use this BAPI.
    Could any suggest for a BAPI where i can create a PM order with reference to a Notification Number.
    Regards,
    Sid

    Hi,
    I have tried with the FM CO_IH_ORDER_GENER_2 but when i executes it gives a error message
    "<i>Service/maintenance order type PM02 not completely maintained in plant
    Message no. IW216
    Diagnosis
    For the selected order type and plant, no check control is maintained in Plant Maintenance/Service in 'Availability Check for Materials, PRTs and Capacities'.
    Procedure
    A check control must be maintained for this combination of order type and plant</i>"".
    And even have a doubt what to enter in this input parameter "GEWRK_OBJTYP"  .
    Kindly help me to solve this issue.
    Regards,
    Sid

  • Re: open purchase order list with price unit

    Hi Guru,
    Please inform if SAP have transaction which can show the list of our open
    order complete with price unit of material.
    Thanks
    Regards
    siva

    i think to get price per unit with the open PO you have to develop an customized report so contact your ABAP team with your requirement and develop a customized report.
    regards,
    qsm sap

  • How to create a category/sucategory list with spry data

    I am trying to create a a menu list that looks like this using spry:
    Category Name
    subcategory1
    subcategory2
    subcategory3
    my mysql query is:
    SELECT myp_category_cat.idmnu_cat, myp_category_cat.category_cat, myp_subcat_sct.subcat_sct, myp_subcat_sct.id_sct FROM (myp_category_cat LEFT JOIN myp_subcat_sct ON myp_subcat_sct.idcat_sct=myp_category_cat.id_cat) WHERE myp_category_cat.idmnu_cat=1
    i have ben trying to use xpath filtering but i am getting an error. My datasets look like this:
    var dsCategories = new Spry.Data.XMLDataSet("myincludes/categories.php", "export/row/category", {sortOnLoad: "category", sortOrderOnLoad: "ascending", distinctOnLoad: true});
    var dsList = new Spry.Data.XMLDataSet("myincludes/categories.php", "export/row/subcat");
    now i try to combine like this but getting error:
    <div spry:region="dsCategories" class="SpotlightAndStacked">
      <div spry:repeat="dsCategories dsList" class="SpotlightAndStackedRow">
        <div class="SpotlightContainer">
          <div class="SpotlightColumn"> {category} {subcat} </div>
        </div>
        <br style="clear:both; line-height: 0px" />
      </div>
    </div>
    i am now getting a failed to retrieve dataset. Both dataset work perfectly when not combined.

    You have to declare all your SPRY Datasets in the region:
    div spry:region="dsCategories dsList" class="SpotlightAndStacked">
    Kevin

  • How can I make numbers align with the baseline in ordered lists with inline images?

    When I use inline images in an ordered list, the number for every line that has an inline image is offset from the baseline to align with the top of the image. Here is a screen shot from Preview mode (same behavior on real devices):
    List entries 1 and 3 are normal. Entries 2 and 4, which contain inline images, have their numbers offset above the baseline.
    I guess the line-height gets redefined based on the inline image, and then the numbers align based on line-height. Is there a way to change this within Muse so the numbers will consistently sit at the baseline even when the line includes an image? Is it something that needs to be addressed by modifying style sheets?

    Hi,
    You are correct in observing that inline objects affect line height, which in turn affects alignment of the bullet/number with the line.
    To address this, you can use negative wrap offsets on the inline (specifically top offset) using the Wrap panel: adjust the value until the inline no longer adversely affects line height.
    Hope this helps.
    Abhishek

  • Create a purchase order strategy with four release steps.

    Hi all,
    how can I create a purchase order release strategy with 4 release steps?
    The steps have to be the following:
    AC (Buyer);
    CO (Controller);
    FI (Finance);
    AD (CEO).
    I couldn't configure and add entries in "Release prerequisites" (trx.OMGS).
    Best regards

    Hi ,
    The implemantation steps as follows ;
    Materials Management -- Purchasing -- Purchase Order --Release Procedure for Purchase Orders
    1 . Edit Characteristic ; You must create characteristics that related your strategy first . IN additonal data screen use "CEKKO " as table and appropriate field as field name .
    2.  Edit Class ; Create your class with class type - 032 . And enter your characteristics that created first step .
    3. Define Release Procedure for Purchase Orders
                    a.Create Release Groups and enter your class
                    b.Create release codes related with Buyer , controller etc.
                    c.Create Release indicator
                    d. Create Release Strategies ; Enter your release codes and in classificaiton area , you must enter your values that related with characteristics that created step 1.

Maybe you are looking for

  • How can i use ipad with apple tv

    How can i use ipad with appletv

  • Error message when trying to receive messages

    hi i am unable to send or receive messages. when trying to send an email i get this message: 'An error occurred sending mail: The mail server sent an incorrect greeting: Cannot connect to SMTP server 213.8.196.24 (213.8.196.24:25), NB connect error 1

  • IPod 1st Gen Update

    I have an iPod touch 1st Generation. So, it doesn't come with apps or anything and I want to put apps onto it. I have already bought the new software to put apps onto it and everytime I try to restore and update it says error. I have already got the

  • Setting 1 dimension in ROLAP mode cause issues, the system try to filter on dynamic set names!

    Hi, I suffer a strange behavior. I have an SSAS 2014 solution which works fine. I do some test to convert 1 dimension in ROLAP mode. (all the other dimensions and partitions are MOLAP only) after this I cant process any cube!!! even a process clear o

  • Mapping for InvoiceEBO

    Just wandering if anyone has mapped an InvoiceEBO (AIA Invoice structure) to the Oracle eBusiness Suite Invoice Open Interface table i.e. RA_INTERFACE_LINES_ALL, RA_INTERFACE_DISTRIBUTIONS_ALL, RA_INTERFACE_SALESCREDITS_ALL. There doesn't seem to be