FM for finding service order guid
Hi,
can any one tell me how to GUID From service order no.
I know the table , but is there any function module to fnd the same
thanks in advance
You can even try fm CRM_ORDERADM_H_GET_OB.
Advantage with this is that it return data from buffer thereby u get the latest info which maynot be there in the dB.
You may already be aware of this however, generally you can always use 'where used' for a table to get the relevant fm's
Similar Messages
-
I am ABAP consultant...in which transaction can we find Service order field
HI...
i am ABAP consultant...in which transaction can we find Service order field...
plz let me know in which transaction we can c service order no: and contract no: and if possible tell me the table relations also...
In which transaction ,can we calculate external, internal labor and material cost for a service.... i
i have gone thru iw32, iw 33,va42,va43.
Thanks
Madhavi.Dear Madhavi,
the service orders can be linked to the sales order in Make-To-Order (assembly) and in Repair-Order process. These processes are absolutely different from the SD point of view, but here some general points:
The button "Service Order" can be observed in the transaction VA02 or VA03, if you go to the sales order, then mark the item and go to the schedule line screen. Under the schedule lines you can see three buttons. The first button from the right side should be "Service Order" if the service order is linked directly to the sales order.
The interface between Sd and CS is the function module CO_61_ORDER_EDIT
It is in the case you want to debug.
On the database, please check the field VBEP-AUFNR for the corresponding sales order and sales order item.
I hope, this start info will help you a little bit further.
Kind regards,
Akmal Vakhidov
Development Support SD, SAP, Walldorf/Germany -
How to read all material documents created for a service order /maint.order
Hello,
in my Z-Program i need to read all material documents which are created for a service order or maintenance order.
Is there a function module which could be used or do you have some other hinds for this requirement?
Thanks a lot.
Kind regards
ManfredHI,
Have you tried BAPI_ALM_ORDER_GET_DETAIL for fetching components details. Actually we have used it to get some other details.
Regards
Shakti -
Related resource billing. Separeted billing requests for each service order
!!!!!! Dear Experts, help me!!!!
The question's urgent!
I need to bill collectively for my service orders, which means I need to combine several service orders into one single billing request (debit memo request) during RRB.
I configured DIP profile, but DP95 creates individual billing requests separately for each service order.
Thanks in advance.
Edited by: Cyrill Colbinev on Aug 30, 2011 10:57 AMHi !
I hope you need to check it in copy control . Because there are some standard things which need to match for combine the invoice. like:-
1:- Billing date,
2:- Bill to party
3:- payment terms,
4:- Bill to party master data ( i.e agree to combine the invoice) etc.
And aslo the copy control from the Order to Billing document in header does it allow you to combine or not.
Hope it will help you.
let me know if anything required.
Thanks
Pitabash -
CRM WEBic - not able to find letter created for a service order
Hi Friends
while creating a service order in web ic, trying to attach a letter using letters link from navigation areas of web ic, able to select a draft(word document) already provided and able to save the changes(document is saved from web ic and not from ms word) and also able to see the letter attached to my service order in business context area of service order, but when i close the session and re-logn, i am not able to see the letter created in previous session. If i attach a file from pc, it is saved to the service order.
No enhancement is done on letter section of web is and its crm5.0
I will try to find any OSS note for this and update here once i find something.
Many thanks
RamaHi
letter creation is working properly after system restarted(due to memory leak) but the problem is in Business context area, DATE and TIME fileds are 00:00:00:00.....,
any inputs highly apprecaited.
OSS not is notpplied so far.... and looking into this as well.
Cheers
Gopi -
Hi friends,
When i create a Service Order, using CRM_ORDER_MAINTAIN, I want to pass Ship to party number and its address.(its not Master data from BUT000, ADRC tables.).
THe address data what i mean is when we go to Partners tab, the address you see is not master data.
I want to update this address.
Somehow i was able to create with my Shipto party , but im not able to give the address in the IT_PARTNER parameter of Crm_order_maintain.
How can i give the address aswell, when i create Service order, or even changing a service order.
Basically i want to change the address of ship to for a SO.
kindly respond....
thanks in advance,
NirajaTHis is the code i wrote to update the street: . but its not updating.. :((((((((((
pls hlp fnds...
CLEAR: ls_input_fields.
ls_input_fields-objectname = 'PARTNER'.
ls_input_fields-ref_kind = c_a.
IF p_header-guid IS INITIAL.
ls_input_fields-ref_handle = c_handle.
ls_sconf_partner-ref_handle = c_handle.
ELSE.
ls_input_fields-ref_guid = p_header-guid.
ls_sconf_partner-ref_guid = p_header-guid.
ENDIF.
ls_partfieldnames-fieldname = 'ADDR_NP'.
INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
ls_partfieldnames-fieldname = 'ADDR_NR'.
INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
ls_partfieldnames-fieldname = 'ADDR_ORIGIN'.
INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
ls_partfieldnames-fieldname = 'ADDR_TYPE'.
INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
ls_partfieldnames-fieldname = 'STD_BP_ADDRESS'.
INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
ls_partfieldnames-fieldname = 'KIND_OF_ENTRY'.
INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
ls_partfieldnames-fieldname = 'STREET'.
INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
ls_input_fields-field_names = lt_partfieldnames.
CONCATENATE '000000000055 ' p_header-shipto_no ' BPBP'
INTO ls_input_fields-logical_key.
INSERT ls_input_fields INTO TABLE lt_input_fields.
ls_sconf_partner-ref_partner_handle = '0001'.
ls_sconf_partner-ref_kind = c_a.
ls_sconf_partner-ref_partner_fct = c_00000055.
ls_sconf_partner-ref_partner_no = p_header-shipto_no. "'0010017295'. "
ls_sconf_partner-ref_no_type = 'BP'.
ls_sconf_partner-ref_display_type = 'BP'.
ls_sconf_partner-kind_of_entry = 'C'.
ls_sconf_partner-partner_fct = c_00000055.
ls_sconf_partner-partner_no = p_header-shipto_no. "'0010017295'. "
ls_sconf_partner-no_type = 'BP'.
ls_sconf_partner-display_type = 'BP'.
ls_sconf_partner-mainpartner = 'X'.
ls_sconf_partner-addr_nr = '0000060435'.
ls_sconf_partner-addr_np = ''.
ls_sconf_partner-addr_type = 1.
ls_sconf_partner-addr_origin = 'B'.
ls_sconf_partner-relation_partner = '48222495E5735887E1000000CC9AA02A'.
ls_sconf_partner-std_bp_address = ''.
ls_sconf_partner-street = 'helloteststreet'.
INSERT ls_sconf_partner INTO TABLE lt_sconf_partner.
Can somebody give me any hints. pls ......
thanks in advance,
Niraja -
Change log for CRM service order
Dear Experts,
I've created log profile in CRM under IMG path Customer Relationship Management->Basic Functions-> Change log with protocolo " Changed document " & segment " PRICING_I ". This log profile is attached to transaction type service order.
Basic idea is to capture the changes made on the pricing in service order. Now with this setup where can i see the trace of changes done in service order. Is there any table that fills with the log ?
Basically i'm trying to find log DB table for pricing with this setup.Can anyone pls suggest me to resolve the issue.
Regards
Devika.SHi,
there are no change logs for CUMULAT_H object because this is only a temporary object in CRM Order buffer. Check for example the function module CRM_CUMULAT_H_READ_OB. You will find out the this module does not read the CUMULATE_H from the DB cumulates the values by reading the item values. Because of that you will also see that in view CRMV_OBJECTS the change document relevance is not maintained for this object.
So you will not a change entry for CUMULAT_H in CDHDR/CDPOS. As a workaround for your requirement you can read the changes of CRMD_PRICING_I-NET_VALUE from the change document tables or write a change entry on save into a customer field and/or table.
Regards
Nicolai -
User Exits or BAdis' for the Service Order create Transaction
Hi all,
I need to Replace a field, "Product" in the "Item Details" area of the create Service Order Transaction(CRMD_BUS2000116) with some custom field.
Are there any Exits/BAdi which will help me in doing this..
Thanks in advance
SethuHi Sethu,
The user exits / BADI's for the Transaction(CRMD_BUS2000116 are not avaliable:
The following info from one forum to search user exits / BADI's that you can use: There are multiple ways of searching for BADI.
<b>Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
Finding BADI Using SQL Trace (TCODE-ST05).
Finding BADI Using Repository Information System (TCODE- SE84).</b>
1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for CL_EXITHANDLER=>GET_INSTANCE.
Make sure the radio button In main program is checked. A list of all the programs with call to the BADIs will be listed.
The export parameter EXIT_NAME for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter INSTANCE will have the interface assigned to it. Double click on the method to enter the source code.
Definition of Instance would give you the Interface name.
2. Start transaction ST05 (Performance Analysis).
Set flag field "Buffer trace"
Remark: We need to trace also the buffer calls, because BADI database tables are buffered. (Especially view V_EXT_IMP and V_EXT_ACT)
Push the button "Activate Trace". Start transaction VA02 in a new GUI session. Go back to the Performance trace session.
Push the button "Deactivate Trace".
Push the button "Display Trace".
The popup screen "Set Restrictions for Displaying Trace" appears.
Now, filter the trace on Objects:
V_EXT_IMP
V_EXT_ACT
Push button "Multiple selections" button behind field Objects
Fill: V_EXT_IMP and V_EXT_ACT
All the interface class names of view V_EXT_IMP start with IF_EX_. This is the standard SAP prefix for BADI class interfaces. The BADI name is after the IF_EX_.
So the BADI name of IF_EX_CUSTOMER_ADD_DATA is CUSTOMER_ADD_DATA
3. Go to Maintain Transaction (TCODE- SE93).
Enter the Transaction VD02 for which you want to find BADI.
Click on the Display push buttons.
Get the Package Name. (Package VS in this case)
<b>Go to TCode: SE84->Enhancements->Business Add-inns->Definition</b>
Enter the Package Name and Execute.
Here you get a list of all the Enhancement BADIs for the given package MB.
Also have a look at below report which will list BADIs.
REPORT Z_FIND_USER_EXITS.
TABLES : TSTC,TADIR,MODSAPT,MODACT,TRDIR,TFDIR,ENLFDIR,SXS_ATTRT ,TSTCT.
DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA : FIELD1(30).
DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
PARAMETERS : P_TCODE LIKE TSTC-TCODE,
P_PGMNA LIKE TSTC-PGMNA .
DATA wa_tadir type tadir.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE * FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.
SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT in ('SMOD', 'SXSD')
AND DEVCLASS = V_DEVCLASS.
SELECT SINGLE * FROM TSTCT
WHERE SPRSL EQ SY-LANGU
AND TCODE EQ P_TCODE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 wf_object2,
105 SY-VLINE.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
endcase.
WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
data : wf_object type tadir-object.
clear wf_object.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
endcase.
Hope it will help you.
Regards,
Arjun
<b>Reward points if it helps</b> -
WM Staging Raw Materials for CS Service Order
Dear WM Experts,
I seek your help in solution for a particular scenario.
My client accepts the customer-returns of faulty devices, repairs them and delivers back functioning device to customer. Faulty devices are received through a special returns sales order type (that is integrated with Customer Service module) and the repairs work is done via CS service order (IW32) which gets created directly from sales order. During repair, faulty components are replaced in the device and consumption of components is posted from service order using 261 movement. 261 movement reduces the stock in 914 interim storage (GI Area Production) and I'm trying to get the stock reduced from the actual production staging bin. I created a supply area, assigned it to the service order's work center and also created control cycle with the actual st.type and bin. But, service order is not recognizing the control cycle. In fact, I could not find the supply area value anywhere in service order. Do you know whether there is integration between CS and WM module similar to WM production staging for production orders ?
Best Regards,
AshokHi Ramesh,
For testing the CS-WM integration, I created a work center with usage 009 (All task list types) so that I can use it in both Production Order and Service Order.
Production Order did consider the Supply Area in this work center and its Control Cycle. ie. in reservation table RESB, supply area, destination storage type and bin were present. However, Service Order didn't consider the Control Cycle data. In RESB, supply area is populated but destination type and bin are not there.
So, I conclude CS and WM are not integrated like PP-WM integration.
As a solution, We got a new IM movement type created for consumption posting in MM and linked that to new WM movement type with automatic TO creation.
Br,
Ashok -
Billing Issue for CRM Service Order
Hi Gurus,
I have a question regarding the BPP C69 which is a complete scenario of Service Management. I did complete the config guide C26 which is a pre-req.
I created service quotation, Service order, and Techinician confirmed that service order. In step 4.7 in C69 says that in ECC, I can see the corresponding document in billing due list through VF04 transaction...I executed but I am not able to see any transactions. But I checked in ECC, using T Code IAOMC and I am able to see all the documents which I created.
And I checked the item categories in CRM and they are set for External Billing which is through ECC. Can anybody tell what I am missing. Or is there anyway I can make this Billing work in ECC.
Please let me know.
Thanks,
Sharath.Hi Raj,
Actually the issue, we'll have 3 kind of materials.
1) Sales Material,
2) Service Material
3) Service Spare Material.
When I did the config guides, they mapped 3 item categories in CRM but in ECC they mapped only for Sales Material. That's why my order which has only service material is not replicated as soon as I added a Sales material...it replicated.
Hope this helps.
Cheers,
Sharath. -
Item Category Determination for a service order
Hello experts;
I have the following funny issue, When i try to create a service order my item category doesn't get determined properly: specifically when i fill in the product in the SAP GUI the item category field doesn't get populated automatically...funny thing is that i do the exact same thing in the Web UI the very same field Does get populated correctly!
The following are the customizations i have on SPRO: The all thing is copied from the standard but in the GUI the standard doesn't work either! and it does in the WEB UI. Any lights????
Trans Type:ZSVO
Desc:DSGi Service Order
Item CtgGroup:NORM Sales Item (Norm) Item Category:ZRVS
Desc:DSGi Product
Alternative Category: SRVS Desc:ProductI don't get it...
It's as simple as that: the item i'm adding in the service order has Ctg Group DIEN and it was correctly downloaded from R3. The Item Category Determination is as follow:
Trans Type: ZRVO
Desc: DSG T Service Order
Itm Ctg Group: DIEN Service w/ Delivery Item Category: ZTVS Service Sales Item
Where ZTVS is the copy of the item category SRVS (Standard) which for some reason if i put instead of the ZTVS doesn't work either!
What am i doing wrong? -
User exit Or Badi for creating Service order while modifying sales order.
Hi Experts,
I am creating Notification using transaction IW51.
In IW51 there is a button to create a sales order.
I click on sales order button and create a sales order.
Now notification and sales order are created.
Now i go in transaction VA02 and click on avalibility check push button .It gives me some popups in which i select copy all options.Then i click on save button
.At this point service order gets created.
My requirement :
Before the service order gets created i want to pass the notification data ; for ex- Equnr(Equipment number) to service order.
Thanks & Regards,
ChetanHi,
Are you saying first create notification,then service order
and then Sales order.
But the requirement is create notification then sales order and when you go in va02 and while modifying the sales order and create service order.
Thanks & regards,
chetan. -
Inspection lot for sale service order
Dear all,
Is it possible to create inspection lot for service order created in sale and distribution?
I have a sale document type against which services are sold. I want when service order is created inspection lot trigger.
Thanks to all.I believe the service order is simply a different type of maintenance order. You should be able to create inspection lots for these in a similar fashion as used in maintenance orders. I.e inspection types 14 are used.
http://help.sap.com/erp2005_ehp_04/helpdata/EN/2d/352264448c11d189420000e829fbbd/frameset.htm
http://help.sap.com/erp2005_ehp_04/helpdata/EN/e9/92b917f6dc11d19296ab92e885eaaa/frameset.htm
There are many places in the services help files that mention using inspection lots. The two above are just a couple of them.
FF -
Getting list of operations for a service Order
I have to List the operation activities which are Planned and Confirmed in a service order.
I'm unable to link the operation in service order for some ZREPORTING purpose as it links through structures only.
Kindly suggest how we can obtain operation details while reporting a service order.
Also let me know if there is any FUNCTION MODULE for the same.
Reply Eagerly Awaited.
Thanks in Advance.
Deepakhi deepak KM
order operations are stored in VIAUF_AFVC table .... and have a look at iw49 for getting list of operations and can use status inclusive and status exclusive for selection based on statuses.. of operations ...
regards
pushpa -
Trigger alert for open service orders
Hi,
We are using CRM 7.0. We have a need where we wan to trigger an alert on BP confirm to say " <customer name> has <#> open service orders". This alert should only be triggered if the customer has at least one open service orders.
Thanks
DanHello Dan,
This process is descibed also in the RKT material for CRM 7.0, but here is a quick overview of the main steps:
Create an alert in the Alert Editor that contains the attribute Fact Base - Service Order/Ticket ID, which will show up in the alert editor as [FACTBASE$BT_CURR_OBJ_ID]. At runtime this attribute will be replaced by the ID of the actual open service ticket. Make sure that you also specify the navigation object: type/action BT116_SRVTK:B (Service Ticket:Display).
Then create a rule in the Rule Modeler using context Intent-Driven Interaction. You would have a condition like, "If current event = BP Confirmed" and an action Trigger Alert, with the ID of your alert above in the parameter.
One alert will then show up for each open service ticket/order. If there are no open tickets/orders for that customer, no alert will be triggered. Clicking on any alert will navigate to that specifc order/ticket mentioned in the alert.
Best regards,
John
Maybe you are looking for
-
Hi DMS community, for all who does not know that there is also a special DMS WIKI area in the SDN I will provide the direct link here: [DMS WIKI startpage|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/plm/sapDocumentManagement+%28CA-DMS%29] Plea
-
General Scenario- Adding columns into a table with more than 100 million rows
I was asked/given a scenario, what issues do you encounter when you try to add new columns to a table with more than 200 million rows? How do you overcome those? Thanks in advance. svk
-
My Macbook won't startup. After turn on, I get a white background screen with a folder icon (question mark inside) in the center. this icon even blinks The battery is charging.
-
I bought a second internal hardrive for my old 1.6 G5. I bought it from an apple reseller so assume it is the standard type. Can I install this in my new Mac pro 2.88 (when it arrives)? Also, I want to use this hardrive with logic and some third part
-
Ical syncing issues, help!
What does this mean when I'm trying to sync up a calendar invitation? The server responded: "403" to operation CalDAVWriteEntityQueueableOperation