How to find the history of the sales order

hi
how to find the history of the sales order

the history can be of two types:
1) Changes to the Document:
    The changes made to the sales order which can be viewed using:
    Menu-> environment -> changes.
   the changes to the documents are shown from Change documents with selection on
   tables CDHDR with objectclas = 'VERKBELEG' and objectid = <document number>.
2) Preceding or Follow-on Documents:
    The document flow for the sales order which can be viewed using:
    Menu-> environment ->Display Document flow.
    this is obtained from the table VBFA.
   Hope this solves ur Query.
   Please award points if u feel the answer was useful.
   thanks,
   Nivin Joseph
Message was edited by:
        Nivin Joseph Varkey

Similar Messages

  • How to find the Sales Order Overall Status (VBUK-GBSTK) modified Date?

    Hi Experts,
    A Sales Order could get automatically closed at the point of Packing or Invoicing, At this point the field GBSTK in table VBUK turns to status 'C' means Closed. This could also happen when Sales Order Line Items Rejection Reason is filled.
    I want to find the Date when GBSTK got modified in this way I would know the exact Date of the Sales Order Close. At the moment this is not shown in Sales Order (VA02, VA03) or in the table VBUK. I have searched everywhere to locate the Date. I need you help.
    Thanks,
    Sri

    Although VBUK is mentioned (Tx SCDO, Tab TCDOB) for the ChangeLog Object VERKBELEG, you won't find anything in CDHDR due to the fact that Data element GBSTA's Log-Frag (DD04D-LOGFLAG)  is not switched on.
    For Workaround you might try Audit Trail
    Audit Trail (electronic records) / Tx AUT10, AUT01, XX-PROJ-ELR, OSS 564743,517613,564645
    OSS 1058984 - FAQ: Audit Trail (Transaktionen AUT01-AUT10)
    http://help.sap.com/erp2005_ehp_03/helpdata/DE/fc/89683c1b5fb712e10000000a114084/frameset.htm
    Cheers
    carsten

  • How to create the sales order using BAPI's ....?

    Hi Guru's,
    could you please provide how to create the sales order using BAPI's .....i need step by step process and please provide the details from scratch....basically  i don't have basic knowledge on this....please provide required inputs ....:)
    thanks in advance
    Srinivas......

    Hi Guru's thanks for your inouts and your valuble time...
    please find the program logic below...
    *& Report  ZAREPAS30
    REPORT  zarepas30.
    DATA : gs_vbeln                   TYPE  vbak-vbeln,
           gs_order_header_in         TYPE  bapisdhd1,
           gs_order_header_inx        TYPE  bapisdhd1x,
           gt_order_items_in          TYPE  STANDARD TABLE OF bapisditm,
           gwa_itab1                  TYPE  bapisditm,
           gt_order_items_inx         TYPE  STANDARD TABLE OF bapisditmx,
           gwa_itab2                  TYPE  bapisditmx,
           gt_order_partners          TYPE  STANDARD TABLE OF bapiparnr,
           gwa_itab3                  TYPE  bapiparnr,
           gt_return                  TYPE  STANDARD TABLE OF bapiret2,
           gwa_itab4                  TYPE  bapiret2.
    Sales document type
      PARAMETERS: p_auart TYPE auart OBLIGATORY.
    Sales organization
      PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
    Distribution channel
      PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
    Division.
      PARAMETERS: p_spart TYPE spart OBLIGATORY.
    Requested Delivery Date
      PARAMETERS: p_edatu  TYPE edatu OBLIGATORY.
    Sold-to
      PARAMETERS: p_sold  TYPE kunnr OBLIGATORY.
    Ship-to
      PARAMETERS: p_ship  TYPE kunnr OBLIGATORY.
    Material
      PARAMETERS: p_matnr TYPE matnr   OBLIGATORY.
    Quantity.
      PARAMETERS: p_menge TYPE kwmeng  OBLIGATORY.
    Plant
      PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
    Start-of-selection.
      START-OF-SELECTION.
    Header data
    Sales document type
      gs_order_header_in-doc_type = p_auart.
      gs_order_header_inx-doc_type = 'X'.
    Sales organization
      gs_order_header_in-sales_org = p_vkorg.
      gs_order_header_inx-sales_org = 'X'.
    Distribution channel
      gs_order_header_in-distr_chan  = p_vtweg.
      gs_order_header_inx-distr_chan = 'X'.
    Division
      gs_order_header_in-division = p_spart.
      gs_order_header_inx-division = 'X'.
    Reguested Delivery Date
      gs_order_header_in-req_date_h = p_edatu.
      gs_order_header_inx-req_date_h = 'X'.
      gs_order_header_inx-updateflag = 'I'.
    Partner data
    Sold to
      gwa_itab3-partn_role = 'AG'.
      gwa_itab3-partn_numb = p_sold.
      APPEND gwa_itab3 TO  gt_order_partners .
    ship to
      gwa_itab3-partn_role = 'WE'.
      gwa_itab3-partn_numb = p_ship.
      APPEND gwa_itab3 TO  gt_order_partners .
    ITEM DATA
      gwa_itab2-updateflag = 'I'.
    Line item number.
      gwa_itab1-itm_number = '000010'.
      gwa_itab2-itm_number = 'X'.
    Material
      gwa_itab1-material = p_matnr.
      gwa_itab2-material = 'X'.
    Plant
      gwa_itab1-plant    = p_plant.
      gwa_itab2-plant   = 'X'.
    Quantity
      gwa_itab1-target_qty = p_menge.
      gwa_itab2-target_qty = 'X'.
      APPEND gwa_itab1 TO gt_order_items_in.
      APPEND gwa_itab2 TO gt_order_items_inx.
    Line item number.
      gwa_itab1-itm_number = '000020'.
      gwa_itab2-itm_number = 'X'.
    Material
      gwa_itab1-material = p_matnr.
      gwa_itab2-material = 'X'.
    Plant
      gwa_itab1-plant    = p_plant.
      gwa_itab2-plant   = 'X'.
    Quantity
      gwa_itab1-target_qty = p_menge.
      gwa_itab2-target_qty = 'X'.
      APPEND gwa_itab1 TO gt_order_items_in.
      APPEND gwa_itab2 TO gt_order_items_inx.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
        order_header_in               = gs_order_header_in
        ORDER_HEADER_INX              = gs_order_header_inx
      IMPORTING
        SALESDOCUMENT                 = gs_vbeln
      tables
        RETURN                        = gt_return
        ORDER_ITEMS_IN                = gt_order_items_in
        ORDER_ITEMS_INX               = gt_order_items_inx
        order_partners                = gt_order_partners.
    Check the return table.
      LOOP AT gt_return into gwa_itab4 WHERE type = 'E' OR type = 'A'.
        EXIT.
      ENDLOOP.
      IF sy-subrc = 0.
        WRITE: / 'Error occured while creating sales order '.
      ELSE.
    Commit the work.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        WRITE: / 'Document ', gs_vbeln, ' created'.
      ENDIF.

  • How to pull the Sale order number(sales document) to Accounting document

    Hi Gurus,
    How to pull the sale order number to the accounting document.
    Is any configuration needed to this.
    When i run the FBL5N Repoprt ,Sale order number (Sales document) is not getting updated to accounting document.It is diplaying as blank field.
    Thanks you.

    Hi Shivaji,
    In order to display the Sales document in the customer line item report, you need to add it as a special field thorugh customizing settings.
    Path - SPRO - FA-GL Accounting - GL Accounts - Line Items - Define special fields for finding and sorting data and in that select the table BSEG-and field VBEL2 (Sales document) and save/
    This will work. hope this helsp
    regards,
    radhika

  • How to check the sales orders that have been created with an Rebate Agreeme

    Dear Experts,
    Do you know how to check the sales orders that have been created with an Rebate Agreements?
    Thanks!!

    Hi Hoo Laa,
    I have one way but little lengthy.
    Rebate condition always appears in the billing document.
    So 1st you extract the sales order list from Table VBAK.
    once you have the sales order list then you can put your order list in Table VBFA --> Extract the billing document list.
    Now put that list in the table VBRK.
    In VBRK you will get the "Doc. condition" --> put that doc condition in table KONV with your rebate condition type.
    It will show the result.
    Later, through VLOOKUP you can identify in which order you have given rebate to your customer.
    Already said, Little lengthy
    Regards,
    MT

  • How to settle the sales orders

    Hi experts,
    Can anyone tell me how to settle the sales orders? What is the transaction code?
    regards
    vk

    Hi VK ,
                 Being production consultant I think production order which is created with reference to sale order will be settled in ko88 or co88 after calulating variance ( and settling in variance a/c ) , Work in progress .
    Prod order should have TECO indicator before you settle .
    Neal

  • How to cancel the sales order - header and line status are in Entered Stage

    Dears,
    I have some sales order to be cancelled in which the header and line status are in *"Entered"*. I am not able to cancel these sales order.
    Also note that these orders are for maintenance service.Once i book these orders the lines will change to closed status.
    So it is not possible to book and cancel the lines.
    Kindly me to resolve this.

    926530 wrote:
    Boss,
    If i do Action-->cancel on header, it just makes the qty to zero.But the header and line status still showing as entered.It will not cancel the order.
    The problem for me is that these lines are coming in my monthly reports. This is what your question says...be more specific as what is your issue..which in turn is your problem
    How to cancel the sales order - header and line status are in Entered Stage
    Coming to your Action-->cancel...as far as i know ...the header status will change to canceled..
    unless until you have some processing constraints in place...which is stopping you...
    HTH
    Mahendra

  • How to find the Purchase Orders from Sales Order number

    Hi ...
    Is there a way to write a query to find the Purchase orders
    from the Sales Order number ....
    I have notice the table POR9 (Purchase Order - base Document)
    but it seems to be empty.
    Could you please help me to figure this out,
    Thank you very much
    Kind Regards
    Sanjaya

    hi,
                 u did mistake in selecting the table
    SELECT T0.DocNum FROM ORDR T0                 for  sales order
    SELECT T0.DocNum FROM OPOR T0                 for purchase order
    how to find the table in SAP B1.
    go to above menu view => system information. tick it(or select it)
    then below status bar u can see the table and field name.
    open the required form and just keep the  mouse cursor  on any field.
    you can see the table and field name below.
    hope now u can able to track the table name.
    regards
    sandip

  • How to find the sales organization for the customer (VKORG)

    Hi all,
           I have the customer number(KUNNR) and company code(BUKRS),
           Now i want the sales organization for that customer(VKORG).
           Please give me logic to find the sales org for that customer.
    Thanks,
    Ravi

    REPORT ZTEST3.
    parameters:
    p_kunnr like knb1-kunnr,
    p_bukrs like knb1-bukrs.
    data:
    w_kunnr like knb1-kunnr,
    w_vkorg like knvv-vkorg.
    select kunnr from knb1
    into w_kunnr
    where
    kunnr eq p_kunnr and
    bukrs eq p_bukrs.
    select vkorg into w_vkorg
    from knvv
    where kunnr eq w_kunnr.
    write:/ w_kunnr,p_bukrs,w_vkorg.
    endselect.
    endselect.

  • How-to extend the Sales Order with the Project ID?

    Hello ByD Community,
    My problem is the following:
    I want to add an extension field to the Sales Order Header, which would be the Project ID assigned to this Sales Order.
    My use case only involve one Project ID per Sales Order, and the task will be the same from a Line Item to another. So I can only use the GetFirst() to retrieve only the first Line Item.
    Past week, I asked a similar question for the Purchase Orders and I succeeded to do it after a hint from Dan!
    As for the Purchase Order, I thought the Project Assignment was built through the SalesOrder.Item.ItemAccountingCodingBlockDistribution.AccountingCodingBlockAssignment.ProjectReference, but it seems that it is different.
    So as soon as I try to check if this Association IsSet() it just returns me that it is not!
    I succeeded to bluntly push the TaskUUID in my Extension field for testing purpose, without any check and verification, but not the Project ID neither with good validations.
    I also tried to see with the SalesItem Association instead of the Item Node, but it is the same. Any time I try a different check it returns me the N/A for my field, which is my last condition if the association is not set! What is driving me crazy is that you have the Project ID is shown on the top of the Sales Order, but I just cannot find how to retrieve it in the Studio!!!
    Here is my sample code in my After-Modify event (I also tried with a On-Save) where the ProjectIDSalesOrder is my extension field in the Cloud Solution:
    import ABSL;
    if (this.Item.GetFirst().ItemAccountingCodingBlockDistribution.IsSet())
      if (this.SalesItem.GetFirst().ItemProduct.ProductCategoryHierarchyProductCategoryIDKey.ProductCategoryInternalID.Matches("130"))
           this.ProjectIDSalesOrder = this.SalesItem.GetFirst().ItemServiceTerms.ProjectTaskUUID.content.ToString();
         /*what I need actually is : this.ProjectIDSalesOrder =      this.Item.ItemAccountingCodingBlockDistribution.AccountingCodingBlockAssignment.GetFirst().ProjectReference.ProjectID.content;*/
      else {this.ProjectIDSalesOrder = "No project assigned";}
    else {this.ProjectIDSalesOrder = "N/A";}
    If anybody could help me on this, it would be greatly appreciated.
    Thank you community!
    Best regards.
    Jacques-Antoine

    Hello all,
    To follow up on this issue, I found that a QueryByElements is available in the SalesOrderOverview node. And we can Query the SalesOrder by ProjectID.
    Fine! However, we cannot retrieve the ProjectID. It is never proposed as a result in the Query. We can query againt a ProjectID but not retrieve it.
    As the ItemAccountingblockDistribution association seems to never be set, we can't retrieve the ProjectID from it neither.
    I will post an incident to see if the ProjectID can be released as an entity in the SalesOrderOverview. QueryByElements results, so as to be able to use it.
    Thanks for your attention.
    Jacques-Antoine

  • How to block the sales order for not creating requirement

    Dear All,
    My client want that whenever a sales order is raise, that should not go create requirement for production unless until account department check whether the prices etc are correctly put or not
    how can i do this
    thanks

    I suggest you can try to use the functionality of Status Profile.
    Create one Status Profile  with 2 line items-
    1: First line : Pricing Approval or PR and check what all you want to block if this status is assigned to the order type.
    2: Second line : Released and check what all you want to be released once the Approval is done.
    So by default the status profile - Pricing Approval will be assigned to the Sales Order during order creation. Then after your accounts department check the pricing and approves , they can change the status to Released and the order can be processed further.
    Regards
    Sai

  • Find the sales order number with  delivery document

    hi:
    i want to quickly look for the delivery document  related the sales order ,now i find it via se16 in talble vbfa.
    please help me provied with means.
    best regards.

    hello, friend.
    you can go to your delivery document and click on the 'document flow' icon.  you will see the sales order number there.
    regards.

  • How to send the Sales Order to another user id within SAP

    Gurus,
    I have created a sale order through VA01.  Sales order number is generated.  Now that sales order I want to send it to another user.
    Is is possible, if how.
    I know we can send the reports like FBL3N, by selecting list and send there we can give the user id to whom we have to send.  Like that i want to send the sales order, how.

    Hi,
    For the standard report you can use the sending function from the menu, but sales order is a document, there is not the sending function in the maintenance view with t-code VA01 or VA02. Because the document should be printed out, you can define a condition type and create a condition record in background, let it send out a copy of sales order automatically when document saving.
    Hope it's helpful to you!
    Regards
    Tao

  • How to check the sales order that has been PGI from a range of dates.

    Hi SAP Gurus,
    I have a query on how can I check the sales order that has been PGI from a range of dates in SAP?
    Thanks,
    Madelyn

    Dear Madelyn
    Go to VA05, give the date range and execute.  List of sale orders will be generated.  There you can see a tab "Status"  in which, the status would be like
    -  Not delivered
    -  Partially delivered
    So based on this, you can decide whether the order is still open or completed.
    thanks
    G. Lakshmipathi

  • How to know the sales order closed using right click menu -Close ???

    I have an sales order with ten item, I have copied the same to delivery and before adding the Delivery I have deleted some items. After adding the Delivery, I manually closed the sales order by using the "right click menu close".
    The Open Quantity of those lines are already closed while i Close it manually.
    Now i need  a report regarding the sales orders which i  have closed manually. Any Options??

    Check the below result
    DocNum     DocDate     CardCode     CardName     Row#     ItemCode     Dscription     Price     Quantity     LineTotal
    2     2012-02-04 00:00:00.000     ED-C-102     AI HUDHA BOOK STALL     2     1010          150.000000     10.000000     1500.000000
    3     2012-02-04 00:00:00.000     ED-C-103     AL AMEEN ENGLISH SCHOOL-MANKADA     2     1011     ZINC ROD HIGH GRADE PURE ZINC 140 X 9 MM     59.790000     10.000000     597.900000
    this is the result i get while i execute your query
    but look at the db result
    DocEntry     LineNum     TargetType     TrgetEntry     LineStatus     ItemCode     Quantity     OpenQty
    1     0     15     2     C     1010     10.000000     0.000000
    2     0     15     3     C     1010     10.000000     0.000000
    2     1     -1     NULL     C     1010     10.000000     0.000000
    3     0     15     4     C     1010     1.000000     0.000000
    3     1     -1     NULL     C     1011     10.000000     0.000000
    3     2     15     4     C     1012     15.000000     0.000000
    3     3     15     4     C     1013     20.000000     0.000000
    4     0     15     5     O     1010     10.000000     5.000000
    See the last line data...it have open quantity of 5 and it also have the target type 15, If I close the sales order with docentry 4 manually using right click, the open quantity will be Zero..
    I need that last line result also as my output..
    Hope you understand my problem.
    Thank You

  • How to display the sales order in the line item in FB03

    Hi Experts,
    I have a requirement to display the sales order in the line item of t-code FBO3, could anybody suggest an userexit or BADI for the same.
    Thanks in advance.
    RP.

    >
    S. Rajesh Paul wrote:
    > Hi Experts,
    >
    > I have a requirement to display the sales order in the line item of t-code FBO3, could anybody suggest an userexit or BADI for the same.
    >
    > Thanks in advance.
    >
    > RP.
    I assume, you want to display sales order number in accounting document..... .
    This is not something you can do it through the BADI..
    You will have to change the G/L account field group (if it is already not there). you can then assign sales order number when posting to FI.  In the field group, better choose sales order number and item number as optional fields.
    If you can see the sales order field (may be empty) - you have to enter the sales order number when you post it.
    Good luck

Maybe you are looking for

  • How to install iTunes 11.3

    When I try to install it, it says that I should download and install the setup of iTunes for the version 64 bits. I have already installed "iTunes64Setup".

  • Restrictions on the size of blog entry

    When I publish a blog entry 200 words about it is appeared properly. But if I write a great article, I see only a blank space on the blog page. But on the front page of the blog in summary form, everything is fine. Does anyone know what is the proble

  • Verify_function doesn't display the error messge in oracle forms

    We are planning to use the verify_function to validate the password when user password is expires. The users are using Forms 6i on web. When I set the profile to user verify_fucntion and then try to change the password with the default password chang

  • IPod appearing in Device Manager as unknown device

    Hi, I'm currently using an iPod Nano 4th Gen. and it is appearing in Device Manager as an unknown device. I found this out after the error message "USB device not recognised" or something, and followed instructions. I'm currently clueless on what to

  • C:\Windows\system32\bitsperf.dll" failed

    Log Name:      Application Source:        Microsoft-Windows-Perflib Date:          10/23/2013 4:36:55 AM Event ID:      1008 Task Category: None Level:         Error Keywords:      Classic User:          N/A Computer:      xxxxxxxxxxx Description: Th