Need an alert for Customer Ref. No on Sales order.
Dear All,
I have a question concerning Customer Ref. No. tab in the Sales Order. We use this tab to enter the customers PO number. if I create and save a Sales Order with a PO number, is there a way to ALERT me when I try to make a new Sales Order using the identical PO number as previously saved.
e.g. I have a SO#1 Customer Ref. No is #10. Then I have a SO#5 Customer Ref. No. is #10 too. When I type in #10, is there anyway to pop-up me an ALERT to let me know I have #10 for SO#1 already?
Thanks.
Yuka
Hi Yuka,
Check below code in SP_Tran
If @object_type = '22'
begin
Declare @refcli as nvarchar(2)
Select @refcli =
(SELECT top 1 T0.NumAtCard
FROM OPOR T0
where T0.docentry = @list_of_cols_val_tab_del
order by NumAtCard
from OPOR where docentry = @list_of_cols_val_tab_del
if @refcli='' or @refcli is null Or @refcli=@refcli
begin
set @error = 1
set @error_message = 'No vendor References !!! Or vendor References is Already exists!!!'
end
end
Hope this will helps you.
Thanks,
Sachin
Similar Messages
-
Need to Make end customer field mandatory in sales order form.
I need to make end customer field mandatory when sales channel entered as some value...
for this i have used when validate record on order form
when i enter a value in sales channel as desired value the form is getting saved automatically and the field is getting mandatory
but my requirement is to make field mandatory and then to save the order.
let me know the sequence how it works if any one knows.Sanni,
>
when i enter a value in sales channel as desired value the form is <b>getting saved automatically</b> and (then) the <b>field is getting mandatory</b>
but my requirement is to make field mandatory and then to save the order.
>
Which trigger are you using to do the "getting saved automatically'?
Does this trigger fire before the trigger that is making the field mandatory?
Regards,
PS: Is this an Oracle EBS query? If yes, this is the wrong forum
Edited by: Prabodh on Jun 14, 2012 4:48 PM -
Hi All,
i want to sale material to new customer .. eg 5 PC .in future if need any repairing i want to create ibase . shall i create ibase for customer before execution of sales order , after delivery or when shall i creat it ????
( i know how ibase works in return & service) may i know when & how we create i base in sales order ?? or enduser steps to execute sales order & maintain tech object while processing ???
pl dont attach any document . i need anwer in 3-4 line , just process flowNeil D -
Even if somebody mangaes to understand your query they may not be able to provide an answer in 3-4 lines.
To save them time trying, I will lock this thread.
-Paul
Moderator -
Warning needed for duplicate PO numbers on sales orders
Hi all,
We are using SBO 2005A SP: 01 PL: 19.
We need a warning when adding a marketing document (Sales Order) with duplicate reference number. Presently SBO has the functionality only works on AR invoice and AR credit note. We
need a solution to also make it work for Sales Orders. We are getting many duplicate orders from our customer and we are ending up shipping them the same order more than once.
So we thought of creating a formatted search and assign it on the reference field but I need a query to solve this.
Can any one help on this.Hi Ram,
You could use an alert or an approval to prevent this happening.
An alert would be something like the following query:
select
T0.DocNum,
T0.CardCode,
T0.CardName,
T0.DocDate,
T0.NumAtCard
from
ORDR T0
where
T0.NumAtCard is not null
and T0.NumAtCard <> ''
and T0.CANCELED = 'N'
and (select count(T1.DocNum) from ORDR T1 where T1.CardCode = T0.CardCode and T1.NumAtCard = T0.NumAtCard and T1.CANCELED = 'N') >= 2
group by
T0.DocNum, T0.CardCode, T0.CardName,
T0.DocDate,T0.NumAtCard
order by
T0.CardCode, T0.NumAtCard, T0.DocNum
Kind Regards,
Owen
Message was edited by:
Owen Slater -
Need a user exit to add custom partner function in sales order @ item level
Hi,
Need a user exit to add custom partner function in sales order at item level. Goto --> Item --> Partner.
Thanks,
ThiyagiHI Leo
To add a condition price for a condition type, this has to be assigned in the <b>pricing procedure</b>. For each condition type in a pricing procedure, we will have <b>access sequences</b>. If we follow this approch, the price is automatically extracted basing on the access sequences when condition records are maintained. For this, no coding is required and everything can be done by configuration by Functional consultant.
Naren is right to point out on the same.
If you need to change the price for a particular condition which already exists, you can go by <b>pricing routines</b>. Go through transaction <b>VOFM</b> for the same.
I advice you to discuss with your functional consultant and understand the requirement and then go for modifying accordingly.
Kind Regards
Eswar -
We are using EBS 12.1.3. When we input a sales order from a customer we input the sales order and specify the date the customer wants it. This isn't always the date that we intend on manufacturing it though. I need to put a customer due date in, but be able to put a date in another field that MRP can read in the event we choose to manufacture based on another date. For example, early.
Any help would be appreciated.What you are experiencing is 100% related to Malware.
Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
You can try these free programs to scan for malware, which work with your existing antivirus software:
* [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
* [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
* [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
* [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
* [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
[http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
Did this fix your problems? Please report back to us! -
Mandatory address fields for One time account in sales order
Hi,
In the pop-up screen of one time customer's address during sales order creation, there are some fields mandatory such as name and city. We want to make the region mandatory as it determines the taxes. Is there a configuration setting for this or any user exit.
Regards,
KCHi
Goto Transaction "OVA2" and under sales order header for particular procedure include the region field in your incompletion procedure.
Reward some points if this helps.
Regards
Karan -
Customer not displyed in sales order
Hi all,
I'm facing problem with customer not displyed in sales order. While i'm creating sales order sold to party and ship to party fields both are grey mode ( fileds are not accepting any values). I set up partner detemination procedure for customer, sales header and item level. I don't know where i did wrong . Please solve my problem as early as possible.
Thanks & regards
KesavDear Kesav,
Did you assign Partner procedure to sales document header??
Please do this Go to SPRO>SD>Basic Functions>Partner Determination>Set Up Partner Determination-->Set Up Partner Determination for Sales Document Header
Here select the Procedure and then click on Partner Determination Procedure Assignment and assign procedure to sales document type.
Thanks,
Raja -
Can we create two POs for the same 3rd party Sales Order?
Hi MM experts,
Issue: Can we create two POs for the same 3rd party Sales Order
In Third party purchase process, first sales order created with a spl. item category and it creates the PR automatically with the Sales order material and Qty and this PR converted PO.
They got a pur.req. for sale order on same item for same delevery date. They did not get any warning msg. saying that a PO was prviously placed against this sale order.
How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
If anyone face the same issue, please let me know if you have any answer to this questions.
Thanks in advance.
Suresh.Suresh,
It is hard for me to give you a definitive answer since you have created a customized solution.
How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
Normally, the system will not do this. A third party PR or PO will be 'account assigned' to the Sales order. SAP standard 3rd party will not create additional purchase reqs unless there has been manual intervention. Try searching for changes in the Sales order and changes in the original purchase order. They may give you a clue.
I believe the normal Item category for third party SO is TAS (I am working from memory here, I am not in front of a system). I don't know what ZTAG does. I confess I am not an SD expert. You might also want to post your question in an SD forum.
You mention two custom applications, ZMMPLAN and ZSTPMP. These somehow have functionality that is used to help you convert your PRs to POs. If I were in your position, I believe I would also look at these applications for clues to how they might be contributing to your problem. And please don't send me details about these apps. I will not comment on custom code in this forum.
Sorry I can't be of more help.
Rgds,
DB49 -
Copy mode of payment from customer master data to sales order,
Hi Gurus,
Hope all is fine.
I have a small doubt. If we want to transfer the mode of payment from customer master data to sales order, do we have to use Exit- MV45AFZZ.
Can't we transfer the data without the exit?Hi,
I have tested this in sand box.Thought the customer master is having payment method ( payer ) ,It is not copying from customer master to sales order but if you maintain manually in sales order ,it is copying into billing document level.FYI see below snap shot.
Note:If you want it from customer master into sales order,may be you need to take help of abaper on this.
BR's,
Naren -
I want a push button for line items in my sales order entry screen.
Hi,
I want a push button for line items in my sales order entry screen.
How can I do so?
Thanks.Hi Kumar ,
To have a push buttons you need to first assign a pf-status .
here a sample code for a push button and its handling :
set pf-status 'SELECT' .
at user-command .
describe table t_lpr lines w_lines .
case sy-ucomm .
when 'SELECTALL' .
set pf-status 'SELECT' excluding 'SELECTALL' immediately.
do w_lines times .
read line w_line field value w_check . " INTO W_CHECK .
if w_check = space .
w_check = 'X' .
modify line w_line field value w_check. "INTO W_CHECK .
add 1 to w_line .
endif . " IF W_CHECK = ' '
enddo .
Thus when you say pf-status say 'select' , Double click on that and you find a screen eher you can select icons and assign a function code to it!
Hope it helps!
Much Regards,
Amuktha . -
Adding Custom Fields to the Sales Order Screens - VA01, VA02 & VA03
Hi,
I have a requirement to add custom fields in the Sales Order Standard Screen. Could anyone please tell me is there any screen exit available to add a tab screen or is there any possibility without modifying the standard code.
Please let me know with the details.
Thanks & Regards,
Goutham.Hi Narendran,
Thanks for prompt reply, it was very useful.
Could you please let me know the procedure you have followed in coming to this conclusion of what screens to be used.
I understand that the program is SAPMV45A.
Thanks & Regards,
Goutham. -
I need a Badi that is triggered when saving Sales order in both Va01 and Va
Hi
I need a Badi that is triggered when saving Sales order in both Va01 and Va02
I tried with the following BADI's
BADI : BADI_SD_SALES
Implementation : /BEV1/SR_SALES_ORD_1
Method SAVE_DOCUMENT
Now when i want to put my peice of code in this (SAVE_DOCUMENT) method.
It is asking for Access key. Which i do not have.
Should i create a implementation and then create a method and then put my code there?
Anybody plz help.You will probably not find a BADI to suit your needs. However if you look at include program MV45AFZZ you should find two subroutines: USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT. You can put the code you need directly into these subroutines. If these have not been changed yet on your system, you will need an access key to make these changes.
Please read the documentation in the header of the subroutines for furtner information on when they are called.
Best Regards,
Chris H. -
Which Smartform is used for output of a (confirmation) sales order ( in tra
Where in customizing I can see which Smartform is used for output of a (confirmation) sales order ( in transaction VA02/VA03) and which print program.
If the mechanism is different please let me know
Thx in advance(right answers will be rewarded)Hi Tina,
This is very simple.
You can go to transaction NACE
Now click on Output Types, here against your output type you can see what is the smart form attached in the field processing requirements.
If its order confirmation, it would either be standard BA00 or a copy of that, maybe the naming convention would help you.
Also If you click on the extreme left hand button in NACE, you can see against your output type what are the records maintained, and under communication tab, you could get to see the printer setting.
Hope this solves your query.
Reward suitably if helpful.
Regards
Ravi -
How to sets the Reason for Rejection of the Open Sales Order Lines
Hello gurus,
I want to set the Reason for Rejection of the Open Sales Order Lines, Case is like :
If current date is exeed the Auto Void Confirmed Back Order Days(for item level) + date (last responding from customer), then reason for rejection should be set, So i want the logic to find out the date is exceed or not.
Thanks
AnjanaHello anjana,
Actually your question is some confusing, but if u want to get eldest change as active sales order then logic is as follows:
1. On base of OBJNR u have to get UDATE from JCDS table
2. then write logic as:
SORT i_jcds BY objnr stat chgnr DESCENDING.
LOOP AT i_jcds INTO wa_jcds1.
CLEAR lv_stat.
lv_stat = wa_jcds1-stat.
AT NEW objnr.
AT NEW stat.
CLEAR: wa_tab.
wa_tab-objnr = wa_jcds1-objnr.
wa_tab-stat = lv_stat.
ENDAT.
ENDAT.
IF wa_jcds1-inact = 'X'.
CLEAR lv_tabix.
IF sy-tabix > 1.
lv_tabix = sy-tabix - 1.
ELSE.
lv_tabix = 1.
ENDIF.
READ TABLE i_jcds INTO wa_jcds2 INDEX lv_tabix.
IF sy-subrc = 0.
wa_tab-chgnr = wa_jcds2-chgnr.
wa_tab-udate = wa_jcds2-udate.
wa_tab-utime = wa_jcds2-utime.
APPEND wa_tab TO i_tab.
ENDIF.
CONTINUE.
ELSE.
wa_tab-chgnr = wa_jcds1-chgnr.
wa_tab-udate = wa_jcds1-udate.
wa_tab-utime = wa_jcds1-utime.
ENDIF.
AT END OF objnr .
AT END OF stat.
APPEND wa_tab TO i_tab.
ENDAT.
ENDAT.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr stat.
SORT i_tab BY objnr stat udate utime.
DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr.
3. now in i_tab table u'll get eldest UDATE
Hope its work for u.
Thanks & Regards,
Sumit Joshi
Maybe you are looking for
-
Can ethernet drives be backed up by Time Machine?
I'm interested in getting an ethernet drive to share files between computers. Can my Time Machine drive (attached via FW800) find the ethernet drive and backup its contents? Thanks, Jeff
-
Progress bar stuck while installing Mavericks in recovery
Hello I erased the harddrive via Disk Utility in recovery and now i'm trying to reinstall OS X Mavericks. The problem is that the progress bar is stuck. It says "Downloading additional components. Your computer will restart automatically" yet there h
-
How to remove the error "Cannot invoke method multiply() on null object" while running the createInsert button in JDeveloper and ADF?
-
JScrollPane (added to a JPanel, which paints) is visible but does nothing
Hi. I am writing a program that reads data from files and does paiting using the info. The top level window is a JFrame, which is divided into two parts - A Box which contains the buttons through which the user interacts and a JPanel on which the pai
-
Can't "Find My iPhone" in Korea
I am traveling in Korea from the US and have discovered that "Find My iPhone" doesn't seem to work for either my iPhone4 or iPad2. I am able to send the alert signal and message but the location is unavailable. It appears that Apple provides MobileMe