Moving the stock from quality to unrestricted.

Hello Experts,
This is regarding QM issue.
in inspection lot certain lot quantity is entered in quality and it is not cleared.
the system status for that lot in QA03 is UD   ICCO PRII STUP
now the question is how to clear this one.
even i checked for inconsistency,but there is no inconsistency exits.
kindly tell me how to proceed further and solve this issue.
Regards,
santosh.

Hi Santosh, Yes no problem. You can post.
You have now identified the correct lot.
Select this lot and click on execute button. Then go to stock posting tab and post the remaining quantity to unrestricted use.
Itu2019s absolutely correct to post the stock against this lot.
In fact we can say earlier selected lot was incorrect as it was not having status ending with SPRQ or SPST. I explain this to you.
For material XYZ, 5 inspection lots are created containing 20 Qyt each (say lot numbers are 1,2,3,4 and 5). When you look at MMBE, you will see that quantity 100 is lying in quality inspection which is the sum of all lots quantities.
Now one by one you go on posting stock to unrestricted and giving UD. Accidently you gave UD for lot number 3 without posting the stock. Now system will show 20 Qty in quality inspection in MMBE. Here the first task to identify the correct lot against which we did not carry out stock posting. In order to identify this correct lot number against which stock posting was not done, we execute QVM2 transaction. Here lot number 3 has status SPRQ  i.e. stock posting required. If you try to post the stock against lot other than 3, system will definitely throw error because it was already posted.
Hence the output of QVM2 always gives the correct lot against which stock posting is not done.
Regards,
Anand Rao

Similar Messages

  • Error while Releasing the Stock from Quality-CRTD CHCR SPRQ

    Hai Experts
                          While releasing the stock from Quality i got  error like function cannot be caried out,
    The Material Status CRTD CHCR SPRQ.
    Thanks
    Rajakarthik

    Rajakarthik
    It looks like the status you mentioned are of inspection lot.
    CRTD mean created status of inspection lot.
    CHCR means characterstics required. in your case the the material master inspection view says characterstics required however your inspection plan does not have any cahracterstics.
    assign the characterstics to inspection plan & both the status of inspection lot will change. you will be then able to process the inspection lot to move the stock from quality to unrestricted.
    Regards
    Mahesh

  • Moving the stock to inspection to unrestricted

    hi,
      i completed the flow from gr to destination bin flow but the stock remains in quality inspection not in unrestricted use. how to  move the stock from quality inspection to unrestricted use.(without changing the bin number)
    Regards
    muthuraman

    Hi Muthuraman,
    You want to transfer the stock from quality to unrestricted. you may follow the below process:
    1, do transfer posting of the material from Quality to unrestricted in MB1B with 321 .
      it will generate the posting change no.
    2. create a Transfer order in LT06 with respect to the above material document no.
    it will put the stock in interiam storage type 922.
    3. confirm the TO.
    hope this will help.
    regards,
    Anubhab

  • Issue in WM enabled with HU (Transfer of stock frm Quality to Unrestricted)

    Hi,
    We've a scenario in such a way of both WM with HU engagged together.
    Transfer of a Material from Quality to unrestricted stock type using transfer posting.
    1. in MB1B using mvt  321, stock of Matl A with qty 20 has been transferd from Quality to unrestricted.
    2. Due to HU mapped, an OBD for posting change had been created.
    3. wrt OBD, matl get packed,(as per packing instruction) which is identified with the HU no.
    4. Subsequently a TO had been created and confirmed.
    as of this stage the stock view in IM & WM is as follows:
    IM                                                      
    Unres   -
        nil
    Quality  ---      20
    Due to effect of PCN, TO has been created to transfer the stock catogry within the same bin
    WM
    Bin 1  (Q)    20      ---            922 (Q)       20
    922          20     ---           Bin 1            20
    5. Then as per the process of completion PGI has to occur so as to nullifying the the -ve stock in 922 storage type
    so the stock levels will be
    IM                                                      
    Unres  ---  20
    Quality ---  nil
    WM
    Bin 1              20
    Issue case :
    A mannual TO has been created moving the stock from  Bin 1  to  922 , without doing step 5 (i.e w/o completion of PGI).
    This lead my stock figs as
    IM                                                      
    Unres    -
    nil       
    Quality  -
      20
    WM
    922(Q)              20
    This also causes storage unit status as " To be Picked". leads to stuck up to proceed further.
    We also tried to do mannual TO to transfer the stock from 922 to BIn 1. Due to unavailabilty of the stock system throws error as -ve stock is not possible for 922 Storage type..
    Seeking  experts to help out this issue if possibly w/o any customising settings.
    Regards,
    Prasanna
    Edited by: prasanna govindarajan on Sep 22, 2010 2:55 PM

    Dear Venkat,
    There is a  tick mark in post to inspection stock indicator thereafter inspection lot tab in qa32 or qa11 is not activated.
    Secondly, this is a stock item.
    Thirdly, No PS module is implemented in my client
    I think the user has posted  the stock through MB1C with Movt.Type 503 into quality stock.At the time of this posting the 05 inspection type is not activated in QM view of Material Master thatswhy system does not created any inspection lot for this.
      After some days,with out stock posting from inspection stock to unrestricted stock,he has activated 05 inspection stock for the first time.
    Pl.suggest any possible solution .
    Prashant

  • Remove stock from Quality Inspection

    Dear All,
    In material master by mistak quality inspection flag was active in packing material with 01 inspection type.
    When we received material it goes for quality inspection after MIGO. So in MMBE it shows in Quality Inspection.
    Now the Plant in which MIGO was prepared has no quality related data maintained.
    We tried to reverese MIGO document but system not allowing to do as srock is in Quality inspection.
    Is there any way to reverse the MIGO or moving stock from quality to unrestricted?
    Thanks in advance,
    Nirav

    Did you identify the original material document and then try MBST transaction to cancel the document?
    When you use the term "reverse" it sound like you are trying to do a 102 against the 101.  You can't reverse the transaction, you have to use MBST to cancel the transaction.
    Otherwise you have to set up enough QM data to process the lot.
    FF

  • Material movement from Quality to Unrestricted

    Dear All
       My problem is that i have given UD for a particular batch and posted the stock from quality inspection to unrestricted use.
    But when i see in the stock overview the quantity still lies in Quality i.e in MMBE
    But when i see in QA33 the stock is available in Unrestricted.
    Kindly give me a solution
    Regards
    Surender

    Dear,
    Use movement 321 to move material from QI to unrestricted and movement 343 from blocked to unrestricted.
    Regards,
    R.Brahmankar

  • IDOC - message type WMMBXY(Stock transfer from quality to unrestricted)

    Hi Gurus,
    I have IDOC problem.
    Inbound message type WMMBXY(Stock transfer from quality to unrestricted), The status if I check in WM02 of Doc is "51-Application document not posted"
    Error Message ""Required function
    MB_CREATE_GOODS_MOVEMENT is not being processed".
    Please Help.
    Prashant

    Hi
    The Idoc whcile Posting using Message type WMMBXY calls the Function module L_IDOC_INPUT_WMMBXY & in turn this calls the function module MB_CREATE_GOODS_MOVEMENT.
    This function is not getting executed.
    Please check if the Movemnt type used is not active for WM movemnts.
    If you have used previously this movemnt type & now it is not working. Please take hlep of ABAPer  for debugging & finding the Root cause
    Thanks & Regards
    Kishore

  • How to list the transfer posting document from quality to unrestricted

    hi experts,
    i can get GR documents by using MB51
    but how to get list of documents from quality to unrestricted and blocked to quality tranferpostings
    thank you
    ganesh

    You can get all the Details in MB51 by Selecting Proper Movement types.
    For Eg: Gr Docs using 101, GR Blocked Using 103 and GR Blocked Released using 105 etc.
    Regards,
    Ashok

  • UD ICCO SPCO STUP- unable to clear the stock in Quality View.

    Hi!
                    In a QM -Module for a particular material status is showing as "UD ICCO SPCO STUP" in QA32. Usage Decision is done for this particular item. But it is showing the stock in MMBE Tcode. Its unable to clear in QA32.
    I tried QA12 and also QVM2 for this stock moving from Quality Inspection to Unrestricted stock. but i am unable to do so.
    Could any body plz help me to clear the stock from the Quality View.
    Thank you!
    -M.Suba

    Hi,
    Since lot status is "UD ICCO SPCO STUP", the stock posting against that lot is already done.
    Is batch management active ? is so then check whether you are getting  stock of that batch in Quality in MMBE.
    Chances of some other lot for same material  having status SPRQ are more, go to QA32 put specific material  and select all lots, then apply the filter to status field  and search for SPRQ status availability. You will find some lots of same material  for which UD given but stock posting not made.
    Please check and revert.
    Best Regards,
    Shekhar

  • Unablt to post stock from QI to Unrestricted (QM enabled)

    Hi All,
    Am facing an issue where a quantity of stock is residing in QI which I am unable to transfer to unrestricted. An Inspection lot (Inspection type 08) had got created for Movement type 309 and due to some reason, the Inspection lot has got cancelled. I tried to transfer post the stock from QI to unresticted but id does not allow me to stating that the Inspection stock should be changed in QM. How do I go about to sort this issue.
    Thanks in advance.
    Regards,
    Imran

    Hi Lokesh,
    Appreciate your time and effort. Please find my response to your queries below:
    1. Check for sufficient stock svailability in both the materials - A stock quantity of 10 was transferred from Material A to Material B with Mvt Type 309. Hence this stock of 10 now resides in Quality Inspection.
    2. Check whether storage location pick points extended for both the material - Both the materials are in the same storage location hence the requirement to extend does not exist.
    3. Check for batch activation, if yes check for batch restriction or check whther u hv specified correct batch pick points - Batch Management is activated, no batch restriction exists.
    4. Check whther material is stock relevant and not activated for special stock indicators. ensure stock not posted to cost center for direct consumption. - Material is stock relevant and is activated for special stock indicator. It is not posted to a Cost center.
    5. Check Inspection lot status for REL CALC SPRQ. - Inspection Lot status is REL CALC SPRQ
    Also note that the Material is an AFS Material.
    Regards,
    Imran

  • Error while posting stock from quality to return delivery

    Hi ,
    I am working in decentralized warehouse. I am posting stock from quality to return delivery in t code QA32. The following is the error message i am getting . i have also checked the movement type settings they are fine for 553.
    "Posting only to free or blocked stock due to missing goods receipt".
    Please let me know if i am missing any thing in config......
    Thanks
    Ilyas

    Hi Ilyas,
    Can you check again the movement type? For return delivery movement type 122 is used and 553 is for GI scrapping from QI. You can check it in SPRO>QM>QI>Inspection lot completion> Define inventory postings.
    reg,
    Sudhir

  • How to Clear Stock From Quality Inspection

    Dear Sir,
    We have following problem scenario :
    In the Quality View the wrong type of Inspection Type was given and subsequently during MIGO as  the "Quality Inspection" option was selected under Stock Type , so after MIGO stock got posted under Quality Inspection  and no Inspection Lot was created .
    Now we want to clear the Stock from QI to either Un-restricted or any other type , so that material can be cleared and brought to Un-restricted Stock  ultimately .
    We tried to use MB1b with movement type 321 , but it given error as "Change the inspection stock of material CJMC1A0477 in QM only" .
    I request you to kindly guide me as how can the Stock be cleared from QI .
    With Thanks and Regards
    B Mittal

    Hi ALL,
    I'm also facing the same issue. In material master QM view : Q M Procurement activity deactivated and Inspection setup also deactivated.  This is not a proper way to solve the issue anyway i have deactivated, but still i am facing same issue.
    Please anybody can help on this...
    Regards
    Chandru.

  • Dump is coming after Moving the request to Quality server.

    Dear All,
    Dump is coming in a ABAP code after moving the same to quality server.
    Kindly refer the attached screenshot.
    Kindly suggest.
    Thanks and Regards
    Jai

    see the below code,
    I have changed the value of l_age1 TYPE bsid-dmbtr to l_age1 TYPE p LENGTH 10 DECIMALS 2.
    *& Report  ZFIRDEBAGEING
    * 1. Program Name:ZFIRDEBAGEING             2.  Creation Dt:18/03/2013 *
    * 3. Module Name :FI                        4.  Modified Dt:2/04/2013  *
    * 5. Developer Name: Kallol Chakrabarty     6.  Modified By:           *
    * 7.Background / Online :Online             8. Trans Code : ZCAGE      *
    * 9. Frequency  : Regular    *
    * Request Number :            - Created                                *
    * Remarks : Customer Ageing Report                                     *
    REPORT zfirdebageing.
    TYPE-POOLS : slis.
    TABLES: bsid,bseg.
    TYPES : BEGIN OF tt_bsid,
              belnr TYPE belnr_d,
              gjahr TYPE gjahr,
              bukrs TYPE bukrs,
              dmbtr TYPE dmbtr,
              kunnr TYPE kunnr,
              budat TYPE budat,
              zfbdt TYPE dzfbdt,
              zterm TYPE dzterm,
              zbd1t TYPE dzbd1t,
              shkzg TYPE shkzg,
            END OF tt_bsid,
            BEGIN OF tt_bseg,
              belnr TYPE belnr_d,
              gjahr TYPE gjahr,
              bukrs TYPE bukrs,
              werks TYPE werks_d,
              prctr TYPE prctr,
              segment TYPE fb_segment,
            END OF tt_bseg,
            BEGIN OF tt_faglseg,
              langu TYPE spras,
              segment TYPE fb_segment,
              name TYPE text50,
            END OF tt_faglseg,
            BEGIN OF tt_cepct,
              spras  TYPE  spras,
              prctr  TYPE  prctr,
              ltext  TYPE  ltext,
            END OF tt_cepct,
            BEGIN OF tt_final,
              kunnr TYPE kunnr,
              segment TYPE fb_segment,
              name TYPE text50,
              prctr  TYPE  prctr,
              ltext  TYPE  ltext,
              name1 TYPE name1_gp,
              ort01 TYPE ort01_gp,
              age1 TYPE dmbtr,
              age2 TYPE dmbtr,
              age3 TYPE dmbtr,
              age4 TYPE dmbtr,
              age5 TYPE dmbtr,
              age6 TYPE dmbtr,
              age7 TYPE dmbtr,
              total TYPE dmbtr,
              total1 TYPE dmbtr,
              total2 TYPE dmbtr,
              zfbdt TYPE dzfbdt,
              zterm TYPE dzterm,
              zbd1t TYPE dzbd1t,
              budat TYPE budat,
            END OF tt_final,
            BEGIN OF tt_kna1,
              kunnr TYPE kunnr,
              name1 TYPE name1_gp,
              ort01 TYPE ort01_gp,
            END OF tt_kna1.
    DATA : wa_bsid TYPE tt_bsid,
            it_bsid TYPE TABLE OF tt_bsid,
            wa_bseg TYPE tt_bseg,
            it_bseg TYPE TABLE OF tt_bseg,
    "       wa_tmp1 TYPE tt_bseg, "Commented by ++KC 18.03.2013 after extended check
            it_tmp1 TYPE TABLE OF tt_bseg,
            wa_faglseg TYPE tt_faglseg,
            it_faglseg TYPE TABLE OF tt_faglseg,
            wa_cepct TYPE  tt_cepct,
            it_cepct TYPE TABLE OF tt_cepct,
            it_tmp TYPE TABLE OF  tt_bsid,
            wa_final TYPE tt_final,
            it_final TYPE TABLE OF tt_final,
            wa_final1 TYPE tt_final,
            it_final1 TYPE TABLE OF tt_final,
            wa_kna1 TYPE tt_kna1,
            it_kna1 TYPE TABLE OF tt_kna1.
    *& ALV Data Declaration                                                *
    DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
           wa_fieldcat TYPE slis_fieldcat_alv,
           is_layout   TYPE slis_layout_alv,
           wa_event    TYPE slis_alv_event,
           it_event    TYPE slis_t_event.
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_kunnr FOR bsid-kunnr.
    PARAMETERS : p_bukrs TYPE bseg-bukrs OBLIGATORY,
                        p_dateon  TYPE bsid-budat DEFAULT sy-datum OBLIGATORY.
    SELECTION-SCREEN : END OF BLOCK b1.
    SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-003.
    SELECT-OPTIONS : s_werks FOR bseg-werks,
                        s_sgmnt   FOR  bseg-segment,
                        s_prctr   FOR  bseg-prctr.
    SELECT-OPTIONS : s_umskz FOR bsid-umskz.
    SELECTION-SCREEN : END OF BLOCK b2.
    DATA: v_days TYPE string,
           v_date1 TYPE bsid-budat,
           v_date2 TYPE bsid-budat,
           v_date3 TYPE bsid-budat,
           v_date4 TYPE bsik-budat,
           v_date5 TYPE bsik-budat,
           v_date6 TYPE bsik-budat,
           v_date7 TYPE bsik-budat,
    *     l_age1 TYPE bsid-budat,
    *     l_age2 TYPE bsid-dmbtr,
    *     l_age3 TYPE bsid-dmbtr,
    *     l_age4 TYPE bsid-dmbtr,
    *     l_age5 TYPE bsid-dmbtr,
    *     l_age6 TYPE bsid-dmbtr,
    *     l_age7 TYPE bsid-dmbtr,
           l_age1 TYPE p LENGTH 10 DECIMALS 2,
           l_age2 TYPE p LENGTH 10 DECIMALS 2,
           l_age3 TYPE p LENGTH 10 DECIMALS 2,
           l_age4 TYPE p LENGTH 10 DECIMALS 2,
           l_age5 TYPE p LENGTH 10 DECIMALS 2,
           l_age6 TYPE p LENGTH 10 DECIMALS 2,
           l_age7 TYPE p LENGTH 10 DECIMALS 2.
    CONSTANTS : v_age1(4) TYPE c VALUE 15 ,
                 v_age2(4)    TYPE c VALUE  30,
                 v_age3(4)    TYPE c VALUE  45,
                 v_age4(4)    TYPE c VALUE  90,
                 v_age5(4)    TYPE c VALUE  180,
                 v_age6(4)    TYPE c VALUE  360,
                 v_age7(4)    TYPE c VALUE  360.
    INITIALIZATION.
       sy-title = 'CUSTOMER AGEING'.
    *--------------- S-T-A-R-T O-F S-E-L-E-C-T-I-O-N ----------------------*
    START-OF-SELECTION.
       PERFORM get_data.
       PERFORM process_data.
       PERFORM alv_display.
    *&      Form  GET_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM get_data .
       SELECT  belnr
               gjahr
               bukrs
               dmbtr
               kunnr
               budat
               zfbdt
               zterm
               zbd1t
               shkzg
               FROM bsid INTO TABLE it_bsid
               WHERE kunnr IN  s_kunnr
               AND bukrs = p_bukrs
    *          AND zfbdt <= p_dateon
                   AND budat <= p_dateon
               AND umskz IN s_umskz.
       SELECT      belnr
                   gjahr
                   bukrs
                   dmbtr
                   kunnr
                   budat
                   zfbdt
                   zterm
                   zbd1t
                   shkzg
                   FROM bsad APPENDING CORRESPONDING FIELDS OF TABLE it_bsid
                   WHERE kunnr IN  s_kunnr
                   AND bukrs = p_bukrs
                   AND augdt > p_dateon
                   AND umskz IN s_umskz.
       IF it_bsid[] IS NOT INITIAL.
         it_tmp[] = it_bsid[].
         DELETE ADJACENT DUPLICATES FROM it_tmp COMPARING kunnr.
         SELECT kunnr
                name1
                ort01 FROM kna1 INTO TABLE it_kna1
                                      FOR ALL ENTRIES IN it_tmp
                                      WHERE kunnr = it_tmp-kunnr.
         SELECT belnr
                gjahr
                bukrs
                werks
                prctr
                segment
                FROM bseg INTO TABLE it_bseg
                          FOR ALL ENTRIES IN it_bsid
                          WHERE belnr = it_bsid-belnr
                          AND   gjahr = it_bsid-gjahr
                          AND   werks IN s_werks
                          AND   prctr IN s_prctr
                          AND   segment IN s_sgmnt
                          AND umskz IN s_umskz.
         IF it_bseg[] IS NOT INITIAL.
           it_tmp1[] = it_bseg[].
           SORT it_tmp1 BY segment.
           DELETE ADJACENT DUPLICATES FROM it_tmp1 COMPARING segment.
           SELECT langu
                  segment
                  name
                  FROM fagl_segmt INTO TABLE it_faglseg
                                  FOR ALL ENTRIES IN it_tmp1
                                  WHERE langu = 'EN'
                                  AND segment = it_tmp1-segment.
           REFRESH it_tmp1.
           it_tmp1[] = it_bseg[].
           SORT it_tmp1 BY prctr.
           DELETE ADJACENT DUPLICATES FROM it_tmp1 COMPARING prctr.
           SELECT  spras
                   prctr
                   ltext
                   FROM cepct INTO TABLE it_cepct
                              FOR ALL ENTRIES IN it_tmp1
                              WHERE spras = 'EN'
                              AND   prctr = it_tmp1-prctr.
         ENDIF.
       ENDIF.
    ENDFORM. " GET_DATA
    *&      Form  PROCESS_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM process_data .
       v_date1 = p_dateon - v_age1.                              " 15 days  " Cnanges made by Jaiprakash
       v_date2 = p_dateon - v_age2.                              " 30 days  " Cnanges made by Jaiprakash
       v_date3 = p_dateon - v_age3.                              " 45 days  " Cnanges made by Jaiprakash
       v_date4 = p_dateon - v_age4.                              " 90 days  " Cnanges made by Jaiprakash
       v_date5 = p_dateon - v_age5.                              " 180 days " Cnanges made by Jaiprakash
       v_date6 = p_dateon - v_age6.                              " 360 days " Cnanges made by Jaiprakash
       v_date7 = p_dateon - v_age7.                              " 360 days " Changes made by Jaiprakash
       IF NOT it_bseg IS INITIAL.
    *    DELETE it_bseg FROM wa_bseg WHERE segment = ''.
         DATA: lv_add TYPE i.
         DATA: lv_date TYPE sy-datum.
         LOOP AT it_bsid INTO wa_bsid.
           wa_final-zterm = wa_bsid-zterm.
           wa_final-zbd1t = wa_bsid-zbd1t.
           CLEAR wa_bseg.
           READ TABLE it_bseg INTO wa_bseg WITH KEY belnr = wa_bsid-belnr.
           IF sy-subrc EQ 0.
             wa_final-segment = wa_bseg-segment.
             wa_final-prctr   = wa_bseg-prctr.
             IF wa_bsid-shkzg = 'H'.
               wa_bsid-dmbtr = -1 * wa_bsid-dmbtr.
             ENDIF.
             CLEAR wa_faglseg.
             READ TABLE it_faglseg INTO wa_faglseg WITH KEY segment = wa_final-segment.
             IF sy-subrc EQ 0.
               wa_final-name = wa_faglseg-name.
             ENDIF.
             CLEAR wa_cepct.
             READ TABLE it_cepct INTO wa_cepct WITH KEY prctr = wa_final-prctr.
             IF sy-subrc EQ 0.
               wa_final-ltext = wa_cepct-ltext.
             ENDIF.
    * Calculation for the age buckets of <15, <30, <45, <90, <180 , <360 and >360 days
    *        IF     wa_bsid-zfbdt <= p_dateon AND wa_bsid-zfbdt > v_date1.
    *          l_age1 = wa_bsid-dmbtr + l_age1.
    *        ELSEIF wa_bsid-zfbdt <= v_date1 AND wa_bsid-zfbdt > v_date2.
    *          l_age2 = wa_bsid-dmbtr + l_age2.
    *        ELSEIF wa_bsid-zfbdt <= v_date2 AND wa_bsid-zfbdt > v_date3.
    *          l_age3 = wa_bsid-dmbtr + l_age3.
    *        ELSEIF wa_bsid-zfbdt <= v_date3 AND wa_bsid-zfbdt > v_date4.
    *          l_age4 = wa_bsid-dmbtr + l_age4.
    *        ELSEIF wa_bsid-zfbdt <= v_date4 AND wa_bsid-zfbdt > v_date5.
    *          l_age5 = wa_bsid-dmbtr + l_age5.
    *        ELSEIF wa_bsid-zfbdt <= v_date5 AND wa_bsid-zfbdt > v_date6.
    *          l_age6 = wa_bsid-dmbtr + l_age6.
    *        ELSEIF wa_bsid-zfbdt <= v_date7.
    *          l_age7 = wa_bsid-dmbtr + l_age7.
    *        ENDIF.
             IF     wa_bsid-zfbdt <= p_dateon AND wa_bsid-zfbdt > v_date1.
               l_age1 = wa_bsid-dmbtr + l_age1.
             ELSEIF wa_bsid-zfbdt <= v_date1 AND wa_bsid-zfbdt > v_date2.
               l_age2 = wa_bsid-dmbtr + l_age2.
             ELSEIF wa_bsid-zfbdt <= v_date2 AND wa_bsid-zfbdt > v_date3.
               l_age3 = wa_bsid-dmbtr + l_age3.
             ELSEIF wa_bsid-zfbdt <= v_date3 AND wa_bsid-zfbdt > v_date4.
               l_age4 = wa_bsid-dmbtr + l_age4.
             ELSEIF wa_bsid-zfbdt <= v_date4 AND wa_bsid-zfbdt > v_date5.
               l_age5 = wa_bsid-dmbtr + l_age5.
             ELSEIF wa_bsid-zfbdt <= v_date5 AND wa_bsid-zfbdt > v_date6.
               l_age6 = wa_bsid-dmbtr + l_age6.
             ELSEIF wa_bsid-zfbdt <= v_date7.
               l_age7 = wa_bsid-dmbtr + l_age7.
             ENDIF.
             wa_final-kunnr = wa_bsid-kunnr.
             CLEAR wa_kna1.
             READ TABLE it_kna1 INTO wa_kna1 WITH KEY kunnr = wa_bsid-kunnr.
             IF sy-subrc EQ 0.
               wa_final-name1 = wa_kna1-name1.
               wa_final-ort01 = wa_kna1-ort01.
             ENDIF.
             lv_add = wa_final-zbd1t.
    *     lv_add = wa_final-zbd1t.
             CLEAR:lv_date.
             CALL FUNCTION 'FKK_ADD_WORKINGDAY'
               EXPORTING
                 i_date      = wa_final-budat
                 i_days      = lv_add
    *           I_CALENDAR1 =
    *           I_CALENDAR2 =
               IMPORTING
                 e_date      = lv_date
    *           E_RETURN    =
             wa_final-age1  = l_age1.
             wa_final-age2  = l_age2.
             wa_final-age3  = l_age3.
             wa_final-age4  = l_age4.
             wa_final-age5  = l_age5.
             wa_final-age6  = l_age6.
             wa_final-age7  = l_age7.
             wa_final-total = wa_final-age1 + wa_final-age2 + wa_final-age3 + wa_final-age4 + wa_final-age5 + wa_final-age6 + wa_final-age7.
    *          wa_final-age1  = l_age1.
    *          wa_final-age2  = l_age2.
    *          wa_final-age3  = l_age3.
    *          wa_final-age4  = l_age4.
    *          wa_final-age5  = l_age5.
    *          wa_final-age6  = l_age6.
    *          wa_final-age7  = l_age7.
    *         wa_final-total1 = wa_final-age1 + wa_final-age2 + wa_final-age3 + wa_final-age4 + wa_final-age5 + wa_final-age6 + wa_final-age7.
    *        wa_final-age1  = l_age1.
    *         wa_final-age2  = l_age2.
    *         wa_final-age3  = l_age3.
    *         wa_final-age4  = l_age4.
    *         wa_final-age5  = l_age5.
    *         wa_final-age6  = l_age6.
    *         wa_final-age7  = l_age7.
    *         wa_final-total1 = wa_final-age1 + wa_final-age2 + wa_final-age3 + wa_final-age4 + wa_final-age5 + wa_final-age6 + wa_final-age7.
             IF p_dateon GT lv_date.
               wa_final-age1  = l_age1.
               wa_final-age2  = l_age2.
               wa_final-age3  = l_age3.
               wa_final-age4  = l_age4.
               wa_final-age5  = l_age5.
               wa_final-age6  = l_age6.
               wa_final-age7  = l_age7.
               wa_final-total1 = wa_final-age1 + wa_final-age2 + wa_final-age3 + wa_final-age4 + wa_final-age5 + wa_final-age6 + wa_final-age7.
             ELSE.
               wa_final-age1  = l_age1.
               wa_final-age2  = l_age2.
               wa_final-age3  = l_age3.
               wa_final-age4  = l_age4.
               wa_final-age5  = l_age5.
               wa_final-age6  = l_age6.
               wa_final-age7  = l_age7.
               wa_final-total2 = wa_final-age1 + wa_final-age2 + wa_final-age3 + wa_final-age4 + wa_final-age5 + wa_final-age6 + wa_final-age7.
             ENDIF.
             APPEND wa_final TO it_final.
             CLEAR: wa_final,l_age1,l_age2,l_age3,l_age4,l_age5,l_age6,l_age7.
           ENDIF.
         ENDLOOP.
       ENDIF.
       IF it_final IS NOT INITIAL.
         SORT it_final BY kunnr segment.
         LOOP AT it_final INTO wa_final.
           MOVE wa_final TO wa_final1.
           wa_final1-prctr = ''.
           wa_final1-ltext = ''.
           wa_final1-segment = ''.
           wa_final1-name = ''.
           wa_final1-zterm = ''.
           AT END OF name1.
             SUM.
             wa_final1-total = wa_final-total.
             wa_final1-total1 = wa_final-total1.
             wa_final1-total2 = wa_final-total2.
             wa_final1-age1 = wa_final-age1.
             wa_final1-age2 = wa_final-age2.
             wa_final1-age3 = wa_final-age3.
             wa_final1-age4 = wa_final-age4.
             wa_final1-age5 = wa_final-age5.
             wa_final1-age6 = wa_final-age6.
             wa_final1-age7 = wa_final-age7.
             COLLECT wa_final1 INTO it_final1.
             CLEAR wa_final1.
           ENDAT.
         ENDLOOP.
       ENDIF.
    ENDFORM. " PROCESS_DATA
    **&      Form  ALV_DISPLAY
    **       text
    **  -->  p1        text
    **  <--  p2        text
    FORM alv_display .
       DATA : v_col TYPE i VALUE 1.
       CLEAR wa_fieldcat.
       v_col = v_col + 1.
       wa_fieldcat-col_pos   = v_col.
       wa_fieldcat-seltext_m = 'Customer Code'.
       wa_fieldcat-fieldname = 'KUNNR'.
       wa_fieldcat-tabname   = text-002.
       wa_fieldcat-key       = 'X'.
       wa_fieldcat-outputlen = 14.
       APPEND wa_fieldcat TO it_fieldcat.
       CLEAR wa_fieldcat.
       wa_fieldcat-col_pos   = v_col.
       wa_fieldcat-seltext_m = 'Customer Name'.
       wa_fieldcat-fieldname = 'NAME1'.
       wa_fieldcat-tabname   = text-002.
       wa_fieldcat-key       = 'X'.
       wa_fieldcat-outputlen = 14.
       APPEND wa_fieldcat TO it_fieldcat.
       CLEAR wa_fieldcat.
       v_col = v_col + 1.
       wa_fieldcat-col_pos   = v_col.
       wa_fieldcat-seltext_m = 'City'.
       wa_fieldcat-fieldname = 'ORT01'.
       wa_fieldcat-tabname   = text-002.
       wa_fieldcat-key       = 'X'.
       wa_fieldcat-outputlen = 35.
       APPEND wa_fieldcat TO it_fieldcat.
    ***   CLEAR wa_fieldcat.
    ***   v_col = v_col + 1.
    ***   wa_fieldcat-col_pos   = v_col.
    ***   wa_fieldcat-seltext_m = 'Payment Term'.
    ***   wa_fieldcat-fieldname = 'ZTERM'.
    ***   wa_fieldcat-tabname   = text-002.
    ***   wa_fieldcat-key       = 'X'.
    ***   wa_fieldcat-outputlen = 14.
    ***   APPEND wa_fieldcat TO it_fieldcat.
    *  CLEAR wa_fieldcat.
    *  v_col = v_col + 1.
    *  wa_fieldcat-col_pos   = v_col.
    *  wa_fieldcat-seltext_m = 'No. Of Days'.
    *  wa_fieldcat-fieldname = 'ZBD1T'.
    *  wa_fieldcat-tabname   = text-002.
    *  wa_fieldcat-key       = 'X'.
    *  wa_fieldcat-outputlen = 14.
    *  APPEND wa_fieldcat TO it_fieldcat.
    * CLEAR wa_fieldcat.
    * v_col = v_col + 1.
    * wa_fieldcat-col_pos   = v_col.
    * wa_fieldcat-seltext_m = 'Baseline Date'.
    * wa_fieldcat-fieldname = 'ZFBDT'.
    * wa_fieldcat-tabname   = text-002.
    * wa_fieldcat-key       = '

  • When doing goods receipt and the movement from QA to unrestricted use there

    Dear all,
    when doing goods receipt and the movement from QA to unrestricted use there is an yellow error message
    Error in EXIT_ SAPMM07_004 : Object 10462311E06/52,Char."LOBM_UDCODE,Value 01 A0,error"VALUE_NOT_FOUND"
    Inspection Lot : 10000283512
    System Status : UD ICCO SPRQ

    Hi,
    Did you use the follow up action in the UD code selection? It looks from the error that program is unable to find the UD code.
    Kindly check the configurations in QM and see that everything is working fine?
    Alternatively, if you are using the follow up action, then remove that first. Do the GR using MIGO -- this will create the inspection lot. Confirm the inspection using QA11 by entering the UD code for acceptance. Thereafter the the stock will rest in QI status. Use MB1B and perform the transfer posting with movement 321 to bring the stock to unrestricted use.
    Regards,
    Sushant

  • How to Remove the Stock from 916

    Hi All,
    I have a few questions Related to WM.
    1. Our End users are able to do the PGI Without Confirming the Transfer Order. Once they Do the PGI.After doing the Billing they are coming abck and saying that the stock shud not Present in 916.
    Would you please let me know how can I clear the stock from storage type 916 and the bin created with Delivery number.
    Is there any Possibility to Remove the stock from 916......?
    Waiting for your Response .............
    Sai Kumar

    Hi
    What our friend is saying is that in the config for item categories for deliveries if you set this flag it means that the PGI wont happen unless the TO creation and confirmation are both at status 'C'
    Also ABAP techie
    I see  we asking for points again, what are you going to do with them when you get them?
    I dont think that this is the point of this Forum!!
    Regards
    Frenchy

Maybe you are looking for

  • MAC (10.6.8) users having permission issues with windows 2003 AD and NetApp SAN environment.

    I have created a cifs share that is being accessed by Mac users that are part of a windows 2003 AD.  When the user edit data and save it back to the share, the security permission are reset and none of the other users can see the new data unless the

  • No automatic row fetching (DML)

    All, I want to generate a process which fetches my rows automatically. I've done this before several times. But now my new process is not fetching rows. I don't get an error message, the text fields are just empty. During creating the new process I s

  • Disable Change password on first time login in portal

    Hi Experts, This question is with regard to the UME user. Portal asks its users to change the password on the first login. How can i remove this property. whatever password the admin assigns should be used to login at all the times. The portal should

  • DOUBT IN REPEATING FRAMES

    IN MY REPORT I AM CREATING 2 QUERIES,1 THROUGH LAYOUT. AND 2ND QUERY IN DATA MODEL.I USED REPEATING FRAMES FOR THE 2ND QUERY BUT WHEN I RUN MY REPORT I CANNOT VIEW THE REPEATING FRAMES IN MY OUTPUT.PLS HELP ME TO SOLVE THIS PROBLEM.

  • ABAP Tools for CRM Web Application

    Hello, I am creating a Web Dynpro Java Application for OM/CRM. I am working with CRM_ORDER_READ, and CRM_ORDER_MAINTAIN Rfcs. Please tell me the important transactions, tables, etc to trace and evaluate on whats going on when I update from Portal. Al