Formatted Search on Order Grid with Bill of Materials templates
This is for 2005A SP01 PL45 (latest patch as of now).
We have a few formatted searches on the order details that trigger automatically when the item code changes.
These queries work fine if the items are not part of a bill of materials.
The queries trigger ok when we use the regular item codes for regular customers when monitoring the item code column.
However, if you have a BP Catalog customer with a BOM then only the last row of the bill of materials fires and the rest of them do not.
I tried bypassing this problem by making the queries monitor the Item Description.
This still worked for stand alone items, but didn't work for bill of materials in either of the case.
Bottom line:
A. Formatted searched fire ok on either item code or item description if items are not part of a bill of materials.
B. When they are part of a BOM, then
- if we monitor the item code then they trigger ok for regular customers but only trigger on the last row if using BP Catalog codes;
- if we monitor the item description then they do not trigger at all for either of the customers.
Any suggestion on how to handle formatted searches for Bill of Material Templates with BP Catalogs?
Thank you!
Liviu
Well, it is a Bill Of Materials "Template" type...
Go to Production, Bill of Materials, select a product, quantity 1, select the BOM Type as Template and add two other items underneath it, each with quantities of 1.
Save.
Go to BP Catalogs, select one BP and add some names for these three items. Check the box to use BP Catalogs for that BP.
Go to sales orders, add the query above to the free text column, set it as per the scenarios to trigger automatically on Item Code.
Start two sales orders for this BP and for a regular one.
Load the BOM item and observe the formatted search results.
Repeat for the second scenario (where the formatted search triggers on the item description).
Hope this helps.
Thank you!
Liviu
Similar Messages
-
Open sales order report with billing date.
Hi,
I want to know if there's an available report for open sales order with billing date field.
Thank you.Hi,
If your case is "Order-related" Billing,you can use the T.Code "VF04" for this purpose.
One more way is to go for a custom report.
Make a copy of code of the T.Code "VA05n"(Program Name is "SD_SALES_ORDERS_VIEW").
Change the code as per your requirement to display the field "Billing Date" in the report.
Check with your ABAPer if you wish to go for a custom report.
Regards,
Krishna. -
FM to get sales order details with billing document .
hi ,
is there any standard FM or BAPI to get the sales order details with input as billing document ?
i have the billing document number now i need to get the sales order number and its details ..
is that possible ..
i very well know how to get it by using query, i need standard FM.
Points will be awarded for sure , if it helps .
Thanks and regards
JKHere is the list of BAPIs
BAPI_QUOTATION_GETDETAILBOS
BAPI_INQUIRY_GETDETAILBOS
BAPI_SALESORDER_GETDETAILBOS
SALES ORDER->
BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
BAPI_ORDER_CHANGE_STATUS_GET Change status for order
BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
BAPI_SALESORDER_GETSTATUS Sales order: Display status
BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order -
Formatted Search - Sales Order - UDF
Hi, I need to now if is possible, when I create a new Sales Order and I chage the Sales Employee on the drop down list I can catch the new sales employee selected and use it in a formatted search that is attached to a UDF, all this without saving the new created sales order...
Is any way to catch a value in an active window and attach it to a UDF? for example the current selected sales employee?
Thank you!Hi Gordon, its work's! many Thanks!
Another question... you now if it is possible to update a field that have a FMS attached wen 2 event's happens?
For example, I want to change the value of the commission % column when the user change the sales employee drop down list and when the user add a new line to the sales order... in this moment only works when I change the Sales employee, wen I try to add a new row it dont fill in the right commission %.
SELECT DISTINCT
CASE
WHEN $[ORDR.SlpCode]=6 THEN 6
WHEN $[ORDR.SlpCode]=7 THEN 7
WHEN $[ORDR.SlpCode]=8 THEN 8
WHEN $[ORDR.SlpCode]=9 THEN 9
WHEN $[ORDR.SlpCode]=-1 THEN -1
ELSE 0
END
FROM RDR1
WHERE RDR1.ItemCode = $[RDR1.ItemCode]
Thank you! -
Formatted Search - Purchase Order Lines, Price Field
Hello Experts,
I have wrote this formatted search for Purchase Order Lines, Price Field
The problem is that i gets 0...
What is wrong in it?....
select
case
when T2.[ItemCode] Like N'u05D7u05DC%%' AND U_Thickness >= 1 AND U_Thickness <=3 then U_Contour*2.17
end
FROM OITM T0
INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN POR1 T2 ON T0.ItemCode = T2.ItemCode
WHERE T2.itemcode = $[$38.1.0[
Thank You,
MeitalHi.....
Try this
select
case
when T2.[ItemCode] Like N'u05D7u05DC%%' AND U_Thickness >= 1 AND U_Thickness <=3 then U_Contour*2.17
end
FROM OITM T0
INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN POR1 T2 ON T0.ItemCode = T2.ItemCode
WHERE T2.itemcode = $[$38.1.0]
Regards,
Rahul -
Sales Order Status with Billing Plan
Dear SAP SD Gurus,
I have an order with 2 billing plans and both of them have been invoiced.
The status of my order still considered "being processed" eventhough both invoiced have been created and posted to FI.
I'm using item category "TAO".
Any clue will be greatly appreciated.
Thanks,
SooDear All,
I have fixed the problem. The schedule line for TAO should be non-delivery relevant.
I have changed to not-relevant for delivery and it is working now.
Thanks a lot for all the clues.
Regards,
Soo -
Formatted search on grids does not work.
I defined formatted search query
SELECT $[$MYGRID.QTY.0]
and link it to field DESCRIPTION on the grid.
I was hoping to get QTY value copied to DESCRIPTION when press SHIFT-F2. but nothing happened.
Does Formatted Search working on grids? is any work around?
Thanks a lot
FredFred,
Please have a look at this SAP Note as it pertains to issues with Formatted Searches on grids. If this issue pertains to you, you will need to download patch level 18 from SAP Business One 2005A SP01 from the SAP PartnerEdge Portal.
SAP Note# 1005565
HTH,
Eddy -
Include the "created by" field in formatted searches
Hello
Very stupid question : how do you include the "created by" (usersign) field in a formatted search for marketing document ? Where do you find the variable numbers since this field is not visible on screen ?
Thanks for your help
FabriceHI Milton Rafael Mazzali ,
$[USER] will display user number only.
First decided where u want to display user name. Create a formatted search for that field with this Query "SELECT T0.U_NAME FROM OUSR T0 WHERE T0.INTERNAL_K = $[USER]" and select auto refresh when customer code/name changes.
This will work.
Regards
Ramesh Kumar -
User defined fields window / formatted search
HI
I 've created a user defined field in the marketing documents
I want tO put the result of a query into this field :
I use a formatted search in order to have the result :
SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = $[$4.0]
My query is based on CardCode(item 4), but when the user defined field window is open, the item 4 is the cross of this form and i have the result next :
SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = N'RSRCButtonCloseBox'
Thanks
SylvainHi,
It happened the same today for me, but using both, $[$4.0.0] and $[$4.1.0]... both of them return that RSRCButtonCloseBox....
So, what is wrong here?
Regards,
Leo -
ALV GRID with own EXCEL-Template
Hallo,
I have Problem with using ALV-Grid with a own created
template.
At First I copy the SAP_OM.XLS template to CUS_OM.XLS.
Then I update it by deleting all sheets, but not RAWDATA.
When I use this template in ALV-GRID, it would be the right one, but it his no Data.
The security settings in Excel are correct.
Can anyone help me to show the data like the normal
ALV-GRID??
thanks DieterHi
Check this link...
How to send data to different tabs of an excel sheet? -
Read item code from Sales Order with formatted search
hi,
i'm tring to read tha values of the item or items of a sales order (before save it) with a formatted search.
i have no problem to read the value of card code or cardname but i can't read the item's value.
i tried with this [code]Select $[RDR1.ItemCode][/code] (i found it on the forum) but it doesn't work.
somebody can help me ?
thank youHi, Alessandro!
I think the trouble is that you are trying to assign a FS to the header of the document. You are getting the information of the current row, so you have to bind a formatted search to some column of the "table - part" of the document.
And also you can try:
SELECT $[$38.1]
38 - the value of "Item" (when you point a mouse to the cell, information you want from)
1 - the value of "Column" (the same...)
It will get an info of this cell in a current row.
HTH! -
Problem with formatted search in grid
Hi all,
I have a Grid with 3 columns in my user defind form. In that Grid,I used one one formatted search on column 2 based on the value of column 1.
I mean when i was press 'SHFT+F2' on second column, it will execute the query based on value of what we entered in the first column of the grid. How can i do this?? How can i fetch the value of first column in the formatted search??. Please help me.
Thanx in Advance
Oram.Hi
write a query like this and assign formatted search on column2
SELECT ITEMNAME FROM OITM T0 WHERE T0.ITEMCODE = $[/$GRIDUID.COL1 UID.ROWNUM])
regards
Vishnu -
Formatted Search for Sales Order
Hi,
I setup a formatted search in Sales Order unit price field.
Condition required:
If Sales Order is copied from Sales Quotation, unit price remains as per Sales Quotation unit price, else formula to calculate mininum selling price appllies.
Here's the query:
DECLARE @BASE_ENTRY INT
DECLARE @PRICE NUMERIC(19,6)
SET @BASE_ENTRY = ISNULL($[$38.45.0],0)
SET @PRICE = $[$38.14.0]
IF @BASE_ENTRY = 0
BEGIN
SELECT T0.[AvgPrice]*(1+T0.[U_SPFactor])
FROM OITM T0
WHERE T0.[ItemCode]=$[$38.1.0]
END
ELSE
BEGIN
SELECT @PRICE
END
l have no issue if the Sales Order copied from Sales Quotation, however when enter the Sales Order manually the formatted search having error message:
1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Error converting data type nvarchar to numeric.
FMS execution failed on field '' with query name 'Get Minimum Selling Price (SO)'
Looks like my query has error...Hi ,
Try this below query and let me know your feedback,
DECLARE @BASE_ENTRY INT
DECLARE @PRICE NUMERIC(19,6)
SET @BASE_ENTRY = ISNULL($[$38.45.0],0)
SET @PRICE = $[$38.14.Number]
IF @BASE_ENTRY = 0
BEGIN
SELECT T0.[AvgPrice]*(1+T0.[U_SPFactor])
FROM OITM T0
WHERE T0.[ItemCode]=$[$38.1.0]
END
ELSE
BEGIN
SELECT @PRICE
END -
Problem With Formatted Search.
Hi to all,
I have linked a formatted search to a UDF that lies at row level in AP Invoice. This field is used to display the Sales Order Price. The requirement is that from SO we create a purchase order and subsequently create a goods receipt and AP invoice.. Now in invoice it is showin perfectly fine whether it is copied from goods receipt or purchase order.. But in the purchase order and goods receipt screen this query will not work. And the same query used in AP invoice is being linked to these documents. Is there any work around for this?? Is it possible to run queries based on the form numbers?? If so ho do i pull the form number in the formatted search query??
Please Help!!!!
Regards
ArisI recommend creating separate queries for each document.
ie
1 formatted search to lookup price on sales order from AP Invoice
1 formatted search to lookup price on sales order from GRPO
1 formatted search to lookup price on sales order from PO
then change the lookup to pull fields from the document that you are using as a reference.
when you are building the formatted searhes start by returning the values that are you are using as a reference. That way you are sure that you are pulling the correct information.
Then layer in the lookup to the sales order.
If you get stuck I recommend that you copy and paste the formatted search in SQL Server management studio and replace the variables refereces with real values.
In my experience troubleshooting queries is more effective when using SQL Server management studio. (the error reporting is better). -
I'am tring to do a Formatted Search with this: SELECT DISTINCT T0.Code, T0.Name
FROM T0 LEFT OUTER JOIN
ORDR ON T0.Name = ORDR.U_PDischar WHERE T0.Name Like '$[ORDR.U_PDISCHAR] %%' ORDER BY T0.Name
but it not work any help... thanks
Message was edited by: Juan F VásquezHi,
This worked for me:
SELECT DISTINCT T0.Code, T0.Name
FROM T0 LEFT OUTER JOIN
ORDR ON T0.Name = ORDR.U_PDischar WHERE T0.Name
Like $[ORDR.U_PDISCHAR] + '%%' ORDER BY T0.Name
Not whit this same fields, but with others.
Hope helps,
Ibai Peñ
Maybe you are looking for
-
Why no support for iTunes in tiger?
Why no support for iTunes running on Tiger? WE NEED THIS Apple!
-
AFter saving a very large file in photoshop Icant seem to call it up. DbLe clicking on the icon opens Photoshop but there is no evidence of the image. I have also triedaccessing it through the pull down menu in Photoshop and again, I can select it bu
-
hey hope all is fine with you all gurus i am getting the following error when i run the post payroll process called "Cheque Writer (Generic)" process it ends with RED color: HR_6882_HRPROC_ASSERT LOCATION pyjavaco:1 APP-PAY-06882: Assertion failure d
-
How do I manipulate process variables within sql?
Hi, I am working with Oracle 10gR2. my main problem is to indicate a problem within the execution of a SQLPLUS. I saw in this forum that there is a bug and the return code will be ignored. So it was suggested: As a workaround you can define processfl
-
N82 V30 Map 2.0 Problem
hi i updated my N82 juts befor 3 days and the new version is going so slow when i open my map app i format the memory + phone 4 times but still the same problem + i re install it again,, anyway the problem is when i cant get the map on the phone and