Problem in document flow

experts
after creating invoice and then i released to accounting and accounting document is
generated.
but in the document flow sales order num, delv num, pciking num, pgi num and invoice num is
comming but accounting num is missing.
it is not updated in the document flow.
what would be the reason.

Go to VF02, key in the billing document and click on green flag.  If the system says "Accounting document not generated", then go to VOFA select your billing type and execute. There check for the field AcctDetermProc.,  KOFI00 is assigned.
If there is any Account determination error, you have to check your Settings in VKOA
thanks
G. Lakshmipathi

Similar Messages

  • Problems with document flowing after placing a movie inline

    I'm trying to place a movie inline and have the contents surrounding it reflow, instead when the movie is placed it overlaps all of the contents above it.
    I'm placing a movie using the following code:
    paragraph.insertionPoints[-1].place(File("c:\\users\\kurt\\desktop\\movie\\test.flv"));
    And this is the resulting behaviour:
    The odd part is that when I tested this against blank templates I had these results, which are the result I was hoping for. The surrounding paragraphs simply reflow to accomodate the movie.
    Any ideas on why the other document isn't reflowing to the placed movie?

    Just to make it a bit easier to refer to anchored object you could probably use
    paragraph.insertionPoints[-1].words[0].allPageItems[0].anchoredObjectSettings.anchorYoffset = 10;
    Not the best but unlikely to fail and easy.
    If you were inserting an oval or the like you would just use.
    myOval = paragraph.insertionPoints[-1].ovals.add();
    myOval.anchoredObjectSettings.anchorYoffset = 10;
    but you can't do that with placed images

  • Document flow not getting updated

    Dear Experts,
    I am facing a  problem in document flow.
    I create order (for free goods order type ZFRE), do delivery and finally billing.Outbound delivery is showing as "Being Processed".While I have maintained "Update document flow" in item level in copy control.
    For your information, this is free goods order type and the system has been configured in such a way that accounting docs are not generated after billing. (As it is for free goods.).Could this be because accounting docs are not being generated?
    Kindly advise.
    Regards,
    Randhir

    Hi
    Pls see the copy control sales document to sales document T.Code VTAA
    Go to the item category  and see the document flow field is activated or not if is not activated pls activate  and re run the scenario
    pls check your correct defined  Z item category the document flow is activated or not.
    Thanks.
    Vasu
    Edited by: Vasu Enaguthi on Apr 8, 2010 12:09 PM

  • Reg:Document Flow Correction

    hi all,
    i have a problem in document flow completion , status is showing being processed.
    The case is that we have created sales order, for that all delivery and invoicing has been done, but for that we have again created return order -ret del-and invoice.
    so again created credit memo request and credit memo.
    but in doc flow infront of return order it is showing Being processed.
    the probable reason may be against the return order we have created no billing , instead we have done again credit memo request for which credit memo is prepared, so the return order is showing being processed.
    so now i want to know how can we change the status of return order as completed
    i had look in VBFA, VBUK, VBUP.
    pl give u r valuable advice to complete these status by any way.

    hi thanks for your reply,
    but these r old sales orders in the system from around 4 years back, at that time they were following this system i know this is wrong to prepare credit memo req.
    but still these orders are showing open in system .
    so we want to close that.
    so pl suggest solution to close these sales ord status to complete.

  • GI not show in Document Flow

    Hi Expert,
    When display a Service order in IW33, normally can view GI at the document flow
    But my user facing problem where Document flow shows Operation, Confirmation, Sales order, Billing except GI
    This happen for a new Order Type that just implemented.
    Regards,
    Janice

    hi
    In case of service order . There will not be any delivery doc . Billing will happen on the basis of Service order. So there is no chnace of PGI.
    See during normal sales process While maintaining copy control between the doc says from sales order -> delivery -> Invoice . Please check the check box saying update document flow . This will keep track of all preceeding doc created .
    If in ur case deliery doc is there ( Which is not generally there in service cases) please check the check box Update doc flow (In copy control between the delivery and invoice ) Because PGI generate a Material doc No. and hence if u check this box it will keep track of this doc as well.
    Hope this helps.

  • In delivery document flow the shipment should be added

    Hi Gurus,
    when the delivery is created, users have to affect the delivery to the right shipment document:
    They have to :
    1.Check the sales order document number form the document flow of the delivery
    2.check in the order the shipment document number
    3.Enter in the shipment document number (VT02N) and affect the delivery.
    If the copy cannot be processed (sales order locked for example), user is not informed and data are incoherent between order an shipment document.
    plz help me to find a solution to solve this problem
    thanks in advanced
    Edited by: snehal patil on Nov 21, 2008 9:55 AM

    Welcome to the forum.
    First of all, this should have been posted in sales forum as this is not the right place to post.  Coming to the query, if I understood your requirement correctly, you want to restrict the number of line items in delivery.  If so, check this thread
    [Re: How can I limit the item number of the delivery?|How can I limit the item number of the delivery?]
    If my understanding is wrong, please elaborate and post the same in sales forum.
    thanks
    G. Lakshmipathi

  • BAP_SALES_ORDER_CREATE_WITH_REFERENCE - Document flow

    Hi, I have a problem with the bapi for create sales order with reference, When the line items be created, the Update indicator for flow table(VBAP-UPFLU) be created whit the value 'X'(Create document flow records).
    If the sales order is manual, the value of the Indicator for flow table is '2'(Create document flow records except for delivery/goods issue/billing documents), acording to the configuration, but, the bapi assing 'X' for the same reference document.
    Then, when change positions of outbound delivery or billing document the performance of the system is afected because the "Document number of the reference document" have to many reference, and read all the flow document of the contrat.
    I think that maibe need indicate someting aditional to the bapi at position level.
    Thanks a lot for your help.
    Regards,
    Fernando Jiménez.
    Edited by: Julius Bussche on Jul 24, 2009 9:54 PM

    http://www.sap-img.com/abap/bapi-salesorder-createfromdat2.htm

  • 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 reference from ECC invoice to mySAP CRM complaint to be made

    Hi,
    I am using a BAPI program to create complaints in the mySAP CRM system; however the complaints have to be created with reference to invoices that are residing in the back end ECC system.
    Since the complaints are not being created using the GUI, I cannot establish the doc flow while creating the complaints.
    Is there someway I can make some table entries, etc... so that when I create the complaint in mySAP CRM using the BAPI:
    1. I can see the invoice in the document flow as the preceding document
    2. The reference of the line items from the invoice is also available in the relevant fields in the complaint line item (fields such as invoiced qty, net value, billing doc number, billing line item, etc)
    Kindly advice on the same. Thanking you in anticipation.
    Warm regards,
    Dhaval.

    > See if the below one answers your query.
    >
    > Go to SPRO -> Financial accounting -> FA Global
    > setting -> Company Code -> Multiple currencies
    >
    > See if anything is activated here.
    >
    > Raj
    >
    > Reward points if helpful
    Hi Raj. Here i see the following settings :
    1) Define additional local currencies. Here is only 1 company code (not mine) with settings.
    2) Define additional local currencies for ledgers. Here is a setting saying ;
    Ledger =0, Summary Tabel =GLT0, Valuation =Legal valuation, Second Currency =Comp.Code currency, Third currency =Group Currency.
    I have no idea whether these settings have anything to do with my problem. I had more the feeling that it is an error in the document flow program.
    When you know more i would appreciate your info. Thanks. Ed

  • Document flow in consignment fill up incorrect?

    Hello Experts,
    This issue is about consignment pick up
    the problem what the user is getting is---
    1)the user created a consignment fill up order
    2) while the consignment pick up order is not showingallowing inward delivery of second line items.
    I would give an example-
    consignment fill up order-100 units
    consignment pickup order- line item 10=10 units
                                           line item 20=20 units
                                           line item 30=30 units
    in the document flow of the consignment fillup order is not showing the consignment pick up of line item 20,30.
    meaning: in the document flow , the line item 20,30 are not updated and cannot be known unless we can open,see and compare with consignment fill up order. Now how to overcome this problem,is this a configuration error or program error?
    Regards,
    Raj
    Edited by: Nori Raja Sekhar on Nov 3, 2008 10:56 AM

    Dear Raj
    -  Ensure that the item category for all line items is KBN in fillup order
    -  Ensure that for line items 20 & 30, you have created fillup delivery and proforma invoice
    -  Ensure that the schedule line category for fillup order is E1
    -  Similarly, for consignment pickup, ensure that the item category is KAN and schedule line category is F0
    thanks
    G. Lakshmipathi

  • SD Document Flow is not been Updated

    Hi,
    I am using MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT to create Goods Movement.
    These FMs create the Material Document, but they don't update the Delivery flow.
    Manuaaly goods issue is done through VL02N and it updates the document flow.
    Note:- Bapi_goodsmvt_create cannot be used as it doesnot support movement types 643 and 644.
    Please help.
    Regards,
    Nitesh.

    hi , run this fm in a series like
    se37 : in menu tool bar ; function module -
    > then test ---> test sequence enter your function module in the next sequence enter fm name as bapi_transcation_commit . end run the fm then it may slove the prb
    why because data base table are not updated with out using commit work . some times orders created means fm are executed successfully and it generate order number s but those are not avalible in Data Base tables . so please try it once
    if your problem is sloved plesae close the thread
    Regards
    Siva

  • Document flow

    Dear All,
    Can anyone suggest how, based on a list of sales orders i will be able to query to see the corresponding delivery numbers and invoice numbers?
    Is there some way predefined in SAP? i just want to plug in the order numbers and geta  report showing the order number, delivery number and invoice number or something like that.

    Hi,
    1. You can do that using icon "display document flow" (Shift + F5) on VA03, VL03N, VF03.
    2. Transaction SE38: programs: RIBELF00, RIBELF20. This should solve your problem.
    Hope it will help ;-).
    /MK
    Edited by: Maciej Kromolicki on Jun 4, 2008 10:52 PM

  • Returns Order - Document Flow

    Hi,
    I am creating a Returns Order by using function module SD_SALESDOCUMENT_CREATE. In this case, document flow for the newly created order is not updating correctly (link for the Outbound delivery and Invoice is not updated).
    But, when I create returns order using VA01 transaction, it is updating the document flow correctly.
    I am not sure why this is not happenning when i create returns order through SD_SALESDOCUMENT_CREATE.
    Could you please help me in identifying and solving the problem?
    Thanks,
    Phani.

    Use commit work.
    Regards,
    Lalit Mohan Gupta.

  • Displaying document flow in a BSP Page

    In my BSP for a service notificaiton, I have the need to add a object that will display the document flow from the notificaiton. In addition the requirment is to be able to retrieve the sales order number from the flow and use it to callup the sales order as a BSP page.  We modified the Service Notificaiton so that we can create different sales order types by using the action box, so we could have multipy sales order and quotations number we have to display.  I checked on the ABAP form to see if there was anything there and I did find a few BAPI's that might work, but I also saw reference to tables that could store the data.
    Has anybody here had to do this for a BSP page and if so what did you do.
    Thanks again for all the help.

    hi,
    i used that code in scriplets. Actually my problem is I got one pdf file from session and i stored that file in a File object. the code is ..
    File pdfDocument = (File) session.getAttribute(CommonConstants.EBILL_PDF_DOCUMENT);
    now i have to display this pdf file in jsp..

  • Incomplete Numbers showing in Document Flow

    Dear Experts,
    I need a help from you. When I selecting document flow for a particular Sales Order then sales order number and invoice numbers not showing complete number. Example, my Sales Order number is 0000006690 but in document flow it is showing 000000669.
    How can I resolve this problem?
    Thanks in advance.
    Best Regards.
    Ripon Kumar Paul

    Dear Experts,
    No, I didn't modify anything and not even worked in user exit. For some document type it is showing total 10 digit numbers and only two order type it is showing less.
    Any idea why this is happening?
    Best Regards.
    Ripon Kumar Paul

Maybe you are looking for

  • Installation Problems on Win2k

    Hi, i am trying to install J2EE on Win2k... so far I have nothing but problems... i set the environment vars as suggested by the installation guide... still i can't get server to start ... n e way... here are details : OS : Window 2k - Service Pack 3

  • Inventry Posting List Report PLD

    Hi Experts, I am using SAP 2007 B Pl 13 . I am running the report Inventry Posting List. The data comes dailywise total , monthwise total yearly total but in PLD it does not show in this manner. I need the PLD in this format. Please help me. Thanks a

  • SOA Certification in Oracle

    Hi, Can Anyone guide how to proceed for SOA Certification in ORACLE. I need a detailed guidence in this topic so that I can strat it Thanks & regards

  • Safari plist missing

    i havent been able to change my browsers font, so looking for a solution online i noticed that my safari plist is missing. What can i do to solve this issue? its driving me nuts and i have no clue of what else to do. Please help. THANX

  • TS3694 What is error 42110?

    I get the error everytime I start Itunes on my windows computer.