Create a Maintenance Item and Plan
Hi guys,
Does anybody know if there is some BAPI or FM's do create Maintenance Plans and Items?
I found MAINTENANCE_PLAN_POST and MAINTENANCE_ITEM_POST, but i think these FM's just a insert records in database...
Does anybody knows how to fill the input tables or other way to do this?
Thanks in advance.
LMS
BDC?
Rob
Similar Messages
-
Using a newly created Library document to create a list item and attach itself
I have a workflow that moves a document from one library to another.
When a document is moved to a certain library I want to create a list item with a link to the document in the list item. Keep in mind there could be 10 files submitted to the library, so then in my list I would want 10 new list items created for
each file, with a link to the individual file. or is there a way to attach the document to a newly created list item programmatically?
is this possible?Hi,
According to your post, my understanding is that you wanted to use a newly created Library document to create a list item and attach itself.
I recommend to create a workflow assocaited to the second library, and start the workflow automatically when an item is created.
Then add action as below:
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
FM or BAPI to change Maintenance plant and Planning Plant for an equipment
Hi Experts,
I need to change the Maintenance plant and Planning Plant for an equipment. Is there FM or BAPI available for the same?
Thanks,
Peri.what doesn't it do the same ? it contains planning plant and maintenance plant which you can update ??
if you expect that SAP delivers custom functions for every possible question a developer has you can better search for an other job. SAP makes generic functions and you can use them for you're own sollutions.
it is also expected that you try to work things out for you're own sollution.
you can find sample code quickly enough if you search where the function is used
like RISTEQ01
kind regards
arthur -
How are maintenance plant and planning plant linked in PM(Plant Maint).
Hi All,
How are maintenance plant and planning plant are linked in PM(Plant Maint).Where can I configure both of them in SPRO(I mean the path).
I am a hard-core technical consultant so am sorry If I am asking a silly question.
Kind Regards,
Anshu KumarHi,
Please find below the path to cretae the planning plant and assigning the plant:
SPRO-Enterprise StructureDefinitionPlant MaintenanceMaintain maintenance planning plant;
SPRO-Enterprise StructureAssignmentPlant MaintenanceAssign maintenance planning plant to maintenance plant;
A Maintenance plant in which the technical objects of a company are installed.
A Planning plant is a plant in which the maintenance tasks are planned and prepared.
Hope it will help.
Regards,
Manish -
Programatically create new mail item and open - body text lost on subsequent saves
Hi,
I have a problem with trying to create new GroupWise mail item from a
button in a C3PO. I require programmatic access to this via the Object
API, so it must be a saved draft. This is relativley straight forward to
do - just create a mail item using the object API, and then use the Token
API to open this item.
This worked fine in 6.5.0, however in 6.5.1 and 6.5.2 I have noticed that
when the user does a subsequent save, the body text of the message
dissappears in the GUI (it is updated correctly in the draft however) -
and all subsequent saves cause the body text to dissappear. If you close
the mail item and open the draft manually you can continue as normal.
As a test, I also tried to use the Token API to create a new mail item,
and then again to save the item in the work in progress folder. This
seems to work fine the very first time you do this, but each subsequent
time the same behaviour is seen - i.e. the body text of the email is
deleted from the GUI. Also, another observation here, event though the
mail item was saved in the WIP folder via the token API command
ItemSaveMessageDraft, it moves into the users MailBox when the user saves
it manually.
I have posted the two snippets of code from my test C3PO project at then
end.
This is a major problem, as we need to be able to reliably create new mail
items from a toolbar button, so any help very much appreciated.
Regards
Greg
Test case 1: Create a new message object in the WIP folder, and then open
it using Token API...
Dim sRetString As String
Dim DraftMail As Object
Set DraftMail =
g_C3POManager.ClientState.CurrentAccount.WorkFolde r.Messages.Add
("GW.MESSAGE.MAIL", egwDraft)
g_Commander.Execute "ItemOpen(""" & DraftMail.MessageId & """)", sRetString
Test case 2: Create a new mail via token API, then use token API to save
the item in the WIP folder...
Dim sRetString As String
' create the new mail item...
g_Commander.Execute "NewMail()", sRetString
' Get the folder path as a string..
Dim GWFolder As Object
Dim sAccount As String
Dim sFolderPath As String
sAccount = g_C3POManager.ClientState.CurrentAccount.RootFolde r.Name
Set GWFolder = g_C3POManager.ClientState.CurrentAccount.WorkFolde r
sFolderPath = sAccount & "\" & GWFolder.Name
' dirty the message so save works...
g_Commander.Execute "ItemSetText(""X00"";Subject!;"" "")", sRetString
g_Commander.Execute "ItemSetText(""X00"";Subject!;"""")", sRetString
' do the save...
g_Commander.Execute "ItemSaveMessageDraft(""" & sFolderPath & """)",
sRetStringHi,
I have a problem with trying to create new GroupWise mail item from a
button in a C3PO. I require programmatic access to this via the Object
API, so it must be a saved draft. This is relativley straight forward to
do - just create a mail item using the object API, and then use the Token
API to open this item.
This worked fine in 6.5.0, however in 6.5.1 and 6.5.2 I have noticed that
when the user does a subsequent save, the body text of the message
dissappears in the GUI (it is updated correctly in the draft however) -
and all subsequent saves cause the body text to dissappear. If you close
the mail item and open the draft manually you can continue as normal.
As a test, I also tried to use the Token API to create a new mail item,
and then again to save the item in the work in progress folder. This
seems to work fine the very first time you do this, but each subsequent
time the same behaviour is seen - i.e. the body text of the email is
deleted from the GUI. Also, another observation here, event though the
mail item was saved in the WIP folder via the token API command
ItemSaveMessageDraft, it moves into the users MailBox when the user saves
it manually.
I have posted the two snippets of code from my test C3PO project at then
end.
This is a major problem, as we need to be able to reliably create new mail
items from a toolbar button, so any help very much appreciated.
Regards
Greg
Test case 1: Create a new message object in the WIP folder, and then open
it using Token API...
Dim sRetString As String
Dim DraftMail As Object
Set DraftMail =
g_C3POManager.ClientState.CurrentAccount.WorkFolde r.Messages.Add
("GW.MESSAGE.MAIL", egwDraft)
g_Commander.Execute "ItemOpen(""" & DraftMail.MessageId & """)", sRetString
Test case 2: Create a new mail via token API, then use token API to save
the item in the WIP folder...
Dim sRetString As String
' create the new mail item...
g_Commander.Execute "NewMail()", sRetString
' Get the folder path as a string..
Dim GWFolder As Object
Dim sAccount As String
Dim sFolderPath As String
sAccount = g_C3POManager.ClientState.CurrentAccount.RootFolde r.Name
Set GWFolder = g_C3POManager.ClientState.CurrentAccount.WorkFolde r
sFolderPath = sAccount & "\" & GWFolder.Name
' dirty the message so save works...
g_Commander.Execute "ItemSetText(""X00"";Subject!;"" "")", sRetString
g_Commander.Execute "ItemSetText(""X00"";Subject!;"""")", sRetString
' do the save...
g_Commander.Execute "ItemSaveMessageDraft(""" & sFolderPath & """)",
sRetString -
Pipelined function which creates xml nodes,items and elements
Hi Everyone,
I am Vikas Kumar and i have written a pipelined function
which is returning a UDT which i have created in my database.
but when i am piping a row then there is error :
"Error: PLS-00306: wrong number or types of arguments in call to 'CLASEC_MENU_TYPE' "
i have created UDT as :
create type clasec_menu_type as object (menu_data xmltype);
create type clasec_menu_list_type as table of clasec_menu_type;
and function is as below
create or replace function clasec_fns_menu
return clasec_menu_list_type pipelined as
doc xmldom.DOMDocument;
main_node xmldom.DOMNode;
root_node xmldom.DOMNode;
user_node xmldom.DOMNode;
item_node xmldom.DOMNode;
root_elmt xmldom.DOMElement;
item_elmt xmldom.DOMElement;
item_text xmldom.DOMText;
CURSOR get_menu IS
SELECT menu_level,
is_menu_a_leaf,
menu_id,
menu_name,
menu_screen_uri,
screen_target_frame,
rownum
FROM clasec_menu_view1;
BEGIN
doc := xmldom.newDOMDocument;
main_node := xmldom.makeNode(doc);
root_elmt := xmldom.createElement(
doc,
'Menubar'
root_node := xmldom.appendChild(
main_node,
xmldom.makeNode(root_elmt)
pipe row (clasec_menu_type(root_node));
FOR get_menu_rec IN get_menu LOOP
if get_menu_rec.menu_level = 1 then
item_elmt := xmldom.createElement(
doc,
'menu'
xmldom.setAttribute(
item_elmt,
'text',
get_menu_rec.menu_name
user_node := xmldom.appendChild(
root_node,
xmldom.makeNode(item_elmt)
pipe row(user_node);
end loop;
end;
compilation error is at the statement
pipe row (clasec_menu_type(root_node));
i think its conversion error but don,t know how can i convert root_node which has been defined with :
root_node xmldom.DOMNode;
Regards,
Vikas KumarHi,
Your type, clasec_menu_type, needs an argument of type XMLType. If you want to create instance of XMLType, you have to pass it varchar2, clob or XMLType.
So, think how will you convert xmldom.DOMNode to XMLtype or Varchar2 or clob.
Best of luck -
BI content for Maintenance Plan and Maintenance Item
Dear community,
we use in OLTP the transaction IP06 (Maintenance Item) and IP03 (Maintenance Plan) in module PM.
Can anyone tell me the matching BI content in BW system 7.0 to import most of those fields from ERP?
Not only master data, also transaction data (e.g. like scheduling list).
I've already searched help.sap.com but didn't find a matching datasource.
RegardsDear Srinivas,
I've already run a systemtrace to find out the tables:
The following tables are involved: MPOS, MMPT, MPLA and MHIO, MHIS.
In BI-Content I just find MPOS in the DataSource 0PM_MAINTPOS_ATTR and 0PM_MAINTPOS_TEXT. That is ok for master data.
The other tables I couldn't find in BI-Content.
But maybe the BI-Content does not use these tables. Maybe there is used a view which I don't see in the trace.
Regards. -
Maintenance Item assignment to a Maintenance Plan
Dear Expert,
we need some help about the following scenario.
Currently we are working on preventive maintenance in SAP ECC 6.0 system. We have created several maintenance items without assignment to maintenance plans in order to use them like models: to make quickly the creation of a maintenance plan our users can choose the suitable maintenance item from a range.
In these items we have inserted only strategy and maintenance task list but we have not insert the technical object.
We carry out the following steps:
1. we run transaction IP42;
2. we insert the maintenance category and the strategy;
3. in the tab "Item" we press the button "Assign more items";
4. system runs report RIMPOS00 (Display Maintenance Item: Selection Criteria) in order to select the item to insert in the maintenance plan. In this screen the followin fields are locked (we can not change them):
- "Maint. plan cat.";
- "Maintenance strategy";
- "MaintPlan assignment" and the radio botton is set on "without".
In this way if a maintenance item has been already assigned to a maintenance plan users can not select it for the current plan.
In your opinion could we open the radio buttons for the field "MaintPlan assignment" ? Could anyone help us ?
Thank you very much for your help.
Kind regards.Hi,
Pl.try following path in SPRO,
Plant Maintenance and Customer Service..Maintenance Plans, Work Centers, Task Lists and PRTs..
Maintenance Plans..Set List Editing for Maintenance Items
After clicking on Execute button u will get a pop up " Customising list editing "Double click on selection do the changes & save.
It will work i think.
Pl.try.
Regards,
Amit -
How to set start of cycle/next planned date at the Maintenance Item level??
Hi All,
We are uploading a bulk of Strategy Maintenance Plans into the system. Each plan has multiple maintenance items and each maintenance item in a plan having different next due dates. Now if we set the Start of cycle at the Maintenance Plan level, then the next due dates of the maintenance items in that plan would be calculated on the basis on Start of Cycle (Common for all) and frequency as set in MPackages in an item Task list. Since each Maintenance item may have different Frequency and next due date, generating a call object while scheduling the plan correctly to satisfy at the Maintenance item level is not seeming possible.
Can someone please suggest as to how do I set the Start of cycle or say Next Planned Date or Last Scheduled date at the Maintenance Item level either through configuration or programmatically.We are working on an SAP 4.6C version.It is urgent!!!hi
i think specifying start of the cycle for each maintenance level is not possible ,since start of the cycle refers to maintenance plan only .
for SAP standard kindly refer the following [link|http://help.sap.com/saphelp_46c/helpdata/en/94/43a968abc011d395bd00a0c93029cf/content.htm]
it is better to create one maintenance item per maintenance plan,if you want to control each maintenance item independently
regards
thyagarajan -
Create change lsmw to include the maintenance items.
Hi,
can some1 plz tell me how to create the lsmw in the change mode to include maintenace items in the maintenance plans.
The client wants that I should add the maintenance items while creating the maintenance plans i.e. the maintenance items should
not be created before.Please tell me the steps.hi
You can create using the standard object for maintenance plan itself. you need to define 2 sources fields ,like maintenance plan and maintenance item and assign the corresponding fields to the same .also you need to create 2 files and specify the same . then try it
regards
thyagarajan -
Is there any function module or BAPI to create maintenance item.(Urgent)
Hi Experts,
I want to create an RFC which creates the maintenance item in the sap. The RFC is going to receive data from XI. So is there any function module or BAPI to create maintenance item? so that i can call that FM in my RFC.
Thanks,
Prasanna
Helpful answers will be rewarded.Check and implement your program accordingly:
*& Report ZMRS_BAPI_DEMO_ORDERS
REPORT ZMRS_BAPI_DEMO_ORDERS.
DATA: gs_method TYPE bapi_alm_order_method,
gs_header TYPE bapi_alm_order_headers_i,
gs_header_up TYPE bapi_alm_order_headers_up,
gs_return TYPE bapiret2,
gs_numbers TYPE bapi_alm_numbers,
gs_return_commit TYPE bapiret2,
gs_demo_order TYPE objidext,
gt_demo_order LIKE TABLE OF gs_demo_order,
gt_method LIKE TABLE OF gs_method,
gt_header LIKE TABLE OF gs_header,
gt_header_up LIKE TABLE OF gs_header_up,
gt_return LIKE TABLE OF gs_return,
gt_numbers LIKE TABLE OF gs_numbers,
gt_return_commit LIKE TABLE OF gs_return_commit.
DATA lv_not_successful TYPE c.
DATA lv_ref_cnt TYPE i.
IMPORT gt_method FROM MEMORY ID 'MET'.
IMPORT gt_header FROM MEMORY ID 'HED'.
IMPORT gt_header_up FROM MEMORY ID 'HUP'.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = gt_method
it_header = gt_header
it_header_up = gt_header_up
return = gt_return
et_numbers = gt_numbers.
CLEAR lv_not_successful.
LOOP AT gt_return INTO gs_return.
IF gs_return-type = 'E'.
lv_not_successful = 'X'.
ELSEIF gs_return-type = 'W'.
lv_not_successful = 'X'.
ELSE.
do nothing
ENDIF.
ENDLOOP.
IF lv_not_successful <> 'X'.
commit changes
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = gs_return_commit.
ELSE.
rollback changes
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
IMPORTING
return = gs_return_commit.
ENDIF.
EXPORT gt_return TO MEMORY ID 'RET'.
EXPORT gs_return_commit TO MEMORY ID 'COM_RET'. -
Query to Display Settlement Receivers for Maintenance Items
I am looking for a way to get a query/list display that shows me our maintenance plans, maintenance items and the settlement receiver. Looked in all the obvious spots and the actual receiver is not available. In the maintenance plan you can get the field that tells you there is a settlement rule but not the actual receiver. In the order list display you cannot get the information either.
Has anyone had this requirement and if so, what may have been the solution.Greetings Linda,
The Settlement Rules are saved in the tables COBRA & COBRB. Get your Maintenance Plan Object Number from table MPOS and join on the field OBJNR using an SAP Query.
(SQVI or SQ00)
Also, note that these will be copied to the created Orders and the actual settlement only happens for the Orders. The settlement rule of the Maintenance Item is only a template, no actuals are involved. -
Reversal FB08 Creating New OPEN ITEM instead of clearing the open item.
Dear All,
My user has an issue whenever he does any reversal Tcode - FB08 in one of the general ledger "Cash in Transit" nature "open item" & "Line item" instead of clearing the open it it creates a new open line item.
I have checked in Table BKPF , the reversal number is being updated but this items are still appearing open item in FBL3N and not appearing in F-04 (all reversals) for clearing.
Can any one share what can be the reason its creating new open item and how can i solve the issue for clearing the account.
Thanks & Regards
Pravinhi
Please check following cases
- whether this is happening in all the reversal cases of Cash in transit
- Whether is user is just using FBRA (Onsly resetting) and not going for reversal
- Chances would be one or two partial clearing may have taken for single document for the offsetting accounts
Thanks
Sandeep -
Cost Items and Time Schedules in T&EM
I have created certain Cost Items and Time Schedules in Development Server. Transferred them to Testing. But I am unable to edit them or included new ones through tcodes in Testing Server.
But my client wants to edit them or include new ones according to his requirements. How is this possible?
Points assured!
Thanks in advance.
Nivedita.Hi ,
You have to do the changes in the Developement client and then you have to move the changes to the Quality client. Hope this will solve your prob...
Regards,
Sri.. -
One of the user is unable to remove obsolete Tags from new work items and search query
Hi I am new to TFS Administration, User has some obsolete Tags in TFS site which is removed on the Backlogs but user can see those tags when he is creating new work items and while querying the Work Items but he is not able to see any obsolete tags in Backlogs.
TFS version: TFS 2013 SP2
Steps followed:
we queried each tags, we see 0 work items associated with the tags
As per MSDN, we have to remove associated tags which automatically removes the Tags after 3 days
The user is facing the same from past week
Am i missing something? or will the list of Tags be available in new work items and querying WITs? Please help
Thanks in AdvanceHi BE,
I tested this scenario in my TFS 2013 Update 4 Server, and found that Tags will disappear from Tags dropdown list automatically after serverl days, if there’s no any work item associated that Tags.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
UCCX 9.0- My customer wants only ziptone in headset for new call to agent, no ringing on Phone. Can this be done? I can't seem to find a way to do this natively.
-
Anyone has a canny edge detector vi that can be opened in Labview 7.0??
Hi, Anyone has a canny edge detector vi that can be opened in Labview 7.0?? Thanks and many thanks.!
-
Save the session data in the database !
Hello everybody, I read an article on JavaWorld website about saving the session data of an application in the database instead of mantaing them in memory. In this way, the web application is more scalable and in case the application server crashed t
-
Unable to set the drop down values in the formbean
Hi Dudes We are using weblogic8.1 portal for our application We are initializing the vairable as follows <netui:select dataSource="{container.item.INCLUDE_IN_LISTING}" optionsDataSource="{pageFlow.m_yesNoDefaultOptions}" styleClass="field_value"></ne
-
Need a formula . . .
I am looking for a way to take a master list of names as shown in "Table 1" and automatically sort those marked entries into new tables which correspond to their categorization as shown in the "Red Group," "Blue Group," etc. Of course, the check-boxe