How to get a Delivery note number from a picklist ?

Hello friends,
I'm setting up an alert for a customer, the purpose is to send a notification whenever a new Delivery note is generated from a pick list, what I thought of is to retrieve the baseDoc number from OPKL ( the pick lists table) which would give me the DocNum of the Order Document number, and then I could get the TargetEntry of this Order , but i'm not sure if it is the best solution, since an order can generate several Deliveries, and with this method I could only get one,
What I need is a simple way to link OPKL to ODLN.
Thanks in advance,
Amin

The solution I was thinking of did work actually, and the fact that the link is made on the lines ensures that all the target documents are brought.
Select Distinct
T0.AbsEntry As 'Pick List',
T2.DocNum 'Delivery',
T1.OrderEntry As 'Order',
T0.[Name] As 'Creator',
T0.CreateDate As 'Creation Date',
T0.PickDate As 'Pick date',
from OPKL T0 
INNER JOIN PKL1 T1 ON T0.AbsEntry = T1.AbsEntry
INNER JOIN DLN1 T3 ON T3.BaseEntry=T1.OrderEntry
INNER JOIN ODLN T2 ON T2.DocEntry = T3.DocEntry 
Order BY T0.AbsEntry DESC
Kind regards
Amin

Similar Messages

  • How to get master sales order number from delivery number

    Hi All,
    I need logic for getting master sales order number from available Delivery number.
    Note: There can be many SO's in diffrent levels.
    Finally i need to pick up master sales order no.
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    I have a outbound delivery[VL03N] 'X' in my system .
    Then for getting sales order no i am writing below code:
      SELECT single vbelv vbeln
             from vbfa
             INTO (vbelv, vbeln)
             where vbeln   EQ p_vbeln AND
                   vbtyp_n EQ 'J'.
    Then vbelv i need to pick up master sales order no.
        SELECT vbelv vbeln
               from vbfa
               INTO TABLE i_so
               where vbeln   EQ l_vbelv AND
                     vbtyp_n EQ 'C'.
    If i write code as above it is giving four sales orders which one of them is master sales order no!
    Thanks,
    Deep.

  • How to get the last SCN number from catalog database

    Hi All,
    I have a catalog database where my PROD database is registered. Evereyday at 12AM rman takes the hot backup of PROD.
    Now I want to create a auxillary database using the last RMAN backup, for this I want to restore using the SCN from the catalog views.
    Please help me to get the SCN number from the RC_ views.
    Regards,
    Bikram

    asifkabirdba wrote:
    Current SCN:
    Use the dbms_flashback package to get the current SCN. This value will be used during instantiation at the destination site, as well as by RMAN when duplicating the database.
    SET SERVEROUTPUT ON
    DECLARE
    until_scn NUMBER;
    BEGIN
    until_scn:=
    DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER;
    DBMS_OUTPUT.PUT_LINE('Until SCN: ' || until_scn);
    END;
    Regards
    Asif KabirHello,
    i am a bit confused,
    SELECT CURRENT_SCN FROM V$DATABASE;
    6272671324
    and from your package
    SET SERVEROUTPUT ON
    DECLARE
    until_scn NUMBER;
    BEGIN
    until_scn:=
    DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER;
    DBMS_OUTPUT.PUT_LINE('Until SCN: ' || until_scn);
    END;Until SCN: 6272671267
    why are they different, and why first result is lower than yours? can you explain please, thank you
    Ugur MIHCI

  • How to get a Reversal document number from Original Document Number ?

    Hi,
    Say I have a Original Document number. This document has been reversed.
    I am using table BSEG. Original Document Number for any Reversal Document is stored in field "BSEG-REBZG"
    My query is that now I have the Original Document Number. How can I get the Reversal Document from this Original Document number ??
    OR in simple words, Is there any possible way to find out if my original document has been reversed ?
    I need help to write a select query i.e the tables and fields.
    Please help.
    Thanks.

    Hello,
    Check the fields:
    BKPF-XREVERSAL: Reversal Indicator (1: Reversed Document, 2: Reversal Document)
    BKPF-STBLG: Reverse Document Number.
    BR,
    Suhas

  • How to get an accounting document number from an Invoice number

    Dear All,
    I have a requirement where I need to know which accounting document is created against a  particular invoice. As we know that in the document flow of invoice we can see the Accounting document also. But to develop the report I need to pick the accounting document by the invoice document. Please suggest me a table where this value is getting stored. I already tried VBFA and VBKD but nowhere I am getting such information from which I can pick a accounting document number for a particular invoice.
    Please give me your suggestions.
    Regards,
    Sanju

    Dear,
    For Billing document create no. range by Tcode-VN01 and assign it to in Tcode-VOFA
    For Accounting document create no. range by Tcode-FBN1 and activate the External Field and assing it to in Tcode- OBA7
    but Assign the same no. range to both Document types for exp 1000000 to 1999999.
    Regards
    AJIT K SINGH
    HAPPY TO HELP U

  • How do i get a radio station number from  down load the station tomy ipod, how do i get a radio station number from itunes it only plays on the computer i can not down load the station tomy ipod

    How do i get a radio station number from itunes it only plays on the computer i can not down load the station number as it does not show one to my ipod

    Which iPod? 
    iPod Manuals
    iPod Models

  • How to get Delivery Doc Number From Picking List Number?

    Helo All...
    How can I get the delivery document numbers from the picking list numbers?
    Thanks

    Try using transaction SE16 and table VBFA- subs. doc category Q should give a list of pick list numbers the preceding document is the delivery. Note you may have to go to settings> fields for selection to choose subs doc categ.  so that it appears as a selection.

  • How to get the delivery number for the sales order

    hi
    how to get the delivery number for the sales order

    Hi,
    1. IN VA03, enter the sales order and click on the document flow button. From there you can check the delivery document.
    2. In SE11, enter VBFA(Document flow) table and enter the sales order in VBELV field and in VBTYP_N field enter 'J' to specify that you want to check if there is already a delivery document for that sales order.
    Hope it helps...
    P.S. Please award points if it helps...

  • My iPad was stolen in brazil.  i cannot get the manufacturer id number from my iPhone or my macbook air....they are all linked together though.  any suggestions on how and if i can possibly retrieve this and thus locate the device? thanks julie

    my iPad was stolen in brazil.  i cannot get the manufacturer id number from my iPhone or my macbook air....they are all linked together though.  any suggestions on how and if i can possibly retrieve this and thus locate the device? thanks julie

    Launch iTunes, go to the Preferences, select Devices, and hover your cursor over the backup file for the iPod. That should show you the serial number, IMEI, and possibly the MEID.
    The manufacturer ID will not help you locate the iPad, though. If you set up the Find My iPad service in the Settings prior to the iPad going missing, then there is a chance that can be tracked, though it depends on a number of factors (the iPad is turned on, connected to a WiFi or 3G network, and has not had the Find My iPad service disabled or the iPad been completely restored). 
    If you did not set up Find My iPad, then there is no way to track it. Contact the police and change any passwords for any online accounts you may have used from your iPad (the iTunes Store, for instance). 
    Regards.

  • I want to setup Lightroom on my new laptop.  I have my latest serial number but it is the upgrade serial number for LR5.  I do not have the original serial number from my purchase of LR3.  How can I recover the serial number from my original purchase of ?

    I want to setup LR on my new laptop.  I have the serial number from my latest purchase but not the original purchase of LR3.  How can I recover the serial number from my original LR purchase?

    If you did register it back then, open your Adobe account with your Adobe ID and you will find it there: Find your serial number quickly
    If you still have it installed, open the System info in Help menu or look here:
    C:\ProgramData\Adobe\Lightroom\Lightroom xy Registration.lrreg

  • HT1711 how do i get my music not purchased from the itunes store onto my iphone? ie music from CDs etc..

    how do i get my music not purchased from the itunes store onto my iphone? ie music from CDs etc..
    I am not able to get this onto my phone. Only music I bought from the itunes store goes to my phone..

    Hello michael.suffoletto
    Check out the article below on manually managing your music by dragging and dropping the music that you want to your iPhone within iTunes.
    Managing content manually on iPhone, iPad, and iPod
    https://support.apple.com/kb/ht1535
    Regards,
    -Norm G.

  • How to fetch delivery note fiedl from MIGO

    Hi,
    how to fetch delivery note field from MIGO.
    Regards
    Mave

    see it is not the exact field.
    Regards
    Mave

  • How can we get the selected line number from JTextArea ?

    how can we get the selected line number from JTextArea ? and want to insert line/string given line number into JTextArea??? is it possible ?

    Praitheesh wrote:
    how can we get the selected line number from JTextArea ?
    textArea.getLineOfOffset(textArea.getCaretPosition());
    and want to insert line/string given line number into JTextArea??? is it possible ?
    int lineToInsertAt = 5; // Whatever you want.
    int offs = textArea.getLineStartOffset(lineToInsertAt);
    textArea.insert("Text to insert", offs);

  • How to Get Alternative Gl Account Number in SRM from ECC backend

    Hi All ,
      We need to get the Alternative Account Number in the SRM  from the ECC backend.  Is it stored in any of the SRM Table?
      or
      is ther any  RFC(FM) or BAPI to get the Alternative Account Number from the Ecc to SRM.
      Please help.
    Regards
    Channappa

    Hi Abd-Al-Aleem  ,
      Thanks a lot for response , actually we need to get the Alternative account which is in the ECC(Table:skb1) into the SRM system.So is there any RFC or BAPI  which can help to solve my issue.
    Regards
    =========
    Channappa

  • Delivery Note NUmber

    When i try to post MIGO i am getting the following error message:
    Check the Delivery Note Number
    Message no. ZMM01000
    Please help me to solve this issue
    Thanks & Regards,
    Pioneer

    HI
    Is it that you are not filling in the delivery note number which sems it is mandatory from your message ro is it required that you have to fill in a particular  pattern, just check this out. Refer your old GRN documents for MIGO and analyse how  they have been carryign out if not successful you can go for de_bugging to find out the reason as this is a custom designed message developed by the client.
    Regards

Maybe you are looking for

  • Tivo shenanigans.

    Alright, I KNOW I'm overcomplicating things, and may be asking some danged dumb questions. Hopefully, you'll humor me. I've actually been looking, but, alas, the knowledge gods are spurning me for doubting there's an easy way. So here's what I've got

  • Why is the crop tool in Lightroom 5 so sluggish on my otherwise very fast machine?

    I'm running a Macbook Pro Retina, new from this time last year.  It's got 16gb RAM, a 768gb SSD (with about 150gb free space), and 2.8GHz processor.  Everything else is lightening fast on my system.  Lightroom is fine otherwise, but the crop tool is

  • Crappy Banding in images still evident in ilife 11...

    I thought Apple this time round would solve the issue of banding and poor image quality in some areas of images imported into imovie for photo slideshow movies. Well that hasn't happened and frankly it *****. Why pay the money to upgrade when I get t

  • Installing Microsoft Office home and studnet 2007

    Hi im a new mac user and when i put the disk in for Microsoft Office home and student the cd comes up but will not auto run i have no clue how to install this. i could really use some help thanks!

  • Alarm not working correctly

    I am having the same problem. I set my alarm for 6:30pm on 12-31-2010 and it failed to ring. I did not think much about this and I set another alarm for 1:15am on 01-01-2011 and it sounded. I set another alarm for 01-02-2011 at 5:15am and one for 5:2