Automate

 View Only
  • 1.  How to link Sales Doc and Delivery Doc in Query

    Posted 12-08-2021 14:35
    Hi, I'm trying to create a query where I can have the following output:
    Division (VBAP)
    Sales Org (VBAK)
    Sales Doc # (VBAK)
    Delivery Doc # (LIKP)
    Planned goods issue date (LIKP)
    Actual goods issue date (LIKP)

    I can't seems to get any result when i use the default link proposed by the system.  Do i need to use doc flow tabe (VBFA) in between to link the two and how do i use it?

    Thanks!​

    ------------------------------
    Carmen Lim | Global Process Advisor
    ------------------------------


  • 2.  RE: How to link Sales Doc and Delivery Doc in Query

    Employee
    Posted 12-10-2021 10:19
    Hi Carmen,

    Sales Order number <> Delivery doc number, so this is one case where auto joins don't work.

    VBFA would work, or VBRP, which is what I've used.  It includes the Invoice number, too.


    example:


    Hope that helps,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 3.  RE: How to link Sales Doc and Delivery Doc in Query

    Posted 12-10-2021 16:22
    Thanks Sigrid.  Besides the Sales order doc # and Delivery doc #, I also need the field WADAT and WADAT.IST from the LIKP table. 
    Once I bring in the LIKP table and added those two fields, I can't pull any data.​​

    ------------------------------
    Carmen Lim | Global Process Advisor
    ------------------------------



  • 4.  RE: How to link Sales Doc and Delivery Doc in Query

    Employee
    Posted 12-10-2021 16:47
    Hi Carmen,
    As I mentioned above, please make sure SO document number is not linked to Delivery document number - they are not the same #, even if the field names are the same - so please undo that link.  Please link the Delivery number to the above mentioned delivery number.
    If you're still stuck, please include a screen shot of how things are linked and I can point to it.
    Best Regards,
    Sigrid​

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 5.  RE: How to link Sales Doc and Delivery Doc in Query

    Posted 12-10-2021 17:11
    Ok, so I linked the VGBEL (delivery #) in VBRP to VBELN in LIKP and it's working now :)
    Thanks Sigrid!



    ------------------------------
    Carmen Lim | Global Process Advisor
    ------------------------------



  • 6.  RE: How to link Sales Doc and Delivery Doc in Query

    Employee
    Posted 12-10-2021 19:04
    Excellent news, Carmen!  Well done!

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------