52 Weeks Movement type routine help

Hello Friends
I have a requirement that i need to get from the Material Segment table the movement type 551-711 for 52 weeks. in accordance with plant,stor_loc and material into an ODS A. This ODS A will have plant,material,stor_loc and a field say 'balance'.This balance should have the diffrence of 551-711 in it.i need to know where and what codes should i write.Ill have to write a code in Start Routine to only get the 551 and 711 movement types for 52 weeks and probably then in Update Rule Routine of object 'balance' ill have to my calculation.If this is not the right way please direct to what it should be and also if you could please provide me the codes as i have not a had a lot of experience with routines and coding.
Thank you once again for all your help in advance.

HI Ronit,
As per understanding of your requirement, you only need the data for the specific movement types and you want the report for the difference of these movement types.
First selcting the data can be done at info package level or transfer rules or the update rules or the start routine. i would suggest the selection at infopackage level.
i assume that the key figure balance is mapped directly from the source rather than a calculated one.
if this is the case, then write a simple code in the trasfer rules. first in the movement type hardcode the selection to "551" and "711" at transfer rule level or the info package level.
secondly for the balance key figure use this code at the transfer rule level
if
    movement type = "551".
    result = TRAN_STRUCTURE-balance.
    elseif movement type = "711".
    result = -1 * TRAN_STRUCTURE-balance.
endif.
Finally use the summation function at the update rule level ( i suppose you dont have the movement type field in the info provider ODS)
If the movement type field is in the info provider ODS or if the "balance" is a claculated field or  the data at the source is not maintained at weekly level and you are trying to sum it in the info provider level. then you cannot achieve this at any level i.e. for example if you use the coding to calcualte at start routine then as it is just packet based and you can get the difference of data contained in the data packet and not the whole data.
this can be achieved only by a loopback method of repopulating the data once again back into ODS from the same ODS.
My reply might be a solution for or might be too confusing. please read through it and let me know if its of any help. if this doesnot help you. please elaborate your question.
regards,
raj

Similar Messages

  • How to copy movement types

    hello sdn users
    this is deepak
    did any one of u worked on a movement type which is copied from the standard
    how to copy movement types
    please help it was asked in an interview
    thanking u in advance

    Hi,
    Select the movement type and go to next screen. Give range as 101 to say Y01.
    then you can specify target mvt types between this range. You cannot specify new mvt type as Z01 in this case.
    hope it clarifies.
    Seema

  • Movement Type for Goods Issue to Project

    Hi All
    Could you please tell me which movement type use for issue to Investment Project and issue for Customer Project ?
    Regards,
    Thang

    Dear Cao,
    Refer this link which will give some important information about Movement Types.
    http://help.sap.com/saphelp_40b/helpdata/ru/fc/6cec6eb435d1118b3f0060b03ca329/content.htm
    Regards,
    Sandeep

  • Report for material consumption based on movement type

    Can any one guide me in developing a report to find the material consumed during a certain period ,
    selectio screen should be based on material no , plant , location , month

    You would need to fetch the accounting number (BELNR) from BKPF based on the purchase order number (XBLNR) and then proceed accordingly with BSIK and BSAK.
    Select .......
              from bkpf
              into table <it>
              where xblnr in so_xblnr
    Something like above.
    Few other important tables in MM and FI:
    A501 Plant/Material
    EBAN Purchase Requisition
    EBKN Purchase Requisition Account Assignment
    EKAB Release Documentation
    EKBE History per Purchasing Document
    EKET Scheduling Agreement Schedule Lines
    EKKN Account Assignment in Purchasing Document
    EKKO Purchasing Document Header
    EKPO Purchasing Document Item
    IKPF Header- Physical Inventory Document
    ISEG Physical Inventory Document Items
    LFA1 Vendor Master (General section)
    LFB1 Vendor Master (Company Code)
    NRIV Number range intervals
    RESB Reservation/dependent requirements
    T161T Texts for Purchasing Document Types
    EINA Purchasing Info Record- General Data
    EINE Purchasing Info Record- Purchasing Organization Data
    MAKT Material Descriptions
    MARA General Material Data
    MARC Plant Data for Material
    MARD Storage Location Data for Material
    MAST Material to BOM Link
    MBEW Material Valuation
    MKPF Header- Material Document
    MSEG Document Segment- Material
    MVER Material Consumption
    MVKE Sales Data for materials
    RKPF Document Header- Reservation
    T023 Mat. groups
    T024 Purchasing Groups
    T156 Movement Type
    T157H Help Texts for Movement Types
    MOFF Lists what views have not been created
    AGKO Cleared Accounts
    ANAR Asset Types
    ANAT Asset type text
    ANEK Document Header Asset Posting
    ANEP Asset Line Items
    ANEV Asset downpymt settlement
    ANKT Asset classes- Description
    ANLA Asset Master Record Segment
    ANLB Depreciation terms
    ANLC Asset Value Fields
    ANLH Main asset number
    AT02T Transaction Activity Category- Description
    AT02A Transaction Code for Menu TIMN
    AT10 Transaction type
    AT10T Name of Transaction Type
    BKDF Document Header Supplement for Recurring Entry
    BKORM Accounting Correspondence Requests
    BKPF Accounting Document Header
    BLPK Document log header
    BLPP Document log item
    BLPR Document Log Index and Planned Order (Backflush)
    BNKA Bank master record
    BP000 Business Partner Master (General Data)
    BPBK Doc.Header Controlling Obj.
    BPEG Line Item Total Values Controlling Obj.
    BPEJ Line Item Annual Values Controlling Obj.
    BPEP Line Item Period Values Controlling Obj.
    BPGE Totals Record for Total Value Controlling obj.
    BPJA Totals Record for Annual Total Controlling Obj.
    BSAD Accounting- Secondary Index for Customers (Cleared Items)
    BSAK Accounting- Secondary Index for Vendors (Cleared Items)
    BSAS Accounting- Secondary Index for G/L Accounts (Cleared Items)
    BSEC One-Time Account Data Document Segment
    BSEG Accounting Document Segment
    BSID Accounting- Secondary Index for Customers
    BSIK Accounting- Secondary Index for Vendors
    BSIM Secondary Index, Documents for Material
    BSIS Accounting- Secondary Index for G/L Accounts
    CEPC Profit Center Master Data Table
    CEPCT Texts for Profit Center Master Data
    COBRA Settlement Rule for Order Settlement
    COBRB Distribution Rules Settlement Rule Order Settlement
    COKA CO Object- Control Data for Cost Elements
    COSP CO Object- Cost Totals for External Postings
    COSS CO Object- Cost Totals for Internal Postings
    CRCO Assignment of Work Center to Cost Center
    CSKA Cost Elements (Data Dependent on Chart of Accounts)
    CSKB Cost Elements (Data Dependent on Controlling Area)
    CSLA Activity master
    FEBEP Electronic Bank Statement Line Items
    FPLA Billing Plan
    FPLT Billing Plan- Dates
    GLPCT EC-PCA- Totals Table
    KNA1 General Data in Customer Master
    KOMK Pricing Communication Header
    MAHNV Management Records for the Dunning Program
    REGUT TemSe - Administration Data
    SKA1 G/L Account Master (Chart of Accounts)
    SKAT G/L Account Master Record (Chart of Accounts- Description)
    SKB1 G/L account master (company code)
    T003T Document Type Texts
    T007S Tax Code Names
    T087J Text
    TAPRFT Text tab. for investment profile
    TKA01 Controlling Areas
    TKA09 Basic Settings for Versions
    TKVS CO Versions
    TZB0T Flow types text table
    TZPAT Financial Assets Management product type texts
    VBSEGS Document Segment for G/L Accounts Document Parking
    VTBFHA Transaction
    VTBFHAPO Transaction Flow
    VTBFHAZU Transaction Activity
    VTBFINKO Transaction Condition
    VTIDERI Master Data Listed Options and Futures
    VTIFHA Underlying transaction
    VTIFHAPO Underlying transaction flows
    VTIFHAZU Underlying transaction status table
    VTIOF Options Additional Data
    VWPANLA Asset master for securities
    Also, visit the following links:
    http://www.sap-img.com/sap-download/sap-tables.zip
    http://www.erpgenie.com/abap/tables.htm
    http://goldenink.com/abap/files_in_sap.html

  • What is movement type?canu pls tell indetail.

    hi to abap gurus
    what is movement type?canu pls tell indetail.
      i will definitely  reward points for the people who give answers

    Hi,
    Movement type is a classification key indicating the type of material movement (for example, goods receipt, goods issue, physical stock transfer).
    The movement type enables the system to find predefined posting rules determining how the accounts of the financial accounting system (stock and consumption accounts) are to be posted and how the stock fields in the material master record are to be updated.
    For example, Purchase Order deliver to Vendor for 100 materials.Vendor sends the material 100 nos, So in that plant Store person recieves the material against Purchase order so at the point of recieving 100 nos qty have to update and as well as Value also.For updating qty and value w.r.t PO Movement type is the main role.
    Assume Reciept register like Raw mtrl.semifinished,etc has separate register
    Same type if you recieve raw material automatically sytem posts that document to raw material account in terms of Valuation class. In SAP Material connect with Valuation class,Valuation class assigned to transaction key like BSX,GBB etc so in transaction key we have to assign Valution class with G/L account.
    In Movement types relates with Transaction key.
    so Goods reciept w.r.t PO 101 Mvt type.
    Vendor returns 122 or 161.
    Goods issue 201.
    Sales 601.
    Material sends to Sub contracting vendor 541.
    Please check this link for different movement types.
    http://help.sap.com/saphelp_dimp50/helpdata/EN/7b/2bd74064d50b06e10000000a155106/content.htm
    Regards,
    Ferry Lianto

  • Amending Movement types - re. Reversal/ follow on movement types    - Help

    Hi
    I have copied a Reversal movement type  982 from a SAP standard 602
    Now I wish to add movement type 982 to the reversal of movement type 981
    How do i do this please ??
    Currently there are no entries at all for the reversal of 981
    Edit - New entries is also Greyed out
    Please help
    Many thanks

    Hi
    Using SE16 T156, I can see that 981 was copied from Z0A movement type
    However this movement type no longer exists in our system - probs deleted
    Would it be wise to delete movement type 981
    and then re-create again copying from 601 and adding the correct reversal type ???
    - Or is there another way that I can add the reversal to 981 as it currently stands ?
    Thanks
    TOny

  • Inventory Cube and Movement Types

    Hi All,
    I have few changes made to a Zcube modeled after 0IC_C03
    1. I have changed the validity to Cal Day, Material (and removed plant form the validity table)
    2. I included Movement Type as a characteristics (it will be easy to count by movement types and validation)
    I am not sure whether the issue movement type reqlated quantity should be -ve value (but I multiplied the values by -1)
    Now,
    When I run the query with material, Movement type an cal day I get almost 3000+ records for one material where there is only 160 records are in the cube. the query brings all dates between movement types though the records are not existing in the cube. I am not sure whether it is due to the validity table (just material and cal date).
    I have given the key date in the query as well.
    Also should we make the issue qty as -ve and receipt qty as +ve and the values the same way?
    Thanks,
    Alex.

    Hi Swetha,
    First check if you have that movement type is present in PSA request at the data source level in BW.  If you have it in PSA and not being updated into the target means some transformation or routine is filtering it out during the update.  Check the code if it is expected or not.  If not present in PSA and present in R/3 check the Init Selections if there are any selective Init from the Data source.
    There is no way you can directly update in the report unless you have that record in the backend infocube.
    Based on this you can figure out how to recover the missing movement types.
    Hope it helps
    Regards
    Srikanth

  • ODS with Movement type in Inventory

    Hi,
    I have loaded the data into the ODS 0CM_DS03 for detailed stock reports with  movement types.For some of the movement type quantity value showing two/multiple times with each stock types A,B,Q etc.
    In the ODS update rule 2LIS_03_BF for the quantity keyfigure do I need to use any routines for process keys(as like in 0ic_c03).
    Please help with your suggestions/inputs.
    Thanks,
    Soujanya

    If you activate standard update rule for cube 0ic_c03 and 2lis_03_bf extractor, there already is some routines implemented in it. Check if they cover your requirement.

  • Relation between Inventory Process keys and movement types

    Dear All,
    Is there any way to find the relation between Inventory process keys (which is in SBIW-> Settings for Application specific data sources(PI) -->Logistics -->Settings for IBU Retail / CP --> Transaction key maintenance for SAP BW) and movement types .
    Thanks in advance...
    Regards,
    Raju

    Hi,
    Please read the note below.
    Note 353042 - Howto: Activate transaction key (PROCESSKEY)
    It has something for you ....
    The process key (0PROCESSKEY and 0BWAPPLNM) of the InfoSources has not been filled. As a result, no key figures are updated because of the update routine of the participating InfoCube and along with it no records are inserted into the InfoCube. In each update routine, the system checks the content of the PROCESSKEY. If this field has no contents, then no data is written into the InfoCube because of the IF condition in the update rules.
    Solution
    So that you can work in the above mentioned InfoSources, you MUST activate the determination of the process key. This is done with the help of Transaction MCB_ which you can find in the OLTP IMG for BW (Transaction SBIW) in your attached R/3 source system.
    Here you can choose your industry sector. 'Standard' and 'Consumer products' are for R/3 standard customers, whereas 'Retail' is intended for customers with R/3 Retail only.
    You can display the characteristics of the process key (R/3 field BWVORG, BW field 0PROCESSKEY) by using Transaction MCB0.
    If you have already set up historical data (for example for testing purposes) by using the setup transactions (Statistical Setup Programs) (for example: Purchasing: Tx OLI3BW, material movements: OLI1BW) into the provided setup tables (for example: MC02M_0SCLSETUP, MC03BF0SETUP), you unfortunately have to delete this data (Tx LBWG). After you have chosen the industry sector by using  MCB_, perform the setup again, so that the system fills a valid transaction key for each data record generated. Then load this data into your connected BW by using 'Full update' or 'Initialization of the delta process'. Check, whether the system updates data into the involved InfoCubes now.
    If all this is not successful, please see Note 315880, and set the application indicator 'BW' to active using Transaction 'BF11'.
    Hope this helps.
    Raj

  • Inventory cube with Movement Type

    In standard Inventory cube 0IC_C03 we have added movement type and loaded the data(followed the process exactly as mentioned in the How to handle Inventory management and compressed).
    After loading the data materialwise valuated stock qty and value is matching, but when we drill down movement typewise(for ex.101,102 etc) data is not matching with R/3.All 101 movement types showing in negative values.
    Do we have to do any changes in the standard routines if we add movement types in the cube 0IC_C03?.We are loading the data based on processing keys as per the standard routines.
    Please help me with your inputs.
    Thanks in advance..
    Soujanya

    Hi,
    1)Receipt and Issue key figures already avilable in the cube right?.Still do I have to add in the zic_c03?.
    I would like to suggest you to take fields of the cube as it is the fileds available in BF datasource . And any way have those Kf mentioned by you are already in 0IC_C03 cube,so no need to take them here also.
    2)If we drill down based on movement type in the report we have to include on receipt and issue key figures?.
    In the drill down report , you better take KF 0QUANT_B,0VALUE_LC into columns and Movement type into Rows.
    3)We shouldn't look valuated stock qty and valuated stock value based on movement type?
    Yes,It does not make scence.
    With rgds,
    Anil Kumar Sharma .P

  • Everytime i go to watch a video on youtube, weather it be the mobile site, desktop version or the app, it always says 'video unavailable on this device' this only started happening in the last few weeks! Can someone help???

    Everytime i go to watch a video on youtube, weather it be the mobile site, desktop version or the app, it always says 'video unavailable on this device' this only started happening in the last few weeks! Can someone help???

    Most YouTube content requires the Flash plugin. Sometimes it's necessary to uninstall then reinstall that plugin.
    Uninstall the Flash plugin then reinstall new >  Troubleshoot Flash Player | Mac OS
    Very important to uninstall the currently installed plugin first.
    Now launch Safari and try a video.
    If you have the ClickToFlash extension installed, that can prevent Flash based video from streaming. It can also be installed as a plugin in /Library/Internet-Plug-Ins.
    And check to see if Safari is running in 32 bit mode. Right or control click the Safari icon in your Applications folder then click Get Info. If the box next to:  Open in 32 bit mode  is selected, deselect, quit then relaunch Safari.
    You may also need to delete the cache associated with Safari .
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy/paste:   ~/Library/Caches/com.apple.Safari
    Click Go the move the Cache.db file from the com.apple.Safari folder to the Trash.
    Quit and relaunch Safari. Try a video.

  • Different movement types for store Physical Count process

    Hi Experts
    Would like to ask for your advice in terms of using different movement types for physical inventory process.
    The scenario is like this:
    1) Our client uses different counting processes for store inventory, with both annual full stock take AND spontaneous ad-hoc counting which is more frequent and involve probably around 30 articles a week.
    2) Both types of counting involve count result interface from a 3rd party POS system
    3) Since it is count result interface, we are considering the standard PI process (MI01, MI04, MI07, MI31, MI20, etcetc)
    4) However the standard movement type is 701/702 while our client request a different financial posting, hence different movement types, for the ad-hoc counting
    So the question is very simple: Is there a way for SAP to determine using 701/702 when it is a full stock take, while using another set of Z-movement types when it is a ad-hoc count. Bare in mind that both information are the count result, not a variance adjustment, from external POS system.
    Appreciate very much for your help!
    BR
    Dom

    System determine 701/702 in the IMS . refer t code OBYC - Trans GBB-  gen modfier INV - GL Account assignment.
    regards
    manu

  • Error in MIGO of Subcon PO in MTO scn, not triggering Movement type 543/E

    Dear Consultants,
                                  I am trying to perform Goods receipt against a Subconctracting PO, in a MTO scenario. The components are linked to Sales Order (Special Stock - E). I have maintained '0' in the Individual / Coll requirements field in the MRP 4 view of the component.
    So after creation of PO(Subcon), I am trying to perform MIGO - without issuing components to vendor as 541/E movement type for componenets is not allowed in standard.
    While performing MIGO I am getting the error no stock available with vendor, the system is trying to trigger 543/O movement type whereas I am expecting 543/E to be triggered for the components.
    I am also not able to perform 311/411 E movement type for the components as they are linked to WIP Batch.
    Can anyone sujjest if there is a way by which the MIGO should trigger 543/E during MIGO.
    Thanks
    Arindam.

    Hi
    i donr think the movement type 543 E will trigger as the subcontracting only supports 543 O in standard , you need to do customizing as follows
    Also check in SPRO > Logistics - General > Tax on Goods Movements > India > Business Transactions > Subcontracting > Maintain Movement Type Groups > here for Movement Type Group "0002", Movement Type "543 E" should be maintained.
    just check following link for the subcontracting with sales order ,
    [Sub Con 1|http://help.sap.com/saphelp_470/helpdata/en/4d/2b90b043ad11d189410000e829fbbd/content.htm]
    [subcon 2|Subcontracting for project stock;

  • Amount on Goods receipt for return orders is wrong with movement type 653

    Hi All, I am sorry if it is a simple question because i am an abap'er.
    My requirement is to create return sales order (with ref.to Billing document) and deliver and PGI for the return orders. This should go to sales order stock. Accounting document should be generated for material document and the amount should be picked up from condition type (if man.cond. type exist) else from material master.
    1) Created a sales order (Bought in item cat) - Create PO (Non stock) - Receive goods (MIGO) - Create Delivery (VL01N) -   PGI (Movement type 601 and special stock indic. 'E') - Create billing document (F2 type from VF01)
    So far it is good. The account document is created (PGI - cost of goods) with correct amount as desired
    The next scenario is if the material is returned? This is where we are having issues
    Created sales order with ref.to billing doc. (S.O: RE. Item.Cat. Return Bought in (YRBI)... this is pretty much same as bought in except few things which are YRBI  - Delivered - PGI (Goods returns. unrestricted) Movement type 653 - Problem comes here.
    a) If i put special stock indic 'E' in 'Return bought in item.cat - There is no accounting document generated for 653 movement type.
    b) if i maintain space instead of 'E' in return bought in item.cat - there is an accounting document but the manual cost is not copied to accounting document and it is picking up from material master which we dont want and The stock is not showing up in sales order.
    I did my research (forum, OSS, google, and in help.sap.com) before posting here but no help.
    I have checked account assignment categories for 'A' - (some post explained this) I tried changing values but no help.
    I even tried changing the schedule line category to DN but no help.
    I dont know what i forgot to change or check but i have tried everything what i know and from help from different sources ... still couldnt get it.
    Original requirement is to make the return stock as sales order stock and this can also be returned to vendor. If there is a manual cost in return sales order, the PGI accounting document should be created with this condition value else from material master.
    My pricing settings are good.
    It would be really helpful if any one guide me to configure the process or atleast if anyone tells me what am i missing... .

    Have a look at any of the following notes:-
    1)  Note 171989 - Sales-order-related productn: Custmr exit COPCP002
    2)  Note 520000 - FAQ: Valuated special stocks
    3)  Note 557582 - User exit and valuated sales order stock
    4)  Note 580228 - Incorrect prices for materials procured externally
    5)  Note 983193 - Docu:Externally procurd material in valtd sales order stock
    thanks
    G. Lakshmipathi

  • Goods Receipt Report With 101 movement type using bapi_goodsmvt_create

    Dear Abapers,
            i am getting some problem, i got requirement like Goods Receipt Report with 101 movement type using
    bapi_goodsmvt_create and data should upload through excel sheet.
    still facing problems, i have searched sdn forum n sdn code also, but relevant answer i could not find.
    What are all the inputs i need to take and please give some valuable inputs to me.
    please do help ..... thanks for advance..
    Thanks & regards,
    Vinay.
    Moderator message : Spec dumping is not allowed, show the work you have already done. Thead locked.
    Edited by: Vinod Kumar on Sep 27, 2011 10:58 AM

    Dear Abapers,
            i am getting some problem, i got requirement like Goods Receipt Report with 101 movement type using
    bapi_goodsmvt_create and data should upload through excel sheet.
    still facing problems, i have searched sdn forum n sdn code also, but relevant answer i could not find.
    What are all the inputs i need to take and please give some valuable inputs to me.
    please do help ..... thanks for advance..
    Thanks & regards,
    Vinay.
    Moderator message : Spec dumping is not allowed, show the work you have already done. Thead locked.
    Edited by: Vinod Kumar on Sep 27, 2011 10:58 AM

Maybe you are looking for