I Need Sales Order Status Reports using ALV

Hi I Need Sales Order Status Reports using ALV.

HI!
For alv use REUSE_ALV_GRID_DSPLAY function module.
For the given report fetch data from the tables:
VBAK - sales order header
VBAP - sales order details
VBUK - sales order header status
VBUP - sales order items status
Regards
Tamá

Similar Messages

  • Need code for sales order create report using bapi's

    need code for sales order create report using bapi's

    Hi,
    Go through below link
    http://www.saptechies.com/bapi_salesorder_createfromdat2/
    <b>Reward points if it helps,</b>
    Satish

  • Sales Order Status Report

    Hi,
    Can you please guide me for Sales Order status report extractors?whether some standard extractors would be used or customized or standard is available which can further be enhanced.
    Scenario is- I have to populate report columns like
    0-25000     25001-50000     50001-100000     100001-200000     200001-500000     500000>
    And analysis has to be shown in the report rows : Sales District. In Columns only number of sales order in each district would be entered as a number. Example- of for district ZMJT there are 3 order are in pending stage having quantities 35000 then entry 3 will come in first column and so on. Following are other columns for drill down purpose.
    Input Fields:
    Date Range
    Company Code
    Currency Type
    Sales District
    Sales Group
    Analytical Fields-
    Sales Org.
    Distribution Ch.
    Division
    Sales Order No.
    Sales Order Dt.
    Sales District
    Tube Dia
    Tube Length
    Laminate Structure
    Application Category
    Customer
    Customer Group
    Sales office
    Sales region
    Sales Order Qty
    Sales order Value
    Regards,
    Ritika

    Hi,
      We have standard extractor 2LIS_11_VASTI (Sales Document Item Status) for getting the status.
    Regards,
    Vamsi Krishna

  • Sale Order Status Report

    Dear Expert.
    I want Sales Order Status report as below mentioned format required quarry base report from Date to To Date.
    Location-OrderSeries-OrderNo-CardCode-CardName-ItemCode-Item Descripotion-Inv.UOM-Order Qty-Allocated Qty-DeliverQty-Peniding Qty adn Pending Order Value.

    Hi,
    You can check this :
    select t3.location as 'Location',t0.series as 'Order Series',
    t0.docnum as 'Order No.',t0.cardcode as 'Business Partner Code',
    t0.cardname as 'Business Partner Name', t1.itemcode as 'Item',
    t1.dscription as 'Item Name', t2.invntryUom as 'Inventory UoM',t1.quantity as 'Order Qty',
    t1.QtyToship as 'Allocated Qty- Qty to Ship', t1.delivrdQty as 'Delivered Qty',
    t1.OrderedQty as 'Ordered Qty', t1.openCreQty as 'Pending Qty',
    t1.Opensum as 'Pending Order Row Value'
    from ORDR t0 inner join RDR1 t1 on t1.docentry = t0.docentry
    inner join OITM t2 on t2.itemcode = t1.itemcode
    inner join OLCT t3 on t3.code = t1.loccode
    where t0.docdate >= '2011.01.01' and t0.docdate <= '2011.12.31'
    Hope it helps.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Sales Order History Report using CHANGEDOCUMENT_READ_POSITIONS

    I have used  FM CHANGEDOCUMENT_READ_POSITIONS
    to retrieve all the changes made on Sales Order item.
    Can anyone tell me if i wanna retrieve deleted item and with the value. How can be done?

    How to activate Achieving in SD module???
    Yeah, i can get the item...but without the item net price value (old value + new value )
    If i deleted an SO item with 10.00 net price...then how to get back the 10.00 net price...?
    any idea??

  • Sales order status close when item partial invoice.

    Can anyone tell me how to solve this problem,
    i have a sales order (ZTP - 3rd party), when i create this sales order the status becoming "Being Processed".
    then im doing partial invoice ... when i check the header on table VBUK the status becoming slow.
    im working on my sales order status report for 3rd party order.

    Hi Nizam,
    1. Check Your Customer Master - Sales Area Data u2013 Shipping Tab - Partial Delivery per item - please remove Option D from Partiral Delivery per item.
    2. Check Incompletion Rule and Completion Rule on Sales Document type the backgroud table of Sales
    order and item category
    Inshallah it will help you alot, if not please you can ask me
    Regards,
    MH

  • To create Sales Order Status

    hi
      i want to create sales order status report.
      i want to know the all tables and fileds required  for this report.
    pls help me asap.
    thank  u

    **& Report ZBAPI_SALESORDER_GETSTATUS **
    Read and Display the Sales Order Items and Status of the Order
    REPORT zbapi_salesorder_getstatus NO STANDARD PAGE HEADING LINE-SIZE 200 LINE-COUNT 33(3).
    TABLES: vbap. "Sales Document Item Data.
    DATA: wa_bapireturn TYPE bapireturn,
    wa_bapisdstat TYPE bapisdstat,
    it_bapisdstat LIKE STANDARD TABLE OF wa_bapisdstat.
    TYPES: BEGIN OF ty_mat_name,
    matnr TYPE makt-matnr,
    maktx TYPE makt-maktx,
    END OF ty_mat_name.
    DATA: wa_mat_name TYPE ty_mat_name,
    it_mat_name LIKE TABLE OF wa_mat_name WITH KEY matnr .
    PARAMETERS: p_vbeln LIKE vbap-vbeln DEFAULT 5573.
    START-OF-SELECTION.
    SELECT matnr maktx FROM makt INTO TABLE it_mat_name.
    CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'
    EXPORTING
    salesdocument = p_vbeln
    IMPORTING
    return = wa_bapireturn
    TABLES
    statusinfo = it_bapisdstat.
    IF wa_bapireturn IS INITIAL. " Successful Execution.
    WRITE: / 'Document No: ' COLOR 1, 20 'PO Number : ', 40 'Status' , 50 'Delv.Stat',60 'Item No', 80 'Material', 90 'Material Description', 130 'Net Price' COLOR 2.
    ULINE.
    LOOP AT it_bapisdstat INTO wa_bapisdstat.
    WRITE: / wa_bapisdstat-doc_number. " Sales Document Number.
    READ TABLE it_mat_name INTO wa_mat_name WITH KEY matnr = wa_bapisdstat-material.
    WRITE: /20 wa_bapisdstat-purch_no, " Customer Purchase Order Number
    40 wa_bapisdstat-prc_stat_h, " Processing Status
    50 wa_bapisdstat-dlv_stat_h, " Delivery Status
    60 wa_bapisdstat-itm_number, " Item Number
    80 wa_bapisdstat-material, " Material
    90 wa_mat_name-maktx, " Material Description
    130(10) wa_bapisdstat-net_price. " Net Price
    CLEAR wa_bapisdstat.
    ENDLOOP.
    REFRESH it_bapisdstat[].
    ELSE.
    WRITE: wa_bapireturn-message.
    ENDIF.

  • How to update Sales Order status using  BAPI_SALESORDER_CHANGE

    Hi,
    I want to update Sales Order status using BAPI_SALESORDER_CHANGE, this BAPI is called from middle ware, but there is no parameter to pass the status value to this function, please help me how to update sales order status using BAPI only.
    Thanks
    RK

    Hi,
    Can u give me details of what status u would like to update in sales order.
    If we are able to update the status from VA02, Then BAPI will assist for the same.
    Regards.

  • Sales Order status still "Being processed" after invoice (3rd party sales)

    Dear SD gurus,
    Here's what is done so far:
    1. Create a sales order with one line (TAS item cat).
    2. Trigger PR to be created. Approved the PR.
    3. Create Purchase Order. Approve the PO.
    4. Perform MIRO.
    5. Create sales invoice based on sales order (billing based on supplier invoice).
    6. Invoice released to accounting
    Now, when I checked the sales order status, it's still showing "Being processed". However, invoice have already been created and released. I'm just wondering what else have I done wrongly. I believe the status should show "Completed" as well otherwise this order will keep showing up as outstanding in my sales order listing report.
    Anyone got any ideas?

    SAM
    I had a looked at both the SAP Notes provided. Doesn't really apply in my situation. The Sales order was for 10 qty. My PR for 10 qty and I have also done a MIRO for 10 qty. even my sales invoice was for 10 qty.
    I do not want to configure it to follow the PO quantity because I need a control where only vendor has delivered the products to the customer only then I should invoice the customer accordingly. If I allow the invoice to be created based on the PO quantity then the control factor will be lost.
    I have yet to try the program that you recommended... will try that shortly.
    And yes ... since I'm using the standard sap TAS item cat ... the "relevance for delivery" is already turned off and the billing is "F"

  • Interactive report using alv.

    Hello all,
    I want to create an interactive report using alv grid display.I tried it using the normal method,as in using hide n sy-lsind but could not get the display.Canu please help me out with the problem.
    Thanks and Regards.
    Seema.

    hai Seema,
    for interactivereporting u can use get cursor fieldstatement.
    GET CURSOR FIELD <f> [VALUE <val>] .
    or try this one using the user command function.
    EXAMPLE:
    DEFINE m_fieldcat.
      add 1 to ls_fieldcat-col_pos.
      ls_fieldcat-fieldname   = &1.
      ls_fieldcat-ref_tabname = &2.
      append ls_fieldcat to lt_fieldcat.
    END-OF-DEFINITION.
    TABLES : vbak.                         " Sales Document: Header Data
    TYPE-POOLS: slis.                      " ALV Global types
    SELECT-OPTIONS :
      s_vkorg FOR vbak-vkorg,              " Sales organization
      s_kunnr FOR vbak-kunnr,              " Sold-to party
      s_vbeln FOR vbak-vbeln.              " Sales document
    SELECTION-SCREEN :
      SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.    "#EC NEEDED
    PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    DATA:
    Data displayed in the first list
      BEGIN OF gt_vbak OCCURS 0,
        vkorg LIKE vbak-vkorg,             " Sales organization
        kunnr LIKE vbak-kunnr,             " Sold-to party
        vbeln LIKE vbak-vbeln,             " Sales document
        netwr LIKE vbak-netwr,             " Net Value of the Sales Order
      END OF gt_vbak,
    Data displayed in the second list
      BEGIN OF gt_vbap OCCURS 0,
        vbeln  LIKE vbap-vbeln,            " Sales document
        posnr  LIKE vbap-posnr,            " Sales document item
        matnr  LIKE vbap-matnr,            " Material number
        arktx  LIKE vbap-arktx,            " Short text for sales order item
        kwmeng LIKE vbap-kwmeng,           " Order quantity
        netwr  LIKE vbap-netwr,            " Net value of the order item
      END OF gt_vbap.
    INITIALIZATION.
      v_1 = 'Maximum of records to read'.
    START-OF-SELECTION.
      PERFORM f_read_data_vbak.
      PERFORM f_display_data_vbak.
         Form  f_read_data_vbak
    FORM f_read_data_vbak.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
               FROM vbak
                 UP TO p_max ROWS
              WHERE kunnr IN s_kunnr
                AND vbeln IN s_vbeln
                AND vkorg IN s_vkorg.
    ENDFORM.                               " F_READ_DATA_VBAK
         Form  f_display_data_vbak
    FORM f_display_data_vbak.
      DATA:
        ls_fieldcat TYPE slis_fieldcat_alv,
        lt_fieldcat TYPE slis_t_fieldcat_alv.
    Build the field catalog
      m_fieldcat 'VKORG' 'VBAK'.
      m_fieldcat 'KUNNR' 'VBAK'.
      m_fieldcat 'VBELN' 'VBAK'.
      m_fieldcat 'NETWR' 'VBAK'.
    Display the first list
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program      = sy-cprog
                i_callback_user_command = 'USER_COMMAND'
                it_fieldcat             = lt_fieldcat
           TABLES
                t_outtab                = gt_vbak.
    ENDFORM.                               " F_DISPLAY_DATA_VBAK
          FORM USER_COMMAND                                             *
    FORM user_command USING u_ucomm     LIKE sy-ucomm
                            us_selfield TYPE slis_selfield.     "#EC CALLED
      CASE u_ucomm.
        WHEN '&IC1'.
          READ TABLE gt_vbak INDEX us_selfield-tabindex.
          CHECK sy-subrc EQ 0.
          PERFORM f_read_data_vbap.        " Read data from VBAP
          PERFORM f_display_data_vbap.
      ENDCASE.
    ENDFORM.                               " USER_COMMAND
         Form  f_read_data_vbap
    FORM f_read_data_vbap.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbap
               FROM vbap
              WHERE vbeln = gt_vbak-vbeln.
    ENDFORM.                               " F_READ_DATA_VBAP
         Form  f_display_data_vbap
    FORM f_display_data_vbap.
      DATA:
        ls_fieldcat TYPE slis_fieldcat_alv,
        lt_fieldcat TYPE slis_t_fieldcat_alv.
    Build the field catalog
      m_fieldcat 'VBELN'  'VBAP'.
      m_fieldcat 'POSNR'  'VBAP'.
      m_fieldcat 'MATNR'  'VBAP'.
      m_fieldcat 'ARKTX'  'VBAP'.
      m_fieldcat 'KWMENG' 'VBAP'.
      m_fieldcat 'NETWR'  'VBAP'.
    Display the second list
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                it_fieldcat = lt_fieldcat
           TABLES
                t_outtab    = gt_vbap.
    ENDFORM.   
    regards,
    praba.

  • Sales order status to update costing

    HI
    I am trying to update sales order cost estimate using CK51n But it is not updating.
    Order status is Completed.Is this could be the issue ??
    If yes pls let me know at which status I can release order cost estimate and for this what I have to do.
    and like material cost estiamte do we need to releae sales order cost estimate too. Pls let me know the procedure normally we follow
    Thanks in advance
    Sneha

    >
    1Sneha wrote:
    > HI
    >
    > I am trying to update sales order cost estimate using CK51n But it is not updating.
    > Order status is Completed.Is this could be the issue ??
    >
    > If yes pls let me know at which status I can release order cost estimate and for this what I have to do.
    >
    > and like material cost estiamte do we need to releae sales order cost estimate too. Pls let me know the procedure normally we follow
    >
    >
    > Thanks in advance
    >
    > Sneha
    Hi Sneha,
    Sale order cost estimate Generaaly used for MTO, it is carried out in sale order itself while creating sale order or after sale order creation, After run sale order cost estimate Eko2 condition( cost of goods sold) will added in to sale order.
    This value is taken while doing Billing as cost of goods sold
    Since you are trying to do estimate for closed order, i.e after billing, System is not updating the Eko2 value in old sale order

  • COPA - Need Sales order no in Reference field through derivation

    Hi Friends,
    I have stucked with one derivation of CO-PA
    Requirement
    We need sales order no (KAUFN) in  new characteristics(Reference field WWVBE) only in case of sales order document type like "DR" 
    It is our reporting requirement.  I tried this through derivation but it was working for all sales document type like 'RE' , 'ZORF'  - I used condition clause in (KEDR) but i didn't get any success. 
    Please suggest how i can get the sales order no for one document type in new characteristics.
    Regards,
    Kailash

    Atul,
    MRP does not create recommendation based on one Sales Order but looks at the overall requirement for an Item and if a particular item is required to produced then it will create a Production for the same.  Since the relation of a Production order is not tied to a particular Sales Order...getting the Sales Order number on Prod Order would not be possible
    Suda

  • What is table field name for order status report  of rate per unit and  bal

    hi  i want to make FS for order status report i almost get all table and field but i don't get only two field  rate per unit and balance value  table field didn't get please help me searching in field and table
      i want to develop my status report

    Hi,
    Check tables VBAK and VBAP wherein you will get all header and item details.
    VBUK and VBUP for header and line item statuses.
    KONV would give you rates/pricing details for each condition type determines in the sales order.
    VBAK-KNUMV = KONV-KNUMV is how you relate both of them.
    Hope that helps.
    Regards,
    Amit

  • Sale order status showing being processed

    Dear Friends,
    I am working in SAP ECC 6.0
    My sale order Qty is 10 pcs eing processed
    and delivery qty is 10 pcs - Completed
    Good Issue - 10 Pcs - Completed
    Invoice - 10 Pcs - Completed
    In spite of carrying out full delivery sale order status is still showing being processed.
    is there any configuration missing or is there any program to update the status.
    Kindly advice.
    Satish

    Hi Ankur,
    2 Doubts i have:
    1)
    In our case for the Item Category we have not maintained anything in Completion Rule however we have maintained Update Document Flow in Order to Delivery Copy Control.
    Our Document status shows as Completed in this case as well. Hence i do not know the Significance of maintaining Completion rule in item category.
    2) I have a order type which has Order Relevant Billing. The Copy Control for Order to Billing does not have any Update Document Flow Check Box. We are using a Service Material in this Order Type.
    After creating the Billing we still have Order status as Being Processed.
    Can you help in finding a solution to the above?
    Madhukar

  • Sale order status not getting completed

    Hi Friends,
    I had sales order with milestone billing for which I completed billing, even though sale order status is showing as being processed. The same way with periodic billing also.
    Kindly suggest.
    Kumar

    Dear all,
    I have cleared my actual issue. But the below doubt was regarding the standard SAP.
    Hi All,
    Thank you for your answers. First point is that I hope completion rule is only for quotation and contracts but not for normal sales orders. Second point is that I am using TAO item category which tells order related billing with billing plan. This means there was no delivery, then why schedule line CP (MRP) was assigned to TAO in standard? This is the problem for me. As the schedule line is MRP the system is not completing the status of the sale order even I have completed total quantity and value also. Can anyone tell me why this was assigned like this in statandard?
    Kumar

Maybe you are looking for

  • Importing PDF into IFrame crashes RH8?

    I'm using RH8 and producing WebHelp. I'm trying to use the new IFrame feature to display a PDF in my webhelp output, but get an Adobe Acrobat error, followed by a RH crash. Here's what happening: From RH8 topic, insert IFrame and browse to a one-page

  • Itunes downloading error 2

    I keep getting the message "Apple Application Support was not found. Apple Application Support is required to run Itunes. Please uninstall itunes, then install itunes again." Then "Error 2 (Windows error 2) when I try to download itunes

  • Hoe to provide a download help for the user

    hi all How to provide a download help for users, i.e. if i select download radia button and if i place cursor on file path it should provide the user to select what ever the drive and folder he needs can any body help asap. regards reddy.

  • Problem with master page text frame

    I am using ID 4 on a Mac with Snow Leopard 10.6.6. I have created a master with facing pages and master text frame. But the pages based on that master do not have any text frames showing. When I go to Document Setup the Master Text Frame checkbox is

  • Speakers for Airport & Mac

    I want to eliminate a big stereo system and replace it with in-ceiling speakers. Does anyone know of in-ceiling speakers that plug directly into the Airport or Mac without having to go through an external amp?