Confiemed qty in Afru table

Hi expert
   How to get the cancelled operations in the afru table
   since i need to calculate the confirmed qty
Regards

Dear Manoj,
while selecting records from table AFRU in where condition maintain  field Stokz and stzhl fileds as follows.
Select filed1 field2
         from Afru into table itab
         where stokz <> 'X ' and stzhl = '  '.
This will solve your problem. 
Feel free to ask if you have any doubts.
Regards,
Vijay

Similar Messages

  • Wrong picture in AFRU table for scrap...

    Hi Experts,
    When I confirming co11 and entering scrap, it show wrong picture in AFRU table.
    e.g. : For first time i entered 2 scrap.
            Seconf time i entered  1 scrap.
    But in table it shows 5 scrap.
    Which is the right table ? How to finf scrap qty for same prod. order. ?
    Yusuf
    null

    no answer. Closed.

  • View in afru table

    i am using a view in afru table and when i m using rso2 and retriving data it is giving a error smeng refers to a differant table . Will u give some clue to ractify this problem

    Since it is a Sap table refered to a differant table i can not change and i need the filed name smeng which is refering to afvv-meinh . In this situation how i will generate view

  • Mat doc not getting updated in AFRU table

    Hi All,
      While doing the confirmation cancellation for the rework order the referance material document is not getting updated in the AFRU table.
      The referance operation set is used for the rework production order and there are no component assigned ,the components to be issued are  entered at the time of confirmation.
    The material document is getting updated in case of confirmation in AFRU table but the same is not getting updated in WABLNR field in case of cancellation of confirmation.
    When I checked MSEG all the material documents are observed with referance to the order number but the same are not displayed in AUFM and AFRU table.
    This behaviour is not obeserved in case of normal production orders. what can be the reason behind the same?
    Regards
    Ankush

    Dear Ankush
    please see FAQ note 540392 question 11.
    11.        Question:
    Despite successful goods movements, the material document is not
    updated in field AFRU-WABLNR. Where do I find the document number?
    Answer:
    As of Release 3.1H, the system provides the reference from
    confirmation to material document via table AFWI. The system still
    only uses AFRU-WABLNR in the case of header confirmations or
    confirmations for an individual operation. With milestone
    confirmations or with separate goods movements, in other words goods
    movements that are posted in the update program or via requests
    (BAPIs, collective entry, mass processing, BDC/PDC), table AFWI is
    always supplied due to technical reasons.
    BR Sabine

  • AFRU table data - taking long time to access

    Hi,
    In my report i am accessing the afru table, but it takes a lot of time. what should i do ? how can i archive the data from this table ?
    Regards,

    Hi Khushi,
    Your query is simple but quite bad in terms of performance.
    Change it to something like:
    SELECT [...]
    FROM afko
    INNER JOIN afvc ON afko~aufpl = afvc~aufpl
    INNER JOIN afru ON afvc~rueck = afru~rueck
    WHERE afko~aufnr = [...]
    For more information you can check OSS note 187906 Performance: Customer developments in PP and PM.

  • AFRU table when a confirmations at the order level is entered?

    Hello,
    I know that the users can enter a confirmation in the operation level (with the co11n transaction) or in the order level (with the co15 transaction).
    What I want to know is if physically, in the AFRU table, when a user confirm directly an order (co15), do we find lines of confirmation for all the operations with quantities for all the operations (proportional) or just one line with the operation empy (at 0 for exemple) and all the quantity in this line?
    Thanks a lot,
    Regards,
    Julien

    Hi,
    When you confirm order using CO15 at order level, there will be only one entry in AFRU table for all operations and Operation field in the AFRU table would be blank.Only Order number woule be present.
    Regards,
    Krishna Mohan

  • Updation of Custom Fields in AFRU table Using Customerexit

    Hi all,
    I added two fields in CO11n Tcode using SCREEN EXIT - CONFPP07 and iam trying to update these two fields in AFRU table
    using CONFPP05.  But iam unable to update these two field .
    see this code in CONFPP05
      LOOP AT afrud_tab.
        afrud_tab-zzshift = wa_afrud-zzshift1 .
        afrud_tab-zzoperator = wa_afrud-zzoperator1 .
        MODIFY afrud_tab.
      ENDLOOP.
    Plz help me regarding this..

    Thanks for reply
    Ya i added two fields in confpp07 .
    see the code :
    *&  Include           ZXCOFTOP
    tables : afrud.
    DATA : WA_AFRUD TYPE AFRUD,
            IT_AFRUD TYPE TABLE OF AFRUD.
    Include           ZXCOFU24
    MOVE afrud-zzshift1 TO wa_afrud-zzshift1.
    MOVE afrud-zzoperator1 TO wa_afrud-zzoperator1.
    Even though it is not updating . except these two fields.
    Regards,
    Srinivas

  • Data not coming in AFRU table for 21.05.10 for sometime

    Could you please tell me that why does this happen?
    For a particular date i.e. for 21.05.10, in the afru table the data was not there, it was saying "No Entries for that date" (in se16). Actually there is a z-report which was not showing the per ton draw calculation for that particular date. But for the other dates, it was showing fine.
    Infact, when in the afru table it was showing "No Table Entries found for that particular date", parallely in the z-report it was showing a Default value "341" for all items for 21.05.10.
    But just after 10 mins. the data got updated and its showing fine.
    What can be the problem? Coz its happenning often, and we the abapers are getting tight scold. But the program is correct. I have checked.
    Please Suggest.
    Saheli

    Saheli,
    You need to let us know how you program is designed, if the data is fetched from AFRU table and in AFRU table there were no entries for a posting date, how can you get a value in your custom report?
    Please explain what your report does, so that we can i think and suggest as what might be going wrong.
    Regards,
    Prasobh

  • Material doc in AFRU table

    Hi Guys,
    Need a little help, Can any body tell me why sometimes there are enteries in AFRU table with material doc number (WABLNR) and some time material doc number field came as blank. Even though in MSEG i see material doc number (MBLNR) but its blank in AFRU-WABLNR?? Any help be appreciated.

    >
    samiaalis wrote:
    > Hi Guys,
    >
    > Need a little help, Can any body tell me why sometimes there are enteries in AFRU table with material doc number (WABLNR) and some time material doc number field came as blank. Even though in MSEG i see material doc number (MBLNR) but its blank in AFRU-WABLNR?? Any help be appreciated.
    AFRU table is for order confirmation
    Material document will create if the material is subjected to goods movement
    In case if you use auto GI and GR, then at the time of confirmation, system will post the goods movement
    at the time of operation confirmation, if the operation is linked to goods movement( if raw material is assigned to operation or final operation related to GR, that means auto GI or GR, then along with confirmation, material document will create.
    In case for particular operation , consider you have n't assign any raw material for the operation , at that time, for that confirmation, No material document is posted, for that confirmation, material document field in AFRU, will be blank

  • Enquiry in afru table

    Dear all,
              can any one pls give me the BAPI to update the AFRU table?
    Regards,
    Pooja

    Hi 
       There is BAPI to change Production order .
    BAPI_PP_ORDER_CHANGE
    But in AFRU table which fields you have to modify ,try to see.
    Also there is two function modules
    CO_OCM_BT_AFRU_DATA_GET - Getting the date based on Production order / Process Order
    CO_RU_BT_AFRU_SET - Update the table
    Please reward if useful.

  • Poor performance for the 1st select everyday for AFRU table

    Hello everyone, I have performance problems with AFRU table. Every day, the first time I run a "Z" transaction, it takes around 100-120 seconds, but the second time and following it only takes four seconds. What could I do, in order to reduce the first execution time?
    This is the select:
    SELECT * FROM AFRU WHERE MANDT = :A0 AND CATSBELNR = :A1 AND BUDAT = :A2 AND PERNR = :A3 AND STOKZ <> :A4 AND STZHL = :A5
    The execution plan for this select takes index AFRU~ZCA with an acceptable cost of 6.319. Index AFRU~ZCA is a nonunique index with these colums: MANDT + CATSBELNR + BUDAT + PERNR
    I'll appreciate any ideas.
    Thanks in advance,
    Santi.

    What database system are you using (ASE, Oracle, etc?).
    If ASE, for the general issue of the first exection of a query taking longer, the two most likely reasons would be
    a)  the table's data has aged out of cache so the query has to do a lot of physical i/o to read the data back into cache
    or
    b) the query plan for the query has aged out of statement cache and needs to be recompiled.
    This query looks pretty simple, so the data cache seems much more likely.
    To get a better feel, some morning run the query with
    set statistics io on
    set statistics time on
    then run it again and look for differences in the physical vs logical i/o numbers and compile vs execution times.
    You could use a scheduled event (Job Scheduler, cron job) to run the query or some query very like it a little earlier in the day to prime the data cache with the table data.

  • Sum of qty of four tables comapring with other table

    I had four tables voy,bl,subbl,dcd, i have to find sum of qty form SUBBL and qty from DCD for all subbl group by CCD
    TABLE VOY
    INTVCN VCN
    10 TEST
    TABLE BL
    VCN BL
    10 200
    10 201
    TABLE SUBBL
    subbl     bl     subbl     ccd     qty
    100     200     s1     c1     100
    101     200     s2     c1     60
    102     200     S3     C2     20
    103     201     s1     c1     40
    104     201     s2     c1     20
    TABLE DCD
    crg_seq_no     subbl     qty      weight
         1     100     50     
         2     100     25     
         3     101     30     
         4     101     20     
         5     102     20     
         6     103     20     
         7     103     10     
         8     104     20     
    Following query was executed but we are getting wrong sum for qty (SUBBL)
    Query
    select d.ccd,sum(d.qty),sum(f.qty) from
    (Select distinct a.ccd,a.subbl,a.qty from subbl A, bl B, voy C
    Where a.bl = b.bl and b.vcn = c. intvcn and c. vcn = 'TEST') D,subbl E, dcd F
    where d.ccd = e.ccd and d.subbl = e.subbl and d.subbl = f.subbl
    group by d.ccd
    Result
    CCD SUM(D.QTY) SUM(F.QTY)
    C1 420 175
    C2 20 20
    Expected result
    CCD SUM(D.QTY) SUM(F.QTY)
    C1 220 175
    C2 20 20

    Hi,
    This query is OK with you.
    But i don't know why you use distinct in first inline view
    select d.ccd,sum(d.qty),sum(f.qty) from
    (Select distinct a.ccd,a.subbl,a.qty from subbl A, bl B, voy C
    Where a.bl = b.bl and b.vcn = c. intvcn and c. vcn = 'TEST') D,
    (select subbl,sum(qty) qty from dcd group by subbl) F
    where d.subbl = f.subbl
    group by d.ccd
    Bye
    Chitta

  • Extended Index for an Index in table AFRU

    Dear All,
    I have found a check box selected in the AFRU table which means Extended Index,
    What does it mean.
    Please give your input on this one
    Appreciating your Inputs
    Regards
    Ramchander Rao.K

    Hi,
    fields present in the extended index will have only unique combination entries.
    For a unique index, each value combination for the index fields can be 
    contained at most once in the table. The index fields in this case have
    key attribute, that is they already uniquely identify each record of the
    table.                                                                               
    The uniqueness of the value combinations for the index fields is checked
    automatically by the database system. If there is a violation (for     
    example in an INSERT operation) an error message (DUPLICATE RECORD) is 
    given.

  • Unpredictable behavior u201CFOR ALL ENTRIES INu201D for table AFRU

    In AFRU table there are  8 Rows
    AUFPL     APLZL     ISMNW     BUDAT                  STZHL
    1647     1     95     27.02.2009     0
    1647     1     95     27.02.2009     1
    1647     1     95     27.02.2009     0
    1647     1     95     27.02.2009     3
    1647     1     95     27.02.2009     0
    1647     1     95     27.02.2009     5
    1647     1     95     27.02.2009     0
    1647     1     155     12.03.2009     0
    Using below Statement I am able to fetch only 5 rows. Select for all entries statement is not picking
    Up other 3 rows.
    SELECT aufpl aplzl ismnw budat stzhl FROM afru
          INTO TABLE gt_afru
          FOR ALL ENTRIES IN gt_afvc
          WHERE aufpl = gt_afvc-aufpl
           And aplzl = gt_afvc-aplzl.
    Five Rows Selected
    AUFPL     APLZL     ISMNW     BUDAT                STZHL
    1647     1     95     27.02.2009     0
    1647     1     95     27.02.2009     1
    1647     1     95     27.02.2009     3
    1647     1     95     27.02.2009     5
    1647     1     155     12.03.2009     0
    When I comment u201CFor all Entriesu201D and use statement like below, it s picking up all the 8 rows.
        SELECT aufpl aplzl ismnw budat stzhl FROM afru
             INTO TABLE gt_afru
             WHERE aufpl = '0000001647'
               AND aplzl = '00000001'.
    Please Help me understand why it s behaving like this. What is the technicality behind?

    SELECT ... FOR ALL ENTRIES IN <itab> or  WHERE <cond>  ...
    If you specify a field of the internal table <itab> as an operand in a condition, you address all lines of the internal table. The comparison is then performed for each line of the internal table. For each line, the system selects the lines from the database table that satisfy the condition. The result set of the SELECT statement is the union of the individual selections for each line of the internal table. Duplicate lines are automatically eliminated from the result set. If <itab> is empty, the addition FOR ALL ENTRIES is disregarded, and all entries are read.
    the bold italic part of the above post is the reason for having 5 rows instead of 8 rows.When "For all entries "  statement encountered the union selection occurred.And that is why you get only 5 rows.For further help on "For all entries" go through this documentation.[For all Entries|http://help.sap.com/abapdocu/en/ABENWHERE_LOGEXP_ITAB.htm]
    Thanking you,
    Pulak
    Edited by: Pulak  Mandal on Mar 16, 2009 3:29 PM

  • Workcenter in MSEG or some other table

    Dear All,
    In our industry, we are creating a single production order for one month production of that material. Now at the time of Confirmation we can change the Workcenter as per our requirement and do the confirmation. In AUFM & MSEG tables I am not able to find this Workcenter Field. And my management require report as workcenter-wise.
    I can get the data from AFRU Table as workcenter is maintained there. But the main problem in it is we have a process of partial cancellation also. (e.g I have confirmed Material X = 100 NO [some qty. of X material say 40 NO has been issued to some other order. So net remaining qty of X = 60 NO]. But after one or two days we get to know that confirmation of Material X was wrong and actual entry is of only 50 NO. Now we do the partial cancellation through MB31 transaction [102 Mvt.]. Now this partial cancellation is not getting updated in AFRU Table). So I can not pick the data from AFRU Table also.
    So the only way (as per my knowledge) is to get the data from MSEG Table but no workcenter is there in this table.
    So please suggest a solution.
    Regards,
    Vishal
    +91 9812335975

    Dear Vishal,
    1) if Your using ECC 6.0, then u can get work center wise confirmation report
    2) Go to COOIS, i list input confirmations, then input plant and Execute
    3) after executing, just Go to Change Layout & add Work center
    4) Now System will show the confirmations Against which work centers carried out
    Hope this Helps
    Regards
    kumar

Maybe you are looking for

  • SharePoint 2013

    HI, Here is what I am trying to do. I am basically getting the current logged in user . I started the  page(ASPX) without master page,  used SP Services and some jQuery and everything seems great and working.  However, the moment, I added master page

  • IPod Classic will not play newly downloaded songs

    Ok, I recently downloaded some new MP3's (from a 3rd party site, mp3fiesta.com) into iTunes. The songs play perfectly on iTunes and they also have no issue playing on my iPhone 16. On the other hand, they refuse to play on my iPod classic 160. I use

  • Keychain is no longer able to update itself when I upgrade an application

    Recently, I have been experiencing a problem with Keychain Access. Whenever I upgrade an application that stores a password in my Keychain, I get the dialog box asking me if I want to update my keychain to correspond to the new version of the applica

  • HP Office jet 6700 Premium e-All-in- one. Not printing from Mac Pro

    Moved to the Mac printing forum for better coverage. Bob Headrick,  HP Expert I am not an employee of HP, I am a volunteer posting here on my own time. If your problem is solved please click the "Accept as Solution" button ------------V If my answer

  • FG sales order should consume the PIR of SFGs

    Hi , I need some advice on following scenario. My client wants - Make to order for FG material, and Make to stock for SFGs. So that SFGs are made into stock by putting PIR, and FG production is initiated by sales order and will consume SFG stock. As