Status update on Sales Opportunity when Quotation is won
I need to set up an automatic status update for the sales opportunity; when the quotation is set as won, the related sales opportunity is also set as won. I have tried the <Define status profile for user statuses> in IMG, but don't seem to get it right..
Can anyone help me?
Krgds, Eva
HI Eva,
Even i did the same thing for my project. Updating the Sub contract status, with whatever the master contract has got.
SO i used the ORDER_SAVE badi, and called a FM , where i wrote the logic to update the subcontract.
So u can also do the same thing, by coding in the ORDER_SAVE badi, what ever logic u want.
Reward points if helpful.
Robin
Similar Messages
-
Delivery status update in sales document at PGI
Normally system updates the delivery status of sales document line level, when a delivery document is created with respect to that sales document line.
But I want system to update the delivery status (in sales doc. line) when PGI is done for respective delivery document; not at the creation of delivery document. Below I have shown the status updating scenarios that I expect.
Scenario 1
Sales doc line qty: 100 PCs
Delivery Doc qty: 50 PCs
PGI: Not done
Status in Sales document line should be A (Open)
Scenario 2
Sales doc line qty: 100 PCs
Delivery Doc qty: 50 PCs
PGI: 50 PCs
Status in Sales document line should be B (Partially delivered)
Scenario 3
Sales doc line qty: 100 PCs
Delivery Doc qty: 100 PCs
PGI: 100 PCs
Status in Sales document line should be C (Fully delivered)
Can anyone propose a possible way of doing this (configuration/ user exits/ BADI etc,)?
Thanks,
RaminduHi,
I dont know it with the use of ABAP development, but by functional logic, can suggest you to configure the rush order sales configuration for your particular sales order.
just check that availability of that particualar sales order is met or not prior to it.
and then automatically when your delivery doc is created, PGI would be done and the status of your sales order would be updated with it.
try it out on your development client, if it works out.
regards,
Siddharth. -
User Status update on Sales Order Header
Hi all,
I need to update the "User Status" on sales order header when a sales order is saved. As user status reside in JEST, what available user exits are there to change/insert new user statuses? I don't believe the common exits like MV45AFZZ would do.
To clarify, to get to these user statuses, you go to the header of the sales order, select on the 'Status' tab, then click on the "Object Status" pushbutton.
Any help would be greatly appreciated in the form of points!
Thank you.
LiamHi Liam,
In the Program MV45AFZZ in the FORM userexit_save_document
you use the following fn module to change the user status
'STATUS_CHANGE_EXTERN'
Example
IF t180-trtyp = 'H'. "Only creation time
READ TABLE xvbap WITH KEY matnr = c_matnr.
IF sy-subrc = 0. "If above material exist then change status
LOOP AT xvbap WHERE cuobj NE space
AND matnr = c_matnr.
l_objnr = xvbap-objnr.
CALL FUNCTION 'STATUS_CHANGE_EXTERN'
EXPORTING
objnr = l_objnr
user_status = 'E0013' "Send ej IDOC
set_chgkz = 'X'
EXCEPTIONS
object_not_found = 1
status_inconsistent = 2
status_not_allowed = 3
OTHERS = 4.
ENDLOOP.
ENDIF.
sy-subrc = 0. "Restore the previous condition
ENDIF.
Reward if helpful ********* -
Dear All,
I have a requirement as below
In status profile maintained 5 statuses in the sales order when the user releases 4th status system should not allow to change the sales order .Hi
Your requirement can be fulfilled through a User exit.
You write the logic as below, All the data related to statuses are stored in JCDS and JEST tables.
So you can pass the OBJNR from VBAK to JCDS table there you have to get the status for the fourth profile and look for the fields
INACT and CHIND, if for the fouth status if the CHIND is U then there should not be nay modifications
regards
Prashanth -
Help Required for Open Sales opportunity query
Hi Experts
I need to create a query on Open Sales Opportunity where quotation has not been submitted. also all opportunities with respective sales quotation
How can i link Opr1 ( Stage), OOPR, oqut table.
Regards
RamanThanks Gordon ,
But this query is for all sales opportunity linked with Sale quotation. also it showing only last quotation .
In case in 1 sales opportunity i have 3 quotation how can it will manage toh show all quotations linked with one opportunity.
Regards
Raman -
To update the status of the Sale Order through Pl/sql(backend)
Hi folks.
May I how to alter the status of Sale Order from 'Entered' to 'Awaiting for Approval' when the sale order was booked.After approval only it needs to change into 'BOOKED'.
Requirement Scenaria as follows:
Activity Status
1) Sale Order Creation Entered
2) Booking the Sale Order Awaiting For Approval
3) After Approved 'Booked'
or
4) After Rejected Rejected --- should not be available for pick and ship.
Please tell me the solution to alter the status and I had already tried both normal update statement and update through sale order API.Both didnt work.
kindly find me an appropriate solution
Note:I had already altered the OE order header workflow to go for approval when Sale order booked
Thanks in advanceApparently, your Sales Order Type has Approval Workflow associated. Have the approver approve it from the Notifications window. Alternatively have a script to approve the workflow with userid as the approver's, in order for approval and booking.
In case of forced Booking, use OE_ORDER_PUB.PROCESS_ORDER API to pass the Order Details along with BOOKED_FLAG='Y' and FLOW_STATUS_CODE='BOOKED'.
let me know,
Dip -
Approval process when updating a Sales Order
I have created a UDF that specifies whether a Sales Order has been "Picked" and would like to ensure that a user cannot modify the Order after this change of status without an Approval. I have my SQL code and it works properly but only when the Sales Order is created and does not get triggered when it gets modified.
Thanks, Richard.This is far more complex to implement and can hamper the performance.
FYI. The user updating the Sales Order can be only found in the ADOC (History table)
SELECT TOP 1 T0.DocNum AS 'Document Number', T0.UserSign AS 'User Signature', T0.UpdateDate AS 'Update Date' FROM ADOC T0 WHERE T0.ObjType = N'17' AND T0.DocEntry = @list_of_cols_val_tab_del AND T0.UserSign != 1 ORDER BY T0.UpdateDate DESC
Apart from the aboce, you have to also check in the ADOC table, the Update datetime with the Update datetime of the sales order and the updated field. You have to test this thoroughly before implemting
Suda -
Third Party Sales Incorrect Status Update at the order level
Hi,
We follow a third party sales in our system
Sales order > PR> PO> MIGO>MIRO>VF03
Howeevr, the status of the sales order is being processed.
The quantity is same, item relevance for delivery is unchecked at schedule line and item category.
Our users want the invoice to be genereated after the MIGO, so at the item category level bliing relevance is G, and at VTFA billing quantity is E.
It is working if the biling relevance is maintained as f, the status shows completed but i want this for G
Over all status is being in processed and order related billing at item level is partially invoiced.
Please help
Many thanks,
Shashidhar ReddyHi Santosh,
Thanks for clearing it out.
I did not understand what do you mean when u say"MIRO" process, write now our business requires the customer invoice to be created after the MIGO is done for PO, for which we have put billing relevance as G.
The problem now is, since the relevance is G which is order related billingof deliveyr quantity, even though the invice is completd and the accoounting document is cleared the ordder status still shows "being processed"
You have already mentioned it very clearly that this can be changed it using the user exit, but i just wanted to confirm that again.
Sincere thanks for taking time out for this.
Thank You
Shashidhar Reddy -
Display all pending quotation on sales opportunity window
how display all pending quotation of that customer on sales opportunity window through navigation arrow?
Hi,
Run below query in query generator first and save it under query manger. Open sales opportunity and run saved query to get list of open sales quotation.
SELECT t2.docnum
FROM OOPR T0
JOIN OPR1 T1 ON T1.OpprId = T0.OpprId and T1.ObjType='23'
left join OQUT T2 on t2.DocEntry = T1.[DocID]
left JOIN QUT1 T3 ON T2.DocEntry = T3.DocEntry
where T2.[DocStatus] = 'o' and t2.cardcode = $[OOPR.cardcode]
Thanks & Regards,
Nagarajan -
Update Last Changed Date when attaching a Document to Opportunity/Activity
Hi my CRM peers,
we have the requirement to update the last changed date of the one order object (Activity, Lead, Opportunity) when a user attaches a document to the object. Has anyone solved this requirement?
Best regards
GregorHi Stephen,
what do you think about using the SEARCH_DOCUMENTS method of CL_CRM_DOCUMENTS to get the documents uploaded during the last day. I fill the table IT_QUERY_PROP is filled to search for the Documents Created starting yesterday:
Query:
IT_QUERY_PROP[1]
PROP_NAME CREATED_AT
SIGN I
OPTION BT
LOW 20100217000000
HIGH 99991231235959
And I get this result:
LT_SRES[1]
OBJTYPEP P
CLASSP CRM_P_ORD
OBJIDP DF1C76C7D7D02BF1ABA8005056857C4E
OBJTYPEL L
CLASSL CRM_L_ORD
OBJIDL DF1C76C7D7D02AF1ABA8005056857C4E
RANKV 05000
DOCREFER 0000000001
When I now use the WHERE_USED method I can find the Business Object where this document is attached to by filling the
IS_IO parameter:
IS_IO
OBJTYPE P
CLASS CRM_P_ORD
OBJID DF1C76C7D7D02BF1ABA8005056857C4E
Now my follow up question is: How can I update the last changed date of the document without changing any data?
Best regards
Gregor -
Hi Frds,
I am updating the Order Status from Workflow. So the Status update (or Order Changed) is save with Workflow ID. I need to insert UserID instead of workflow ID. Please help me out of this.
Thanks
ImranHi Imran
With the very few details available on your process, the workflow design and the "Order", all I can suggest is that:
1) In your workflow definition, go to the step which sends the user decision, in the binding FROM the TASK TO the Workflow, set _ACTUAL_AGENT to a workflow container element , say DECISION_AGENT (of type SWHACTOR)
2) Assuming that the next step in APPROVAL branch is setting of the status, go the task ID of that Step -> make it a dialog step (remove the Background Processing check) -> set it's agent assignment to general task
3) Back in the workflow, set that STATUS SETTING step to Advance With Dialog under the details tab
4) In the control tab of the same step, in the agents section, set agent as EXPRESSION and the value as &DECISION_AGENT&
When a user approves the decision item, his ID will be stored in DECISION_AGENT
The status set will execute immediately (because of "Advance with Dialog") in the same session of approving as the user who approved is the same running this step now
The status will be set by the ID of the Approver
The above is hypothetical considering
1) You do not have dynamic parallel processing
2) Status setting happens immediately after the approval; as a first step in the approval branch
3) The Decision Task does not has "Confirm End of Processing" checked.
Regards,
Modak -
Sales Opportunity Stage Tab - Want last updated row details in query
Dear Experts,
I have a query as under :
SELECT T1.Name, T1.OpprId, T1.OpenDate, T0.Step_Id, T0.Line, T0.OpprId, T0.U_status, T2.Name FROM OPR1 T0 INNER JOIN OOPR T1 ON T0.OpprId = T1.OpprId INNER JOIN [dbo].[@STAGE] T2 ON T0.U_status = T2.Code WHERE T1.Name = 'ORDER'
Now I want that this query should give me the last row detail in the Stage TAb of Sales opportunity. Now this query is giving me every row stage details which are put in the Stage Tab. For example in the Stage Tab of Sales Opportunity there are 4 rows of Stages, its giving me all the 4 row stages in the query. I want that only the last stage should be displayed in the query may be it's on 2 second stage or 3 rd ot 4 th. I want only last stage to be shown.
Please advise what I need to do for the above query.
Regards,
KamleshHi All,
I have been working in a query to generate the last stage details in the query but still not able to resolve it.
SELECT T0.Status,T0.OpprId, max(T1.Line) 'Stage',T0.OpenDate, T0.CardCode, T0.CardName, T0.Territory, T0.CloPrcnt,T1.OpprId, T1.Line, T1.OpenDate, max(T1.OpenDate) 'Open Date',T1.CloseDate, T1.Step_Id,T2.descript, T3.Name, T0.MaxSumLoc, T4.U_swl, T0.MaxSumSys, T0.U_eqno, T0.MaxSumLoc, T4.U_partno, T4.U_desc, T4.U_unit, T4.U_amt, T4.U_qty, T4.U_amt, T4.U_span FROM OOPR T0 INNER JOIN OPR1 T1 ON T0.OpprId = T1.OpprId INNER JOIN OTER T2 ON T0.Territory = T2.territryID INNER JOIN [dbo].[@STAGE] T3 ON T1.U_status = T3.Code, [dbo].[@SALES_ENQ_ITEM] T4 WHERE T0.OpprId = T4.U_opprNo AND T0.Status = 'O' group by T0.Status,T0.OpprId, T0.OpenDate, T0.CardCode, T0.CardName, T0.Territory, T0.CloPrcnt,T1.OpprId, T1.Line, T1.OpenDate, T1.CloseDate, T1.Step_Id,T2.descript, T3.Name, T0.MaxSumLoc, T4.U_swl, T0.MaxSumSys, T0.U_eqno, T0.MaxSumLoc, T4.U_partno, T4.U_desc, T4.U_unit, T4.U_amt, T4.U_qty, T4.U_amt, T4.U_span
The above query is generating and giving me the Last Stage through max(T1.Line) 'Stage' field. But I want to have if any opportunity Number has 1,2,3 Stage then only Max should should which is 3 but in this query all 3 are showing.
As per Noratam ''There are other options by checking max of the start-date and stage-key fields of the sage table''.
I can use the Start Date which seems to be max(T1.OpenDate) 'Open Date' but how to give a formula or write a query by which only Max Date is selected as per the stage in the query.
I think I am not able to use the Max funtion properly. Please help what is wrong with it.
Can you please help in this regard.
Regards,
kamlesh
Edited by: Kamlesh Gupta on Mar 22, 2009 11:33 PM -
Need to update the sales order status
Hi Friends,
I have one query.
we are doing archiving of sales documents.during the preprocessing we have identified that there are some non-archivable documents due to status check.
Example:As per Sales order schedule line category "CT" is relevant for delivery. Now we had a talk with business and removed the "item relevant for delivery indiacaotor" from schedule line category.
This config changes will apply for newly created sales orders.
Now the requirement is to update the status of old sales orders with this new config change to make these non archivable data to be ARCHIVED.
can any one help me out by providing relevant SAP note or by sending me the program name which will update the old order status with the new config changes.
Thanks & regards,
Shaik HussainHi Liam,
In the Program MV45AFZZ in the FORM userexit_save_document
you use the following fn module to change the user status
'STATUS_CHANGE_EXTERN'
Example
IF t180-trtyp = 'H'. "Only creation time
READ TABLE xvbap WITH KEY matnr = c_matnr.
IF sy-subrc = 0. "If above material exist then change status
LOOP AT xvbap WHERE cuobj NE space
AND matnr = c_matnr.
l_objnr = xvbap-objnr.
CALL FUNCTION 'STATUS_CHANGE_EXTERN'
EXPORTING
objnr = l_objnr
user_status = 'E0013' "Send ej IDOC
set_chgkz = 'X'
EXCEPTIONS
object_not_found = 1
status_inconsistent = 2
status_not_allowed = 3
OTHERS = 4.
ENDLOOP.
ENDIF.
sy-subrc = 0. "Restore the previous condition
ENDIF.
Reward if helpful ********* -
Function Module to update the sales order header status
Hi,
I am looking for a function module to update the Sales order header status.
Pls. let me know if anybody has used any FM to update the SO status.
Thanks,By mentioning status do you mean Object status or Document status??
For Object status you may use FM: STATUS_MAINTAIN
For document status it changes according to flow.
Regards
Eswar -
BBM 5 status update failed when over 100 contacts
I have found BBM 5.0.0.33 and BBM 5.0.0.55 will not update your status if you have over than 100 contacts.
This has been tested a verified by many blackberry messenger users, with different phones, and different versions of the OS.
There is no solution and almost everything has been tried, from re-installing the OS, to re-adding contacts individually etc..
The only thing to do is to delete your contacts so as the total is below or equal to 100.
I am shocked and surprised that RIM has not acknowledged this problem, nor have they fixed this in the 0.55 release.
It seems to be a trivial problem, with a magic number of 100 contacts.
If RIM is trying to prevent the servers from overloading with status update info, at least increase the limit to 200 contacts, as most people will have less than 200 contacts, but a lot have over 100.
The magic number should be 200Are you still seeing this issue with the new .57 version of BBM?
If you do not have the new version you can get it using your BlackBerry browser www.blackberry.com/messenger
-SR
Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!
Maybe you are looking for
-
I have created rfc function, and it works fine in SAP, but when I try to call this function from Excel I get '0.00000', data type is correct. VBA code: Set F2 = functionCtrl.Add("ZFUNC") F2.exports("PARAM1") = "123" F2.exports("PARAM2") =
-
Carl's Report Row with Detail Example
Hi, Hoping someone can assist, I am looking at using Carl's "Report Row with Detail" example at: http://apex.oracle.com/pls/otn/f?p=11933:1 The only thing that I am unsure about is that , instead of using the words show comments/hide comments, I woul
-
IDES ECC 6.0 Service re: installation
Hi Expert on IDES server, I was trying to re: install my IDES server bcos the initial one crashed on the hard disk. fortunately, it was install from a VMware (external drive). After going through the installation video, I tried to re-instal, it asked
-
How can we schedule the finished job in SM37 ?
Hi, I need to schedule all the jobs which are running in Production to a common user (Ex. BWGURU). Presently the jobs are running on different users in SM37. My requirement is to schdule all the running / finished / scheduled /released / cancelled j
-
3d Builder connect issues using Kinnect for Windows v2
I am running Windows 8.1, have a Kinect for Windows V2 sensor connected to my USB port, and have both the latest 2.0 SDK w/ Fusion & 3D Builder app installed. I already made sure I have webcam use enabled for 3D Builder under my privacy settings. Pri