Service Order status update function module ?
Hello,
We are looking for a Function/BAPI anything to update the line item status of a Service Order .We are using this Service Order in the CRM_IC (Interactive Center) Web Client Implememtation.
Thanks
Manoj
Manoj,
You could use CRM_STATUS_UPDATE, but if you use that function, the update will probably not be send through the flows of CRM (=> dependent systems, like MSA, will not be updated).
If you want the update to pass through the CRM flow, you'll have to use the standard Bapi to maintain orders (CRM_ORDER_MAINTAIN) or the inbound XIF-function which might be easier to use: CRMXIF_ORDER_SAVE.
The first is based on tables which contain the changes, the second is based on a bdoc-structure that you'll need to fill for yourself.
Grtz,
Michael.
Similar Messages
-
IBASE Status update Function Module/ Table Field for status
Dear Experts
We need function module to change status of IBase. Please tell me standard function module if any. Or if no standard fuction moudle exists, please tell me tables which contains user and system status.
Thanks and regardsHi,
Try using FM CRM_IBASE_CHANGE and please remember to call FM CRM_IBASE_SAVE to save the changes made. Thanks.
Regards, AC -
How to track Service Order Status Change (IW31/IW32).
I have a requirement to send the customer an Email if the status of service order has been changed say from unconfirmed to confirmed. So i have to find out whether the status of the service order has been changed on the current date.
As per my understanding, Changes corresponding to any object are stored in tables CDHDR and CDPOS if the change document creation is enabled for that object. But in case of service order status, the changes are not being captured in these tables because change document creation is not enabled for the data element (J_STONR) of service order status.
Anyone having any knowledge about it please help me.
Edited by: Gagan Garg on Feb 23, 2009 6:52 AMHi,
Thanks for your reply. I have found out the way to track the service order changes. Function module STATUS_READ_MULTI can be used for the same. Pass service order number in OBJNR_TAB and the change document for status is returned in JCDS_TAB -
How to update the service order status at meter level
Hi
I need to fetch one open service order and update the retrieved open service order status at meter level.
I am trying to do it through BAPI_ALM_ORDER_MAITAIN but i am not able to do it.
Please let me know the process how to update.
Thanks & Regards
PallaviHi,
Check if this code works ...
REPORT zbapi .
DATA t_meth TYPE TABLE OF bapi_alm_order_method.
**Internal table for Operation (BAPI)
DATA t_oper TYPE TABLE OF bapi_alm_order_operation.
DATA t_comp TYPE TABLE OF bapi_alm_order_component.
**Internal Table for Opertaions UP (BAPI)
DATA t_comp_up TYPE TABLE OF bapi_alm_order_component_up.
**Internal table for BAPI Return code
DATA t_ret TYPE TABLE OF bapiret2.
***WORK AREA DECLARATIONS
**Work Area for Hedaer
DATA:wa_header TYPE caufvdb,
wa_meth TYPE bapi_alm_order_method,
wa_op TYPE afvgb,
wa_comp TYPE resbb,
wa_comp1 TYPE bapi_alm_order_component,
wa_comp_up TYPE bapi_alm_order_component_up,
wa_oper TYPE bapi_alm_order_operation.
PARAMETERS:TEST.
****Fill Method Internal table
CLEAR wa_meth.
wa_meth-method = 'SAVE'.
APPEND wa_meth TO t_meth.
wa_meth-refnumber = sy-tabix.
wa_meth-objecttype = 'COMPONENT'.
wa_meth-method = 'CHANGE'.
wa_meth-objectkey(12) = '000004000104'.
wa_meth-objectkey+12(4) = '0010'.
wa_meth-objectkey+16(4) = '0010'.
APPEND wa_meth TO t_meth.
**Component Internal table
wa_comp1-reserv_no = '0000001072'.
wa_comp1-res_item = '0001'.
wa_comp1-activity = '0010'.
wa_comp1-item_number = '0010'.
wa_comp1-special_stock = 'B'.
wa_comp1-requirement_quantity = '15'.
wa_comp1-stge_loc = '0001'.
wa_comp1-backflush = 'X'.
APPEND wa_comp1 TO t_comp.
**Component Update Internal table
wa_comp_up-special_stock = 'X'.
wa_comp_up-backflush = 'X'.
wa_comp_up-requirement_quantity = 'X'.
wa_comp_up-stge_loc = 'X'.
APPEND wa_comp_up TO t_comp_up.
**Call Bapi
BREAK-POINT.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = t_meth
it_component = t_comp
it_component_up = t_comp_up
return = t_ret.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'. <--- Hope u r using this too
regards,
Naveen
Edited by: Naveen Deva on Apr 16, 2009 9:12 AM -
Update function modules/transaction service?
Hi experts,
Is it possible to use the transaction service (if_os_transaction and if_os_transaction_manager) to bundle updates in the same way as using update function modules?
I've looked at SAP documentation and although it talks about mixing the two it's not clear how this can be accomplished.
Any help would be much appreciated.
Cheers,
JBHello!
if I execute these step:
TRANSACTION_BEGIN
do processing of BAPI(1)...
do processing commit bapi(1)
do processing of BAPI(2) connected to BAPI(1)
if something wrong
TRANSACTION_abrot
else.
TRANSACTION_END
does the transaction_abort execute the rollack of bapi(1) and bapi(2)?
P.S. the commit between bapi(1) and bapi(2) is mandatory.
thanks -
Update Service order status based on Sales order billing status
Hi All,
Pls give some suggestions for below scenario.
Sales order will be created from Service order.
Service order should get completed once the sales order is billed fully.
Billing status is available in Sales order header. When ever billing is created, sales order status get updated.
Where I need to have the trigger (User exit etc...) to update the service order status w.r.t sales order billing status.
Rgds,
Senni.BHi,
As standard the system update service status, maybe some config is missing. Please check the copy control conditions in SD.
Hope this help.
Regards. -
Issue in creating web service for a ABAP Function Module
Hi,
now i'm learning how to create web service for a ABAP Function Module. I used the following steps.
1. select the Function Module, named "zws_test".
2. in the context menu, select "create->proxy object". so we enter into wizard.
3. in the wizard, press the radio button "Service Provider".
4. in the next page, press the radio button "Existing ABAP Objects(Inside Out)".
5. In the next page, Enter the "zws_test_prvider" as Service Definition and select "Function Module" as Endpoint Type.
6. in the next page, enter "zws_test" as Function Module and mark the "Mapping der Namen" button
7. in the next page,select "PRF_DT_IF_SEC_LOW" as Profile and mark "Deploy Service".
8. Save in the local package.
9. then it will pop up a window with title "WSDL Source". i selected "URL/HTTP Destination" and press "OK".
10.in the next page, i enter the URL as "http://hostname:portnumber/", and press "OK".
11. then it will pop up a window with title "Display logs". A record with error message "HTTP error(return code 404, message "Not found")" appears.
12. i press "ok" and a service provider with name "zws_test_prvider" appears in my local package.
13. i use "zws_test_prvider"'s URL to create a service consumer "ZCO_WS_TEST_CONSUMER" and logic portal "LP1".
14. But when i test my service consumer "ZCO_WS_TEST_CONSUMER", it will throw an exception "cx_ai_system_fault" with errortext "SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/".
15. I use t-code SM59 to test connection and get the following info.
Status HTTP Response 200
Status Text OK
Duration Test Call 328 ms.
who can give me the reasons about item 11 and 14, and explain me how to create service provider and service consumer for a Function Module.
Thanks in advance
Johnneyhave you seen this weblog
/people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices -
Service Order status Not Changing From Resloved to Closed status
The service order Status not automatically moving from Resolved to closed after 30days.
Observation
We Revived program Z program ,seems to be fine.
I am set the program in debugging mode for testing the Service orders by reduce the time duraion for staus resolved to closed, am getting the getting the Error Test determination procedure is not evaluated .
Point of dout
1) Is there any relation between Test Determination Procedure and Z program.
2) while am checking for Text Customing for Consistency I found an error Log.
3) While creating Service Order Test field was Mandatory
for that have dout about is there any relation between for this program
Thanks in Advance
Regards
Raju.........Solved ...
BD75 (RBDMOIND ) is T-Code and report name ...
need to schedule ... -
CALL TRANSACTION in Update Function module
Hi all
AFIK, it is not possible to trigger a CALL TRANSACTION for BDC update in an update function module. Yet, i jus wanna to confirm it with the xperts. what are other options for posting a BDC data in an update function module?
thkx
PrabhuHi,
Try this..
Create a new RFC function module and in the function module do all the coding for the BDC and CALL TRANSACTION..
Inside the update module call the RFC function module IN BACKGROUND TASK.
I believe this should work..
Thanks
Naren -
Doubt in update function module
dear friends..
i have created an UPDATE function module with Processing type- Update Module, Start Immediate. i have handled the exceptions using Raise statement in the function module..
the call function looks as..
CALL FUNCTION 'ZFI_LCTXN_TABLES_UPDATE'
in update task
EXPORTING
ZLCTMB1 = p_lctmb1
NU_ENTRY = p_global-ins_zlctmb1
TABLES
UPD_PO = UPD_PO
UPD_SH = UPD_SH
EXCEPTIONS
ERROR = 1
OTHERS = 2.
p_subrc = sy-subrc.
commit work.
but if the update fails, and even though the RAISE ERROR works, and update termination message is registered in SM13, i dont get the value for sy-subrc as 1 .
is it the right way..if yes please tell me how to generate an error message within the transaction..so that the user knows the update has failed..
thank you for your time
NivinHi,
Maybe it's usefull for you.
<b>
IF sy-subrc EQ 4.
MESSAGE e001 RAISING not_found.
ELSEIF sy-subrc EQ 8.
MESSAGE e002 RAISING not_found.
ELSE.
ENDIF.</b>
Using this to create a message and raise in the same time !
Regards.
Marcelo Ramos -
Query on ZCOMP (Service Order Status) transaction
Hi,
While working with ZCOMP transaction (used to generate the Service Order Status Report), is it possible to enter multiple Service Orders at one go and obtain the ZCOMP download data for all the Service Orders together in one spreadsheet?
Edited by: Ben Harris on Dec 26, 2010 4:12 PMBen,
When the experts tell you that it is a customer report, they mean that the report was created by your company. No-one here in these forums knows anything about this particular report.
You need to approach people in your own company to find out what, if any, authorizations are needed to run this report. The report may be an ABAP report (ABAP is the SAP proprietary programming language that is the foundation of all SAP programs, whether created by SAP or created by your company). If it is, to change the report code you would have to be a programmer with an SAP developer's key.
It is not clear what 'settings' you need to change in the report. Standard reports within SAP (and most custom reports as well) have one or more selection screen. In these screens, you can sometimes filter or expand the suite of data that is extracted and displayed in the report. In most (but not all) reports, anyone allowed to run the report also has the ability to change selection criteria in the selection screen. I suggest that before you consult with a local developer, you experiment with running the report yourself, using changed selection parameters from the default. Such experiments are usually conducted in a test system (which I am sure that your company has).
Your manager should be able to tell you the procedure used by your company to investigate this question.
Good Luck & Best Regards,
DB49 -
Questions regarding update function module
Hello experts,
I am on customer site to help them investigate one issue: they have a background job which runs periodically.
In the report database table A is changed firstly ( new entries are inserted ), then a update function module is called via keyword CALL FUNCTION ... IN UPDATE TASK.
Inside the function module database table B is updated. ( existing entries are updated )
Customer issue:
sometimes they find A is updated as expected, however B remains unchanged at the same time.
customer could not find exact steps to reproduce the issue. However the issue does exist there and occur from time to time.
the issue could only be reproduced in their production system, but works perfectly well in dev & Q system. It is difficult to debug in their production system for trouble shooting.
After analyzing related code, I have one doubt: according to ABAP help on CALL FUNCTION aaa IN UPDATE TASK, I know the function module aaa is called in a new update work process. I wonder whether there is any possibility there this issue might be caused because the update function module fails to get called at all? ( perhaps due to heavy system load so no free update function module could serve the table B update ? )
If update function module fails to execute, is there any system utility to record this? That is to say, will it be recorded in such as SM13 or SM21?
Looking forward to your expertise on this topic!
Best regards,
JerryHello friends,
Thanks a lot for your interests on this issue. I update all my findings:
1. issue background: this issue occurs in SAP CRM Channel manageement Solution, software component CRM-CHM-POS.
2. due to some limitations, the table CMSD_CI_HISTORY and history table are not updated in the same LUW. Instead the first one is updated in normal work process while the other is done in update work process. Since I am not the original developer I didn't know the whole complex scenario ( I did see this is done delibrately in note 1764006 - CMS:Sell In Release creating PB with zero available quantity ).
So for the moment we have to accept this design.
3. during our testing ,we ensure COMMIT WORK is always called.
4. So why sometimes the first table update fails, however there is no hint at all for this failure in the system like ST22 and SM21 ?? ( forget SM13, since it is updated in normal work process ).
The root cause is the flaw of SAP code below.
The code has planned to raise exception if insertion failed due to duplicate records to be inserted.
Unfortunately, the fact is if we use "INSERT db FROM TABLE xxx" to insert records into database and some record already exists with the same key, it will result in a termination but SY-SUBRC is STILL 0; Just compare it with single insertion using "INSERT db FROM <work area>", in the same error situation, processing does not terminate, and SY-SUBRC is set to 4.
As a result in this case even the insertion fails, line 29 will never be executed as sy-subrc is always 0. Since the insertion fails and the exception is caught without any notification, so customer sufferred because they do not know what has happened.
Best regards,
Jerry -
Checking the contents of update function module log table
Dear experts,
I created several CALL FUNCTION ... IN UPDATE TASK lines and is curious about the contents of the update function module log table. How can I see its contents?
Thanks in advance.
Regards,
HarisHi Hari,
Use transaction SM13. This gives all the details
To view the details in SM13 switch on Update debugging before you call your update function module.
In debugger Settings --> Display / change Debugger settings --> Use the check box "Update Debugging" --> Press save button
So after COMMIT WORK statement, debugging will start with the update function module
During this time check the entries in SM13
Once the update is complete the entries will be removed from SM13 (Unless there is a failure)
I am not sure if there is option to view records in SM13 for which update is complete (No authorization to change settings in SM13). So i cannot check this
Regards
Rajvansh
Edited by: Rajvansh Ravi on Jul 24, 2011 3:52 PM -
Regarding update function module
Hi all,
This is regrding update function module
How to handle errors in update function module
Can exception be used in Update function modules
while calling in update Task
if we can use please let me know how to do so while calling in Update task.
Regards,
siva chalasani.Hi Vinod,
Just wanted to say...
your answer solved my problem.
I needed to pass my error records into a internal table and from there to notepad using GUI_DOWNLOAD.
The following is my function module....
RHPP_Q_PROFILE_WRITE
It has under TABLES-- 'err_profile' to capture error records.
So, I passed a internal table in " err_profile" to capture the errors.
And then passed this internal table in GUI_DOWNLOAD.
Regards,
Hari Kiran
Edited by: HARI KIRAN REDDY on Aug 12, 2008 12:20 PM -
Invalid COMMIT WORK in an update function module. in VKM1 Tcode
Hi All,
I am getting the short dump with message "Invalid COMMIT WORK in an update function module. "
Calling a COMMIT WORK in an update process is not allowed
because the function modules triggered in a Logical Unit
of Work cannot then be processed correctly.
in FM : SO_DOCUMENT_SEND_API1
Prev. it was giving error in one of my driver program where I had written the commi Work after calling FM for sending fax :
"CONVERT_OTF_AND_FAX" .
call function 'CONVERT_OTF_AND_FAX'
exporting
FAXOPTIONS = W_ITCPP
USER = NAST-USNAM
importing
MSGID = W_MSGID
MSGNO = W_MSGNO
MSGV1 = W_MSGV1
MSGV2 = W_MSGV2
MSGV3 = W_MSGV3
MSGV4 = W_MSGV4
tables
OTF = IT_OTF.
if sy-subrc eq 0.
commit work.
submit RSCONN01 with MODE = 'FAX' and return.
endif.
Please explain me where and how I can change my code so that this error should not come?
Rgds.
MAdhuriHello, Suhas!
I am getting the short dump with message "Invalid COMMIT WORK in a COMMIT WORK or ROLLBACK WORK."
Short text
Invalid COMMIT WORK in a COMMIT WORK or ROLLBACK WORK.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_FDT_CC_SERVICES============CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
The call of a COMMIT WORK in a FORM, that will not be executed until
the commit or rollback point of the caller using the variant
PERFORM ... ON COMMIT or PERFORM ... ON ROLLBACK is not permitted.
etc.
Could you help me to solve the issue?
Regards,
Kseniya Tsyganchuk
Maybe you are looking for
-
Why isn't a normal text message not being delivered to just one number ?
Since the IOS update a few weeks ago I've discovered that text messages I've been sending to a T mobile phone haven't been received, whereas they always were before. I've texted from another phone successfully so the problem is not their end. This is
-
Delete Pricing Condition IN Sales Order
Hello Forum, Does anyone know how to delete a specific pricing condition in a Sales Order. In a sales order for each line item there are multiple pricing conditions. I need to delete a specific price condition 'ZZZZ' for instance then how do I go abo
-
Regarding Sales Order Report in SD
Hii I want to create reports in SD module such as sales order report, which covers all organization levels, delivery status, invoice status, shipping details and partner function details. Any inputs would be appreciated Regards, Guru
-
6630 back up data - LOST????
Hi, I reset my phone to factory settings and before i did this backed up my contacts, etc. Nokia Pc suite asked where i want the data to be stored and i picked the folder PC Suite default. So after doing all that i connected my phone again via usb c
-
Changing default SQL database within Teststand
I am designing a "universal" test system for a variety of my company's products. The test results are supposed to be logged to a MS SQL (2008) database. I've created two databases for two different products. Let's call them OneTestDB and TwoTestDB fo