Help request of customer orders

Hello!

I'm stuck and I'm a little confused about what to do.

I did a query that displays sales order data, the query is:

"

Select

OHA.order_number "Order number"

OHA.ordered_date "Order date"

OHA.cust_po_number "Number"

Ott.Name "Order Type"

OLA.line_number "Line number"

MSI. Segment1 "Item Code",

MSI. 'The item name, description

-wdd.lot_number "LOT number"

OLA.ordered_quantity "quantity."

OLA.order_quantity_uom "UOM ordered."

OHA.transactional_curr_code "currency."

OLA.unit_selling_price 'unit sales price. "

(ola.ordered_quantity * ola.unit_selling_price) "Sale price of line."

OLA.shipping_quantity 'quantity shipped. "

OLA.shipping_quantity_uom "UOM Quantity Shipped."

(nvl(ola.shipping_quantity,0) * ola.unit_selling_price) "Delivered price",.

cases where oha.transactional_curr_code = 'HUF' THEN (nvl(ola.shipping_quantity,0) * ola.unit_selling_price) other (nvl (ola.shipping_quantity, 0) * ola.unit_selling_price * ATCM.) End EXCHANGE_RATE) "prize shipped in HUF.

OLA. ACTUAL_SHIPMENT_DATE "Delivery Date"

extract (YEAR OF OLA. ACTUAL_SHIPMENT_DATE) "Shipped year."

extract (MONTH OF OLA. ACTUAL_SHIPMENT_DATE) "Shipped months."

extract (DAY OF OLA. ACTUAL_SHIPMENT_DATE) "Shipped day."

OL. Meaning "order status."

HCA.account_number 'Cardcode. "

bill_p.party_name 'Cardname. "

DECODE (bill_loc.city,

NULL, NULL,

bill_loc. City | ', '

)

|| DECODE (bill_loc.state,

NULL, bill_loc.province | ', ',

bill_loc. State | ', '

)

|| DECODE (bill_loc.postal_code,

NULL, NULL,

bill_loc.Postal_Code | ', '

)

|| DECODE (bill_loc.country, NULL, NULL, bill_loc.country) "Delivery address"

bill_loc. Address1 'Expedition street. "

ship_loc. "Shipping city," city

ship_loc. Indicative "Expedition", country

FT.territory_short_name "country of dispatch",.

(select name

of ra_salesreps_all

where salesrep_id = oha.salesrep_id

and org_id = oha.org_id) 'name of the sales person.

of oe_order_headers_all oha.

ola oe_order_lines_all,

oe_transaction_types_tl ott,

MSI mtl_system_items_b,

hz_cust_site_uses_all bill_su,

hz_party_sites bill_ps,

hz_locations bill_loc,

hz_cust_acct_sites_all bill_cas,

hz_cust_accounts bill_ca,

hz_parties bill_p,

hz_cust_site_uses_all ship_su,

hz_party_sites ship_ps,

hz_locations ship_loc,

hz_cust_acct_sites_all ship_cas,

-wsh_deliverables_v WD

fnd_territories_tl ft,

oe_lookups ol,

hz_cust_accounts_all AOB,

ra_customer_trx_all ATCM,

ra_customer_trx_lines_all rctla

-wsh_delivery_details JMD

where oha.header_id = ola.header_id

and bill_p.party_id = hca.party_id

- and wdd.source_header_id = ola.header_id

- and wdd.source_line_id = ola.line_id

and oha. ORDER_TYPE_ID = ott.transaction_type_id

and ott.language = userenv ('LANG')

and ola.inventory_item_id = msi.inventory_item_id

and ola.ship_from_org_id = msi.organization_id

and oha.invoice_to_org_id = bill_su.site_use_id (+)

and bill_su.cust_acct_site_id = bill_cas.cust_acct_site_id (+)

and bill_cas.party_site_id = bill_ps.party_site_id (+)

and bill_loc.location_id (+) = bill_ps.location_id

and bill_cas.cust_account_id = bill_ca.cust_account_id

and bill_ca.party_id = bill_p.party_id

and oha.ship_to_org_id = ship_su.site_use_id (+)

and ship_su.cust_acct_site_id = ship_cas.cust_acct_site_id (+)

and ship_cas.party_site_id = ship_ps.party_site_id (+)

and ship_loc.location_id (+) = ship_ps.location_id

and ship_loc.country = ft.territory_code

and ft.language = userenv ('LANG')

and ol.lookup_type = 'FLOW_STATUS. '

and ol.lookup_code = oha.flow_status_code

and ola.shipping_quantity IS NOT NULL

AND rcta.customer_trx_id = rctla.customer_trx_id

AND rctla.interface_line_attribute6 = TO_CHAR (ola.line_id)

AND rctla.interface_line_attribute1 = TO_CHAR (oha.order_number)

- and oha.order_number = 1000914

"

The query works perfectly except one case.

If I have sous-lignées, non-conventional lines (see attachments) in this case the query display only the first value of sub-line.

Also if I connect wsh_deliverables_v tables for LOT numbers, the lines will be multiple and I don't know why

Thanks for your help in advance,

Zsolt

I found the solution. If someone else stuck, here is the solution:

In where condition change this line:

AND rctla.interface_line_attribute6 = TO_CHAR (ola.line_id)

to do this:

AND (rctla.interface_line_attribute6 = TO_CHAR (ola.line_id) or rctla.interface_line_attribute6 = TO_CHAR (ola.split_from_line_id))

Tags: Database

Similar Questions

  • Creation of customer order IN.

    Hello

    Please let me know if there is any functionality of oracle standard by which we can ensure that purchase order contains no elements of customer orders. for example if there are several command so a PO must be generated for each order.

    At the time of the application to import, you can specify parameters such as

    1. the buyer
    2 category
    3 point +.
    4 location
    5. the seller
    There are no parameters as command, so we'll end up creating a PR of multiple customer orders and then PO would be created of PRs.

    Let me know if we can achieve the functionality to create unique IN. for each sales order.

    Thank you

    If you have different providers for items in a sales order, you can create different POs.

    Assuming that all elements are going to the same vendor, you can consider a simple customization as follows
    Write a trigger before insert on the po_requisition_lines_interface and do the requisition_number or even the group_code of all items on a sales order.
    That will make the import of requisition program put all these lines on a request.

    Hope this helps,
    Sandeep Gandhi

  • I'm trying to custom order my photos.

    I was at the library and unchecked "show pictures in subfolders" but am not yet able to custom order. Help, please!

    I've sorted it with images in a collection rather than a smart collection - but thanks for your response :)

  • Custom orders (keyboard shortcuts) in FCPX

    I use a Microsoft 4000 ergonomic keyboard.  It comes with an application for OSX called IntelliType Pro that allows some of the additional keys on the topic, including a zoom "lever" in the center of the keyboard.  Unfortunately, IntelliType Pro does not work with El Capitan, and I just upgraded.

    The zoom "lever" on the keyboard has never worked in FCPX.  Instead, I went into the menu command and created custom orders.  I did zoom F1 key on (the equivalent of the 'command') - and the zoom button F2 in (the equivalent of "command +").  That worked great.  But, of course, this only works in FCPX.

    Now that my lever zoom on my keyboard does not work, I would use F1 to perform a zoom and F2 to zoom out in all my applications (Safari, Firefox, Pages etc).  Is it possible to do?

    GoTo prefs of your Mac, 'accessibility '.

    http://www.Apple.com/accessibility/OSX/#vision

    MacOS has integrated key-combos for Zoom window or just some of its parts (like the ctrl-opt-click function of the mouse)...

    No need for special keyboards, extensions etc...

  • How to burn audio files to CD in custom order

    Is there a recording program that will allow me to file record music, 'coded' and not in alphabetical order? I can record them scrambled, but when they play, they play in order A to Z... This is the way that they wrap the disk...

    Thanx

    Do you mean burn CDs? Which program do you use to burn CDs, and you burn them as data CDs containing MP3 files? This would explain why the custom order is lost.

    To retain the custom order, make sure you're burning real audio CD instead of data CD.

  • Mobile Lightroom will not appear pix in the same custom order as CC

    Let's say I have organize 50 pix in a specific custom order of the Lightroom CC notebook and then save as a collection.

    And then synchronize them with the Mobile with Lightroom.

    The mobile does NOT show the pix in the same command way.

    It is a huge problem.

    any ideas?

    II LR Mobile you open a collection and click on the name of the collection at the top, you should be able to choose the sort order.

    You should see options for the capture time, date, file name and custom.

  • Need help request!

    Hi all

    I am faced with a request to generate a model:

    The problem is the following:

    I have a test table in

    create table test

    (

    Identification number,

    varchar2 (20 char) value,

    date date

    );

    and the row values are as follows:

    value date: ID:

    1:value1:Date1

    1:value2:date2

    1:value3:date 3

    where date1 is today, date2 is yesterday and date 3 is the day before yesterday.

    I have to generate a format like below:

    ID: old_value:new_value:changed_date

    1:value3:value2:date2

    1:value2:value1:Date1

    where id, old_value, new_value and modified date are columns.

    Any suggestions would be helpful.

    select *
    from (
      select id
           , lag(value) over(partition by id order by dt) as old_value
           , value as new_value
           , dt as changed_date
      from test
    )
    where old_value is not null ;
    
  • Help not in alpha order when the user clicks on the key word in the Index

    When I test my index finger in a generated Webhelp project, the topics associated with the keyword that I click are not willing to be placed in alphabetical order, but randomly.

    When I click on the same keyword, in RoboHelp (in the Index before the generation) project, the topics are arranged correctly.

    Is there a setting in RoboHelp or Internet Explorer that would straighten out this point, or is it just a bug of RoboHelp?

    Using RoboHelp 8 and IE 8.

    Thank you

    John

    Hi, John D. He is John D.

    You can manually "rearrange the Perfect file" as you describe to achieve the desired order. Some notes of clarification are added below:

    1. I doubt if your Perfect file is corrupt (although all things are possible.) The Perfect file is an xml text file and easily modified with Notepad.
    2. Of course, you want to back up your original first before editing.
    3. You cannot delete the Index in the designer and recreate it on the fly as simply as the use of the automatic table of contents that uses the folder structure. The only way to create an "Automatic Index", is to use the smart Index Wizard. But most of the people who can't find useful because it takes more time to use it properly. It is best to create it from scratch. In addition, this would not solve your question alphabetical.
    4. I stuck a test below where I added an alpha character in each topic title directly in the XML, as shown. (In other words, I do not add the alpha character to the real title tag in the subject.) It works as advertised WebHelp output.
    5. Interestingly, it does not in the MS HTML Help .chm version. It's because Microsoft uses the title of the topic to form the text of the displayed entry.
    6. It's not a bug, because a large number of process is governed by Perfect original format of Microsoft. But it would be an interesting feature request (signature of Rick above)

    Here's what the output of WebHelp appears for the two Index entries:

    And, the MS HTML Help CHM:

    Happy alphabetical order!

    John Daigle

    Adobe Certified RoboHelp and Captivate instructor

    Evergreen, Colorado

    www.showmethedemo.com

  • Why is my help requests being deleted?

    3-4 of my requests for help last week disappeared.

    I'm still waiting for assistance.

    My messages were respectful at all times.

    Why is this done?

    Spitfire,

    Maybe they were duplicates, as these two?

    Results of terminal script below for frozen, then slow cursor

    Frozen cursor MacBook Pro 13 "w updates

  • Logic of long-standing problem - help requested

    3.6.1 numbers using

    I am trying to improve the process that I do in my work. I have download and regularly need to massage ~ 850 lines of spreadsheet data but the variables seem to be either impossible to work with or the method required beyond my comprehension. Can someone please help save me from going bonkers?

    • Data records of the directors and their users, sometimes 0 users, no maximum.
    • Users share the same alphanumeric ID as their directors
    • There are two types of administrators; Like 'John Allagain' and 'other' individual directors.

    I need to order the entire worksheet go something like this: (only ordered by ID alphanumeric)

    1234 4321 328 ZZZ

    CARIS Easton

    User

    1234 4321 328 ZZZ

    Jerri rains

    User

    1234 4321 328 ZZZ

    John Allagain

    Administrator

    1234 4321 328 ZZZ

    Letha Piper

    User

    1234 4321 328 ZZZ

    Kenelm Brams

    User

    1234 4321 328 ZZZ

    Noelle Walter

    User

    2345 4311 456 ZZZ

    Chris Stopme

    Administrator

    2345 4311 456 ZZZ

    Tennyson sand

    User

    3456 6543 345 ZZZ

    Katelyn Elvis

    User

    3456 6543 345 ZZZ

    White Leyroy

    Administrator

    3654 3873 683 ZZZ

    Rowena Dixon

    User

    3654 3873 683 ZZZ

    Suzie Blankichip

    Administrator

    4235 7431 123 ZZZ

    Bob Jones

    Administrator

    4235 7431 123 ZZZ

    Unity Granville

    User

    6543 3455 875 ZZZ

    Benny Hurst

    User

    6543 3455 875 ZZZ

    Nancy Zinger

    Administrator

    6543 3455 875 ZZZ

    Randy Rennoll

    User

    9384 5837 443 ZZZ

    Kitchen of Gaylord

    User

    9384 5837 443 ZZZ

    Janessa Howard

    User

    9384 5837 443 ZZZ

    John Allagain

    Administrator

    9384 5837 443 ZZZ

    Laraine Wyght

    User

    To do this:

    1234 4321 328 ZZZ

    John Allagain

    Administrator

    1234 4321 328 ZZZ

    CARIS Easton

    User

    1234 4321 328 ZZZ

    Jerri rains

    User

    1234 4321 328 ZZZ

    Letha Piper

    User

    1234 4321 328 ZZZ

    Kenelm Brams

    User

    1234 4321 328 ZZZ

    Noelle Walter

    User

    9384 5837 443 ZZZ

    John Allagain

    Administrator

    9384 5837 443 ZZZ

    Kitchen of Gaylord

    User

    9384 5837 443 ZZZ

    Janessa Howard

    User

    9384 5837 443 ZZZ

    Laraine Wyght

    User

    2345 4311 456 ZZZ

    Chris Stopme

    Administrator

    2345 4311 456 ZZZ

    Tennyson sand

    User

    3456 6543 345 ZZZ

    White Leyroy

    Administrator

    3456 6543 345 ZZZ

    Katelyn Elvis

    User

    3654 3873 683 ZZZ

    Suzie Blankichip

    Administrator

    3654 3873 683 ZZZ

    Rowena Dixon

    User

    4235 7431 123 ZZZ

    Bob Jones

    Administrator

    4235 7431 123 ZZZ

    Unity Granville

    User

    6543 3455 875 ZZZ

    Nancy Zinger

    Administrator

    6543 3455 875 ZZZ

    Benny Hurst

    User

    6543 3455 875 ZZZ

    Randy Rennoll

    User

    The hierarchy resulting is therefore:

    • Each Director named John Allagain, with
      • Their respective below, users followed
    • Each of the other directors, with
      • Their respective under users.

    How do I get there?

    You can try something like this:

    Sort by C:

    Then sort by A:

    I'll give you this:

    Insert cells empty and drag John Allagain to the top.

    If you have a lot of John Allagain throughout the table, then you might duplicate column C column D, change all the values of the administrator for John Allagain in column D for 1success (leaving the other values of the administrator the same).  So the same sequence as above except you would first sort on column D (not C), then on column A.

    Best to make a backup of your table before you try this, in case you're wrong and you need to start over.

    SG

  • Need help with device custom execution - Urgent!

    Hi all

    I'm new to veristand and I need to build a custom in veristand device... I went through custom through the model tool on the creation of the device links.

    But I am not able to understand the device exactly how custom runs.

    What value should be passed to the ' point device Ref in "initializing VI. ?

    Is there a specific document I can get the exact flow of execution of the custom device?

    I want to create customized by program channels, sections of the device by reading file... This code, I wrote it in the VI initialization. But when I run this VI I get the error message like "item does not exist. Somewhere I am doing wrong as I am not aware of the exact flow!

    Help is very appreciated!

    Hello

    I recommend to go through Custom Device Developer Guide:

    http://www.NI.com/white-paper/12712/en/

    Dev Guide.

    It is described in detail here.

    Jiri

  • Cannot right click Windows 7 Explorer of files to generate the copy of the file names in a Notepad or Excel-compatible file. HELP REQUESTED!

    I struggled for several hours to restore the service right click that I used to have XP to Windows 7.  I need to save lists of file names such as displayed in the file Explorer. Allowing you to right-click and save files in Notepad. This option has been removed in Windows 7 and anything put in place to restore it.

    I have lists of items in the inventory and need to copy and paste the image corresponding to a transfer sheet to allow the server names to match images in article SKU.  The file names are long and typing is a complete waste of time.

    I used to be able to find them in the Windows Explorer, right-click on the directory and generate a txt file that I could open in Notepad or Excel.  -Easy.  Now right-click only allows an export in an uneditable image in ONE NOTE. This is useless for me. I can't do anything with an image file - I need the editable data.

    Is there a solution?  I need only the file name and extension, not the full path, in a text or spreadsheet document propagation.

    I had used the Microsoft solution to install their dose without knowing the final format was a NOTE image file format and not a simple txt file. I try now too write the batch file:

    %windir%\Printdir.bat

    or edit it in order to keep the file in Notepad and do not make the final conversion into a single Note.

    The problem is that the fix from Microsoft, designed to fix this problem, has placed the conversion file in the root directory and it cannot be overwritten.  I refused the possibility to delete, edit or write the file due to the requirements of administrative privilege mandated by the security of Windows 7 too much.

    So if anyone has a solution to every problem - that would help - I am very tired and frustrated and not happy with Microsoft.  Their zealous concern with security made their unnecessary programs for me and have further discouraged me to convert to the windows 10. frustrations and nightmares are waiting for me there I can't imagine.  What I really want to do at this point is to go back to XP.

    He ate five hours of my day. I don't have the time to fight like that. I am trying to be productive, but all I got are monumental technical walls and roadblocks - often designed into the system. Frustrating doesn't begin to describe it.

    Found a solution on a Web site:

    http://www.watchingthenet.com/how-to-print-a-directory-tree-from-Windows-Explorer.html

    They said it was for VISTA, but worked for me under Windows 7. You will need to use Notepad to the command prompt and select run as administrator to save the file in the root directory.

    Thanks for the help.

    Cheers.

  • Need help with HP8050 custom made size

    I would like to print photos of 8 x 12 inch on my Photosmart Hp8050.  Pls tell how to set up the printer for this custom setting. I'm on Mac OS10.6.8.

    Thank you.

    With your help, I now understand the "custom" option and provided a custom option 8x12in. "."

    Ive tried to test this custom functionality by inserting a sheet of A4 (different size than 8 x 12)... and get the following error message:

    Paper size error: the custom paper size specified is not supported in the selected tray.

     
  • Help request deleted blackBerry smartphones! I want to go back!

    I accidentally deleted the request for help while trying to remove a third-party application. I was surprised that a, I fact and two, let me not! How do I get it without having to reload all the software completely (and lose all my other apps)?

    Open your Desktop Manager > application loader, run it and CHECK help load.

    If nothing is present in the application loader, you need to charge your current device OS on your PC.

  • Need help installing QuickBooks Customer Manager v 2.5 on windows 8.

    Trying to install QuickBooks Customer Manager v 2.5 on windows 8... help!

    Hello

    There is a notice on the certified QuickBooks Pro on Windows 8 to the QuickBooks
    Pro Support site.

    Intuit - QuickBooks Pro - Support - contact us
    http://support.QuickBooks.Intuit.com/support/ContactUsPhoneList.aspx

    ---------------------------------------------------------

    Check with QuickBooks support and their forums.

    QuickBooks - Support
    http://support.QuickBooks.Intuit.com/support/default.aspx

    QuickBooks - contact technical support
    http://support.QuickBooks.Intuit.com/support/contactus.aspx

    Intuit community
    http://community.Intuit.com/

    Intuit Community/Forums
    http://community.intuit.com/quickbooks?lid=Community(SUB%2520HDR)

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

Maybe you are looking for

  • List of the USB pins map mother MSI MS-7778 Jasmine

    Hello Simple question, but I can't find a sure answer: I need the list of pins for two connectors USB 2.0 "front" on the card mother MSI MS-7778 Jasmine in my desktop Pavilion P7-1539, marked F_USB1 and F_USB2. I guess this is the "classic" configura

  • 3G Dialer

    Hello I'm using a ThinkPad T410 with Gobi WWAN card 2000 (9205). My question is, Lenovo provides us with a universal 3G dialer? Why I ask because I use the Dialer to Vodafone can only dial certain telco on SIM card. I need a dialer that is universal.

  • How can I print colors individual IE yellow, Magenta and Cyan on a 7610 Hp Printer all in one?

    I realized a set of color separation; I would like to produce a set of individual sheets of each of the primary colors, IE yellow, Magenta and Cyan. and progressive a 4 color print.

  • error code 1722 restart the spooler

    error message

  • Want to m6: battery

    My work computer (my Boss) is a laptop HP Envy of m6 with 10 Windows installed. Last week or so the progress bar in the battery symbol in the Notification area that happened slowly downwards and the flyout says it is charged as a percent. The other d