Discoverer - Find Customer Location/Site info for Order Line

I am trying to figure out the correct join(s) to use or create to be able to tie the Order Line back to the Customer Location/Sites information to determine where the order was shipped and other Customer related information.
When I am pulling data from the Order Lines & Order Header folders in Discoverer, I can then select items from the Customer folder, then from the Customer Locations folder. When I get to the Customer Locations level I am getting multiple rows returned b/c each Customer may have multiple locations. I need to be able to limit the Customer Location to only pull the information related to the which Customer location the order was shipped to.
Can anyone assist me with that?
Thanks.

Hi,
Thanks for the reply.
Every time i am giving unique orig_sys_document_ref at header level.
And there is no error. Order is been created with Booked Status. But Line is not getting created so cannot query the record at Correction form.
Regards
Aryan

Similar Messages

  • How to find out Last Changed Fields for a line item of a PO

    Dear All,
    Pls let me know is there any FM or procedure to find the last changed fields for each line item of a PO. I should be able to get the details on the basis of Last changed Date. Can u pls guide me in this?

    Hello,
    Check the table CDHDR,CDPOS for PO items,
    Check this code:
    REPORT ZV_GET_LATEST_SO .
    DATA: BEGIN OF ITAB OCCURS 0,
            OBJECTCLAS TYPE CDHDR-OBJECTCLAS,
            OBJECTID TYPE CDHDR-OBJECTID,
            CHANGENR TYPE CDHDR-CHANGENR,
            USERNAME TYPE CDHDR-USERNAME,
            UDATE TYPE CDHDR-UDATE,
            UTIME TYPE CDHDR-UTIME,
            TCODE TYPE CDHDR-TCODE,
            TABNAME TYPE CDPOS-TABNAME,
            TABKEY TYPE CDPOS-TABKEY,
            FNAME TYPE CDPOS-FNAME,
            CHNGIND TYPE CDPOS-CHNGIND,
          END OF ITAB.
    TABLES: CDHDR,CDPOS.
    DATA: LT_CDHDR LIKE CDHDR OCCURS 0 WITH HEADER LINE,
    LT_CDPOS LIKE CDPOS OCCURS 0 WITH HEADER LINE.
    *REFRESH AUSG.
    CLEAR CDHDR.
    CLEAR CDPOS.
    CDHDR-OBJECTCLAS = 'EINKBELEG'.
    CDHDR-OBJECTID   = '0000001784'.  " Purchase order number
    **SELECT A~OBJECTCLASS A~OBJECTID A~CHANGENR A~USERNAME A~UDATE A~UNAME
    **B~TCODE
    **B~TABNAME B~TABKEY B~FNAME B~CHNGIND INTO TABLE ITAB FROM CDHDR AS A
    **INNER JOIN CDPOS AS B ON A~OBJECTCLASS = B~OBJECTCLASS
    **                         A~OBJECTID    = B~OBJECTID
    **                         A~CHANGENR    = B~CHANGENR
    **                    WHERE OBJECTCLAS = 'VERKBELEG'
    **                      AND OBJECTID = '0000001784'.
    *SELECT * FROM CDPOS INTO TABLE LT_CDPOS WHERE OBJECTCLAS = 'VERKBELEG'
    *                                    AND OBJECTID = '0000001784'.
    *IF NOT LT_CDPOS[] IS INITIAL.
    *  SELECT *
    *  INTO   TABLE LT_CDHDR
    *  FROM   CDHDR
    *  FOR    ALL ENTRIES IN LT_CDPOS
    *  WHERE  OBJECTCLAS = LT_CDPOS-OBJECTCLAS
    *  AND    OBJECTID = LT_CDPOS-OBJECTID
    *  AND    CHANGENR = LT_CDPOS-CHANGENR.
    *ENDIF.
    **  SORT ITAB BY OBJECTCLAS ODJECTID DESCENDING.
    *LOOP AT ITAB.
    *  WRITE: ITAB-UDATE."ITAB-UNAME.
    *ENDLOOP.
    *--- Interne Tabellen -------------------------------------------------
    DATA: BEGIN OF ICDSHW OCCURS 50.       "Ausgabeaufbereitung
            INCLUDE STRUCTURE CDSHW.       "Zwischendatei
    DATA: END OF ICDSHW.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
         EXPORTING
              DATE_OF_CHANGE    = CDHDR-UDATE
              OBJECTCLASS       = CDHDR-OBJECTCLAS
              OBJECTID          = CDHDR-OBJECTID
              TIME_OF_CHANGE    = CDHDR-UTIME
              USERNAME          = CDHDR-USERNAME
         TABLES
              I_CDHDR           = LT_CDHDR
         EXCEPTIONS
              NO_POSITION_FOUND = 1
              OTHERS            = 2.
    LOOP AT LT_CDHDR.
      CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
        EXPORTING
    *   ARCHIVE_HANDLE                = 0
          CHANGENUMBER                  = LT_CDHDR-CHANGENR
    *   TABLEKEY                      = '00000000 '
    *   TABLENAME                     = ' '
    * IMPORTING
    *   HEADER                        =
       TABLES
         EDITPOS                       = ICDSHW
    *   EDITPOS_WITH_HEADER           =
    * EXCEPTIONS
    *   NO_POSITION_FOUND             = 1
    *   WRONG_ACCESS_TO_ARCHIVE       = 2
    *   OTHERS                        = 3
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT ICDSHW.
        IF ICDSHW-TABKEY+3(10) = '0000001784'
           AND ICDSHW-TABKEY+13(6) = '000001'.
        ENDIF.
      ENDLOOP.
    ENDLOOP.
    Vasanth

  • Assigning Validation Rules to a Condition for Order Line entity

    Hi,
    Do we have any API(or interface) to load some validation rule( rule like 'Inventory Item= some item numbers) to a condition for Order line entity. (i.e. to load records into OE_DEF_CONDN_ELEMS).
    Please let me know, thanks in advance

    I am not sure of the purpose, if this to enforce a processing constraint, I will use API in the validation template defitniion and in the API I will qualify the items.
    You can have these items setup in value set of a look up (custom) and then have user interface control on the same.
    Is that what you are looking for?
    Thanks
    Nagamohan

  • E-mail notification for order lines maintained with an invalid license

    Hello Experts,
      I have a requirement to develop an e-mail notification for order lines maintained with an invalid license.
    T-Code VA01, this mail will be triggered if order has been blocked due to invalid or no license at the time of saving.
    we can add email notification by using some user exit.  Can you please guide me on how to go about looking for the appropiate user exit. Or any other suggestions.
    Thanks,
    Abhishek

    Abhishek,
    check this
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    Re: va01 user-exit....
    http://www.allinterview.com/showanswers/69164.html
    Thanks
    Bala Duvvuri

  • Need to disable/Grayed out Unreseve button for Order lines

    Hi All,
    In Back to Back order process once the order is progressed, the requisition will be created and Quantity will be reserved for PO to be received.
    Some of our users want go and Unreserve this by the below methods.
    1) Tools --> Scheduling --> Unreserve
    2) Right Click on the order line --> Scheduling --> Unreserve
    We need to Disable or Grayed out this Unreseve option for ATO Flagged lines.
    Can anyone let me know if this is possible.

    Ok , Ned , well your Guidance really worked , thanks alot for that.
    I made it work , though since i am very new to AS3 , i really had to experiment , here is the final Code :
    import flash.events.MouseEvent;
    stop();
    var note1:Mc_Notice1 = new Mc_Notice1;
    var note2:Mc_Notice2 = new Mc_Notice2;
    var notes:Array = [note1,note2];
    //var count:Array = new Array(1);
    var count:int;
    count = 0;
    btnload1.addEventListener(MouseEvent.CLICK , load1);
    btnload2.addEventListener(MouseEvent.CLICK , load2);
    function load1(Event:MouseEvent):void
      addChild(notes[0]);
      notes[0].x = 100;
      notes[0].y = 100;
      count ++;
      trace("Counter Value:" + count);
      if ( count == 2)
      btnnxt.addEventListener(MouseEvent.CLICK , nextframe);
    function load2(Event:MouseEvent):void
      addChild(notes[1]);
      notes[1].x = 100;
      notes[1].y = 100;
      count ++;
      if ( count == 2)
      btnnxt.addEventListener(MouseEvent.CLICK , nextframe);
      trace("Counter Value:" + count);
    function nextframe(Event:MouseEvent):void{
      trace("Mouse Enabled");
      nextFrame();
    Once again , Thanks alot for the help and Guidance
    Best Regards

  • Print goup info for each line

    hello everyone,
    i have a request from the user regarding a group left report. the user wants to print all the columns from the group for each line printed by the detail report, not only for the first.
    for example :
    col1, col2, col3, detail11, detail12, detail13
    col1, col2, col3, detail21, detail22, detail23
    col1,col2, col3, subtot2, subtot3
    instead of
    col1, col2, col3, detail11, detail12, detail13
    detail21, detail22, detail23
    subtot2, subtot3
    does someone knows how to do this? i have to say that for the group there are some subtotals made and the user wants them. the modification of the report from group left to tabular it's not permitted.
    many thanks!

    Try out this.
    If your query is something like this
    Select col1,col2,col3,col4 from tab1
    now you have pulled col1,col2,col3 from the group and have formed the group left.
    Select Col1,col1 col1_1,....
    Select each column twice from the select stmt.
    Let me know whether this works.

  • Alert for Order Line Item

    Hi all,
    We have a need to create an alert when a user enters a line item. Is this possible? I am new to alerts so any guidance would be much appreciated.
    After a user enters a line item and presses enter, for certain products an alert should ideally pop-up. Otherwise, it should appear in the messaging. What would be necessary for this to happen?
    We are on CRM 5.0.
    Thanks in advance. Points will be awarded for helpful responses.

    Alerts are triggeered on some events like a click of the button .They appear in the alert area provided in the sap ic webclient application.
    Your requirement is very much possible.You need to follow the following steps:
    1.Create an alert class in se24 .where u need to write the code for triggering the alert  or u can directly write the code in the controller class of the view where u are going to add the item.
    2.Go to SPRO->CRM->ICWebclient->Customer Specific System Mod->create events
    and there create an event if u will use the alert class .
    3. Go to spro->crm->ic webclient->alerts
    Using wizard create an alert with some text .
    thanks,
    ashish.

  • Which field in sales order lines for customer reference no.

    Dear Experts,
    Which field should I use for customer reference no. in sales order LINES?
    These values can not be duplicated in each sales order just like NumatCard in sales orders.
    regards,
    Kim

    Hi Gun Tae Kim...
    Select The User defined fields
    Select The Marketing Document and ADD THE REQUIRED FIELD IN THE ROW AND CHECK
    CHECK WITH THE LINK FOR DETAILED INFORMATION
    http://www.pioneerb1.com/wp-content/uploads/2012/06/How-to-Create-User-Defined-Fields-and-Tables.pdf
    HOPE HELPFUL
    Regards
    Kennedy

  • Table never gets populated inside popup window on customer's site

    I'm working on application in ADF (ADF BC, ADF Faces) with JDeveloper 11.1.1.4 (application deployed on customer's site in Weblogic Server 10.3.6)
    and in one page I'm having a button behind which is a code to execute a query against a table whose data is going to be shown in popup window.
    Query limits the number of records to be shown to 100 (in query: rownum <= 100).
    In my development environment this works fine, but there is a problem on customer's site.
    For the query to execute it takes about 20 seconds at the site of customer. After that in backing bean there is a code to show popup.
    In the page - popup starts showing (it means that query ended) but never fetching data in the table (all the time there is a message - "Fetching data" like framework is retrieving it but nothing happens).
    I have tested a query in SQL*plus - it returns data.
    I couldn't find out what is the reason for such behaviour.
    Do you have any suggestions what to try?
    Thanks,
    Nebojsa

    I've found the reason for not populating table in popup.
    Although there is a limitation to the number of rows displayed in table in the form of additional where clause: "rownum <=n" this part of where clause is added to the VO in overridden method: executeQueryForCollection.
    Before executing this method framework is executing: getEstimatedRowCount which when executed for the first time through method getQueryHitCount executes a query against the database (select count(1) from... without my rowum <=n which is added to the query afterwards in above mentioned method executeQueryForCollection).
    My question is: if I don't want to add rownum <= n at design-time, where it would be the best place to add it to the query so to avoid above described situation and to have that rownum <= n in place for the count query as well?
    Nebojsa

  • How to setup the default warehouse in Sales Order Lines

    I have 3 organizations in one OU like A, B, C.
    and I created a new sales order type for A, the shipping from warehouse is also setup C, but when I create SO, in order lines, the default warehose is A, how to change to C?
    thanks
    Fangquan

    You can write a simple pl/sql logic to get the correct org id. I am assuming that you have two responsibilities in the same operating unit and one should default with A and one should default with C. Both use the same order type.
    When the resp that is responsible for org A, will have org A from order type.
    For resp that is responsible for org C, you can create a pl/sql logic where you read the current responsibility using fnd_profile.value('RESP_ID'). If the resp_id is responsible for C then return organization_id of C.
    You can find example code for order line entity for attribute tax code.
    Let me know if you need anymore info.
    Thanks
    Nagamohan

  • Apply hold on sales order lines programmatically

    Hi all,
      I am new to SCM and we have a requirement where Holds should be applied on Sales Order Lines based on some complex criteria that can not be met by the declarative "Apply Hold Criteria" option from Sales Orders window. So I want to know where can this custom code be hooked to put the Holds on the Lines when the criteria is met. Which of the following options are possible ?
    1. Custom Extension (or Hook) of Order Lines.
    2. Workflow Customisation
    If none of the above are possible, I guess then the only option will be scheduling a Custom Concurrent Program to apply holds.
    Please advise.
    Thanks,
    Sharath

    You should be able to add this as a workflow customization, but you'd need to call a procedure with PRAGMA AUTONOMOUS TRANSATION since commits in the workflow code  itself could cause problems.

  • Search files for specific lines of data

    Hi all, I have a problem that I hope someone can help me with.
    I need to find a way to search for specific lines of data on a file.
    Here's the setup.... say for example I have 10 files, each filled with log files containing data like the date they were created and also certain information they were monitoring.
    From a Java applet, a user types in information that they want (for example, only lines that were created between 2002/04/04 and 2002/05/05 and only ones tagged with "Caution"). I need a way to grab all of those line from each of the files, without having to open each file, read each line and check for each search request. Instead, I want to simply grab all of the data at once, or at the very least, grab all of the data from the first file, then grab all of the data from the second file etc, without having to search each individual line. (the reason I'm hoping for a command like this is because there will eventually be thousands of files that need to be searched, and opening each one, and then search each line one by one would take too long.
    Sort of like a grep command in Linux. Does Java have a similar command?
    Any information or samples would be greatly appreciated!

    I don't know how much control you have over the files that you have to search.
    Searching XML files would be a lot easier because XPATH queries will work exactly like SQL... The only problem being if your files are not XML at all.
    If you have control over the format of these files you are trying to search, then try XML... else you might have to write a batch utility that runs every N seconds and converts data in these files to XML format files conforming to a specific format and then your applet could query the XML files.
    There will be a small concurrency issue there, though; As there will be at least some time consumed by the thread.

  • Urgent: Unable to Edit Modifiers to Order Lines.

    Guys,
    Modifiers are defined correctly for order lines.
    "Override" checkbox exists for all item categories.
    Profile "OM: Discounting Privileges" to "Full"
    "Enfore Price List" is not checked for the order type.
    All price list,Transactions types and modifiers are active and has no end date.
    Ran
    Build Attribute Mapping Rules
    QP: Maintains the denormalized data in QP Qualifiers
    Any others setups I missing?
    Cheers!!!

    911669 wrote:
    Guys,
    Modifiers are defined correctly for order lines.
    "Override" checkbox exists for all item categories.
    Profile "OM: Discounting Privileges" to "Full"
    "Enfore Price List" is not checked for the order type.
    All price list,Transactions types and modifiers are active and has no end date.
    Ran
    Build Attribute Mapping Rules
    QP: Maintains the denormalized data in QP Qualifiers
    Any others setups I missing?
    Cheers!!!You mean..when you go for view adjustments at line level..you are not able to see modifers there??

  • How do I find the FTP info for my site?

    I created a site with Wix.com. Since then I've been exploring Dreamweaver, and the author of "Dreamweaver for Dummies" suggets that the best way to make changes to my existing site is to use Dreamweaver's FTP capabailities to download the existing pages. But Wix doesn't support FTP -- so they tell me, and simpleurl.com (where I regeistered my domain name) and which is somehow involved in the posting of my site) can't help either. Here's the Dreamweaver page that I need to fill in.
    How do I get this information?

    Yup, it's basically free, altho you can upgrade a little, as I've done. 
    And I took
    a careful look at the "source" for the pages I've created. That code will 
    show
    nothing of what I've written -- text-wise. It's all stored on the Wix 
    servers
    and accessed with various scripts. You can re-locate your Wix-created site
    after 60 days -- not before. So the suggestion I got from the "...Dummies"
    book doesn't apply here.
    Nonetheless, I'm going to continue to learn how to use Dreamweaver. Maybe
    after my 60 days are up I'll wanna move it. Don't know.
    MurraySummers http://forums.adobe.com/people/MurraySummers created the 
    discussion
    "Re: How do I find the FTP info for my site?"
    To view the discussion, visit: 
    http://forums.adobe.com/message/5993566#5993566

  • How to find out the standard info stucture for a customized IS in LIS

    Hi All
    I have to run the statistical set up for the customized info structure S763 for the application plant maintenance in LIS. But i dont know whether it was copied from a standard SAP info structure or it was enhanced from a standard info structure.
    I have even checked out all the standard IS for plant maintenance but it is not matching. The closest match is S063 but a few characteristics and a key figure is missing.
    Could anybody guide me how to find out the standard info structure?
    Any help would be of great help.
    Regards
    Saddy

    Hi Ganesh
    No..it didnt solve my problem. MC23 only displays the info structures.  I have a customized info structure S763 which was created long time back. Im not sure whether it was copied from a standard info structure or enhanced from a standard info structure.
    I have to give the source info structure name to run statistical set up. The closest one which matches with the S763 is S063 but it is missing few characteristics and key figure.
    does it means that the IS S063 was enhanced?? Am i right?? If it was enhanced how will i run the statistical setup for the same...
    I hope i have explained clearly.
    Do provide ur valuable input.
    Regards
    Saddy

Maybe you are looking for

  • System Copy XI 3.0 - do I need a new SLD?

    I am planning to refresh my Sandpit XI system from my Development environment on XI 3.0, WAS 6.40, NW04.  I have the system copy guide version 1.1 which states that I need to migrate to a new SLD.  At present, I have one SLD for my Sandpit / Dev /QA

  • Png files are over each other in the iphoto import window

    When i connect my iphone to the mac to import photos in iphoto, the png files are over each other in the iphoto import window. Jpegs are also showing up in the iphoto grid with new photos but each box contains 1 photo, which is normal. With png pictu

  • Desktop is cluttered

    My desktop is overflowing with things. How can I organize them (I noticed that I can't cut and paste to a folder like Windows)

  • Has something changed

    Hi, I've been having alot of trouble logging in over the last day or so. My username is MWBMWB (in capitals). It seems to convert my login name in lower case. I just cannot seem to log in and I know my password is correct I've been using it for years

  • Need Help and Advice Rebuilding!

    Hi All!New here, and in desperate need of advice on rebuilding my credit. My score has now dropped from 550 to 429 based on some medical bills (11) in collections from when i was uninsured, totaling about  $9,000. I briefly considered using a credit