Report - List of sales orders for a specific region in Ship-to Party

Hello,
I have a requirement to find all sales orders that were shipped to a specific US state within a specified date range.  For example, it would be a report to find all sales orders from 2009-2010 where the region of the ship-to party is CA.  The issue is that there is a generic "SHIPTO" partner set up where Customer Service manually enters the address and I cannot pull this information from customer master records.  Is there a standard report that I can find this information?  I cannot find in VA05, also tried looking on the delivery side in VL06o but I cannot find in there.

After doing additional digging on this, I developed a query in SQ01 using the following table join:
LIKP  -->  VBPA  -->  ADRC
   |____>  VBFA  -->  VBRK
The address code provided in table VBPA can be accessed via table ADRC.  Therefore, when doing the link in SQ01, link together VBPA-ADRNR to ADRC-ADDRNUMBER.  When doing this it brings in the address information, then you can further develop the query to filter by region code.
For my report, I used the following fields:
Delivery - LIKP-VBELN
Delivery Date - LIKP-LFDAT
Preceding Sales document - VBFA-VBELV
Preceding Item # - VBFA-POSNV (at my company every delivery document item starts with 10, later filter in the report to only show 10 in this field)
Follow-on document - VBFA-VBELN (I'm using the billing document as the follow-on to pull the net value of the invoice)
Follow-on document category - VBFA-VBTYP_N (set the document category to only look for M - Invoice; otherwise you'll pull in PGI document and WM documents if applicable)
Net Value - VBRK-NETWR
Ship-To Party - LIKP-KUNNR
Partner Function - VBPA-PARVW
Name 1 - ADRC-NAME1
Name 2 - ADRC-NAME2
Street - ADRC-STREET
City - ADRC-CITY1
Region - ADRC-REGION
Postal Code - ADRC-POST-CODE1

Similar Messages

  • To Get the list of sales orders for a Business partner in CRM.

    Hi all
    Is there any Function module or BAPI to get the Sales orders for a Business partner in CRM. I know there is a BAPI to get the list of sales orders for a customer in ECC, but I donu2019t know how to get the list of sales orders for a Business Partner in CRM.
    Can anybody tell me if there is an inbuilt function module or BAPI available?
    If not how can I pick the sales orders of a business partner in CRM? Between which tables should I apply a join and write SELECT statement to get list of sales orders for a business partner in CRM.

    Hi Jessica,
    Try CRM function module CRM_BUPA_READ_ORDER_OBJECTS.
    You'll get a table with the documents associated to that partner, where you can work on.
    Kind regards.

  • Display list of sales orders for one particular customer using BAPI in WD

    Friends,
    i want to display list of sales orders for one particular customer, the materials ordered, quantity ordered, goods issue date of that particular order and contact information about that particular customer, using Webdynpro.
    Please somebody send me related info,blogs,help links , to complete this task, this is very urgent.
    Please help
    Peter

    Find the WD tutorials here...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/web%20dynpro%20sample%20applications%20and%20tutorials.htm">Tutorials</a>

  • List of sales orders with a specific condition type.

    Hi Gurus,
    Could any one help me on how to get a list of sales orders for a date range for a particular sales area which contains a specified condition type.
    I tried VA05 but there is no additional selection for a condition type, VBAK/VBAP does not have condition type field.
    Points will be rewarded suitably.
    Vivek

    Pls find it in the table KONV.
    VBAK-KNUMV = KONV-KNUMV
    For this combination, you can get all the condition types or the desired condition types.

  • Fetch Sales order number and PO number from ship to party and sold to party

    HI,
    I need to get Sales order number and PO number
    from ship to party and sold to party.
    I have only ______sold to party and ship to party and req del date_______ in selection screen as mandatory
    Please let me know
    Sreekanth

    Hi,
    You can do this:-
    SELECT VBELN FROM LIKP
    INTO TABLE T_DELIVERIES
    WHERE KUNNR = SHIP TO PARTY
    AND     KUNAG = SOLD TO PARTY
    AND LFDAT      = DEL DATE.
    You will get a table containing the list of deliveries.
    Use VBFA to get the sales orders from deliveries.
    SELECT VBELV FROM VBFA
    INTO TABLE T_SALESORDERS
    WHERE VBTYP_N = 'J'
    AND     VBELN  = T_DELIVERIES-VBELN.
    T_SALESORDERS WILL give you list of sales orders.
    From Sales Orders you can get Purchase orders through EKKN Table.
    Using EKKN pass T_SALESORDERS-VBELN and get corresponding EBELN.
    Regards,
    SUbhashini

  • Report of all sales orders for a business unit

    I am analyzing revenue, and I would like to run a report that would list all sales orders and the value of those orders in a particular business unit.
    I require the value of each and every sales contract during a certain period. Can I run a report that lists all sales contracts opened during a particular period?

    Hello,
      from the standard SAP menu, under: "Logistics --> Sales and Distribution  --> Sales --> Information System  --> Orders" you can find some transactions reporting sales orders lists, such as VA05 or SDO1, which perhaps could fit your requirements. Otherwise you can create a query to merge the tables containing the information that you need. As of my knowledge there's not an organizational level called "Business unit" in SAP, so you should check if in the transaction mentioned above the field you use to identify the "Business unit" is available.
    Hope to be useful.
    Best regards,
    Andrea

  • Changing proposed delivery date in sales order for one specific sales org

    Hi All,
    I want to change proposed delivery date in sales order automatically for one specific sales org only without changing lead time in VOV8.
    For that can I use MV45AFZZ. But it is asking access key to make changes. Is there any other user exit for the same. And how does exactly change it.
    Thanks in advanced.
    Points will be awarded.
    Regards,

    EXIT_SAPFV45E_001 has nothing to do with this - it is meant to update the purchase order from a sales order. It might not even be triggered if the sales order has no link to a purchase order.
    USEREXIT_SAVE_DOCUMENT is not really good for this either, because the delivery date has to be changed before that. If memory serves, it also influences the schedule lines and probably the ATP check and such. I would strongly advise against it. One of the other routines in MV45AFZZ should do just fine, USEREXIT_MOVE_FIELD_TO_VBAK for example.

  • Wanted to restrict sales order for a particular region

    Hi all
    I want to restricted two sales order on the region parameter,while using same sales area.
    Ex:
    sales order A should be used in delhi region,where as sales order B should be used for outside delhi,though the sale area is same for both the order type.
    Hope my problemis clear to all.
    Thanks
    siddharth

    Dear Siddharth
    You can try with any of the following user eixts
    -  User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT
    -  User exits in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT_PREPARE
    -  User-Exits in program MV45AFZB - USEREXIT_CHECK_VBAK
    thanks
    G. Lakshmipathi

  • List of sales order without order bom fix

    dear sir
    we are using variant configuration with result oriented order bom fix in cu51/cu52
    we want the list of sales orders for which order bom is not created using cu51/cu52 fixing
    can any body tell me where this information is available?
    thanking you
    srinivas pai

    Dear Nau,
    VA05 for list of sales orders and put Document date in Sales Order Data
    COIO Process order information System
    Regards,
    Rakesh
    Pls award points if you find the solution

  • The Material description on sales order for a particular item is red text

    Hi friends,
    When I key-in a sales order for a specific material, the material description on the sales order appears in red text. What could be the reason?
    Sreedhar

    Hi Sreedhar
    First of all Welcome to SDN forum
    Coming to your query , As the material description maintained in MMR  is coming in red colour in sales order , First of all check in which colour you maintained the text in MMR . Secondly check the MAKT table .
    As you are telling for a specific material , check for other materials and their material texts & colour in sales order also
    Regards
    Srinath

  • Block material for sales order entry in specific plants

    Hi Experts,
    I wanted to know if there is a simple way to block material from being ordered in a specific plant other than maintaining exclusions. My situation is one sales org, two plants (A & B). Order entry should be blocked at plant A and not B.
    I tried using the material Cross-distribution-chain material status on Sales org 1, but this blocks across all plants.
    I also tried Plant-Specific Material Status on purchasing view, this blocks the material only if it is being procured (non stock). This does not work for materials that does not require procurement. Setting the material to deletion status in MM06 at the plant level will only give a warning.
    Any ideas or suggestions on how to handle this?
    Thanks,
    Nanda

    Lakshmipathi,
      Thank you. But I don't want to entirely cut off the plant from the sales org. I just don't want to be able to create sales order for a few materials in a specific plant. Ex. Material A should not be allowed on sales orders in plant X but should be allowed in plant Y, both are assigned to the same sales org 1000.
    I did some research and found there is no standard way to handle this in SAP, so I decided to go with a user exit MV45AFZZ. By checking against plant specific status (MARC-MMSTA) and if the value is 'XX' then issue an error message.
    Thanks,
    Nanda

  • Std report to dispaly Sales Order and Profit center data

    Hi,
    I want to display list of Sales Order and profit center in one report  for that Sales organisation
    Is there any T-code where i can view Sales Order and its Profit center.
    **Plz if anyone knows abt this reply soon.
    Thanks
    AKASH
    Edited by: AKASH TAMBI on May 20, 2008 1:28 PM

    Dear Akash
    There is no standard report to see both the sale order reference and profit center.  However, if you go to SE16 and use table VBAP, you can see the required details
    thanks
    G. Lakshmipathi

  • List of sales order with only open qty

    Hello sap gurus,I am working in a support project for a leading cement manufacturer,I am facing a issue related to list of sales order only with remaining open quantities.In va05 transaction it gives the list of open sales orders,but if none of the line items is delivered,but according to the clients reqiurement they want the list of open sales order ,means say if a sales order has 5 line items and 3 are delivered but 2 are remaining, the list should give the list in such a way that the sales order with only 2 open items should also appear.
    please guide me if there is any t-code for the same other than va05,else any developement work needs to be done.
    Regards,
    Anshuman

    Dear Anshuman,
    T. Code: VL10C
    This is the Best-suited Report, for your requirement.
    Best Regards,
    Amit

  • Changing sales order for a Credit blocked customer

    Hi Gurus
    One of the requirement of my client is that they create sales order for a customer and deliver the goods. During sales order creation billing block is automatically applied. This block is removed by a batch job after the goods are delivered. Sometime credit department block the customer using FD32 (KNKK-CRBLB). Now when the batch job is run to remove the billing block the system will not allow it for that order as the system calls VA02 during that batch job run. When you process a sales order using VA02 for a customer which is blocked (KNKK-CRBLB) then system will through error message V1 (154) i.e Order receipt/delivery not possible, credit customer blocked.
    So the batch job will not be able to remove the billing block from the order. NOw the requiremetn is that how can I achieve this so that the billing block are removed by that batch job as the customers has already been delivered the goods (Any user exit?).
    Thanks
    KTK

    Dear KTK,
    Please check this sample program from other thread to find BADI and enhancement for a given transaction code. You just need to create a custom program in your system by cut and paste below codes.
    REPORT ZTEST.
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.
    Alternatively, you can do the following:
    1. For what ever transaction u want the enhancement .. just check for the System-->status (menu) and find out the PROGRAM name....
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for "Call Customer-function " ... and u'll get some search results .. If u get results then u have enhancement in that tcode .....
    4. Then it actually calls a Function module .... copy the Function module name .... go to SE80 (object navigator) click on "Repository Information system" then Customer Enhancements .... Give the Function module name in the "Components" field and click Execute ....
    ull get a list of Enhancements related to that Componene....
    5. Choose which ever enhancement will suit ur business need ..
    6. Go to CMOD... create a project .... assign ur enhancement ... and then code ur logic.... activate ur enhancement in CMOD ....... Ur Buisness need will be solved...
    For a user exit......
    Finding whether there is any User Exit or not for tcode VA42
    1. For what ever transaction u want the user exit .. just check for the System-->status (menu) and find out the PROGRAM name.... ( The program name would be for our scenario "SAPMV45A" )
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for the word "USEREXIT" .... u ll find all the user exits in the search result .. and find ur's then ...
    Reward points if this helpful.
    Regards,
    Naveen.

  • How to devolped an Interactive ALV Report to display sales orders

    hi,
             how to devolped an Interactive ALV Report to display sales orders pertaining to the selected Customers and item details in the secondary list.For this report what are the tables and fields wehave to used give with example.
    thank you
    radhakrishna

    Hi,
    look via se38 for BCALV* and SALV*.
    Try ABAPDOCU.
    Regards, Dieter

Maybe you are looking for

  • Acrobat has encountered an error while playing this media clip

    Hi, I have downloaded a pdf file from the web which has embedded audio in it. When I try to play the audio, the following message comes up "Acrobat has encountered an error while playing this media clip. Adobe's Windows build-in player cannot play th

  • Case Insensitive search and "IN" Clause - Open SQL

    Hi, I have some doubts regarding Open SQL: Is there any support for Case Insensitive Search in Open SQL, is it availabe by default? Is there any restriction on number of elements in "IN" Clause, in Open SQL, is there any default number? I have checke

  • Can't burn .ISO image with k3b/brasero on DVD-RW disc.

    I don't understand what's going wrong here, so I hope someone can help me. I have created an .ISO image (of a video) using DVDstyler. (1) DVDstyler will burn it to a DVD-RW without any problems. (2) I can burn it from the command line (growisofs etc.

  • Question about logging

    Hi guys! How the log() method from ExternalContext works and how can i use log4j to log messages in my application??

  • Java weblogic.Admin Utility

    Hi All, Im using java weblogic.Admin utility to monitor the Weblogic Resources,in local it is working fine .....but when i move the code to production environment im getting the error message "NO Mbeans Found".....please help me to resolve this issue