on 08-29-2018 9:59 AM
Dear experts,
Customer would like to search for BPs using their phone numbers instead of CardCode.
For example, now if you type in the CardCode of BP in the Customer field (in ORDR) and press TAB, it fills in the other fields.
Is it possible to add a Phone1 from Business Partner Master Data (OCRD) field at the header of Sales Order (ORDR) to use this to search for BP?
screenshot-2.png
Yes its possible, Create a UDF on Sales Order And Deploy a FMS to show phone 1 of relevant customer
FMS will be Like: Select Phone1 from OCRD where CardCode = $[ORDR.CardCode]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Abdul,
Thank you very much! You guided me to a feature that I did not know existed.
I watched some videos on YouTube
https://www.youtube.com/watch?v=x2wbdJ2rlnQ
https://www.youtube.com/watch?v=lCi8B9EYeag - this particular video is what I want but with phone number and to do the opposite i.e. when i search for Phone1 then CardCode should fill in with respective value.
I tried the query from the video, it also did not work.
I tried your query but some errors popped up
I'm using SAP Business One 9.3 HANA PL04
If you could help me, I would be grateful!
Thank you in advance,
Shak
Save this query it will not execute in query generator because it has parameter to give value on runtime according to customer. Just Past it in query generator and then save it in Queries folder.
Then open Sales order go to Tools > customization tools > User defined values Seteup > then select 3rd option in small window after that click open saved queries and select the query you saved in previous setup then select auto refresh option based on Customer/Vendor Code click update then try to select customer code on Order and it will work automatically
Select "Phone1" from OCRD where "CardCode" = $[ORDR."CardCode"]
Deploy this in Customer Code field where you want to select customer Select "CardCode" from OCRD where "Phone1" = $[ORDR."U_Phone1"] and create a UDF and deploy following query in UDF (Select "Phone1" From OCRD)
Yes.
With a formatted search you bring the phone to a user field from the IC. Edit the form and add the field.
You can also create a query that makes that search.
SELECT T0.[DocNum] FROM ORDR T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode WHERE T1.[Phone1] =[%0]
then in the field Document No. defines a formatted search towards that created query.
When you select the phone number, you transfer the document number. That's right, you will not see the phone number in the form.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.