on 2019 Feb 11 3:49 PM
Hello,
I have a problem with a query for a Formatted Search in the recommendations-Window (ORCM)
SELECT $[$3.3.0]-$[$3.1250002010.0]
or:
SELECT $[ORCM.DueDate] - $[OITM.LeadTime]
The Error is:
operand data type varchar is invalid for subtract operator
I want to avoid the SAP-Error that the Duedate must be equal or earlier then Startdate.
My collegues often do some changes in the recommendations and after they setup an earlier DueDate before creation of a Productorder... SAP blocks with an error.
What is my mistake ?
Thanks for your help.
Request clarification before answering.
The FMS works fine, but the SAP-automation of Startdate and DueDate does not allow any flexible reworking and editing of the dates.
😞
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hector, Hi Abdul
thanks for the idea...
now it works:
Select
Case
When ISNULL((Select ISNULL(LeadTime,0) from OITM where ItemCode = $[$3.7.0]),0) = 0
Then Convert(date, $[$3.3.0], 104)
Else
DATEADD(day, (-1)*(Select LeadTime from OITM where ItemCode = $[$3.7.0]), Convert(date, $[$3.3.0], 104))
End🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You cannot do direclty in query you have to use date add or date diff dunction
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Instead of FMS, can you try with transaction notification?
Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Markus
the ORCM.DueDate field is a date field and OITM.LeadTime field is an integer field. You must use a special SQL command such as dateadd
Regards
Hector
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
how to join ORCM and PRQ1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 30 | |
| 16 | |
| 16 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.