Delivery inot to be allowed in back date

Hi All !!!!!!!!!!!!
The scenario is for Make to Order - Its in AFS.
Sales Order created on 01/10/2009, then the production order is triggered for the same and GRN is done on 21/10/2009. Now the stock is showing in unrestricted category. Now when we create the delivery for the same the PGI is happening even on 02/10/2009. Now when the GRN date is 21st delivery should not be created before 21st but the system is creating the delivery even on 02/10/2009.
How to check this that the the deluivery for the sales order should only happen after the GRN date and not before that.
Kindly help ASAP
Regards

Hi,
This is the standard SAP functionality, irrespective of the date system will allow you to post the material document with in that period.
e.g. If the GR has been don on 15.10.2009 then you can issue that material on 01.10.2009 and even on 30.10.2009.
But if GR is done on 15.10.2009 and you want to issue the material on 30.09.2009 then system will show you an error. As the stock is not available in Period 06 (i.e. September). As system check the stock period wise.
So for your solution, you can put the condition in Delivery --> Include MV50AFZ1 -->FORM userexit_save_document_prepare, then fetch all the movements happened against that Batch. Sort the list with Posting Date. Check with Credit/Debit Indicator. Then finally you can get the remaining stock on some particular date. Now check this date with the Actual GI Date.
But I will prefer not to use such kind of solution, as it will bring inconsistency in your system. Because in this case, only the PGI is dependent on dates. But the remaining movements will depend on the logic of PERIOD only.
So you can simply put a condition that Actual GI date should not be less than Current date, if it suits your requirement.
Regards,
Vishal
Edited by: Vishal Gupta on Oct 28, 2009 4:42 PM

Similar Messages

  • Create   Sales order ,Delivery, Billing and  Invoice no. in back date.

    Hello Gurus,
    Goodevening ,
    we have a requirement , here  we need to create, Delivery on  back date. 
    Note- System should   do the  availability  check on  back date. ( 1.e on requested delivery date) and confirm quantity on that date.
    Note-What ever sales transaction happned  yesterday  day will be enterded  today on yesterday  date( this daily  happens to this industry).
    My problem is system is not doing availability check on requested  delivery date  its just doing on todays date and giving confirmation but in system stock was there on yesterday date.
    Note - Always there is one day back log  for actual sales and system entry.
    Looking for your inputs
    Thanks in advance.
    Regards
    Ravi.M

    Hi  Lakshmipathi,
      Thanks for you reply,
    This a typical kind of industry.-Poultry industry
      They do the transactions  in the night times at farms where they will not have any access for systems.so they  want to post those transactions on back date.
    Note- i  do have  idea, system  does do availability check on  current date,but is there any possiblity for back postings with  availablity check  that  I am  looking for all the possible  options  with all the possible  feed backs.
    Note- Customer is selling the semi -finished product that i have already mentioned, whether i maintain   OR not  maintain system is doing avaliblity check  in  SD , as the meaterial  is   semi -finished  maintained by PP in MRP3.
    Thanks  in advance
    Regards
    Ravi.M

  • How to back date the sales order document date

    Hi Expert,
    Can i change the document date in the VA01 to back date from time to time?
    the document date can be forwarded to future date however not allow to back date.
    If can kindly let me know where is the control or configuration.
    Thank you.
    Regards,
    Yong Kok Wah

    Hi
    I checked and changing date to past one is allowed in Sales order. Once date is changed, the billing date changes to past date. But this is not copied to schedule line and also to pricing date. Hence then re availability check and pricing determination will be needed.
    Furthermore i m not able to understand why back dating is needed. According to me if production allocation is used then incoming order qty will not be updated again or may show discrepancy.
    Hope this helps. Reward accordingly.
    Kind regards
    sandeep

  • Not to allow to save the billing document in the back date if FI period clo

    Can anybody help me please. My FI period for october is closed. But there are still some open delivery documents in billing due list for October. So now let say on 7th december if i will make the billing documents by giving the date 30.11.2007 logically as FI period is closed it will allow to save the billing document but will not pass to accounting.
    So this normaly happening in my industry endusers are creating the billing documents in the back date even after the period close so all the documents come into VFX3.
    So can any body help me? Can we have any check if the FI period is closed for a perticular months if we will try to make the billing documents in the closed period it will not allow to generate the billing document rather saving the documents and blocking for accounting.
    Reggards.
    Laxmikanta Das.
    09958119889.

    Dear laxmikanta
    I also not come across the situation what you said and hence dont have much idea about authorization group.
    However, on going through the F1 help, it says
    <b>Procedure</b>
        If only a limited set of users is to be able to post in a particular
        posting period, proceed as follows:
                 o   Add the posting period authorization (authorization object
            F_BKPF_BUP) to the authorizations of the selected users. Assign an
            authorization group (e.g. '0001').
                  o   Enter the account type '+' for the posting period variant to which
            the restriction is to apply. Enter the period(s) whose use is to be
            restricted in the first period, those which are available to all
            users in the second period, and the authorization group (e.g.
            '0001') in the last column.
    <b>Examples</b>
        A posting period can be successively restricted. If, e.g. 10 users have
        the posting period authorization with authorization group '0001', and 3
        of these 10 users also with authorization group '0002'.
        If the period is only to be accessible to the 10 selected users the
        authorization group '0001' is entered in the posting period variant.
        Access can later be restricted to the remaining 3 users by entering
        '0002'.
    From the above, I feel your requirement can be met.
    Thanks
    G. Lakshmipathi

  • Create Delivery, Billing and Excise Invoice no. in back date.

    Dear all,
    i got sum problem with no. range in export excise invoicing,
    therefore to avoid this i created export invoice thru' legacy system, now i want to create the same export order in sap system
    how i create export order in back date as actual excise date lies in back date.
    what certain changes i have to made in sap system in order to create Delivery, Billing and Excise Invoice no. in back date.
    Plz suggest
    Gaurav

    Back date means how many months should be predated ?? You should be aware, you can post a document in SAP one month prior to current month but not before that. For example, now we are in August and you can post a document for July and not for June'10.
    Apart from this, you need to have back dated stock in SAP to invoice and the periods (MM & FI) should be open for previous month.
    Dear Sir,
    Back dates means 14 days back and in the same month August.
    plz , explain what is back dated stock to invoice SAP
    Gaurav

  • Error in Back date delivery

    Hi All,
    I want to create one Order in Back date with back date delivery(Picking + PGI) and Billing, i m able to create the Order& Billing  in Back date but when i enter the back delivery date in sales order it will create current date's schedule line for the material which i don't want. if i create it in current date then after the process its shows same item in two date with 0 and deliver quantity in VA05 Report. actually i want to create entire process in back date what should i do please help.
    Regards
    Vivek Sharma

    SAP will not confirm availability in the past. That makes sense.
    Maybe you should just:
    - Proceed without taking the dates in account
    - Manually change the invoice date to a past date for this specific delivery
    Anyway, if the FI period is closed, you will not be able to book the invoice in the past.

  • MIGO Goods receipt accepted in back date for STO

    Hi,
    I have a S.T.O for which delivery have been created, post goods issue and excise invoice have been done on 05.09.2009 and receipt through MIGO have been done and system accepted to post the material document in back dated 07.08.2009.
    How can system accept to post the material document in the back date, even my delivery and even dispatches had been not done on 07.08.2009.
    Is this standard functionality or do i need to make any config settings to not to accept to post the MIGO document.
    Thanks in advance
    Kishore.

    Go to transaction MMRV and uncheck field "Allow posting to previous period". This will make sure MM posting cannot be done to any of the previous periods. Keep in mind the setting will only be applicable for a particular month. If you want to make sure the setting is permanently set, you want to go to OMSY and uncheck the column to allow posting to previous period.
    Revi

  • PGI & Invoice in Back Date

    If a Sales Order is created suppose on 18-07-07, then the Requested Delivery Date should
    be >= to the Sales Order Date creation. Now, while making the D.O. system is allowing to
    do PGI even on 10-07-07, with a warning message " Date is in the past : Please Check ".
    Same case is while making the Invoice in back date. Our requirement is that system
    should give  a error message and stop the user doing PGI and Invoice in back date. We
    have checked the System variable messages but could not track. Message No. VD399.

    Hi,
    System considers the current date as actual GI date or Billing date, if the date is in past it will gives only warning message.
    If you want to restrict you need to put logic in the User exits MV50AFz1 and RV60AFzz

  • Posting on back date

    hi
    I am having zero stock on 13.11.2008. I did  MIGO(101) date is 13.11.2008. My system allowing me to issue material on 5.11.2008. So that my stock came in negative. i am not getting any error if i am posting in back date in same period when there was no stock. Can i know which msg nor should i have to activate or any other way to me that user will get error while posting in back date?
    Thank you
    Sameer

    hi
    plz check u might activated OMJ1 - Allowing Negative Stocks. 
    http://www.sap-basis-abap.com/mm/how-to-use-negative-stocks-and-its-purpose.htm
    regards
    kunal

  • Goods Receipt in Back date

    Hello,
    We have  closed the May month and started a running the business in SAP. But user saying  he wants to show the GR created in 01.01.2011 (Jan month) already closed that month.
    He is forcing us,  it is possible to create on back dated, make it back date and allow him to do the GR ... As per SAP system only allow for one month back to do the GR.... If suppose i did the GR for January month then,, what are the implications hit after the GR .... and is it feasible to do the GR in back dated.
    Regards
    sapman man

    Theoretically you could reopen an old period with MMPI, but  you may screw up the information from thousands of postings just to fix one. MMPI is usually used if someone closed a period accidently in the middle of the month, but not recommended to fix just one posting.
    search the forum for MMPI , search OSS on MMPI  and read all the warnings

  • IOException: Incorrect stream type, doesn't allow push back of bytes

    Hi,
    We are trying to develop a java program that is supposed to open an SSL connection to an external trading partner and send some xml data. We are using the http_client.jar (HTTPClient) library to do that. We have already managed to write a program to do SSL requests but we also need to pass these requests through a proxy server. When we use this proxy server we get the following exception from HTTPClient:
    Exception in thread "main" java.io.IOException: Incorrect stream type, doesn't allow push back of bytes
    at HTTPClient.Response.readLines(Response.java(Compiled Code))
    at HTTPClient.Response.readResponseHeaders(Response.java:1030)
    at HTTPClient.Response.getHeaders(Response.java:713)
    at HTTPClient.Response.getStatusCode(Response.java:262)
    at HTTPClient.HTTPConnection.enableSSLTunneling(HTTPConnection.java:3335)
    at HTTPClient.HTTPConnection.doConnect(HTTPConnection.java:4027)
    at HTTPClient.HTTPConnection.connect(HTTPConnection.java:4004)
    at SSLRequest.main(SSLRequest.java:22)
    Out program source code is:
    public class SSLRequest
         public static void main(String[] args) throws Exception
              HTTPConnection httpsConnection = new HTTPConnection("https", "www.verisign.com", 443);
              httpsConnection.setCurrentProxy("myproxy.mydomain.gr", 8080);
              httpsConnection.setAllowUserInteraction(false);
              httpsConnection.connect();
              HTTPResponse rsp = httpsConnection.Get("/");
              System.out.println(rsp);
    We would really appreciate any help on this
    Thanks.

    Hi,
    I found out that this is a reported bug (bug no. 3748882) that applies with App Server version 9.0.4 which is using SSL via a proxy server. The solution is to upgrade to app server version 10.1.2
    Patrick.

  • No GR on Back date (Document Date)

    Hi All,
    We normally use Tx: MB01 and MB0A for Goods Reciept.
    Now we have a requirement not to allow GR on back date (i.e. Document date in GR screen should not be back dated) but it should be allowed in Goods Issue (MB1A).
    I have tried by using the screen control for Goods movement; I made the field 'Document date' in display mode but it is getting in display mode in all Tx: MB01,MB0A & MB1A,MB1C.
    How to achieve this "Not to allow GR on back date only in GR transactions"
    any possibility of Message control / Screen variants / any other thing ??
    Please suggest.
    kind regards,
    kumar

    Hi,
    You should be able to control this on posting periods unless you do not generally open back dated periods (Not recommended in normal practise).
    You could try putting the latest possible GR date in purchase order as the cut off date you want to post the document. System will not allow you to post document in case date is previous to the date maintained in this field.
    Thanks,
    Sourabh

  • Change in Stock Type in Back Date

    Dear Friends,
    Is there any way to change stock type (from Restricted-Use to Unrestricted-Use) in back date? (other than MSC2N)
    For Example:
    I have posted a stock in August in restricted-use by GR. Till now, it lies in restricted-use only.
    Now, I want to make change in stock type from Restricted-use to Unrestricted-use in august only.
    Is it possible?
    I have tried using MSC2N but its change stock type on current date.
    Also, in MIGO Transfer Posting by Mvt Type 342/341 is not allowed.
    Is there a way out? Thanks in advance.
    Ragards,
    Jignesh

    hi,
    You can allow back posting for a month back by :
    Go to Transaction Code SE38
    Enter program name RMMMINIT
    Execute or press F8 function button
    Enter your company code (From and To)
    Enter relevant date: Say 26/08/2008 for aug. 2008 month to be opened as of now...
    then go to MIGO...
    Now is will allow you to post...
    hope it helps...
    Regards
    Priyanka.P

  • Restrict User to access/fetch data in back date

    Hi All,
    As financial year is about to close, one of my clients has requirement that for all t-codes, user must be having restriction to access or fetch the data in back date or till 31st March, he won't be able to access it. So my ques is can we do it at authorization level or from basis end.?
    If no, then how it would be possible?
    But they want only 3 users out of all should have access.
    Guida me for the same.
    Regards
    Disha

    Hi ,
    As per standard behaviour of the system you wount be able to achieve what you are looking for .
    As the system does not allow user to be restricted based on period for reports .
    You can check for either BADI or exits / Enhancement points for restricting but that too based on which t codes you want to restrict . It would be T code based like you identify the T codes and accordingly make the enhancements .
    Cheers ,
    Dewang

  • Sales Flow on Back dates

    Hi all,
    once we go-live, i need to enter all the sales orders to invoice data in sap( from legacy) i have tested the scenarion in quaility by changing the requested delivery date, PO date, billing date, Pl goods isue date etc manually to previous month. Every thing was fine. but when i see teh documetn flow, teh dates are showing todays rather than the previous date. is there any chance that i can change this too somewhere to back date.
    plz give me the solution.
    cheers,
    anil.

    Hi,
    No way dear.Those dates are of system dates when you have created the documents.Those can only be chaged by changing at table level.
    But any wat that does not make any difference if it remains as it is
    Reward points if useful
    Regards,
    Amrish Purohit

Maybe you are looking for

  • Vendor Line Items

    Is there any std BAPI or FM to get Vendor Line Items? Is there any database Table which shows all  Vendor line items (open and cleared)? Note : table BSIK shows only open line items. Thanks in advance. Points will be rewarded.

  • Can't drag bookmarks into new tab page

    Every time I try to drag and drop a bookmark into the new tab page, it opens the web page in that tab instead of adding it to the square. I've tried it on safe mode as well with the same results. Any suggestions on what I'm doing wrong would be appre

  • I'm fixing to throw my phone!!!!!!

    Moved for greater exposure

  • Placing 2 items in Header region?

    Hi - I'm stumped. Let's assume that I have a header region of 960px. The logo I insert onleft hand side is 406 px wide. I then want to place a second item in the remaining space that is left in that header. I tried to that by just simply inserting th

  • Changing the name of the computer

    Hey all, where do you go to change the name of the computer? I want to know bc when i go to the system profiler theres a (2) behind the name of that i have chosen. I dont know where this (2) came from and i would like to change it. Thanks!