I need to load for a historical period for sales order ? how to load it?

Hi all,
I need to load the data for the historical period. Say 012.2008 month data. I have deleted the set up tables and trying to reload the setup tables.
but i can find the calendar year, month nor fiscal period.
i can see only sales document number along witht the company code.
How to identify the sales document number for 012.2008 from r/3 and run the setup tables.
Pls help me on this!!
Thanks
Pooja

Hi,
   You are trying to do a historical load for 2LIS_11? In that case, check the VBAK/VBAP table, and find the document ranges based on the posting date. VBAK will give you the ranges, while putting the same range in VBAP wll give you the number of item documents that would be loaded. You would be able to split the doc ranges in that case for doing parallel setups.
Alternatively if the data volume is low, do a full setup and then put the selections in the info package itself.
Regards.

Similar Messages

  • Warning needed for duplicate PO numbers on sales orders

    Hi all,
    We are using SBO 2005A SP: 01  PL: 19.
    We need a warning when adding a marketing document (Sales Order) with duplicate reference number. Presently SBO has the functionality only works on AR invoice and AR credit note. We
    need a solution to also make it work for Sales Orders. We are getting many duplicate orders from our customer and we are ending up shipping them the same order more than once.
    So we thought of creating a formatted search and assign it on the reference field but I need a query to solve this.
    Can any one help on this.

    Hi Ram,
    You could use an alert or an approval to prevent this happening.
    An alert would be something like the following query:
    select
         T0.DocNum,
         T0.CardCode,
         T0.CardName,
         T0.DocDate,
         T0.NumAtCard
    from
         ORDR T0
    where
         T0.NumAtCard is not null
         and T0.NumAtCard <> ''
         and T0.CANCELED = 'N'
         and (select count(T1.DocNum) from ORDR T1 where T1.CardCode = T0.CardCode and T1.NumAtCard = T0.NumAtCard and T1.CANCELED = 'N') >= 2
    group by
         T0.DocNum, T0.CardCode, T0.CardName,
         T0.DocDate,T0.NumAtCard
    order by
         T0.CardCode, T0.NumAtCard, T0.DocNum
    Kind Regards,
    Owen
    Message was edited by:
            Owen Slater

  • I want a push button for line items in my sales order entry screen.

    Hi,
    I want a push button for line items in my sales order entry screen.
    How can I do so?
    Thanks.

    Hi Kumar ,
    To have a push buttons you need to first assign a pf-status .
    here a sample code for a push button and its handling :
      set pf-status 'SELECT' .
    at user-command .
      describe table t_lpr lines w_lines .
      case sy-ucomm .
        when 'SELECTALL' .
          set pf-status 'SELECT' excluding 'SELECTALL' immediately.
          do w_lines times .
            read line w_line field value w_check . " INTO W_CHECK .
            if w_check = space .
              w_check = 'X' .
              modify line w_line field value w_check.    "INTO W_CHECK .
              add 1 to w_line .
            endif .                        " IF W_CHECK = ' '
          enddo .
    Thus when you say pf-status say 'select' , Double click on that and you find a screen eher you can select icons and assign a function code to it!
    Hope it helps!
    Much Regards,
    Amuktha .

  • I need a Badi that is triggered when saving Sales order in both Va01 and Va

    Hi
    I need a Badi that is triggered when saving Sales order in both Va01 and Va02
    I tried with the following BADI's
    BADI : BADI_SD_SALES
    Implementation : /BEV1/SR_SALES_ORD_1
    Method SAVE_DOCUMENT
    Now when i want to put my peice of code in this (SAVE_DOCUMENT) method.
    It is asking for Access key. Which i do not have.
    Should i create a implementation and then create a method and then put my code there?
    Anybody plz help.

    You will probably not find a BADI to suit your needs.  However if you look at include program MV45AFZZ you should find two subroutines:  USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT.  You can put the code you need directly into these subroutines.  If these have not been changed yet on your system, you will need an access key to make these changes.
    Please read the documentation in the header of the subroutines for furtner information on when they are called.
    Best Regards,
    Chris H.

  • How To Add a new column for ZPR0 price in open sales order report ??

    HI,
    my requirement is To Add a new column for ZPR0 price in open sales order report if the order/scheduling agreement is a cross-company code transaction l(company code of order/scheduling agreement <> company code of delivering plant), price = ZPR0 price as at estimated GI date

    k

  • To Add a new column for ZPR0 prce in open sales order report

    HI,
    my requirement is To Add a new column for ZPR0 prce in open sales order report if the order/scheduling agreement is a cross-company code transaction l(company code of order/scheduling agreement <> company code of delivering plant), price = ZPR0 price as at estimated GI date

    HI,
    my requirement is To Add a new column for ZPR0 prce in open sales order report if the order/scheduling agreement is a cross-company code transaction l(company code of order/scheduling agreement <> company code of delivering plant), price = ZPR0 price as at estimated GI date

  • Can we combine Query for cancelled requisitions and query for internal requisitions without internal sales order into a single query

    Hi All,
    Greetings.
    I have two queries namely,
    1.Query for cancelled requisitions and
    2.Query for Internal Requisitions without Internal Sales Orders.
    I was on a task to combine those two queries..
    Can we do that? if so, please help me do that..
    Thanks in Advance,
    Bhaskar.

    Hi All,
    Greetings.
    I have two queries namely,
    1.Query for cancelled requisitions and
    2.Query for Internal Requisitions without Internal Sales Orders.
    I was on a task to combine those two queries..
    Can we do that? if so, please help me do that..
    Thanks in Advance,
    Bhaskar.

  • SD - Manual entries allowed for item category in the Sales Order

    Hi experts,
    please do you know any OSS note related to SD, in order to increase the number of Manual entries allowed for item category in the Sales Order (table T184)?
    Thank you very much
    Andrea

    Hi,
    I searched OSS notes and did not find any OSS Note related to add more than 11 Manual Item categories or append T184 Table.
    Has any found solution for this, will this be a CORE MOD.
    Pavan Verma

  • Can we create two POs for the same 3rd party Sales Order?

    Hi MM experts,
    Issue: Can we create two POs for the same 3rd party Sales Order
    In Third party purchase process, first sales order created with a spl. item category  and it creates the PR automatically with the Sales order material and Qty and this PR converted PO.
    They got a pur.req. for sale order on same item for same delevery date. They did not get any warning msg. saying that a PO was prviously placed against this sale order.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    If anyone face the same issue, please let me know if you have any answer to this questions.
    Thanks in advance.
    Suresh.

    Suresh,
    It is hard for me to give you a definitive answer since you have created a customized solution.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    Normally, the system will not do this.  A third party PR or PO will be 'account assigned' to the Sales order.  SAP standard 3rd party will not create additional purchase reqs unless there has been manual intervention.  Try searching for changes in the Sales order and changes in the original purchase order.  They may give you a clue.
    I believe the normal Item category for third party SO is TAS (I am working from memory here, I am not in front of a system).  I don't know what ZTAG does.  I confess I am not an SD expert.  You might also want to post your question in an SD forum.
    You mention two custom applications, ZMMPLAN and ZSTPMP.  These somehow have functionality that is used to help you convert your PRs to POs.  If I were in your position, I believe I would also look at these applications for clues to how they might be contributing to your problem.  And please don't send me details about these apps.  I will not comment on custom code in this forum.
    Sorry I can't be of more help.
    Rgds,
    DB49

  • Which Smartform is used for output of a (confirmation) sales order ( in tra

    Where in customizing I can see which Smartform is used for output of a (confirmation) sales order ( in transaction VA02/VA03) and which print program.
    If the mechanism is different please let me know
    Thx in advance(right answers will be rewarded)

    Hi Tina,
    This is very simple.
    You can go to transaction NACE
    Now click on Output Types, here against your output type you can see what is the smart form attached in the field processing requirements.
    If its order confirmation, it would either be standard BA00 or a copy of that, maybe the naming convention would help you.
    Also If you click on the extreme left hand button in NACE, you can see against your output type what are the records maintained, and under communication tab, you could get to see the printer setting.
    Hope this solves your query.
    Reward suitably if helpful.
    Regards
    Ravi

  • Val.Price for the requisition on the sales order

    Hi,
    I am creating automatically purchase requisition on the sales order with NLAG material type.
    My problem is system asking Val.Price for the requisition on the sales order. I don't want the this screen when sales order create.
    My Purchase Req. Doc Type = NB
    Field Selection key = NBB for the NB
    NBB Field Label >> Quantity and Price >> Price and price unit = Optional Entry
    Thank you
    Gulay Celik

    Hi Gulay,
    The error is coming because you have not maintained Accouting view of this material for teh plant, from where you want to procure/ship the material.
    Or even after you have maintained the Accouting view, Material price (Moving avegare price when price control is V must be Zero)
    Kindly check the master data records.
    This will resolve your issue.
    Regards,
    Dnyandeo H. Ainarkar

  • How to sets the Reason for Rejection of the Open Sales Order Lines

    Hello gurus,
              I want to set the Reason for Rejection of the Open Sales Order Lines, Case is like :
    If current date is exeed the Auto Void Confirmed Back Order Days(for item level) +  date (last responding from customer), then reason for rejection should be set, So i want the logic to find out the date is exceed or not.
    Thanks
    Anjana

    Hello anjana,
       Actually your question is some confusing, but if u want to get eldest change as active sales order then logic is as follows:
    1.  On base of OBJNR u have to get UDATE from JCDS table
    2. then write logic as:
    SORT i_jcds BY objnr stat chgnr DESCENDING.
          LOOP AT i_jcds INTO wa_jcds1.
            CLEAR lv_stat.
            lv_stat = wa_jcds1-stat.
            AT NEW objnr.
              AT NEW stat.
                CLEAR: wa_tab.
                wa_tab-objnr = wa_jcds1-objnr.
                wa_tab-stat = lv_stat.
              ENDAT.
            ENDAT.
            IF wa_jcds1-inact = 'X'.
              CLEAR lv_tabix.
              IF sy-tabix > 1.
                lv_tabix = sy-tabix - 1.
              ELSE.
                lv_tabix = 1.
              ENDIF.
              READ TABLE i_jcds INTO wa_jcds2 INDEX lv_tabix.
              IF sy-subrc = 0.
                wa_tab-chgnr = wa_jcds2-chgnr.
                wa_tab-udate = wa_jcds2-udate.
                wa_tab-utime = wa_jcds2-utime.
                APPEND wa_tab TO i_tab.
              ENDIF.
              CONTINUE.
            ELSE.
              wa_tab-chgnr = wa_jcds1-chgnr.
              wa_tab-udate = wa_jcds1-udate.
              wa_tab-utime = wa_jcds1-utime.
            ENDIF.
            AT END OF objnr .
              AT END OF stat.
                APPEND wa_tab TO i_tab.
              ENDAT.
            ENDAT.
          ENDLOOP.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr stat.
          SORT i_tab BY objnr stat udate utime.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr.
    3. now in i_tab table u'll get eldest UDATE
    Hope its work for u.
    Thanks & Regards,
    Sumit Joshi

  • Checking for X continuous periods for a certain item

    Hi,
    simplified, I have a table like this:
    ROWNUM VEHICULE_ID FROM(DD/MM/YYYY) TILL(DD/MM/YYYY)
    ==============================================
    1 1 10/09/2009 02/02/2010
    2 2 01/01/2010 31/12/2010
    3 1 01/01/2010 31/12/2010
    4 3 01/10/2009 31/03/2010
    5 1 01/08/2009 01/03/2010
    6 1 01/02/2010 01/09/2010
    7 1 01/03/2010 30/06/2010
    Now, I have to determine all the vehicules that have at least 3 continuous periods between 01/01/2010 and 30/06/2010.
    When I apply this question to the above data, then it should return vehicule_id 1.
    The 3 continuous periods for vehicule_id 1 are:
    A)
    rownum 3: 01/01/2010 - 31/12/2010 ==> 01/01/2010 - 30/06/2010: OK
    B)
    rownum 5: 01/08/2009 - 01/03/2010 ==> 01/01/2010 - 01/03/2010: OK
    + rownum 6: 01/02/2010 - 01/09/2010 ==> 02/03/2010 - 30/06/2010: OK
    C)
    rownum 1: 10/09/2009 - 02/02/2010 ==> 01/01/2010 - 02/02/2010
    + rownum 7: 01/03/2010 - 30/06/2010 ==> 01/03/2010 - 30/06/2010: OK
    + rownum 6: 01/02/2010 - 01/09/2010 ==> 03/02/2010 - 28/02/2010: OK ==> This period was not yet used in the periods for B), so we could still use it here.
    The best solution I can find for this is to create a cursor and check if for every date between 01/01/2010 and 30/06/2010 at least 3 diffent periods are valid, but this not very fast and generic if the period should change.
    Does anybody have an idea how you could get this information via sql or pl/sql?
    Thanks in advance for any help about this,
    Geert

    Hi, Geert,
    You can use analytic functions to find how many registrations were active at any point in time.
    In the query below, s_cnt is the number of registrations active at the beginning of the period of interest (this is the same for every row with the same vehicule_id), and e_cnt is the number of other registrations remaining active at the time each registration ends. (If the number of concurrent registrations ever falls below 3, it will do so at a time when some registration ends, so it is only necessary to test those points.) The vehicule_ids you want are those where e_cnt is at least 3, and e_cnt is never less than 3 during the period of interest.
    VARIABLE     period_sdat     VARCHAR2 (10)
    VARIABLE     period_edat     VARCHAR2 (10)
    VARIABLE     min_cnt          NUMBER
    EXEC     :period_sdat := '01/01/2010';
    EXEC     :period_edat := '30/06/2010';
    EXEC     :min_cnt := 3;
    WITH     got_cnt     AS
         SELECT     t.*
         ,     COUNT ( CASE
                        WHEN  sdat <= TO_DATE (:period_sdat, 'DD/MM/YYYY')
                        THEN  1
                   END
                    )       OVER ( PARTITION BY  vehicule_id)     AS s_cnt
         ,     COUNT (1) OVER ( PARTITION BY  vehicule_id
                         ORDER BY      sdat
                         RANGE BETWEEN UNBOUNDED    PRECEDING
                               AND     edat - sdat  FOLLOWING
               - COUNT (1) OVER ( PARTITION BY  vehicule_id
                          ORDER BY      edat
                          )                    AS e_cnt
         FROM     t
         WHERE     sdat     <= TO_DATE (:period_edat, 'DD/MM/YYYY')
         AND     edat     >= TO_DATE (:period_sdat, 'DD/MM/YYYY')
    SELECT       vehicule_id
    FROM       got_cnt
    WHERE       s_cnt     >= :min_cnt
    GROUP BY  vehicule_id
    HAVING       SUM ( CASE
                   WHEN  e_cnt < :min_cnt
                   AND   edat  < TO_DATE (:period_edat, 'DD/MM/YYYY')
                   THEN  1
                   ELSE  0
              END
               ) = 0
    ;The tricky part here is computing e_cnt. This is the number of prior registrations begun, minus the number of prior registrations ended. The number of prior registrations ended is a straightforward analytic function, but the number of prior registrations begun requires a windowing clause, because "prior" here means "prior to edat", not sdat, which is used for the ORDER BY.
    Edited by: Frank Kulash on Apr 2, 2010 11:22 AM

  • Need a user exit for Export Control check in Sales Order fro VA01/VA02

    Hi ,
         I need a user exit for Export Legal Control process in Sales Order.since Ship-to country in the Sales Order is not always the ‘ultimate destination country’ User Exit needs to be built in with following logic
    1.     Check to see if ‘ultimate destination country’ field is maintained in Sales Order
    2.     If a value is maintained then for the Export control checks use ‘ultimate destination country’ instead of the Ship-To country (step 1)
    3.     If no value is maintained then use Ship-To country as default
    The user exit is called when the user creates or changes a Sales Order.
    Can anybody help ?
    Thanks

    Hi,
    Exit Name Description
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    SDAPO001 Activating Sourcing Subitem Quantity Propagation
    <b>Reward points</b>
    Regarsd

  • Need Single Billing Document for Materials and Services in Sales Order

    Hello Friends,
    I am selling FERT items and DIEN items in the Sales Order.
    Document flow as follows:
    Finished goods - Order-Delivery-Billing
    Services - Order-Billing
    In this process 2 seperate billing documents are created
    i.  Delivery Related Billing document for Finished goods.
    ii. Order related Billing document for services.
    I want to create a single billing document for both the items (FG & Services) in the sales order.
    Please suggest.
    Thnx.

    Sorry for the delay friends.
    Somebody suggested me to make services 'relevant for delivery' to ensure single billing document.
    What I did were the following steps:
    1. Copy Item Category TAD to ZTAD and make is 'relevant foir delivery'
    2. Assign Item Category ZTAD to Sales Order type and Item Cat Group 'LEIS'
    3. Go to Deliveries Item Categories and through new Entries add ZTAD. Make ZTAD relevant for Picking.
    4. Go to copy control 'Order to Delivery' and insert ZTAD in Item Categories relevant for this combination.
    Now when I create sales order with materials and services, they pass over to the delivery document and in the Services item, storage location/plant is greyed out. Only the picking quantity is required to be filled.
    PROBLEM :
    I am not getting the price of Services item in the billing document.
    Billing document copies all line items (tangible and intangible) from Delivery Document
    It takes the services item details/quantities etc. to VF01 but the price comes '00.00'
    Any suggestions.
    Is this legally viable? Someone told me its not legally correct.
    Thanks.
    Mohammed

Maybe you are looking for

  • Oracle application 11.5.10.2 installation problem on xp sp2 with cygwin

    Hi all, lam trying to install ORA APPS on xp but the rapidwiz stopped at step 3 and freezed. rapidwiz didn't give me an error while running but didn't continue to step 5 and below part of my log which shows no error unless the connection failed but i

  • View Settings Resetting

    Ref: Windows 7 Pro SP1 and current version of iTunes I launch itunes; sometimes I get the window that request you acknowleged the use of the software; Then when itunes opens NO memu bar; No view settings So I go to the little window Icon in the upppe

  • Drop-down liast in Adobe interactive forms

    Hello, We have 3 regions, US, Europe and Asia Pacific and each region has a manager. Now, am developing a Interactive form with Webdynpro for ABAP (pls. note always FORM is only one) for these regions/managers. Manager pressess submit button for appr

  • Website's browser fill does not load on iOS devices.

    I've checked this on several different iPads & iPhones with similar results. Works and loads correctly on android devices and different desktop web browsers.

  • No auto-sleep

    I've a problem with both my iMac and MBP which are both fully updated. Nevertheless none of them is going into sleep automatically. On my MBP I've quitted all known applications from the "Activity Monitor" and from "System Perferences->Energy Saving"