Historicize - Incoming Sales Orders

Hallo,
I extract SD Sales: Document Item data from DataSource 2LIS_11_VAITM into a DSO Document Items.
I should historicize the Incoming Sales Orders.Therefore, I add an additional key (0CALMONTH) (u201CStatistics dateu201D in DS) in the DSO.
New key: order number |item number| 0CALMONTH
In the start-routine I should distinguish the follow cases:
1. New item
If there is a new item (0RECORDMODE=empty), then the fields are mapped 1:1 to DSO. Incoming Sales Order value = Net value of billing item (NTWR).
2. Modify an existing Item
In this Case I get 2 Items from the Source. A Before- image (0RECORDMODE=X), and an After-Image (0RECORDMODE=empty). To determine the Incoming Sales Order value (positive or negative), I must calculate a delta between new and old Incoming Sales Order value.
In addition I have to look, whether it is already a changing in the actual month.
Incoming Sales Order value = Incoming Sales Order value (actual month) + delta( Net value After_image / Net value Before_image).
3. Delete item (0RECORDMODE=R).
Incoming Sales Order value = - Sum (all net values of existing item)
Example:
DSO before:
Order| Item | Calendar month | Net value  | Currency
4711 |10__|02.2008________|1.000, 00__| EUR
4711 |10__|03.2008________|200, 00___| EUR
DataPackage:
Record Mode| Order| Item | Statistic date | Net value | Currency
X__________|4711 |10__|02.2008________|1.200, 00__| EUR
empty______|4711 |10__|02.2008________|1.500, 00__| EUR
DSO after:
Order| Item | Calendar month | Net value | Currency
4711 |10__|02.2008________|1.000, 00__| EUR
4711 |10__|03.2008________|500, 00____| EUR
Have anyone a idea, how could i realize it. (Steps).
Thanx  Caro

As already described above the KE4F does not solve the problem.
The incompleteness check still shows missing segments, even if they have been created via KE4F.
The only thing that resolves the problem at the moment is the manual change of each position, after KE4F with deleting the segment and creating a new one. But we have many orders with a high number of positions so the manual effort is much too high.

Similar Messages

  • History - Incoming Sales Orders!

    hello,
    i load data from 2LIS_11_VAITM into BI. Now, i should historicize the changes of "Incoming Sales Orders" per month/year in my DSO "Incoming Sales Orders". I use BI 7.0
    The rules in my start-Routine of Transformation
    1. If a new Position(recordmode = empty) is insert,then map 1:1   
       Incoming Sales Order = netvalue of position.
    2. Change of a existing position
       in this case i get a Before-Image(recordmode = 'X') and a After-Image(recordmode =empty).
       Incoming Sales Order = Incoming Sales Order(actual month) + delta(value After-Image/value Before_Image)
    3. Delete position
    Incoming Sales Order = - Sum ( all booked values of the current position)
    Example:
    01.02.2008 a new position with value 1.000,00 was inserted.
    PSA:
    recordmode |Bel_|pos|date______|value
    _____''____|1000|10_|01.02.2008|1.000,-
    DSO:
    |Bel_|pos|0CALMONTH|netvalue
    |1000|10_|02.2008__| 1.000,-
    At 05.03.2008 the value raise to 1.200,-
    PSA:
    recordmode |Bel_|pos|date______|value
    ____'X'____|1000|10_|01.02.2008|1.000,-
    ____''_____|1000|10_|05.03.2008|1.200,-
    DSO:
    |Bel_|pos|0CALMONTH|netvalue
    |1000|10_|02.2008__| 1.000,-
    |1000|10_|03.2008__| 200,-
    In the same month(20.03.2008) the value raise again.
    PSA:
    recordmode |Bel_|pos|date______|value
    ____'X'____|1000|10_|05.03.2008|1.200,-
    ____''_____|1000|10_|20.03.2008|1.500,-
    DSO:
    |Bel_|pos|0CALMONTH|value
    |1000|10_|02.2008__|1.000,-
    |1000|10_|03.2008__|500,-
    At 10.04.2008 the position was deleted.
    PSA:
    recordmode |Bel_|pos|date______|value
    ____'R'____|1000|10_|10.04.2008|-1.500,-
    DSO
    |Bel_|pos|0CALMONTH|value
    |1000|10_|02.2008__|1.000,-
    |1000|10_|03.2008__|500,-
    |1000|10_|04.2008__|-1.500,-
    Could anyone help me to realize it.. I'm a absolut beginner in ABAP.
    regards sunny

    As already described above the KE4F does not solve the problem.
    The incompleteness check still shows missing segments, even if they have been created via KE4F.
    The only thing that resolves the problem at the moment is the manual change of each position, after KE4F with deleting the segment and creating a new one. But we have many orders with a high number of positions so the manual effort is much too high.

  • Incoming Sales Order to COPA

    Hello,
    If we activate Incoming Sales Order scenario in COPA, then it creates a COPA document when sales order is created or changed.
    1. What happens when it is billed, does it creates one more COPA document with new record type F, and also retains the older one with record type A
    2. Also we need to activate for a given SALES ORDER TYPE, which will be like 3-5% of total sales orders that will be created, if not, it will create COPA documents for all other SALES ORDER TYPES as well, when the order is created, which is not required, and will lead to huge redundancy in data...How can i achieve this?
    Cheers
    Balla

    Hi Ajay,
    your suggestion (BAPI_COPAACTUALS_POSTCOSTDATA,..) sounds interesting.
    As per now, I never had the requirement to transfer "some" incoming sales orders to CO-PA and others not.
    From my point of view due to the fact that the record type "A" posting never gets "reversed" if the sales order is billed or cancelled there is only limited additional value if the incoming sales order transfer to CO-PA is activated.
    BR Christian

  • Forecasting Based planning, consider incoming Sales orders, Consume PIR's

    Hello Guys:
    I am in real Problem about this one: I am implementing forecast-based MRP for our client which is a trading company: buys, keeps in storage and sells goods (R/3 ECC 6). We are using material forecast on a monthly period, and run MRP on a weekly period since POs are to be created weekly (therefore we also use the "Splitting indicator" to split monthly forecast values to weekly requirements)
    The way MRP calculates future stocks in this situation (MRP type VV) is like this:
    Current stock
    + Open POs to arrive
    - Forecast Requirement
    = Future stock
    The problem with that one is that if there is an SD order or delivery in the future, SAP does not count in that one as well. It is a real problem, just imagine that in two weeks we have a forecast of 10 pieces of a material. SAP will propose Preqs based on this 10 piece consumption, even if we have an SD sales order for that week on 30 pieces. (by the way the SD order is in the list of MD05 but SAP does not count in that one for future stock reductions).
    If I modify the MRP type in customizing OMDQ, I can make SAP to count in real consumptions (sales orders) in the future stocks: I set "MRP procedure" to PD (MRP) or "R1" (Time-phased materials planning). In this case MRP calculates like this:
    Current stock
    + Open POs to arrive
    - Forecast Requirement
    - Real future requirements (sales orders)
    = Future stock
    So in this case SAP will recommend double quantities to purchase: once for the forecast reqs and on the other hand for the real sales orders.
    It is a trap, SAP should reduce the forecast requirements with the real requirements. The really bad news is that there is a switch for this in OMDQ for the MRP types called "Reduce forecast" but it is not working: I have tried all the combinations of codes in the frame "Use forecast for MRP" but it can only decrease req for the current month and only on a timely basis code "2" for MRP procedure "PD" or "R1".
    Thanks for Help.
    Sweth123

    Hi Mario:
    I am using MRP type PD , Running the forecast using MP30 which generate the forecast requirement.
    I go to MD61 , I Slected Material Forecast option and Copied the forecast requirements as planned independent requirement,
    AFter that when i run MD02 and go to MD04 Screen.
    System Displays MRP Element: UnPlrq----Forecast quantity  --1000
                                MRP Element VSF for Planned Independent requirement -1000.
    Based upon historical consumption data , if there ia requirement of 1000pc , system is proposing 2000 pcs to buy.
    Is there any config setting i need to change so that system won't double the requirement quanitities?
    Please clarify
    Sweth.

  • IMP:Forecast Consumption/Netting by incoming Sales orders in SNP

    Dear All,
    I need your help to understand the logic of Forecast netting by Sales orders in SNP. I can see the details in /SAPAPO/RRP3 but getting puzzled for soem SKUs. We don't have any PP/DS and GATP implemented.
    Below are the details and question based on that:
    I am releasing my forecast monthly and Sales orders as usual are coming from ECC and netting happens. Then next month again i have my forecast release then will the existing Sales orders will consume my this month's forecast (we are following backward/ foreward consumption type with 35 days back and 1 day forward, so as per the time period, SO can consume Forecast). I am a bit confused because pegging relationship is created between the demand and supply element and so new forecast shouldn't be consumed by the existing Sales orders. Am i correct here?
    Secondly, could somebody explain the difference between the 'Overview and detail' tab under the Forecast tab in /SAPAPO/RRP3. Sometimes i see some data under the 'Withdrawal Qty' column in Detail view of Forecast tab. Could somebody explain when it is populated.
    Regards
    Bishwajit

    Hi,
    I think your first question is regarding the pegging relationships used for forecasting.  Even when you release a new forecast, the system remembers the forecast relationship.  So, pegging occurs but in the sense that it pegs to forecast - in general - not to one specific forecast order in the system.  If you desire to "reset" these relationships, then you need to run the program for reorganization of independent requirements (/SAPAPO/MD74).
    Your second question relates to the existence of a withdrawal quantity and differences between the overview and details in /SAPAPO/RRP3.  The withdrawal quantity represents the amount of forecast that has been "reduced" from the forecast (corresponding to actual shipments that have been PGI'd against deliveries).   Forecast consumption occurs when SO's and Deliveries are created and saved and reduction occurs when they are PGI'd.  Withdrawal quantity corresponds to the reduction...
    Hope this helps!
    Chris

  • PRICING Procedure in SAP for an Incomming Sales Order IDOC

    Hi Friends,
    Here is a situation what we have and what we intend to do.
    We would be getting a Sales Order IDOC and when it hits the SAP..it comes with
    -Material, Qty and Price per material
    -Total Freight
    -Total Tax
    i.e the Pricing conditions are not maintained in SAP at all..we would just get the IDOC externally and the SAP needs to read the material, Qty at line item,
    take the total freight as it comes, and total Tax as it comes in the Idoc.
    My thoughts were to have all the Conditons PR00 (ZR00), KF00 (ZF00), UTXJ (ZTXJ) . ZR00 to set as Manual condition. ZF00 as header Freight and Manual condition, ZTXJ as header condition and Manual.
    I therefore was trying to figure out the best way to set the pricing procedure.
    Please let me know if I am on right track if not which is the way I need to set.
    Thank you
    Ravi

    HI Ravi,
    I think your issue is solved now...so for the benefit of SDN members....can you share the solution..as I am also working on the same requirement !!
    Thanks in advance
    Mayank

  • Query on Activate Transfer of Incoming Sales Order - CO-PA

    Hi ..
    I have a question, where I have 3 option when I drop down in Inc sales order which is
    1) Active with date of entry
    2) Active with Deliv Date/Billing Plan Deadline (Using KWMENG)
    3) Active with Deliv Date/Billing Plan Deadline (Using KBMENG)
    My question what is the differencen between 1,2 and 3 ...
    In what occasions should use them, also I would like to know what is the significant difference between 2 and 3.
    Pls advise
    TQ
    Nathan

    Hi
    Here you define when you want to transfer the documents from SD module to COPA.
    1) Active with date of entry - This transfers the data on the date of creation of sales order to COPA
    2) Active with Deliv Date/Billing Plan Deadline (Using KWMENG)
    3) Active with Deliv Date/Billing Plan Deadline (Using KBMENG)
    This transfers the data in the period of billing or delivery date. The difference is that the receiver value field is different in 2 and 3.
    Award points so as to say thanks.
    Regards,
    Suraj

  • Incoming orders in COPA not working if Sales Order blocked for Credit Check

    Hi all,
    We need to build a report showing all incoming sales order by entry date and/or change date (change of values or quantities later on). COPA allows to do this, but the problem is that COPA line item table is only updated if the sales order is released from credit check (VKM3). I am looking for a solution to be able to record sales orders in COPA even if they are still blocked for credit check. By doing that we will be able to report all sales orders entered from COPA and provide basis for commissions calculation to the business.
    I have investigated possible COPA enhancements like COPA0005 but it doesn't seem to be used at the time of sales order save.
    Thanks.

    Hello ,
    Thanks for the reply
    As you said , the credit check in the service order is information message "Credit check (maximum percentage for ope
    exceeded)" .
    If you enter and come out this message then one more message will come , i.e., "The business transaction can not be carried out" detail message -  System status CNOK is active (ORD XXXXXXX).
    with the above message , system will not allow to do the Service order release.
    In this particular case , we have done the VKM1 for the sales order to unblock the order from credit check . But again system is checking the credit check at service order (created w.r.t sales order) . we are not able to control this .
    we also suggested the solution to the customer , saying removal of credit check for service orders . But customer requires credit check to happen at both the documents.

  • Sales order qty not updated in copa

    Hi Gurus,
    My client has activated Costing based COPA.
    We have activated Incoming sales orders with option
    Transfer with date of deliery/scheduled billing date.
    When We are posting sales order we are able to see a copa document with record type A.
    In that document we want to see the Sales order quantity or delivery quantity, delivery date fileds.Please let me know what all the value fields We need to assign.
    Do I need to write any derivation rule for incoming sales arders also.
    we are able to capture the  total price, material etc from the sales order in COPA document.We need only sales order qty or Delivery qty or delivery date to be updated in COPA document.
    Please suggest me
    Regards
    Chaitanya

    Hi Chait,
    Pl check whether your client has assigned SD Qty Fields to COPA Quantity fields in KE4M. Sd quantity fields are FKIMG- Billed Quantity, KWMENG-Order Quantity and the same shall be assigned to ABSMG-Sales Quantity. If not, please maintain the same. Otherwise, we need to look for some other work around solution.
    Trust this resolve your problem!
    Cheers!

  • Getting data in GATP Planning area on open Sales Orders yet to be PGI'ed

    This is in context of allocation planning.
    I understand there are two internal GATP relevant key figures AEMENGE (allocation) and KCQTY (incoming sales order quantity) which come over from R3. These two key figures are part of any allocation planning design to track consumption of allocation from sales orders.
    We have a requirement to also get information on open sales orders not PGI'ed into GATP planning area. Is there a way to do this without configuring SNP and only core interface ? (Releasing data from SNP to GATP does not work since the levels are different)

    Hi
    Just to correct you. The tcode is LBWQ and not LBQW.
    Well as per your lines that it is not possible for 400 users to manually feed the data after changes .I totally agree.
    To help get the same functionality we have v3 jobs or direct delta which serves the same job for you.
    This is a job that runs at a regular interval as per you set it in the tcode LBWE.
    If the Datasource is Delta Enabled then only these jobs would be available to run for those data sources and if incase the DS is Full then you dont need these jobs at all.
    Thus once you set your DS as Delta. Go to LBWE select the DS you are working upon for delta
    After finding the DS you see two options update mode and update.
    Update mode -you can choose the type of update mode for example direct, queued and so on.. Generally we use Queued Detla
    Update - you have to set here how do you want it to run and from wat date etc.clickin on job control gives you a window where in u can set all the fields as per ur requirement.
    Once after these are done your job would automatically run and collect the changed records to the delta queue and from there you can pull the same using info pack.
    Hope that clarifies your doubt to some extent.
    Edited by: Puneet Chawla on Jan 29, 2010 8:52 AM

  • Find status of a sales order created using EDI IDOC

    Hello everyone,
       I have IDOC created for incoming sales order using FM 'IDOC_INPUT_ORDERS'.
    When a sales order is created manually iva VA01, it prevents the order from being saved when a specific error is hit unless user resolved it first.   However, when the order is created via EDI IDOC, the error is hit and it cannot be created.  In the sapmv45a program, i will to say that if it is an EDI IDoc transacion for the order, let it bypass the error and create the order.  
         Can anyone pls tell me how to check the status of a sales order being created using EDI IDOC ?
    Sy-batch does not work.
    Thank you in advance.
    Joyce

    Joyce,
    If you pay attention the code in FM it is exporting value of da_edi_sign to memory id "SD_EDI_ACTIVE" stored in constant "da_memory_id". ('CONSTANTS: da_memory_id(13) VALUE 'SD_EDI_ACTIVE'.)
    In your program you have two you have two options.
    1. Declare a constant as in the FM and use that as mentioned below:  
    CONSTANTS: da_memory_id(13) VALUE 'SD_EDI_ACTIVE'.
    IMPORT v_memid FROM MEMORY ID da_memory_id.
    2. Hardcode memory id as below:
    IMPORT v_memid FROM MEMORY ID 'SD_EDI_ACTIVE'.
    Hope this resolves your problem.
    Gajendra

  • User exits/BAdIs for Forecast consumption by sales order

    Hello Experts,
    My question here is: When Sales Order either new or change comes from ECC to APO, what are key fields considered for Forecast Consumption? Is requirements strategy is considered from location product master or Sales Order brings own data from ECC into it's own structure? I have read from SAP help or documentation that Sales Order coming from ECC does not use requirement strategy from Product Master. Rather it get its own fields like planning strategy/group / requirement class from ECC. It uses location product master only to get consumption parameters like forward/back word consumption days. So I am thinking to use some user exits or BAdIs to enhance the incoming sales orders to consume separate forecast categories in APO.
    My requirement is:
    For the same one product we want sales orders (can have two different order types or identify by a custom field) to consume two different order categories (ie. FA & FC) by enhancing incoming sales orders. So we have regular 1)Forecast key figure which is 'FA' category and 2)Forecast Additional key figure which is FC category. When we release two separate forecasts from DP we release into these two key figures and categories. Now we want incomping sales orders to consume these two categories separately when our sales orders are having two different order types (i.e OR and ZR).
    I want to kow what way we can acomplish this? Are there any user exits or BAdIs for this purpose?
    I looked arount BAdI /SAPAPO/DM_BADI_CSP and I am not quite sure it's going to help. Are there any others?
    I appreciate if anybody explain me the process?
    Thanks in advance!
    Raj

    Standard Logic --- Whatever plant is visible in the Sales Order, the sales order will appear under that Product Location in SNP
    There is no standard way of making the sales order visible in another location.
    Depending on your requirement(Ex: Forecast Consumption, planning etc),using APO-BW we can simulate the requirements in the other plant which can be a nightly run and not immediate.
    Now coming to your question, if the delivering plant is A, how does ECC Delivery document know when the sales order has plant B that the delivering plant is A.
    Can you be more specific.
    THanks
    Kumar

  • MRP type for two different types requirments( Sale order and PIRs)

    Dear All,
    We have requirment  some materials we have sales order and PIRs. For sales order we want to consider with "MRP type" as PD and PIR we want to consider "MRP type" as VB manual reorder point planning.
    Is there any stadard  solution.
    If standard solution not possible also poivde some inputs on enhancement.
    Regards
    Sailendra
    Edited by: nivedita yadav on May 7, 2010 2:31 PM

    Sailendra,
    your post is confusing, how you want to different MRP type for same material?
    and why its needed?
    1) you can use MRP type PD , and incoming sales order will search in existing stock or will create procurement proposal ( depends upon what strategy you are using)
    2) If you  are using VB then when ever you stock will fall below the reorder point you maintained in material master , system will create new procurement proposal, here the manual means the value you need to maintained manualy for reorder point and safety stock.
    In automatic reorder point planning, both the reorder level and the safety stock level are determined by the integrated forecasting program.
    The system uses past consumption data (historical data) to forecast future requirements. The system then uses these forecast values to calculate the reorder level and the safety stock level, taking the service level, which is specified by the MRP controller, and the material's replenishment lead time into account, and transfers them to the material master.
    hope it will help you.
    Regards
    Ritesh

  • Issue with UPC codes in Inbound sales orders via EDI.

    Hi All
    We are on ECC 6.0. We have incoming sales orders through EDI IDOCS. In the incoming IDCO the customer can provide either of the following information in that sequence.
    1.  GTIN number
    2.  Customer material number
    3.  UPC code
    4.  Old Product code.
    We need to derive the correct material number for each customer. Now I can achieve this through standard material determination using material determination type access sequences in the order specified above. However I cannot do the same, as we need to use material determination for genuine promotions. For example I can maintain a material determination record to map UPC 123456789 to Material number ABC in SAP R/3. However we do have situation where in for a particular season or depending upon the ATP situation we may have to derive Material XYZ (SAP material number) in case customer orders material ABC. So in other words if I use material determination to derive my SAP material number for in-coming IDOCS based on UPC codes then I would need to have multi level material determination. I.e. From an IDOC for UPC code 1234566789 I derive material ABC and then for material ABC derive material XYZ.
    I tried setting up these two layers of material determination in the standard system. It is possible only if I use a substitution reason which copies the material entered as a sub-item. We do not want to maintain the sub-item in sales order and relevant documents for a lot of other reasons. Is there a way I can use standard Material determination/substitution to derive this multi level search without haveing to copy the sub-item in sales order? Am I missing some settings here? If not is it possiblt to suppress the sub item from being derived in SAP using some user exit in sales order processing?
    For an IDOC I could have used standard SAP tables to identify SAP material number based on UPC code. However the problem is we have multiple SAP material numbers assigned to one UPC code. So it is not possible to identify a unique material number just based on the UPC code.
    I would like to know if any of you experts have encountered a similar situation and if so what is the ideal way to resolve this issue. Any comments/suggestions/guidance is welcome. You can also reply at my e-mail id [email protected].
    Thanks

    Hi Daniel,
    Can you please which IDoc message type you are using to create sales order using IDoc?
    Also check in IDoc, what is the value of ACTION & EINKZ fields in segment E1EDP01?
    Regards,
    Amit

  • Consumption of sales orders based on Sales order Doc Date

    Hi Guys
    I am using 40 Strategy currently. The consumption of sales orders now happens based on requirement delivery date. But my customer want to serve his customers based on first come first serve as the production is always getting delayed. Now irrespective of req. del date, the stock should be consumed based on the sales order document creation date to fulfill first come first serve concept.
    I am not finding suitable requirement class in SAP. Please help
    Regards
    KP

    Hi Krishna,
    The scenario is quite not clear...Could you please brief it out further.
    Because, in strategy 40, if a sales order comes in then sytem checks for any avaliable stock is there or not. If not then it looks for any open proposals available for PIR's, if so then it consumes the PIR based on consumption mode and period defined in material master or MRP group. If no open proposals, then system creates the new one.
    So always the first come sales order will be consuming the stock or PIR, until the next MRP run.
    Today a sales order has been coming in for 100 qty on 07.09.2014 delivery date and consumes the available stock of 100.
    Tomorrow, another sales order has een coming in for same qty but delivery on 05.09.2014, then in next MRP run system will consume the 100 qty for 05.09.2014 and a proposal will be generated for
    07.09.2014
    If the business scenario is something like above, then to avoid this, a PGI job can be scheduled always as next step to MRP run so, that PGI will be done for all the sales order which has stock and rest will be in error log. By this way one production plant can ensure that always the first incoming sales order is delivered.
    Also an another option would be is to run the transaction V_V2 to reschedule the sales order before delivery, this will work out if the sales order line items are not account assigned. In this reschedule transaction, priorities can be given for item date of creation as 1 and followed by delivery priority and rest....
    Please check out and let us know even if you have diffrent solution as well.
    Regards,
    Chinna

Maybe you are looking for

  • Installing Boot Camp Update 3.3

    Hi. Currently, I've installed Boot Camp 3.0 on Windows 7 (32-bit) with my Snow Leopard installation disk. Would it be possible to upgrade straight to Boot Camp 3.3, or do I need to install updates 3.1 and 3.2 first? Thanks.

  • Zen V Plus Line-In Record

    I'm recording various shows on TV and Satellite radio by line-in audio recording. Can anyone tell me if the V Plus can charge and record line-in at the same time? If not, how long can it line-in record before the player shuts down? I have the Nano Pl

  • E-mail validation code

    Can anybody send to me E-mail validation code? Please don't send below code again. This is not working properly. please send a perfect E-mail validation code. Thank you. public static boolean validEmail(String strEmail)          Pattern pat=Pattern.c

  • I'm unable to move a folder in the library viewer

    In Aperture 3.1.2, in the Library viewer, under Projects & Albums, I have a bunch of folders (Personal, Research, Teaching, etc.), and these folders have sub-folders (2011, 2010, etc., as well as some with non-numeric names). With most of these folde

  • What format gives you the best resolution for Home videos to be put on IPAD 2

    I am a new user to the IPAD I want to move some of my Home videos on to the I pad.  What is the best format?  I have sync the same videos to I phone 4 they look great but on the Ipad they are grainy