HOW TO BLOCK THE DELIVERY IF CONTACT-DATE = SYSTEM DATE.

HI ALL,
in va02 transaction, after entering some order number, u will go inside. after going inside, goto GOTO-HEADER-PURCHASE ORDER DATA.
THEN, IN THAT PURCHASE ORDER DATA TAB, A LAST CONTACT DATE FIELD IS THERE. NOW, THE ISSUE IS, IF THIS LAST CONTACT DATE IS GREATER THAN  OR EQUAL TO SYSTEM DATE, THEN THE DELIVERY SHOULD BE BLOCKED AND ALSO , IN SHIPPING TAB THERE IS DELIVERY BLOCK FIELD. THIS FIELD SHOULD BE SET TO VALUE JITS DELIVERY. FOR THIS I WAS TOLD TO WRITE THE CODE IN THE ROUTINE  , BY GOING TO VOFM - TRANSACTION . IN THIS TRANSACTION, I HAVE TO CLICK ON THE COPYING REQUIREMENTS MENU AND THEN CLICK ON DELIVERIES AND THEN GIVING THE VALUE AS 911 FOR ROUTINE NUMBER COLUMN AND ALSO MENTIONING SOME TEXT IN THE DESCRIPTION COLUMN AND THEN SAVE AND WHILE SAVING THEN IT WILL ASK THE ACCESS KEY, THEN I WILL MENTION THE PROVIDED ACCESS KEY AND THEN I HAVE TO WRITE THE ROUTINE.
NOW, MY EXACT ISSUE IS HOW TO WRITE THE CODE IN THE ROUTINE TO BLOCK THE DELIVERY ,IF THE LAST CONTACT DATE IS GREATER THAN OR EQUAL TO SYSTEM DATE AND UPDATING THE DELIVERY BLOCK FIELD IN SHIPPING TAB TO JITSDELIVERY.
NOW, WHERE I AM STUCK UP IS HOW TO WRITE THE CODE TO BLOCK THE DELIVERY.
IF ANY PART IS UNCLEAR, PLZ REPLY ME SO THAT I CAN MAKE IT MORE CLEAR.
THIS IS THE CURRENT AND URGENT REQUIREMENT I HAVE TO SOLVE. PLZ MAKE ME KNOW THE SOLUTION  AS SOON AS POSSIBLE.POINTS WILL BE AWARDED.
THANKING U IN ADVANCE,
SRINIVAS.

Hi,
Who advised you to write the Routine for this requirement?
Can't this be achieved by writing some user exit code in MV45AFZZ  of Sales order main program SAPMV45A  as this req is related to Sales order.
I feel this can be achieved via this. Try this first at the header level ( in the correct form).
If at all you wants to write the code in Routines goto VOFM tcode and select the routine.
First try to copy the code what was written in the similar existing routine and take the access key and write the same code and modify as per your requirements.
Most of the times we handle the sy-subrc value in this routines.
reward if useful
regards,
anji

Similar Messages

  • How to proceed After blocking the delivery.

    Hi SD Experts,
    i have a doubt how to proceed after blocking a delivery. My scenario is this " i created a sales order and blocked the delivery of it. So i cant able to create a delivery for that sales order." . Then what should be done to create a delivery for that sales order ( i.e. How to release the Blocked delivery status and to create a delivery)
    with regards ,
    James
    Valuable answers will be rewarded....

    Definately Vasanth,
              it will work.
    Mostly billing block will be used in Credit/debit memo's.
    Only the authorized user can remove the block in VA02.Then user can able to create billing.
    This wont happen  in Credit management issue,because we wont maintain any billing blocks in credit management.
    block in credit management like:,
    sales order level-
             ( 2 release the Credit mgmt block in Sales order- VKM3)
    delivery level - 
             ( 2 release the Credit mgmt block in Delivery doc's - VKM5)
    *( 2 release the Credit mgmt block in Sales doc's & Delivery doc's at a time - VKM4)
    at the time of Goods issue
    Hope it adds the information .
    reward point if it helps u

  • How to Block the GRN,

    Dear Experts
                       How to block the GRN, to avoid the excess inventory for the particular  material.

    Hi Raja
    I assume that you are referring to stopping GRN of goods with resepect to the PO qty
    In that case If you want to stop the GR of more goods than the quantity ordered, you can use delivery
    tolerance settings in either material master data or purchase info record data.
    Regards
    Vikrant

  • How to determine the delivery plant in a CRM Sales Order

    Hi experts:
    In CRM how to work the delivery plant determination? and I can change the Plan in a Sales Order before its download to ECC?
    I download the DNL_PLANT object but i don't understand what is the functionality of these are created like business partner in CRM.
    Thanks in advanced by your orientation about these questions that have me a little bit confuse.
    Sussie

    Hi Reddy
    Thanks for your reply, but the note says that only applies for India or Brazil legal purposes.
    In my case I still have confuse, in a normal Sales scenario CRM to R/3 how to works the determination of the delivery plant.
    I know that in R/3 is determined by:
    1. Customer-Material info record (Sales Area data)
    2. Customer Master data (Sales area data)
    3. Material Master data (Sales-area data)
    I can think that in CRM is determinate bye Material Master Data, but I still don't know if I can change
    it??  and where in the crm sales order before it is download to R/3??
    Thanks
    Sussie

  • How to block the cost center

    Dear Guru's
    Can any tell me how to block the cost center, can we detele which is having values. can we delete which is not having values
    Regards
    Chandra Sekhar Reddy.P

    Hi,
    Once you post actual values or any planning exists on this cost center you cant delete.
    To ristrict posting to cost you have two options.
    1.You can change validity period.
      change  end from 12/31/9999 to what ever date you want to stop posting(e.g. as of today 10/23/08)
    2. lock all postings to cost center on Control data tab in KS02.
    Thanks,
    Rau

  • How to block the GR against a PO

    Hi All,
    how to block the GR against a perticular PO item or full PO.
    I use "Delivery Complete" option in "Delivery" tab, but still it allow me to make the GR against the PO.
    I am waiting for the quick reply.
    Thanks & Regards
    Pankaj Garg

    delivery complete indicator willnot help u fully.what u can do is after selecting the delivery complete indicator change the quantity of the PO to what u have already received i.e. if ur po has 10 pcs and u have already received 4 pcs and dont want to receive any further quantity then change the PO quantity to 4 pcs.
    Again if u havent received any quantity against the PO then u can select the line items and select the block (key like) indicator or delete (dustbin like) indicator.
    regards,
    indranil

  • How to cancel the delivery number in the billing due list

    Hi Gurus,
    My User has created the Consignment Fillup order and Dlivery for that order.
    Now User asking that the delivery number coming into Billing Due list (VF04).
    As you know all for Consignment Fillup there is no invoice. Please suggest me
    how to cancel the Delivery number in Billing Due list for above scenario.
    Br,
    Satish

    What you have faced is not at all an issue.  Its a standard behaviour only.  Though you are not generating commercial invoice here, you can generate (F8) proforma via VF04 in bulk.  Either you can generate one proforma per delivery or consolidate multiple deliveries into one proforma which it depends on VTFL copy control for the field Data VBRK/VBRP.   There if you maintain 001 or 007, you can club multiple deveries and if you maintain 003, one proforma per delivery can be created.
    thanks
    G. Lakshmipathi

  • How to Block the material

    Hi friends,
    How to block the material ,
    what are the implecations if we block a material?
    Regards
    Krishna

    Hi,
    The best way is to keep the materail status with deleted or blocked for puchase / sales and need to maintain in the materail master.
    You cannot delete the material from material master until archiving but you can block that material for any procurement
    Goto Basic data 1
    X-plant matl status -
    01 Blocked for procment/whse
                                           02 Blocked for task list/BOM
                                           10 Blocked for MRP
    Select any one.
    Valid from  -
    Here you enter valid date from which the material should be blocked.
    So from this your material will be blocked for any PR/PO/any transactions related to Procurement
    BR,
    Krishna

  • HT3702 How to block the iTunes purchases

    How to block the iTunes purchases

    You will need to contact iTunes Support to ask them why it's appearing, and whether you can do anything to stop it happening again (we are fellow users on here, we won't know why it's appearing) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How to block the BP

    Hi all,
    how to block the particuler bp?
    thanks.

    Hello,
    Use T-Code 'BP'. Under status tabstrip, you select the check box 'Central Block'. This shall block few activities for the BP.
    However I'd suggest to block all the contract accounts falling under a BP. This can be done using CAA2. Under General data tabstrip, update the 'Posting lock'. This shall block all the activities for a contract account.
    Hope this helps
    Rgds
    Rajendra
    Points!

  • How to block the invoice ,if the GR qty is in QA stock

    HI all,
    how to block the invoice,if the GR stock is in QA tock?
    But i have maintianed quality control key wiht the parameter like ivoice block and maintained in the respective material master data, even though invoice is not blocking?
    plese tell me is there any seetings required.
    thanx in advance.
    Regards
    Srinivas

    Hi,
    It is not the total invoice which is equal to zero but only one post.
    As I explained it at first the problem is the following one:
    In the rules of copy we use the field " Pricing type " with the value " C = Copy manual pricing elements and redetermine the others ".
    he order is complete and the price of the post is not equal to zero.
    +During the invoicing the system makes a new search for the prices in the tables of conditions.
    If the condition does not exist in the date of invoice the post takes the zero value.
    I look for a solution to block the creation of the invoice if a post only is equal to zero after the updating of the prices.
    Thanks
    Frédéric

  • How to know the balance and validity of internet data in iPad

    How to know the balance and validity of internet data in iPad?

    Sir I m using internet in ipad4 with airtel network
    They provide me 2gb data with the amount of 255 rupees
    And now I inserted the sim in my ipad4
    And start the surfing on safari n all
    And now I wanted to know how much data is balance.

  • How to block the creation of a Sales Orders without a linked Purchase Order

    Hi. I'm trying to block the creation of a Sales Order that doesn't have a linked Purchase Order. The first thing I did is using the SBO Transaction Notification as follows:
    IF  @transaction_type = 'A' AND @object_type='17'
    BEGIN
         IF (SELECT PoPrss FROM ORDR WHERE DocEntry = @list_of_cols_val_tab_del) = 'N'
         BEGIN
              SET @error = 1
              SET @error_message = 'Purchase Order Missing...'
         END
    END
    This works good. I create the Sales Order, I tick the purchase order field on the logistics tab, I click Add, and then the purchase order window appears...
    Then, the problem begins... If I click the Cancel button, the purchase order is obviously not created, but the Sales Order is created.
    Can someone tell me how to block the creation of the sales order If the user press the cancel button on the purchase order window (and the purchase order is not created)
    As far as I can see, after clicking the add button in the sales order document, the Sales Order is created on the DB. If there's no way of blocking the creation of the Sales Order, can I avoid closing the purchase order window by the SBO_TransactionNotification? (if the purchase order has not been created)
    Thanks...

    Hi Yail,
    I think you can't close the purchase order with the stored procedure.
    Try to catch the Event when the user click on Cancel button.
    So you can list the vents with event logger : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1b5293473e
    You can block the cancel button and force the user to create the purchase order.
    Hope i help you
    Best regards
    Michael

  • How to block the Creation of Mulitple Excise Invoice in J1IS

    Hi Sap Gurs,
    Can any tell me how to block the System allowing  to Create One more Excise Invoice in J1IS against Same GI Material Document no (Ref Trans Type:MATD) for Outgoing Materials ie:Stock Transfer from One Plant to onother Plant by Mvt Type 351(Single Step Procedure)
    In SD, System is not allowing to Create One more Excise Invoive against One Billing Document Untill we Cancell the same.
    I want to make it like same for the above Issue.
    Pls check it in your system and give a Feed Back.
    Thanks in advance.
    Bye
    Sathish

    Hi Yail,
    I think you can't close the purchase order with the stored procedure.
    Try to catch the Event when the user click on Cancel button.
    So you can list the vents with event logger : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1b5293473e
    You can block the cancel button and force the user to create the purchase order.
    Hope i help you
    Best regards
    Michael

  • How to use the customer types in customer master data

    how to use the customer types in customer master data?
    menu path is Extras -> account group info -> customer types

    hi,
    This is an option given to you to choose (if you need to) the way you perceive this customer.Here you get options including ompetitors,Salespartner, prospect,
    default sp ,consumer.
    See it helps you to differentiate between prospect(which you may use for quotation or inquiry purpose)Sales partner and the competetor.
    I hope this clarifies your quiery.Reward points if so.
    Thanking you,
    Best regards,
    R.Srinivasan

Maybe you are looking for

  • Problem setting up email

    hello everyone, i reccently purchased a vodafone bb 8900 from my friend, i got it unlocked today and i am currently using an 02 sim card. My mate had his emails set up on the phone but deleted it before passing the phone on. My problem is when i try

  • Dma for dell dimension 4700 sata

    Hello, I am running SJD release 2. I installed xine for wmv and dvd. The dvd plays but the video is jerky. hdparm -d1 /dev/sr0 doesn't work with "device doesn't support dma". same for the hard drive hda. In order to install and boot I have to set the

  • WebDynpro java and Oracle Connection

    Hi, I'm trying to make a simple connection to an Oracle database within a custom webdynpro component. Using NWDS 7.0.08 and EP 7.0 SP 10. Here is a sample of the java code I use : Connection conn = null; Class.forName("oracle.jdbc.driver.OracleDriver

  • Why procedure created with compilation errors?

    CREATE or REPLACE PROCEDURE AddStudent( p_stuID number, p_lname varchar2(30), p_fname varchar2(20), p_major varchar2(5) check(major IN ('ACCT','ECT','EET','BIS','BSIT','CIS','TCOM')), P_standing varchar2(10) check(standing IN ('FRESHMAN','SOPHOMORE',

  • Authentication: Import Role problem - Jasper Exception

    Hi All, I'm trying to import roles from SAP BW 7.0 to BO Enterprise XI 3.1, but when I click on "import roles" on CMC, I get the following error: org.apache.jasper.JasperException I've followed all the steps on "Business Integration Kit for SAP - Ins