Document Flow Status

Dear Experts,
Any one of you can help me to solve the problem which is am facing related to Document Flow status of Sales order is showing Beingprocessed eventhough completed the Sales Order creation, Delivery and Billing document
Your reply with good solution is Precious
Thanks and Regards,
MH

Hi Mohammad,
I want you to check some of the setting also some of the test please do that and update us.
Go to VTLA and select your delivery type and order type, go to item category and select your category.
Then in that what setting you have made for Pos/neg quantity??? It should be +.
Then go to IMG u2013 sales and distribution u2013 sales u2013 sales document u2013 sales document item category u2013 define item category.
Select you item category and click on detail button.
In that which completion rule you have maintain over there.???
Now go to VL01N and create one more delivery document.
If you have made done complete delivery of the item then it should not create delivery document.
Just try to check out these thing.
And your error will be in the first two setting only just try out and update us
Regards
Raj.

Similar Messages

  • In document flow status acconunt doc.not clear

    Hi sap gurus.
    My issue is i am creating billing with ref sales order (with milestone billing plan) and after transfering to accounting. In sales order  status is showing Invoice is completed  but account document xxxxxx not cleared.   when it will cleared. what is the process i need to do.
    Regards
    srinivas

    Hi,
    By using the T.Code F-28 you have to clear this document.
    In F-28 you have to enter the correct clearing account number.Ask your FICO person for this.
    If it is a downpayment invoice then in the initaial screen Select the field "Special G/L indicator" as "F" and uncheck the field "Standard OIs".
    In the additional selections select the option "Document number".
    Under "Open Item Selection" tab select the account as your customer number and account type as "D".
    Press Enter.
    Enter the document number here.Click on Process open items.
    double click on the amount under the field GBP Gross sothat the field notassigned field contains the value as 0.00.
    In the menu Document-->Simulate.
    Save.
    Means it is cleared.
    Now check the status.
    Regards,
    Krishna.

  • SO document flow status

    Hi,
    Does anyone know when will an SO be set to completed? Is it when a delivery is made?

    You can use VBUK,VBUP tables for the same.Check this for more information on it.
    Re: How do know sales order  completed  or not

  • Delete outbound delivery set status archived in document flow

    hello!
    when trying to cancel outbound delivery, the status of the document set to archived in the document flow.
    when trying to access the document i recieved message that the document was canceled.
    the status in the document flow should b canceld, instead of archived.
    I know that  its a bug in ECC6 , but i dont know how to fix it.
    Please help?
    Regards
    Yifat

    Hi,
    On initial screen system will not show status.and it is standard
    Rather select sales order and click on STATUS OVERVIEW at item level you can able to see status of P.O
    Purch. requisition -  Purch.req. available
    Purch.confirm.status - All schedLine confrm    confirmed
    Invoice recipt status - Complete invoice rpt     Posted
    Kapil

  • Quotation Using BAPI .. Status is open in Document flow

    Hi..
    I created Inquiry .. quotation using BAPI (inquiry/quotation)Create_from_Data2 .... ie
    BAPI_QUOTATION_CREATEFROMDATA2 & BAPI_INQUIRY_CREATEFROMDATA2
    ..  But in Document flow created  inquiry and quotation status is open... Why this is happening?
    Thanks..
    ..Ashish

    yes... Actually if we go to change inquiry/quotation ... if i check whether document is complete .... then it shows document is complete ....
    ..Ashish

  • Status of invoice in document flow of VA02

    I want to make a report (invoicing) in which i want to add a 'STATUS' column of an invoice. I checked the status in the document flow but i cant get the technical name nor the table in which it is stored ?
    Thanks...
    Shehryar

    Hi,
    Check the Header and Item status tables for Sales Order.
    VBUK  ---Header Status
    VBUP -
    Item Status
    Regards
    vijay

  • Status Updation In Document flow

    Hi,
    we are having scenario which contain sales order - PO - Delivery - Billing.
    when I am looking the document flow of sales order the status of SO, Delivery and billing systum is showing correctly but
    status of PO is not getting display its blank in Document flow.
    what are the probable reasons for this?
    is there any note require to update here?
    regards,
    anup

    Hi,
    On initial screen system will not show status.and it is standard
    Rather select sales order and click on STATUS OVERVIEW at item level you can able to see status of P.O
    Purch. requisition -  Purch.req. available
    Purch.confirm.status - All schedLine confrm    confirmed
    Invoice recipt status - Complete invoice rpt     Posted
    Kapil

  • Processing status in document flow for a delivery is not updated

    Hello Friends,
    I have created a delivery for a SO. The document flow in VL03 look like this:
    Delivery 10006090                               Completed
    . Picking request 890090001                Completed
    . Handling unit 239090                      
    . GD goods issue 6009099922              Completed
    My question is, Status "Completed' I can see for delivery, picking, goods issue.. But no status is updated for the Handling unit. Why it is so?...
    Please can u help me in this regard.
    Thanks,
    Shreekant

    na

  • Status in Document flow.

    Hello
    In my system when I am doing the Sales process,every thing is fine but the status of the Billing document only is not shown in the Document flow. For all other document status is shown correctly in the Document flow except Billing document.
    I have tried by creating a new no range and asigned to the Billing type but still no status shown,it is blank space.
    Please help to solve it.

    Dear PP,
    In Copy control ,Item Level you can see the Field Update document flow should be X.
    For Example:VTFA
    Enter Sales document type and Billing Doc type /Delivery and Billing doc type.
    Select the Rgt Item Category and Check this Filed Update document flow should be X
    Regards
    raj.

  • Sale order document flow-u0091Service Documentsu0092 is coming which should't aper

    New Issue with Sales order document flow:
    When linking from a sales order in document flow, we were reviewing why the description information varied.  In looking at different values, we clicked on a new item within document flow that allows you to like to ‘Service Documents’.   This is new in 6.0, or it was previously deactivated in 4.6C.  If you link from a sales order to a service document, in ECC 6.0, you will get a short dump because the document flow is so great (viewing order #any in VA03 and use document flow and then select the service documents button    as seen on the screen below
    A Short dump will occur in program SAPLDOCUMENT_FLOW_ALV.
    Here in ECC 6.0 is how it looks from sales order 9806:
    Documents created from 2004 through 2007 are coming up as linked to this sales order and that is incorrect.  There is some type of linkage issue.  In the 4.6 C environments, the ‘service documents’ link is not visible from document flow.
    Can any body functional / technical Help on this urgent???

    Hi Sanjay,
    Go to the order VA03 --> Environment --> status overview. The exact status of the header and item can be found here. You may have chances to know why the status is being processed.
    Also 
    Check whether you have checked 'document flow update' field at item level in copy control
    Check your settings for completion rule in item category
    If it is due to incorrect status message, run report SDVBUK00. That might fix the error. It is recommended to run this first in test mode.
    Br, Sats.

  • Sales order document flow error

    we do credit memo for one sales order, in the sales order document flow, the credit memo accounting document's status is not cleared. how can we changed it to be cleared?

    Hi,
    Clearing will be done by finance after the payment is given to the customer. This clearing is done by transaction F-22.
    VKM3 is used for releasing document blocked for credit management and not for clearing the accounting document.
    Regards
    Karan

  • Outbound Delivery Document Flow (One-Step procedure) Goods Receipt

    I am trying to extract the Goods Receipt status of Outbound Deliveries which are posted using One-Step procedure.  I can do this one delivery at a time using VL03N.
    Some sites (plants) are configured with One-Step procedure and others are configured as Two-Step procedure.
    Document flow of an Outbound Delivery is extracted from table VBFA.
    For the two-step delivery process (Movement type 641) the Goods Receipt is recorded in table VBFA (Subs.doc.categ. / VBTYP_N = 'i').  Therefore, I can easily extract the goods receipts for these deliveries. 
    However, for the one-step procedure (Movement type 647) the Goods Receipt does not appear to be recorded in table VBFA.  Does anyone know which table the Goods Receipt is stored for one-step procedure?
    Using transaction VL03N we can view the document flow.  It appears that for One-Step procedure the Goods Receipt is held at item level.  By highlighting a delivery line in VL03N and viewing the document flow we can see the goods receipt for One-Step deliveries (therefore, the data must be held somewhere).
    I understand that by using One-step procedure the goods receipt is posted automatically, so we can assume that there should never be outstanding Goods Receipts for One-Step sites.  However, I have been tasked with the job of reconciling all deliveries for the past 12 months.  I need to prove that a goods receipt has been posted for every single delivery.
    Any advice is much appreciated.

    Thankyou for the advice.   I will proceed with your recommendation.
    However, the query is inefficient since the link between LIKP and MKPF does not use the primary key (Article Doc. / MBLNR).  We have almost 7 million records in MKPF table. 
    Is there any intermediate tables I can include between LIKP and MKPF so that only primary keys are used for the joins?

  • Regarding invoice no. displaying in non-invoice no.list in document flow

    Hi All,
    I have 3 radio buttons. if i select 1st one only orders with invoice list should be displayed and for 2nd only orders without invoice list should be displayed and for the 3rd both should be displayed.
    but here the problem was when i select the 2nd radiobutton and see the output it was showing all the orders without invoice no. but when i see the document flow for the first order it was showing invoice no. in DOCUMENT FLOW. but it was not displaying in the output.
    So any one can help me in this issue, i am sending the select statements i have used,
      Get the invoice numbers and the corresponding order numbers for the
      date range specified on the selection screen.
        SELECT vbrkvbeln vbrpposnr vbrp~matnr
               vbrpaubel vbfaposnv
          INTO CORRESPONDING FIELDS OF TABLE i_invoice_items FROM vbrk
          INNER JOIN vbpa ON vbrkvbeln = vbpavbeln
          INNER JOIN vbrp ON vbrkvbeln = vbrpvbeln
          INNER JOIN vbfa ON vbrkvbeln = vbfavbeln  AND
                             vbrpposnr = vbfaposnn  AND
                             vbrpaubel = vbfavbelv
          WHERE vbrk~fkdat BETWEEN s_fkdat-low AND s_fkdat-high AND
                vbrk~bukrs  IN s_bukrs    AND
                vbpa~parvw   = 'WE'       AND
                vbpa~kunnr  IN s_kunnr    AND
                vbrk~vkorg  IN s_vkorg    AND
                vbrp~prodh  IN s_prdha    AND
                vbrp~werks  IN s_werks    AND
                vbfavbelv   = vbrpaubel AND
                vbfa~vbtyp_n = 'M'        AND
                vbfa~vbtyp_v = 'C'.
    get all open orders i.e. orders that have not been invoiced - Start.
      Step 1 - Get all invoiced orders.
        SELECT vbfavbelv vbfaposnv
          INTO CORRESPONDING FIELDS OF TABLE i_inv_ord_items
          FROM vbfa
          INNER JOIN vbpa ON vbfavbelv = vbpavbeln
          INNER JOIN vbak ON vbfavbelv = vbakvbeln
          INNER JOIN vbap ON vbfavbelv = vbapvbeln AND
                             vbfaposnv = vbapposnr
          WHERE vbtyp_n        = 'M'     AND
                vbtyp_v        = 'C'     AND
                vbpa~parvw     = 'WE'    AND
                vbpa~kunnr    IN s_kunnr AND
                vbak~vkorg    IN s_vkorg AND
                vbak~bukrs_vf IN s_bukrs AND
                vbap~abgru     = ' '     AND
                vbap~werks    IN s_werks AND
                vbap~prodh    IN s_prdha.
      STEP 2 - Get all orders that have not been invoiced.
      Step 2a) Get all orders that match the filters specified on the selection screen
        SELECT vbakvbeln vbapposnr matnr
          INTO CORRESPONDING FIELDS OF TABLE i_ord_items FROM vbak
          INNER JOIN vbap ON vbakvbeln = vbapvbeln
          INNER JOIN vbpa ON vbakvbeln = vbpavbeln
          WHERE vbpa~parvw     = 'WE'    AND
                vbpa~kunnr    IN s_kunnr AND
                vbak~vkorg    IN s_vkorg AND
                vbak~bukrs_vf IN s_bukrs AND
                prodh         IN s_prdha AND
                werks         IN s_werks AND
                vbap~abgru     = ' '.
        SORT i_ord_items BY vbeln posnr.
      Step 2b) Delete orders that have been invoiced by
               deleting records found in Step 1
        LOOP AT i_inv_ord_items INTO wa_inv_ord_items.
          READ TABLE i_ord_items
            INTO wa_ord_items
            WITH KEY vbeln = wa_inv_ord_items-vbelv
                     posnr = wa_inv_ord_items-posnv
            BINARY SEARCH.
          IF sy-subrc = 0.
            gv_index = sy-tabix.
            DELETE i_ord_items
              INDEX gv_index.
          ENDIF.
        ENDLOOP.
      Step 2c) Remove entries that exist in the invoiced orders internal table
      to avoid duplicate entries
        SORT i_ord_items BY vbeln posnr.
        LOOP AT i_invoice_items INTO wa_invoice_items.
          READ TABLE i_ord_items
            INTO wa_ord_items
            WITH KEY vbeln = wa_invoice_items-aubel
                     posnr = wa_invoice_items-posnv
            BINARY SEARCH.
          IF sy-subrc = 0.
            gv_index = sy-tabix.
            DELETE i_ord_items
              INDEX gv_index.
          ENDIF.
        ENDLOOP.
    get all open orders i.e. orders that have not been invoiced - End.
      Combine the open orders and invoiced orders into one internal table
    --Code added by CHHEDAM.SMS129705.Date- 03/28/2007--
      Clear 'invoiced' orders if open orders are opted.
        IF g_open EQ 'X'.
          CLEAR: i_invoice_items[].
        ENDIF.
    --End of code added by CHHEDAM.SMS129705.Date- 03/28/2007--
        IF g_open EQ 'X' OR g_both EQ 'X'.       
          LOOP AT i_ord_items INTO wa_ord_items.
            CLEAR wa_invoice_items.
            MOVE: wa_ord_items-vbeln TO wa_invoice_items-aubel,
                  wa_ord_items-posnr TO wa_invoice_items-posnv,
                  wa_ord_items-matnr TO wa_invoice_items-matnr.
            APPEND wa_invoice_items TO i_invoice_items.
          ENDLOOP.
        ENDIF.                                   
        SORT i_invoice_items BY vbeln.
        IF i_invoice_items[] IS NOT INITIAL.
          SELECT *
            FROM vbak
            INTO TABLE gt_vbak_table
            FOR ALL ENTRIES IN i_invoice_items
            WHERE vbeln = i_invoice_items-aubel.
          IF sy-subrc = 0.
            DELETE gt_vbak_table
              WHERE vkorg    NOT IN s_vkorg OR
                    bukrs_vf NOT IN s_bukrs OR
                    auart    NOT IN s_auart.
          ENDIF.
          SORT gt_vbak_table BY vbeln.
          IF gt_vbak_table[] IS NOT INITIAL.
            SELECT *
              FROM vbap
              INTO TABLE gt_vbap_table
              FOR ALL ENTRIES IN gt_vbak_table
              WHERE vbeln = gt_vbak_table-vbeln.
            IF sy-subrc = 0.
              DELETE gt_vbap_table
                WHERE werks NOT IN s_werks OR
                      prodh NOT IN s_prdha.
            ENDIF.
          ENDIF.
        ENDIF.
        SORT gt_vbak_table BY vbeln.
        SORT gt_vbap_table BY vbeln posnr.
    LOOP AT i_invoice_items INTO wa_invoice_items.
          READ TABLE gt_vbak_table
            INTO gt_vbak_table_line
            WITH KEY vbeln = wa_invoice_items-aubel
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-aubel     = gt_vbak_table_line-vbeln.
            display_table_line-vkorg     = gt_vbak_table_line-vkorg.
            display_table_line-auart     = gt_vbak_table_line-auart.
            display_table_line-bukrs_vf  = gt_vbak_table_line-bukrs_vf.
            display_table_line-bill_to   = gt_vbak_table_line-kunnr.
            display_table_line-vdatu     = gt_vbak_table_line-vdatu.
            display_table_line-faksk     = gt_vbak_table_line-faksk.
            display_table_line-lifsk     = gt_vbak_table_line-lifsk.
          ENDIF.
          READ TABLE gt_vbap_table
            INTO gt_vbap_table_line
            WITH KEY vbeln = wa_invoice_items-aubel
                     posnr = wa_invoice_items-posnv
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-posnr     = gt_vbap_table_line-posnr.
            display_table_line-matnr     = gt_vbap_table_line-matnr.
            display_table_line-kdmat     = gt_vbap_table_line-kdmat.
            display_table_line-maktx     = gt_vbap_table_line-arktx.
            display_table_line-werks     = gt_vbap_table_line-werks.
            display_table_line-prodh     = gt_vbap_table_line-prodh.
            display_table_line-kwmeng    = gt_vbap_table_line-kwmeng.
            display_table_line-vrkme     = gt_vbap_table_line-vrkme.
            display_table_line-waerk     = gt_vbap_table_line-waerk.
            display_table_line-net_price = gt_vbap_table_line-netwr.
            display_table_line-kzwi1     = gt_vbap_table_line-kzwi1.
            display_table_line-kzwi2     = gt_vbap_table_line-kzwi2.
            display_table_line-kzwi3     = gt_vbap_table_line-kzwi3.
            display_table_line-kzwi4     = gt_vbap_table_line-kzwi4.
            display_table_line-kzwi5     = gt_vbap_table_line-kzwi5.
            display_table_line-wavwr     = gt_vbap_table_line-wavwr.
            display_table_line-mwsbp     = gt_vbap_table_line-mwsbp.
          ENDIF.
          display_table_line-vbeln = wa_invoice_items-vbeln.
          APPEND display_table_line TO display_table_line.
          CLEAR wa_invoice_items.
          CLEAR display_table_line.
        ENDLOOP.
      Get the Purchase Order Number, Sales District and Desc
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_vbkd_table.
          CLEAR: gt_t171t_table.
          SELECT *
            FROM vbkd
            INTO TABLE gt_vbkd_table
            FOR ALL ENTRIES IN display_table_line
            WHERE vbeln = display_table_line-aubel.
          SORT gt_vbkd_table  BY vbeln.
          IF gt_vbkd_table[] IS NOT INITIAL.
            SELECT *
              FROM t171t
              INTO TABLE gt_t171t_table
              FOR ALL ENTRIES IN gt_vbkd_table
              WHERE bzirk = gt_vbkd_table-bzirk.
          ENDIF.
          SORT gt_t171t_table BY bzirk.
        ENDIF.
      Get Ship To Account
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_vbpa_table.
          SELECT *
            INTO TABLE gt_vbpa_table
            FROM vbpa
            FOR ALL ENTRIES IN display_table_line
            WHERE vbeln = display_table_line-aubel.
          IF sy-subrc = 0.
            DELETE gt_vbpa_table
              WHERE parvw <> 'WE'.
          ENDIF.
        ENDIF.
        SORT gt_vbpa_table BY vbeln parvw.
    Get Ship To Name and City
        IF gt_vbpa_table[] IS NOT INITIAL.
          CLEAR: gt_kna1_table.
          SELECT *
            INTO TABLE gt_kna1_table
            FROM kna1
            FOR ALL ENTRIES IN gt_vbpa_table
            WHERE kunnr = gt_vbpa_table-kunnr.
        ENDIF.
        SORT gt_kna1_table BY kunnr.
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_vbpa2_table.
          SELECT *
            INTO TABLE gt_vbpa2_table
            FROM vbpa
            FOR ALL ENTRIES IN display_table_line
            WHERE vbeln = display_table_line-aubel.
          IF sy-subrc = 0.
            DELETE gt_vbpa2_table
              WHERE parvw <> 'ZS' .
          ENDIF.
        ENDIF.
        SORT gt_vbpa2_table BY vbeln parvw.
        IF gt_vbpa2_table[] IS NOT INITIAL.
          CLEAR: gt_kna12_table.
          SELECT *
            INTO TABLE gt_kna12_table
            FROM kna1
            FOR ALL ENTRIES IN gt_vbpa2_table
            WHERE kunnr = gt_vbpa2_table-kunnr.
        ENDIF.
        SORT gt_kna12_table BY kunnr.
    Get Sales Group and Desc
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_knvv_table.
          SELECT *
            INTO TABLE gt_knvv_table
            FROM knvv
            FOR ALL ENTRIES IN display_table_line
            WHERE kunnr = display_table_line-bill_to  AND
                  vkorg = display_table_line-vkorg    AND
                  vtweg = '01'.
          SORT gt_knvv_table BY kunnr vkorg vtweg.
          IF gt_knvv_table[] IS NOT INITIAL.
            CLEAR: gt_tvgrt_table.
            SELECT *
              INTO TABLE gt_tvgrt_table
              FROM tvgrt
              FOR ALL ENTRIES IN gt_knvv_table
              WHERE vkgrp = gt_knvv_table-vkgrp AND
                    spras = sy-langu.
          ENDIF.
          SORT gt_tvgrt_table BY vkgrp spras.
        ENDIF.
    Get Order Status for the line items in the sales orders
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_vbup_table.
          SELECT *
            INTO TABLE gt_vbup_table
            FROM vbup
            FOR ALL ENTRIES IN display_table_line
            WHERE vbeln = display_table_line-aubel AND
                  posnr = display_table_line-posnr.
        ENDIF.
        SORT gt_vbup_table BY vbeln posnr.
        IF gt_vbup_table[] IS NOT INITIAL.
          CLEAR: gt_tvbst_table.
          SELECT *
            INTO TABLE gt_tvbst_table
            FROM tvbst
            FOR ALL ENTRIES IN gt_vbup_table
            WHERE spras = sy-langu AND
                  tbnam = 'VBUP'   AND
                  fdnam = 'GBSTA'  AND
                  statu = gt_vbup_table-gbsta.
        ENDIF.
        SORT gt_tvbst_table BY spras tbnam fdnam statu.
    Get Blocked Reason Text for Billing and Delivery Block
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_tvfst_table.
          SELECT *
            INTO TABLE gt_tvfst_table
            FROM tvfst
            FOR ALL ENTRIES IN display_table_line
            WHERE spras = sy-langu AND
                  faksp = display_table_line-faksk.
        ENDIF.
        SORT gt_tvfst_table BY spras faksp.
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_tvlst_table.
          SELECT *
            INTO TABLE gt_tvlst_table
            FROM tvlst
            FOR ALL ENTRIES IN display_table_line
            WHERE spras = sy-langu AND
                  lifsp = display_table_line-lifsk.
        ENDIF.
        SORT gt_tvlst_table BY spras lifsp.
        SORT display_table_line BY vbeln aubel posnr matnr.
        DELETE ADJACENT DUPLICATES
          FROM display_table_line
          COMPARING aubel posnr matnr .
        LOOP AT display_table_line INTO display_table_line.
          gv_index = sy-tabix.
      Get the Purchase Order Number, Sales District and Desc
          READ TABLE gt_vbkd_table
            INTO gt_vbkd_table_line
            WITH KEY vbeln = display_table_line-aubel
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-bstkd = gt_vbkd_table_line-bstkd.
            display_table_line-bzirk = gt_vbkd_table_line-bzirk.
            READ TABLE gt_t171t_table
              INTO gt_t171t_table_line
              WITH KEY bzirk = gt_vbkd_table_line-bzirk
              BINARY SEARCH.
            IF sy-subrc = 0.
              display_table_line-bztxt = gt_t171t_table_line-bztxt.
            ENDIF.
          ENDIF.
      Get Ship To Account
          READ TABLE gt_vbpa_table
            INTO gt_vbpa_table_line
            WITH KEY vbeln = display_table_line-aubel
                     parvw = 'WE'
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-ship_to = gt_vbpa_table_line-kunnr.
          ENDIF.
    Get Ship To Name and City
          READ TABLE gt_kna1_table
            INTO gt_kna1_table_line
            WITH KEY kunnr = display_table_line-ship_to
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-ship_to_name = gt_kna1_table_line-name1.
            display_table_line-ship_to_city = gt_kna1_table_line-ort01.
          ENDIF.
    Get Ship To Salesman Number
          READ TABLE gt_vbpa2_table
            INTO gt_vbpa2_table_line
            WITH KEY vbeln = display_table_line-aubel
                     parvw = 'ZS'
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-salesrep = gt_vbpa2_table_line-kunnr.
          ENDIF.
    Get Ship To Salesman
          READ TABLE gt_kna12_table
            INTO gt_kna12_table_line
            WITH KEY kunnr = display_table_line-salesrep
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-ship_to_srep = gt_kna12_table_line-name1.
          ENDIF.
    Get Sales Group and Desc
          READ TABLE gt_knvv_table
            INTO gt_knvv_table_line
            WITH KEY kunnr = display_table_line-bill_to
                     vkorg = display_table_line-vkorg
                     vtweg = '01'
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-vkgrp = gt_knvv_table_line-vkgrp.
            READ TABLE gt_tvgrt_table
              INTO gt_tvgrt_table_line
              WITH KEY vkgrp = gt_knvv_table_line-vkgrp
                       spras = sy-langu
              BINARY SEARCH.
            IF sy-subrc = 0.
              display_table_line-bezei = gt_tvgrt_table_line-bezei.
            ENDIF.
          ENDIF.
    Get Order Status for the line items in the sales orders
          READ TABLE gt_vbup_table
            INTO gt_vbup_table_line
            WITH KEY vbeln =  display_table_line-aubel
                     posnr =  display_table_line-posnr
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-gbsta = gt_vbup_table_line-gbsta.
          ENDIF.
          READ TABLE gt_tvbst_table
            INTO gt_tvbst_table_line
            WITH KEY spras = sy-langu
                     tbnam = 'VBUP'
                     fdnam = 'GBSTA'
                     statu = display_table_line-gbsta
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-status = gt_tvbst_table_line-bezei.
          ENDIF.
    Get Blocked Reason Text for Billing and Delivery Block
          READ TABLE gt_tvfst_table
            INTO gt_tvfst_table_line
            WITH KEY spras = sy-langu
                     faksp = display_table_line-faksk
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-fakskt = gt_tvfst_table_line-vtext.
          ENDIF.
         SELECT SINGLE vtext INTO display_table_line-lifskt
          READ TABLE gt_tvlst_table
            INTO gt_tvlst_table_line
            WITH KEY spras = sy-langu
                     lifsp = display_table_line-lifsk
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-lifskt = gt_tvlst_table_line-vtext.
          ENDIF.
    Get Total Net and Total Gross Invoice Amount
          display_table_line-brtwr = display_table_line-kzwi1 -
                                     display_table_line-kzwi2 -
                                     display_table_line-kzwi3 -
                                     display_table_line-kzwi4 -
                                     display_table_line-kzwi5.
    Calculate Discount
          display_table_line-disc = display_table_line-kzwi2 +
                                    display_table_line-kzwi4.
         Unit Price and cost.
          IF display_table_line-kwmeng NE 0.
            display_table_line-unit_price = display_table_line-brtwr /
                                            display_table_line-kwmeng.
            display_table_line-wavwr = display_table_line-wavwr /
                                       display_table_line-kwmeng.
          ELSE.
            display_table_line-wavwr = 0.
          ENDIF.
        Calculate the GPM percentage.
          IF display_table_line-unit_price NE 0.
            display_table_line-gpm_perc = ( ( display_table_line-unit_price -
                                              display_table_line-wavwr ) /
                                              display_table_line-unit_price ) * 100.
          ENDIF.
        Update the internal table.
          SHIFT display_table_line-matnr   LEFT DELETING LEADING '0'.
          SHIFT display_table_line-bill_to LEFT DELETING LEADING '0'.
          SHIFT display_table_line-ship_to LEFT DELETING LEADING '0'.
          SHIFT display_table_line-vbeln   LEFT DELETING LEADING '0'.
          SHIFT display_table_line-aubel   LEFT DELETING LEADING '0'.
          WRITE display_table_line-vdatu   TO   display_table_line-vdatu_char MM/DD/YYYY.
          MODIFY display_table_line
            INDEX gv_index
            FROM display_table_line
            TRANSPORTING vbeln      aubel        bzirk        bztxt
                         bill_to    ship_to      ship_to_name ship_to_city
                         salesrep   ship_to_srep vkgrp        bezei
                         bstkd      gbsta        status       fakskt
                         lifskt     matnr        vdatu        brtwr
                         disc       unit_price   wavwr        gpm_perc
                         vdatu_char.
          CLEAR: display_table_line, tvbst_wa.
        ENDLOOP.
        IF  s_vkgrp[] IS NOT INITIAL.
          DELETE display_table_line WHERE vkgrp NOT IN s_vkgrp.
        ENDIF.
        IF  s_bzirk[] IS NOT INITIAL.
          DELETE display_table_line WHERE bzirk NOT IN s_bzirk.
        ENDIF.
        IF s_srep[] IS NOT INITIAL.
          DELETE display_table_line WHERE salesrep NOT IN s_srep.
        ENDIF.
        SORT display_table_line BY vkorg vkgrp ship_to_srep bill_to.
        DELETE display_table_line WHERE aubel = ' '.
      ENDMETHOD.                    "read_main_data
      METHOD display_report.
        CALL METHOD alv_class->set_table_for_first_display
       EXPORTING
         I_BUFFER_ACTIVE               =
         I_BYPASSING_BUFFER            =
         I_CONSISTENCY_CHECK           =
         I_STRUCTURE_NAME              =
         IS_VARIANT                    =
         I_SAVE                        =
         I_DEFAULT                     = 'X'
         is_layout                     = gv_layout
         IS_PRINT                      =
         IT_SPECIAL_GROUPS             =
         IT_TOOLBAR_EXCLUDING          =
         IT_HYPERLINK                  =
         IT_ALV_GRAPHICS               =
         IT_EXCEPT_QINFO               =
         IR_SALV_ADAPTER               =
         CHANGING
           it_outtab                     = display_table_line[]
           it_fieldcatalog               = gt_field_cat
         IT_SORT                       =
         IT_FILTER                     =
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4
        IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDMETHOD.                    "display_report
    Thanks in Advance,
    Ramana Prasad.T

    Hi Janakiraman,
    unfortunately we don't have an upload storage here in the SDN. At this point we have two options:
    a) you could upload the screenshots to a website that provides storage and then you can paste the url to the screenshots here
    b) we can route this through our support channel. You can send a message to our support team in the <a href="http://service.sap.com/smb/sbo/support">SAP Business One Support Center</a> in our <a href="http://service.sap.com/smb/sbo">SAP PartnerEdge Portal</a>.
    Please use the method that works best for you.
    Thanks,
    Torsten

  • Document Flow Configuration

    Hi Experts
    I am configuring document flow for Outbound delivery to have Delivery item linked to Delivery, Shipment linked to Delivery and Handling unit linked to Delivery Item.
    I defined one document flow group say Z_DEL1 which has sequence 1 for Delivery Header, 2 for Delivery Item with predecessor Delivery Header, 3 for Shipment with predecessor  Delievry Header and 4 for Handling Unit with predecessor Delivery Item.
    I defined Source and Predecessor document mappings for each of these sequences. Now I defined one multitask EH update activity say Z_DEL_ACT1 with task UPDATE, activity DF_UPDATE_FROM_EH and DF group Z_DEL1.
    I defined this as combined scenario of Delivery and Shipment. Now I have a question, shall I need to assign this EH Upd Act2 field with value Z_DEL_ACT1 for all Event Handler Types related to Delivery Header, Delivery Item, Shipment and Handling Unit or is it sufficient to assign EH Upd Act2 only for Delivery Header?
    The scenario is to configure document flow only for Delivery with successors as delivery item, shipment and handling unit. The document flow net should get updated automatically whenever a shipment is created or handling unit is created.
    Also, I have 2 customized statuses for delivery header document which I need to display in the table of document flow window. I am taking the fields from /SAPTRX/EH_STAT. Shall I need to add these two fields in the structure of relevant document category like addition of these 2 fields in table /1DF/1ODL400?
    I hope I am clear on my questions and please advise as soon as possible on these.
    Thanks
    Ravi

    Hi Steffen, Hi All
    Could you please share any document on how to configure the document flow for the scenario I explained initially?
    I still have a doubt, if I use one document flow group and define one EH update activity and assign the same to Delivery Event Handler Type, will system update the docuemnt flow whenever the Event Handlers for successors of Delivery (like Delivery Item, Shipment, Handling Unit etc) get created in EM system? or Shall I need to assign the same EH update activity to all Event Handler Types which are successors to Delivery?
    I hope I am clear on my question.
    This is really urgent.
    Thanks
    Ravi

  • Reclamations and returns DOCUMENT FLOW

    Hi,
    I ve to enhance the QM01/02/03 ,DOCUMENT FLOW when ever we press document flow push button,
    QM02-
    provide any QN number,
    in the menu
    extras -> document notifications->document flow->list
    rifht now it is showing only 2/3 documents in tree
    but it should be modified to
    The standard SAP Document Flow, but it must be modified, in order to show all the subsequent documents, and the user must be able to go directly to each subsequent documents.  
    The flow must follow this hierarchy: 
    For documents type ZS/ZV
    - Purchase Order
        - QM Notif.
            - Stock transfer or Scrapping
                 - Return Purchase Order
                       - Delivery
                           - Goods issue
                              - Goods receipt
                                 - Invoice
    For document Type: ZC.
    - Reference document
    - QM Notif.
    - Return Sales Order or Credit memo req. or Debit memo req.
                                              - Return invoice or Credit memo or Debit memo
    This document flows should be shown for each QN in the QM11 transaction.
    menu
    Notification -> Display Document flow
    It is a network flow that should  as is but all the documents it should show.
    it is internally calling Business objects
    1. Goto transaction "QM02",
    2. Provide some QN number
    Observe: LIST
                     GRAPHIC
    If u goto the sytem&#8594;status u ll find the program “SAPLIQS0”
    Find the Function code responsible for “DOCF”
    It will call a report program “RIBELF20”
    For other “GRAPHIC” shown in above picture
    U will find form exit “FORM fcode_docf2_f00”
    Where we can create new program like above and we can insert our own Z Program.
    But if u go to the program level and debug,
    There is one FM "DISPLAY_DOCUMENT_FLOW_ALV" that is responsible for such type of display,
    No issues,
    But internally before that he extracted all the business Objects responsible for that.
    How can I get all the business objects that are required to me to show the all the documents that I have already sent to u.
    Below are my findings about the document flow at QM11 level.
    When ever u press the Display document flow.
    The O/P is
    1. QM11 is the standard transaction using program “RQMELL10”.
        We can not modify the standard SAP transaction, and insert our code in this program.
         Alternative: we have to copy the program in Z namespace and attach the same to Z transaction code.
        Confirm the same whether the users are ready to use the “Z” transaction.
    2. Even though they accept for this:
        The function Module responsible for the Network type of display is “QM11_LESEN_BELEGDATEN_ALLG”.
        With the input parameters as (a) QN number (b) Business Object i.e.  BUS2078 (Quality notification number) (c) maximum number of steps
        The standard function module should be used in Z namespace program; the standard function module internally calls one more Function module 
        “NERL_GET_NEIGHBOURHOOD” that is responsible for the getting business objects of the corresponding number.
         But this function module gets the only three documents data but not the else that are mentioned in the FD.
    <b>Kindly provide any function module, which can meet such criteria, and the business objects of the related documents in the flow that is required.</b>

    Hi,
    Goto the T.Code "VOV7".
    Select your item category.
    Details.
    Maintain the Completion rule as "A(Item is completed with the first reference)".
    Save.
    If you do this after the follow on document is created,the item is completed and you cannot reject the item.
    For your second question,
    Goto the T.Code "VTLA".
    Select your valid combination.
    Click on item.Select your item category.Details.
    There is a check box called as "Update document flow".Tick that one.
    Save.
    Regards,
    Krishna.

Maybe you are looking for