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.

Similar Messages

  • 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

  • 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

  • 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

  • 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.

  • 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.

  • Enquiry in VBFA table

    Hi all,
    How can I genarate a report of finding Net value of Return and Cancelled invoices by Querying VBFA table ?
    Regards,
    Pooja

    hi,
    Check these FM.
    READ_VBFA
    WB2_READ_VBFA_BACK_TO_START
    Use BKPF / VBRP table to fetch delivery details.
    BKPF-AWKEY = VBRP-VBELN
    You could try FM: RV_ORDER_FLOW_INFORMATION.
    Check this thread..
    How to read ducument flow (VBFA) using FM ?
    Also some info which u can chk:
    May be you can try the following FMs:
    SD_VBFA_ARRAY_READ_VBELV
    SD_VBFA_READ_WITH_VBELV
    SD_VBFA_SELECT
    SD_VBFA_SINGLE_READ
    SD_VBFA_TRANSFER_TO_BUFFER.
    regs,
    hema.

  • 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

  • Values from CRCO Table.

    Hi all ,
    I need to retreive some values from CRCO table based on the balues fetched from AFRU table. I am writing a select like this
    select single KOKRS KOSTL into table itab from CRCO
              where OBJTY = 'A'
                 and OBJID  = AFRU-ARBID
                 and ENDDA >= AFRU-BUDAT
                 and BEGDA <= AFRU-BUDAT.
    As I need to retreive a single record from above select, but as a result i am getting multiple records.
    Can anybody tell me what other keys from AFRU I can specify in the select in order to fetch only a single record.
    Thanks,
    Mungala.

    Object ID you can get from ARBID from AFRU Table. Put value of ARBID in OBJID in table CRCO & get values of KOKRS & KOSTL. That value will be unique for an work center But if ARBID values are many for an AUFNR(order no.) that mean you are using different work center where in may be you are using different cost center(i think controlling area will remain same). & hence SAP creates different records.
    Regards
    Prashant Jaiswal

Maybe you are looking for

  • PSE 06 Slide show problem

    When I burn a slideshow (jpeg pics)in Photoshop Elements 06, the CD does not load the slideshow. Instead, it just lists the files on the CD. My DVD player does not like the CD, either.

  • My iMac 24" Freezes constantly

    After upgrading to version 10.4.8 my iMac just freezes in almost every circumstance... this is like working with Windows!!!! What can I do?

  • Raise Event Activity in a process

    Hello ! I wonder if someone can help me with some advice about the raise activity in a process. I want my process to send a message to an agent and wait for the response. I have configured my process to do this by having a send transitioning into a r

  • NSU N76 application won't open

    Hi, Installed NSU (v.1.3.85en) for N76 on my computer (Windows XP SP1). Installation was succesful, only the application won't open. Intro screen starting application pops up but nothing else. Anybody experienced this problem too or has a solution? M

  • I have problem for start my iphone , it shows you connect with itunes

    why