Block Goods Issue base on Projects if null

i have this requirement in SP
Scenario.
i want to block Goods Issue base on the ff. requirement
1. if Project is Null it will block adding the Goods Issue if U_Department and U_Section is empty
2. if Project is not Null i will allow adding the Goods Issue even the U_Department and U_section is null
base on this requirement i made an SP but it doesn't work.
--      Make Department Mandatory in Goods Issue
IF (@object_type = '60') and (@transaction_type IN (N'A', N'U'))
BEGIN
     IF EXISTS (SELECT T0.Docentry from OIGE T0 Inner Join IGE1 T1 ON T0.Docentry=T1.Docentry where
     T1.DocEntry = @list_of_cols_val_tab_del and (T1.Project is not null and T0.U_DEPT is null or T0.U_DEPT ='' ) )
     BEGIN
          Select @error = 10, @error_message = N'Department Must be filled-up!'
     END
END
--      Make Section Mandatory in Goods Issue
IF (@object_type = '60') and (@transaction_type IN (N'A', N'U'))
BEGIN
     IF EXISTS (SELECT T0.Docentry from OIGE T0 Inner Join IGE1 T1 ON T0.Docentry=T1.Docentry where
     T1.DocEntry = @list_of_cols_val_tab_del and (T1.Project is not null and T0.U_SECT is null or T0.U_SECT =''))
     BEGIN
          SET @error = 10
          SET @error_message = N'Section Must be filled-up!'
     END
END
What seems to be wrong w/ my Code?
Best Regards...
Fidel

hi Avelino Fidel try this try this final query ,it will work
IF (@object_type = '60') and (@transaction_type IN (N'A', N'U'))
BEGIN
IF EXISTS (SELECT distinct  T0.Docentry from OIGE T0 Inner Join IGE1 T1 ON T0.Docentry=T1.Docentry where
T1.DocEntry = @list_of_cols_val_tab_del and (isnull(T1.Project,'') = '')  or  (isnull(T0.U_DEPT,'') = '' ) )
BEGIN
Select @error = 10, @error_message = N'Department Must be filled-up!'
END
END
Edited by: Prasanna s on Aug 29, 2009 10:20 AM

Similar Messages

  • Report for Goods Issued for a Project

    Dear Friends,
                           I want a report for a goods issued for a project.can any body convey the T Code Please...
    Regards,

    use mb51 and select q-special stock and enter wbs no. for which you want to see the details.
    if you have more than one wbs then also you can paste no.s of wbs in mb51
    regards

  • Goods Issue to a Project

    Hello Guys,
    I have some standard stock which I am posting to a project under a WBSE line, I can see it coming out on MMBE but cannot see where this equipment is allocated.
    I could track the material movements using the Material Documents, but I was looking to have a report that tells me how many items have I allocated under that WBSE line.
    Does anyone would know a way to report this?
    Carlos Araes

    Hello Guys
    Thanks fot the reply!!! BUT what I am looking for it is some type of trasanction that would give me a report of how many equipmentes have I under the WBSE line which I had used when Goods Issuing.
    Reporting the Material Documents give me a track on what I had issued out but not the balance of the stock on the WBSE.
    Would any one know a way to do that?
    thanks

  • Critical field credit block goods issue level

    Hi,
    In our company we do Automatic credit management at at goods issue level.
    At the moment over a certain credit limit the GI just gets blocked.
    Now we have requirement where if the payment terms are changed by enduser at the sales order level then the GI should be blocked.
    I tried the "critical field" option and it is working at the sales order level by blocking it but not on goods issue level.
    I have assigned the credit group"03-goods issue" to the delivery type OVAD.
    In OVA8 i have maintained automatic credit control with critical field selected and Reaction "c" and status block selected for the combination of credit control areacredit groupsrisk cat (000)
    In FD32 i have maintained risk category for the customer (000).
    Could some one help please?
    Thank you

    Hi vinod
    In OVA8 if you are using the dynamic credit check then make the status option  C. secondly uncheck the open items and also change the time period if it is in days and if you have given 7days then change according to the billing days say as the change in the payment terms if the billing take place after 1week then add another 7days and make it to 14days
    Regards
    Srinath

  • Blocking GOODS ISSUE directly to PM orders without reservation

    hi friends, we want to block
    direct GOODS ISSUE to PM orders without reservation
    Now when we create reservation and store issues against reservation then mvement type is 261 and same movment type is for direct issue to PM order.Only what we have to do is go to "MIGO" choose "Others" and then type the coressponding Order no.
    we want to block this.What cud be the procedure to do this.Plz help

    Hi ,
    see whether this solves your issue ...
    Go to this manu path
    SPRO-> MM -> Inventory Management and Physical Inventory->Settings for Enjoy Transactions->Settings for Transactions and Reference Documents
    choose entry MIGO_GO, select and click on transaction event
    Choose A07 goods issue , click on referene document
    Remove activate checkbox for R08 ->261  .. this will disable transaction through MIGO.
    Thanks,
    sudhakar

  • Project System - Goods Issue

    Dear all,
    We procure materials against a Project "A" and then we issue same materials to different projects "B", "C"....and so on against reservation.
    At a same time, we want to take care (a) Cost planned (b) Budget and Released (c) Project released and PR generated and (d)  Release of PO and GRN for Project "A"
    We will create different Projects "B", "C" for different plants.Here, we want to (a) Cost planned (b) Budgeted and released and (c) Project released and reservations created for items.
    Is it possible to Goods Issues against different project order? If so, how to map this requirement (i.e. to make Goods Issue to different Projects "B", "C" ) gainst reservations from Project A.
    Regards,
    Muralidhara

    Hi Murali
                      Goods issue, Transfer Posting and GR in PS can be controlled by following mvt type
    Goods Issue
    1. Consumption for project from project. (221 / 222) Q
    2. Consumption for sales order from un-restricted project stock (231 / 232) Q
    3. Consumption for order from un-restricted project stock (261 / 262) Q
    4. Consumption for network from un-restricted project stock (281 / 282) Q
    5. Withdrawal for sampling from QI project stock (331 / 332) Q
    6. Withdrawal for sampling from un-restricted project stock (333 / 334) Q
    7. Withdrawal for sampling from blocked project stock (335 / 336) Q
    8. Withdrawal for sampling from un-restricted project stock (551 / 552) Q
    9. Withdrawal for sampling from QI project stock (553 / 554) Q
    10. Withdrawal for sampling from blocked project stock (555 / 556) Q
    Transfer Posting
    1. Transfer posting storage location (one step) - project (311 / 312) Q
    2. Transfer posting QI project to un-restricted project stock (321 / 322) Q
    3. Transfer posting blocked project to un-restricted project stock (343 / 344) Q
    4. Transfer posting blocked project to QI project (349 / 350) Q
    5. Transfer posting project to own (411 / 412) Q
    GR
    1. Goods receipt with reference to a purchase order. (101 / 102) Q
    2. Goods receipt for purchase order into GR blocked stock (103 / 104) Q
    3. Release GR blocked stock for warehouse (105 / 106) Q
    4. Return delivery to vendor (122 / 123) Q
    5. Receipt without purchase order into unrestricted stock (501 / 502) Q
    6. Receipt without purchase order into QI project stock (503 / 504) Q
    7. Receipt without purchase order into blocked stock (505 / 506) Q
    8. Receipt without production order into unrestricted stock  (521 / 522) Q
    9. Receipt without production order into QI project stock (523 / 524) Q
    10. Receipt without production order into blocked stock (525 / 526) Q
    P.S: Check transaction  0PEG01 for customizing accordingly
    <b> REWARD POINTS IF USEFULL
    Thanks and Kind Regards
    Mohan

  • Approval procedure for goods issue

    Dear Expert,
    We would like to set approval procedure for goods issue base on the following criteria:-
    1. Only goods issue related to "write Off"
    2. We indicate "W/off" at Ref2 field
    Can anyone help me on this?
    Thank you.
    Regards,
    Ng

    Ok....
    Try this....
    Select Distinct 'True' From OIGE T0 Where T0.Ref2='W/off' and T0.DocNum=$[OIGE.DocNum.0]
    It would be OIGE.DocNum.0 and not OIGN.Docnum.0
    Please try above query for approval as it works fine in my DB
    Regards,
    Rahul

  • Control the goods issue(migo) on the basis of reservation number

    Dear All,
    I want to restrict the goods issue against the manual reservations.
    Logic:At the time of goods issue against the reservation system should check stock in hand(unrestricted stock)-all previous reservations.
    Eg:suppose unrestricted stock is 50kg
    Reservation 1 for 20 kg
    Reservation 2 for 30 kg
    Reservation 3 for 40 kg
    Reservation 4 for 10 kg
    When i do goods issue for Res :3
    System should check Uns Stock(50kg)-Previous Res(20kg+30kg)
    give error message stock insufficient.
    Waiting for the expert comment.
    Kind Regards,
    Sankar T

    hi,
    check these exits n badi's related to migo transaction.
    if u want to restrict by giving conditions u can do it using the exits n badi's.
    Transaction Code - MIGO                     Goods movement
    Enhancement/ Business Add-in            Description
    Enhancement
    MB_CF001                                Customer Function Exit in the Case of Updating a Mat. Doc.
    MBCF0011                                Read from RESB and RKPF for print list in  MB26
    MBCF0010                                Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0009                                Filling the storage location field
    MBCF0007                                Customer function exit: Updating a reservation
    MBCF0006                                Customer function for WBS element
    MBCF0005                                Material document item for goods receipt/issue slip
    MBCF0002                                Customer function exit: Segment text in material doc. item
      Business Add-in
    ARC_MM_MATBEL_WRITE                     Archive AddOn-Specific Data for MM_MATBEL
    ARC_MM_MATBEL_CHECK                     Check AddOn-Specific Criteria for MM_MATBEL
    MB_CHECK_LINE_BADI                      BAdI: Check Line Before Copying to the Blocking Tables
    MB_PHYSINV_INTERNAL                     Connection: Core Inventory and Retail AddOn
    MB_RESERVATION_BADI                     MB21/MB22: Check and Complete Dialog Data
    MB_QUAN_CHECK_BADI                      BAdI: Item Data at Time of Quantity Check
    MB_MIGO_ITEM_BADI                       BAdI in MIGO for Changing Item Data
    MB_MIGO_BADI                            BAdI in MIGO for External Detail Subscreens
    MB_DOC_BADI_INTERNAL                    BAdIs when Creating a Material Document (SAP Internal)
    MB_DOCUMENT_UPDATE                      BADI when updating material document: MSEG and MKPF
    MB_DOCUMENT_BADI                        BAdIs when Creating a Material Document
    MB_CIN_MM07MFB7_QTY                     Proposal of quantity from Excise invoice in GR
    MB_CIN_MM07MFB7                         BAdI for India Version exit in include MM07MFB7
    MB_CIN_LMBMBU04                         posting of gr
    MB_BATCH_MASTER                         Setting of Batch Data at Goods Movement
    reward points if hlpful.

  • Goods Issue against outbound delivery from blocked stock

    Dear All
    I want to do goods issue against outbound delivery created without any reference from blocked stock of my storage location. Is there any way I can achieve this? I know normally SAP allows goods issue from unrestricted stock but my business scenario requires goods issue to be done from blocked stock against outbound delivery.
    Please let me know any solution for this.
    Thanks and Regards
    Satish Kumar

    Hi
    Check this link where similar issue has discussed and its resolved as well. Please try this and update the findings. If possible could you share the background of this strange requirement.
    http://scn.sap.com/thread/1541911
    Thank$

  • How to block release item in Goods Issue if the stock is 0

    Dear All,
    I have an item that is placed in 2 warehouses.
    For example in Warehouse 1 there are stock as much as 5
    And there is No stock at all in Warehouse 2.
    But when I create Goods Issue, SAP didn't block me to release the item from Warehouse 2 even though the stock is 0 so the inventory becomes negative. Beside that, there is also no warning about that.
    Please let me know if there is setting I missed to block that process.
    Thanks in advance.
    Regards,
    Lina Yuanita

    Dear Lina,
    Just add Michael, Lina Should tick manage inventory by Warehouse in Item master Data Tab Inventory.
    HTH,
    Yun Pho

  • Blocking of Good Issue with respect to posting date

    Hi Expert,
                   Is there any way out in SAP B1 to block the Good Release with respect to posting date.i.e. If User receipt the Good in stock today then system should not allow the user to issue the same good on the back date.
    regards,
    PankajK

    Hi Pankaj,
    There are so many options e.g you can check in oinm select that particular item sort on docdate and check inqty and compare with your goods issue date if it is same then send same transaction to approval if you want.
    Thanks
    Sachin

  • Material blocked due to a physical inventory - VL02N - Post Goods Issue

    Hi,
    We are working with SAP R/3 4.6C IDES.
    During a business process we need to run VL02N and to click the Post Goods Issue button.
    When we do that, we are getting the following error:
    "Material P-103 1000 0001 blocked due to a physical inventory"
    Anyone knows that I need to do in order to make it work?!
    Also, anyone knows how can I add more quantity to a given part?
    Thank you!
    Yaniv

    Hi Yaniv!
    Any stock changes are forbidden during physical inventory (otherwise you wouldn't know, if your counting has amount of before or after the change).
    Close the counting (-> ask who has done this), then goods issue is possible.
    Quantity change: go to picking tab and enter 'real' -> changed quantity.
    Regards,
    Christian

  • Goods Issue for Project and Cost Center from consignmnet

    I am issue goods directly from consignment stock to Cost Center and Project using movement type 201 K and 221K.
    Business has a requirement and they like to know how much goods issued to specific cost center or project. Is there any way in SAP I can look into this?
    Thanks
    Kawal

    Charlie,
    This option doesn't give me the information by project or cost center.
    Option which I can see goes to table MSEG set different search criteria. Problem with this user has to enter lot of information.
    Thanks
    Kawal

  • Good issue from delivery not possible due to credit block

    Hi gurus,
    Please help me on this issue.while doing PGI for the delivery i am getting the following error message."Good issue from delivery not possible due to credit block "The simple credit check is assigned for the sales document type.iam doing free of charge delivery.
    What are all the possible ways to get such error
    Regards
    Vis

    but system behavior is not set in transaction OVA8, means combination of risk categories and 03 is not set.
    I think you are checking the wrong risk category, please check once again the Risk category of the payer in FD32, what is it assigned and also check OVA8 with this risk category.
    If you find the above settings are correct as per your observation, try to create a fresh cycle so that you will get the correct results as per your settings in delivery.
    In your case what you are saying is correct, may be the risk category is changed recently this you can check the change log of the payer customer in FD32( if any change takes place).
    If possible try to past the screen shot of both.
    thanks,
    srinu.

  • Goods issue blocked

    Dear All,
    i am facing a problem when i am doing the post goods receipt. in the return delivery
    at this time the PGR is blocked
    and the error message is coming as goods issue blocked for the delievry.
    so i found its a goods issue block so how to remobve this block
    in the sales document there is no blocking then also in the document is blocked for goods issue
    please help
    Thanks
    With Regards
    Subrat

    Hello,
    One explanation could come from original Delivery.
    If you're original delivery is not completely Good issued, return delivery cannnot be Good Receipted.
    Hope it will help you.
    Regards.
    Benoî

Maybe you are looking for

  • Custom monitor profiles and the mini....

    I'm thinking of getting the new mac mini, and I see the video card supports two monitors. Does it also support two custom color profiles for people using monitor calibration hardware/software? My old macbook supports an external display, but I can on

  • 3D problems on CS4

    helo when i take an image (background or layer) and i clic on "new 3d postcard from layer" the image just desappear and if i try to ad any image it never appears everything I see is a transparent layer. I tried to use the "new shape from layer" and t

  • Z510 battery problem

    i am an owner of lenovo z510... my prob is that in my laptop s  battery icon which is on bottom right corner is showing 100% battery remaining about 2 hr ago bt i have used it continuously for 2 hours bt its still showing 100 % remaining what to do 

  • MSI N560GTX-Ti Twin Frozr II/OC Bios Update

    Hi there, for some reason unknown to me one of my two cards has flashed itself to a stock version of the 560 TI My older card currently has the BIOS: 70.24.11.00.00                                                S/N: 602-V238-16SB1101159176 My newer

  • ELM:  upload of free text (notes field)

    Hi experts, For a client we are setting up the external list management functionality. We were able to match a lot of fields and have been appending structures CRMT_MKTLIST_*_EXT and made an implementation of CRM_MKTLIST_BADI. But for the moment we w