Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Order line SKU combinations

Can anyone assist with the following issue I've been stuck on for days, I have a table that has two columns: "Item Number (SKU)" and "Order Number". I need to generate a list of order combinations associated with a SKU and if that list also applies to another SKU generating a new row for each SKU order list combination. sample data below

Item Number (SKU)Order Number
AC12TAR66010071
AC12TAR66010072
AC12TAR66010973
AC12TAR66034166
AC12TAR66034168
AC12TAR66034170
AGG12B66027364
AGG12B66029529
AGG12B66029530
AGG12B66032487
AGG12B66042748
BB3BF96018230
BB3BF96038288
BB3BF96038290
BB4BC66024689
BB4BC66043674
BB4BC66043808
BB4BF66010973
BB4BF66011877
BB4BF66013191
BB4BF66024913
BB4BF66025173
BB4BF66025182
BB4BF66029530
BB4BF66029763
BB4BF66032348
BB4BF66034166

Expected output

Item Number (SKU)List
AC12TAR66010071;
AGG12B66010071;
BB4BC66010071;
AC12TAR66010072;6034170;
BB3BF96010072;6034170;
BB4BC66010072;6034170;
AC12TAR66010973;6034166;6034168;
AGG12B66010973;6034166;6034168;
BB3BF96010973;6034166;6034168;

3 Replies

  • I don't understand the rules behind your expected outcome.  Can you please explain them again?

  • Hi Anonymous ,

     

    Sorry for that the information you have provided is not making the problem clear to me. Can you please share more details to help us clarify your scenario? What is your rule to generate list? It seems that some SKUs have a list of expected outputs that contain order numbers which are not in the source table. 

     

    Best Regards,

    Jianbo Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thanks for all the replies but I've figured out how to do it on SAP BO