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

Similar Messages

  • Keep Quote line item numbers in Sales order

    While creating a Sales order from Quote, SAP always creates line items with 100,200,300...and so on.
    If quote has 3 line items say 100,110, & 120 and we create a sales order with reference to this quote in VA01. The sales order line items become 100,200 & 300.
    The requirement is for Sales order to also have same line item numbers i.e. 100,110 & 120.
    To retain quote line item numbers in Sales order the ABAP change will be in VOFM or user exit?

    Hi,
    It is not a straight forward thing. Adding data to table XVBAP won't work. It will create inconsistency. There are so many other tables involve here too, like, VBPA, VBUP, VBKD, KONV. There can be other tables too based on how your sales order is configured.
    Also, modifying these tables (XTAB, YTAB ) in this user-exit may cause database inconsistency.
    Regards,
    RS

  • 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

  • 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 .

  • 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
    Anjana

    Hello 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

  • How To Add a new column for ZPR0 price in open sales order report ??

    HI,
    my requirement is To Add a new column for ZPR0 price in open sales order report if the order/scheduling agreement is a cross-company code transaction l(company code of order/scheduling agreement <> company code of delivering plant), price = ZPR0 price as at estimated GI date

    k

  • To Add a new column for ZPR0 prce in open sales order report

    HI,
    my requirement is To Add a new column for ZPR0 prce in open sales order report if the order/scheduling agreement is a cross-company code transaction l(company code of order/scheduling agreement <> company code of delivering plant), price = ZPR0 price as at estimated GI date

    HI,
    my requirement is To Add a new column for ZPR0 prce in open sales order report if the order/scheduling agreement is a cross-company code transaction l(company code of order/scheduling agreement <> company code of delivering plant), price = ZPR0 price as at estimated GI date

  • Can we combine Query for cancelled requisitions and query for internal requisitions without internal sales order into a single query

    Hi All,
    Greetings.
    I have two queries namely,
    1.Query for cancelled requisitions and
    2.Query for Internal Requisitions without Internal Sales Orders.
    I was on a task to combine those two queries..
    Can we do that? if so, please help me do that..
    Thanks in Advance,
    Bhaskar.

    Hi All,
    Greetings.
    I have two queries namely,
    1.Query for cancelled requisitions and
    2.Query for Internal Requisitions without Internal Sales Orders.
    I was on a task to combine those two queries..
    Can we do that? if so, please help me do that..
    Thanks in Advance,
    Bhaskar.

  • SD - Manual entries allowed for item category in the Sales Order

    Hi experts,
    please do you know any OSS note related to SD, in order to increase the number of Manual entries allowed for item category in the Sales Order (table T184)?
    Thank you very much
    Andrea

    Hi,
    I searched OSS notes and did not find any OSS Note related to add more than 11 Manual Item categories or append T184 Table.
    Has any found solution for this, will this be a CORE MOD.
    Pavan Verma

  • 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

  • Val.Price for the requisition on the sales order

    Hi,
    I am creating automatically purchase requisition on the sales order with NLAG material type.
    My problem is system asking Val.Price for the requisition on the sales order. I don't want the this screen when sales order create.
    My Purchase Req. Doc Type = NB
    Field Selection key = NBB for the NB
    NBB Field Label >> Quantity and Price >> Price and price unit = Optional Entry
    Thank you
    Gulay Celik

    Hi Gulay,
    The error is coming because you have not maintained Accouting view of this material for teh plant, from where you want to procure/ship the material.
    Or even after you have maintained the Accouting view, Material price (Moving avegare price when price control is V must be Zero)
    Kindly check the master data records.
    This will resolve your issue.
    Regards,
    Dnyandeo H. Ainarkar

  • Using bsid and bsad I needed get partner name related to sales order

    Hi
    Using bsid and bsad I needed get partner name related to sales order
    I have gone through the tables but its vbeln column is blank
    How can I make relation between bsid and bsad with vbak if vbeln and column is blank in the table bsid and bsad.
    Please guide me.
    Regards
    Sebastian
    Edited by: Sebastian John on Apr 21, 2009 3:35 PM

    BSID-VBELN = VBRK-VBELN.
    Billing document number is there in BSID table.
    Regs.

  • Idoc numbers for a certain output in Sales Orders

    I have more than hundred Sales Order
    One EDI output was triggered (with a unique partner type) from each of these Sales Orders.
    How to find idoc numbers for all these Sales Order for this particular output?
    I tried WE09 giving Segment and field with value....two issues with this. first is it is not working for me...not records found.
    Secondly It take one value at a time. I can't do this for every Sales Order
    Is there any database table or something else to find these idocs?
    Thanks a lot!

    Hi,
    if this special partner type is the partner type of the IDoc receiver, then you can search for relevant IDocs in transaction WE02.
    If you need a partner type out of the sales order data, then it is stored in table EDID4 "IDoc Data Records".

  • Need a user exit for Export Control check in Sales Order fro VA01/VA02

    Hi ,
         I need a user exit for Export Legal Control process in Sales Order.since Ship-to country in the Sales Order is not always the ‘ultimate destination country’ User Exit needs to be built in with following logic
    1.     Check to see if ‘ultimate destination country’ field is maintained in Sales Order
    2.     If a value is maintained then for the Export control checks use ‘ultimate destination country’ instead of the Ship-To country (step 1)
    3.     If no value is maintained then use Ship-To country as default
    The user exit is called when the user creates or changes a Sales Order.
    Can anybody help ?
    Thanks

    Hi,
    Exit Name Description
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    SDAPO001 Activating Sourcing Subitem Quantity Propagation
    <b>Reward points</b>
    Regarsd

  • Smart playlist for duplicate track numbers?

    Hi Folks,
    With Regard to smart playlists is there any way to identify duplicate track numbers on the same disc?
    During the import process the disc numbers (where it was a dual cd) we simply listed as disc 1 on the import process.
    As a result, some albums have 2 x track 1 and 2 x track 2 etc.
    So save me searching through the whole library manually, is there a way to create a smart playlist and search doe duplicate track numbers on the same disc.
    In the same light is it possible to search for duplicate artists on the same disc?
    Appreciate your help
    Hope this makes sense.
    Thanks
    Simon.
    This email has been scanned by the Symantec Email Security.cloud service.
    For more information please visit http://www.symanteccloud.com

    Hi Simon,
    Missed this thread the first time around.. As Chris says this isn't something that you can pick up with a smart playlist. In principle I could write a script that runs through every track in a selection and notices when the same combination of track number, disc number, album title and album artist comes up. A second pass would then add every track from each affected album to a regular playlist for you to go through and fix up.
    In practice when I'm hunting for inconsistencies in the library I've found that stepping through the albums using the column browser is quite effective. In my case I'm generally looking for instances where the same album title is reused by different albums, the obvious example being Greatest Hits, as these jumble together on my iPod classic. When this happens I retitle each album as <Album> - <Album Artist> to separate them. Using the column browser I reckon I can scan through the library at about 2 albums a second, stopping only when something looks amiss.
    So, are you still hunting for your misnumbered double albums?
    tt2

Maybe you are looking for

  • Mac get hangs or frozen on start Up always

    Hi, The problem occurs after, when I have updated my mac mini to 10.8.4, when mac start it always hangs up and its mouse dosen't work, what i need to do then is to press power button to take machine in sleep mode, then again I need to press power but

  • Less voltag in J502/DIO sbRIO 9636 (NI LabVIEW RIO Evaluation Kit )

    Hello, I bought the NI LabVIEW RIO Evaluation Kit (with sbRIO9636). I have problem with the sbRIO9636. The voltag in J502,DIO Pin 49 and 50 is less than 5V (just 1.7V). so VCC of the LabVIEW RIO Evaluation board with a digital encoder, LCD screen, fu

  • I cannot download itunes on my windows 8 laptop

    I cannot download itunes onto my laptop, what does this installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid window installer package mea

  • Slideshows in FCE batch processing

    Please can some one tell me if their is a batch processing option so that i can apply the same transition to all my slides with out having to manually insert a video transition between each still image

  • Lookup.USR_PROCESS_TRIGGERS - Basic Information

    I am a newbie. Can anybody please explain me the purpose of using "Lookup.USR_PROCESS_TRIGGERS"? What is this related to and how can we use it at the time of provisioning or reconciliation with/from a resource? Where can I find it in Design Console ?