Get latest order for a scheduled maintenance plan
Hi experts,
I have a requirement where i have to get the order id for a scheduled Maintenance plan.My scenario is explained as below:
A maintenace plan is scheduled and as a result of it an order will be created automatically by system. Now i have to write a Report program which will be running daily and this report has to pick only those order which are NOT complete and these order will come from the above scheduled maintenance plan.
Therefore i have to pick incomplete order based on scheduled maintenance plan.Any idea how to achieve this requirement?
In case of any doubt please let me know.
Regards,
Abhishek
Thanks for reply. But my requirement is a bit differen.
I need a BAPI which can take Maintenance Plan as input and it can return the latest created incomplete order which is created due to scheduling of Maintenance Plan.
Regards,
Abhishek
Similar Messages
-
How to get the order for these decoration​s?
hello,
I want to programatically resize all the controls, indicators and decorations on the front panel.
I am getting the references of all the controls and indicators and able to resize them, as each n every control and indicator has a tabbing order set to it.
I am also getting the references of all the decoration used on the front panel but not able to get the order.
how to get the order for these decorations?The order of the decorations is the same as the back to front order. So you
can change it by bringing decorations to front, or sending them to the back.
It has been suggested many times that decorations should have labels as well
as controls, but at the moment there is no way to tell which reference
belongs to which decoration (besides position and order).
Regards,
Wiebe. -
Get Latest Revision for Referenced FO in 6.0.0.x?
I've read through patch notes as I could chase them down, but just want to confirm: Is the ability to use "Get Latest Revision" for a Referenced Formula Output on a formulation strictly a new feature for 6.1.x, or is there a patch for 6.0.0.x that would provide this functionality?
ThanksIt's only available in 6.1.0. Get latest revision was very limited in 6.0.0.
-
To get latest release for particular platform
Hi,
I have one table which contains, columns such that one column contains platform name and released versions.
like linux -> 11.1.0.6.0 , linux -> 10.2.0.5.0 , etc. Here issue is :- versions can be 11.2 or 9.2.0.1.50
Please, can you help me with any sql procedure who can get versions and format to proper format
and get latest version for that platform.
1. 11.1.0.6.0 --> convert to 2 digits --> 11.01.06.00
2. 11.2 --> complete proper version like --> 11.2.0.0.0 (by appending zeros) --> 11.02.00.00.00
3. 9.2.0.1.50 --> convert to 2 digits -> 09.02.00.01.50
Now final output we can trim "." and compare numerically.. like 11010600 with 1102000000 with 0902000150
Here 2nd no is greatest , hence we can return that for current selected platfrom.
Or any other simple implementation ?
Thanks,
DVS !Try this sql query.
with test
as
select '11.1.0.6.0' col1 from dual union all
select '11.2'from dual union all
select '9.2.0.1.50' from dual
select col1,version, replace(version,'.')
from (
select col1, nvl(lpad(substr(col1||'.',1,instr(col1||'.','.',1,1)-1),2,'0'),'00')||'.'||
nvl(lpad(substr(col1||'.',instr(col1||'.','.',1,1)+1,instr(col1||'.','.',1,2)-instr(col1||'.','.',1,1)-1),2,'0'),'00')||'.'||
nvl(lpad(substr(col1||'.',instr(col1||'.','.',1,2)+1,instr(col1||'.','.',1,3)-instr(col1||'.','.',1,2)-1),2,'0'),'00')||'.'||
nvl(lpad(substr(col1||'.',instr(col1||'.','.',1,3)+1,instr(col1||'.','.',1,4)-instr(col1||'.','.',1,3)-1),2,'0'),'00')||'.'||
nvl(lpad(substr(col1||'.',instr(col1||'.','.',1,4)+1,instr(col1||'.','.',1,5)-instr(col1||'.','.',1,4)-1),2,'0'),'00') version
from test)
COL1 VERSION REPLACE(VERSIO
11.1.0.6.0 11.01.00.06.00 1101000600
11.2 11.02.00.00.00 1102000000
9.2.0.1.50 09.02.00.01.50 0902000150 -
BAPI for Creation of Maintenance Plan (TCode - IP01)
Hello
Kindly help me with the BAPI for Creation of Maintenance Plan (TCode - IP01)
Thanks and Regards
AvishekHi
Check Tcode: IBIP. and LSMW method and below link it may be helpful.
[link|Re: LSMW for uploading equipment.]
Thanks,
Asit Purbey. -
If we upgrade to a new monthly plan do we get a refund for the full year plan that we've already purchased?
You will need to contact Apple - we are all other end users like you here.
iCloud storage pricing - Apple Support -
Update was terminated error while scheduling maintenance plan
HI Friends,
I created a maintenance plan.I scheduled the order and i saved.
Now when i tried to see the schedule i am getting a message
"Update was terminated"
the detailed error is
Update was terminated
System ID.... DEV
Client....... XXX
User..... XXXXX
Transaction.. IP10
Update key... 49041E2C02935CCCE10000000AFA0209
Generated.... 30.10.2008, 17:22:18
Completed.... 30.10.2008, 17:22:19
Error Info... 00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
Can anyone tell me why this error is coming and how to rectify.
Thanks in advance
Vivek
Edited by: vivek mankad on Oct 30, 2008 1:38 PMVivek,
Talk to your ABAP/Basis team
PeteA -
Settings for performance based maintenance plan
Hi experts,
Incase of hour or Km dependent performance base plan, how we can fix the reading (In hours or Km) limit or period of order generation? what is the impact of annual estimate? Please give me an example with all readings.
Regards,When you create a plan with a counter (Associate a measurement point of counter type to the same), then you would be able to specify at what intervals (Counter readings for this measurement point), the call object associated to the Maintenance plan should be generated.
The actual call date for this maintenance plan however depends on the "Annual estimate " for the measurement point counter and also the actual counter readings captured for the measurement point
For ex: Annual estimate maintained for the Point : 12,000 Miles .Maintenance for this equipment should be triggered for every 1000 Miles (This should be the counter interval maintained for the Maintenance plan). Based on the above the maintenance plan would generated a call every one month (Annual estimate / period).As an example, when this Maintenance plan is scheduled for 1 yr, then 12 maintenance calls will be generated one each for every month. The actual and scheduled dates for the call depends on the various other scheduling parameters maintained for the Plan.
Its critical for any counter based maintenance plan that the counter reading is Captured , Through measurement documents regularly, EVEN IF THERE IS NO CHANGE TO THE COUNTER READING, Otherwise, the system generates call objects (for example, maintenance orders) based on the estimated annual performance entered for the counter, even though the counter reading has not in reality been reached.
for ex: owing to a vehicle breakdown/ repair if the vehicle has been in repair shop for a month,To avoid a maintenance order being created before it is needed, you maintain the new total counter reading in the system regularly over the period of the month. You then reschedule the maintenance plan using IP30, and the call date is recalculated based on the updated counter reading. In this case, the call date would be later.
[Detailed SAP Help|http://help.sap.com/erp2005_ehp_04/helpdata/en/3c/abbcf6413911d1893d0000e8323c4f/frameset.htm].
Regards
Narasimhan -
How to get worj orders for a plant maintanance
hai gurus can any one tell me what are the function modules or bapis which are used for creation and reading the work orders
thanx afzalhi
check the following Bapis
<b>BAPI_ALM_ORDER_MAINTAIN</b>
COXT_BAPI_ORDER_CREATE
BAPI_ALM_ORDER_GET_DETAIL
BAPI_ALM_ORDER_MAINTAIN
BAPI_STANDING_ORDER_CREATE
BAPI_PLANNEDORDER_CHANGE
BAPI_PLANNEDORDER_CREATE
IBAPI_R_REL_SET_WORKCENTER
IBAPI_R_CHECK_WORKCENTER
Have a look at the following documentation.
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
regards
vijay
<b>reward points if helpful</b> -
Getting sales orders for a customer
Hi Experts,
Which FM should be used to get all sales orders for a particular customer in ECC 6.0
Thanks and Regards
ShilpiHi,
Not sure abt FM.
Did u check VBAK table has a field KUNNR.
You can put query on VBAK with condition Kunnr = 'Customer NO'.
Please check if this serves ur purpose.
Thanks
Praveen -
Not able to get RZ points for the Good Maintenance Reward.....
Tried geek squad support they are telling me the promotion no longer exists. They also said the only eligible amount is the phone purchase with the first payment of the plan. I would say the eligible amount is the entire cost of the plan. 14.99 x 24 months. Any thoughts?
Good morning Slownas1, and welcome to the Best Buy forum!
The Good Maintenance Reward is no longer offered with the purchase of a Geek Squad Protection plan; however, it is a benefit we should still be able to honor as long as the protection plan in-question was eligible and qualifies. A standard protection plan would need to have been purchased between 9/14/2008 - 7/14/2012 to be eligible and the plan could not have been utilized for any services to be eligible. If both of those terms are met, then a request for the benefit would need to be made within 90 days of the plan officially expiring.
Based on the information you provided in your post, it appears the protection plan in-question may have been a monthly plan, possibly for a mobile phone. Is that correct? If so, then it would not be eligible for the Good Maintenance Reward because mobile plans were not included. The protection plan would need to have been paid in full at the time of purchase.
If you have any additional questions about the Good Maintenance Reward, please feel free to send me a private message and I will see what I can do to help. You can send a private message by clicking on the blue button located within my signature.
Thank you for posting.
Derek|Social Media Specialist | Best Buy® Corporate
Private Message -
Cannot get latest upgrade for i pod touch
Hi, I am trying to update my I Pod to the latest software but cannot get past 4.2.1 . Some of the apps I want to install say I need 4.3 but it seems it is not available for my I pod.
Any info would be appreciated.
Kind Regards.You may already have the latest update for your iPod Touch, but check here to be sure:
iOS 4: Updating your device to iOS 5 or later
Here are the last OS versions for each iPod generation:
An original iPod Touch can run iPhone OS 3.1.3
2G model: maximum iOS 4.2.1
3G model: maximum iOS 5.1.1
4G, 5G can run iOS 6.
To determine which of these you have click here: Identifying iPod models -
Tcode for checking the Maintenance Plan
Hello,
I want the transaction code for checking the list of maintenance plan for a particular plant. I went thru tcode IP03, IP16 but could not find the option of plant there..
Kindly guide..
Regards,
NarenNaren,
As stated above, there isn't a plant field in the maintenance plan (only maintenance item, hence the reference ot IP17)
However, it is quite common to use the maintenance plan Sort field as a plant field by customising the table settings for each plant.
PeteA -
BAPI function module to get process orders for certain material
Dear experts ,
kindly , I need my vb application to get all CRD , but not DLV Process orders for Material X.
Into SAP , I use the COIO , then set material to X , then display flag CRTD included , and Exclude DLV.
Question now , What is the function module that does this. what is the table name , and how to set search parameters.
my code will be like this
theFunc = functionCtrl.Add("BAPI_PO_GETDETAIL") ' get po data
theFunc.exports("purchaseorder") = t.Text
returnFunc = theFunc.call
returnParam = theFunc.imports("po_header")
retTab = theFunc.tables("po_items")
For Each rr In retTab.Rows
tt1.Text &= (rr("MATERIAL")) & vbTab
next
Thanks
WaleedHi,
Check if the below helps:
1. BAPI_SALESORDER_GETLIST for VA05
2. BAPI_QUOTATION_GETDETAILBOS for VA25.
Regards,
Vivek -
MRP for Scheduled Maintenance Plan
Hello here!
Please help me.
I customised MRP type VB (Manual Reorder Point Planning).
Then I created monthly Task List with some components from materials.
In next step i assigned my Task List to my Maintanance Plan.
I Scheduled and Started my Maintanance Plan (from 30.07.2011).
If I run MRP(01.08.2011) and Work Order was created (30.07.2011) - everything work great. MRP will create Purchase Requisition.
But i need to customise MRP for posibility of creating Purchase Requisition for future Work Order's(30.08.2011, 30.09.2011 etc)
It is posible?
Thanks you and sorry for my english.Work Order (Maintenance Order) will be created based on scheduling. In case of any stock items, Maintenance order will create the reservation.
If you run the MRP for that material, based on stock availability, MRP run will create PR.
As you are using Reorder Point Planning, system will consider that material only when the available stock comes below the Reorder point.
So you can keep safety stock by considering future orders as well, so that MRP will create PRs for future work orders.
Maybe you are looking for
-
Please help if anyone knows how to sync apps on Ipad3. I've tried syncing device to i-cloud and it shows as though it is fully updated. However, on the device there are almost 25 icons for apps which are greyed out and show the message 'waiting' und
-
How do you filter entities by properties in the Distribution List?
Hello, experts: Can you tell me how I can filter entities by property in the Distribution List? For example, I only want to distribute the input schedule to the entities that have a "PROJECTLVL" property of "Y". Thank you. Bei
-
Websphere application connectivity to SAP
We are trying to do some proof of concept work connecting to SAP BAPIs using the SAP connector. We have the Netweaver ABAP trial version installed but it doesn't seem to have JCo or sapjra.rar anywhere. Are these components available in a trial form.
-
Netinfo problems, hang at boot
Hi, My Mac Mini is frequently hanging at bootup due to what appears to be a problem with Netinfo. I'm seeing the following in the syslog: Aug 3 06:35:53 john-clynes-computer DirectoryService[43]: NetInfo connection failed for server 127.0.0.1/local A
-
How to attach a customer program during saving in tcode qm02
hi, i have written a abap program which will send emails after saving data in qm02 . but i do not know how to attach this program so that it executes upon saving data in qm02 . can any one help me out . thanks in advance. Kallol.