Good Receipt Note mandatory before Invoicing the POs

Hi,
Trying to make Good Receipt Note mandatory before Invoicing the POs. Created the below SP Transaction Notification (practicing hard!) but getting the error. Just thinking if it is actually possible to make a Good Received Note mandatory!!
CODE:
IF (@object_type = '18' and @transaction_type = 'A')
BEGIN
     If Exists (Select * from OPCH T0 Inner Join PCH1 on T0.DocEntry = T1.DocEntry Where T0.DocEntry = @list_of_cols_val_tab_del and T1.[BaseType] != '20')
     BEGIN
          Select @error = -1, @error_message = 'Please Create Good Receipt Note Before Invoicing'
     END
END
ERROR:
Msg 4104, Level 16, State 1, Procedure SBO_SP_TransactionNotification, Line 36
The multi-part identifier "T1.DocEntry" could not be bound.
Msg 4104, Level 16, State 1, Procedure SBO_SP_TransactionNotification, Line 36
The multi-part identifier "T1.BaseType" could not be bound.
Thanks in advance.
Kanu

Hi Kanu,
Try:
IF (@object_type = '18' and @transaction_type = 'A')
BEGIN
     If Exists (Select T0.DocEntry from OPCH T0 Inner Join PCH1 T1 on T0.DocEntry = T1.DocEntry Where T0.DocEntry = @list_of_cols_val_tab_del and T1.BaseType NOT IN ('20'))
     BEGIN
          Select @error = 18, @error_message = 'Please Create Good Receipt Note Before Invoicing'
     END
END
Thanks,
Gordon

Similar Messages

  • Goods receipt number and purchase invoice nubember info objects

    hi experts
    i have the requirement to build the report with the  info objects of goods receipt number(document) , purchase invoice numbers and purchase document numbers from standard cubes or ods.i have checked in inventory management and purchasing cubes&ods i am not success got the purchase document number it is from ods   (0PUR_O02)  the InfoObject  is 0OI_EBELN(purchasing document number),like this i want InfoObject  for Goods receipt number and purchase invoices from where can i get these fields.
    if u need any more information i will provide.
    thanks and regards
    Sreenivas.

    Hi Ahamed,
    thanks for your reply,do u have any information about purchase invoice number.
    i need one more help from you, how to find out Debtors turnover ratio from Acceount Receivables(AR) (or)G/L (General ledger account).is there any standard queries from Business content,i was checked and i was failed,if you have any solution for this please let me know.
    thanks and regards
    Sreenivas.

  • Serial number optional at goods receipt but mandatory at goods issue?

    How can we make serial number optional at goods receipt but mandatory at goods issue?
    Thanks in advance for the answers....

    Hi,
    Not in front of the system, but if i remember correctly one of these enhancements has a check on serial numbers,
    1. User exit -> MBCF0002
    2. BADi -> WORKORDER_GOODSMVT or MB_DOCUMENT_BADI
    Check & revert if it meets your need.
    Regards,
    Vivek

  • Goods receipt not possible for   delivery 80016425: error code 4   in MIGO

    Hi friends,
    I created STO from ME21N tr.code(document type:UB), then I created outbound delivery from VL10B tr.code based on STO.
    After that, goods issue is made by vl02n.Lastly , when I want to make  a goods receipt based on outbound delivery from MIGO
    (with mvmt type:101),it gives me error about"Goods receipt not possible for   delivery 80016425: error code 4   in MIGO tr.code" .
    Take your opinions

    Hi,
    Error 4 indicates there is/are no delivery item/items.
    Check following options:
    option-1--->Check material number extended to the both plants with storage locations
    option-2--->Check the material received already WRT  the delivery
    option-3---> Check confirmation control key in  material that needed in creation of an inbound delivery to have GR process
    option-4--->Check The latest goods receipt date in STO
    option-5--->Check(done any setting) if any billing to be done after PGI and then can do GR WRT delivery
    Regards,
    Biju K

  • Goods Receipt Note - printing problems

    Hi there
    I have a couple of issues regarding printing problems for Goods Receipt Notes.
    The 1st problem
    Only the first line item is printed on the GRN, all the other line items are omitted from the GRN.
    The 2 nd problem
    When doing a Non-stock item GRN it does not print at all.
    The 3 rd problem
    Our stock count sheet only print 300 line items at a time and it is also not in sequence.
    Another printing problem is with our picking list
    Here what happens is that instead of the picking list skipping the "perforate section" at the end of each page, it just continious printing one stroke through without any intervals.
    Then the last issue but with printing of Reservations, is that even though we have zero stock on hand, the reservations are still being printed. This causes a problem not only waisting paper, but we have to go through those lists to identify the actual reservations that can be issued.
    Please can anybody help?
    Regards
    Sonja

    in NACE Tcode
    u can Find
    choose ur application and press output type...
    select ur output type and press processing routine...
    u will find the progran name and form name..
    if it is usefull plz reward
    Regards
    Anbu

  • Goods receipt not possible for delivery 800001597: error code 4

    Hi,
    When doing goods recipt for outbound delivery in MIGO, I am getting the below message:
    Goods receipt not possible for delivery 800001597: error code 4
    When going in details of error messgae:
    For error 4 : Check the delivery and its document .
    Document flow is as below:
    Step 1. PO Created
            2. Delivery created with ref to PO
            3.Picking
            4. Shipment Created
            5. Goods Issue complete.
    Now what i have to check.
    Thanks in advance.
    Regards

    Check the link Re: MIGO
    Also check OSS Note 458770 - GR for outbound delivery shipping units with batch split and Note 314765 - M7865 during GR f. delivery w/ default values 102 if it applies to your SAP version.
    Regards

  • Goods receipt not possible for outbound delivery...error code 4

    hi ,
    i created a stock transfer order.
    an outbound delivery was created.
    pgi was done..
    gr was done against this delivery.
    but this gr was then cancelled.
    now when i am doing gr against this outbound delivery.
    i get this eror message.
    Goods receipt not possible for delivery 1134930096: error code 4
    i have then reversed PGI of this delivery in vl09.
    then did PGI again.
    but still same error message.
    please help.
    regards
    shashank

    Hi,
    When system gave you the message with the error code 4, you can click on the message.
    There may be various reasons for the error of GRn agaist delivery -
    1) GRN already posted against the Delivery
    2) Delivery is deleted
    3) Delivery is currently processed by another user
    System gives you the detailed analysis aling with the codes. You can check what reason is mentioned for reason code 4.
    Regards,
    Prashant

  • What is d BAPI for reversal of Good Receipt Note(GRN) for movement type 102

    Hi ABAPers,
       I have got requirement like this , I have done Goods Receipt Note (GRN) based on Purchse order Number using '.BAPI_GOODSMVT_CREATE' with 101 movement type.
       But now my requirement is reversal of good receipt note(GRN) based on Material Document Number (or) Purchase Order Number with 102 movement type. what is the bapi name i need to use. and i need to give reason for the reversal of GRN.
    please tell me the field name for reason  in bapi.
    i have searched in the net, but i could not get proper answer to this isse.
    Highly appriciate who gives answer as early as possible. I need to complete this task EOD. please give replies.
    Thanks & Regards,
    Vinay Kumar.

    Hi,
    If your material document has specific movement type i.e. 101, if you cancel document using BAPI_GOODSMVT_CANCEL, it automatically picks associated movement type 102 defined in customizing setting, you don't need to pass 102 explicitly while cancelling.
    I have not seen reason code in this bapi, but it is required to pass reason code then you may try transaction code MBST using BDC.
    Thanks,
    Ashok Veer

  • Goods receipt not possible for delivery 80172554: error code 8

    Hi all,
    I got this error but the description does not helps to understand the issue.
    Goods receipt not possible for delivery 80172554: error code 8
    Message no. M7865
    Diagnosis
    The goods receipt for the delivery cannot be posted.
    The error according to the error code:
    1. The delivery does not exist.
    2. The delivery type is unknown.
    3. The delivery is not goods issue posted.
    4. There are no delivery items.
    5. The receiving plant could not be determined.
    6. The delivery items have already been goods receipt posted or contain zero quantities.
    7. Goods receipt(effect)movement type to goods issue movement type could not be determined.
    8. It is not currently possible to block the delivery.
    Procedure
    Error code 1      : Check your entry.
    Error code 2,3,4,6: Check the delivery and its document flow.
    Error code 5      : The delivery must be related to a purchase order or
                        the customer must be a retail business.
    Error code 7      : Check the settins for your movement types.
    CD

    Please check this answered link:
    Re: MIGO
    Re: Inter comapny  PO-
    Goods receipt not possible for delivery 800015869: error code 1
    STO Problem while doing GR against outbound delivery
    Edited by: Afshad Irani on Jun 2, 2010 7:13 PM

  • Goods receipt not possible for delivery 800015869: error code 1

    Dear friends,
    I am doing MIGO-GR for outbound delivery, but getting error once inputting outbound delivery no.
    Goods receipt not possible for delivery 800015869: error code 1
    Message no. M7865
    Diagnosis
    The goods receipt for the delivery cannot be posted.
    The error according to the error code:
    1. The delivery does not exist.
    2. The delivery type is unknown.
    3. The delivery is not goods issue posted.
    4. There are no delivery items.
    5. The receiving plant could not be determined.
    6. The delivery items have already been goods receipt posted or contain zero quantities.
    7. Goods receipt(effect)movement type to goods issue movement type could not be determined.
    8. It is not currently possible to block the delivery.
    Procedure
    Error code 1      : Check your entry.
    Error code 2,3,4,6: Check the delivery and its document flow.
    Error code 5      : The delivery must be related to a purchase order or
                        the customer must be a retail business.
    Error code 7      : Check the settins for your movement types.
    Any poniters to check the setting in PO or delivery or any setting in SPRO.
    Regards
    Ashutosh

    Hi Anupam,
    That is the requirement of my scenario
    That is happening in intercompany posting.
    I am explaining to you.
    say total stock for article AR is 1000 ( In DC --A it is 500 and in store B it is 500)
    I have two company codes X and Y
    One DC (A) belongs to X and second store (B) belongs to Y.
    I have stock available for say article ( am working here in IS Retail  instead of material ) in both DC --A and Store --B.
    Now I have created PO thru replenishment planning WRP1 , now in PO supplying plant is DC.
    Now I did delivery thru VL10B and then picking and then PGI.
    Now my stock is reduced in DC by PO quantity created.( let us assume it is 100)
    So now total stock in DC=400
    Now this stock is in transit we can check thru MB5T. so total stock in transit = 100
    Now I have to do GR against delivery , if I will do GR for 100 nos , there will be no stock in transit
    and stock of receivibg store (B) will increase by 100 nos.
    But I am not able to do GR against delivery so I did GR against PO for say 50 nos. In this case stock in store is increase by 50 nos.
    But there is another stock in transit available=50
    Now why GR is not happening against delivery but it is happening against PO???
    Any pointers

  • Pricing at time of goods receipt not possible for this item

    We're receiving error Message no. 06634 Pricing at time of goods receipt not possible for this item when trying to change the PO Pricing Date Category from No Control to 5 GR Date.
    The error message is clear and reads:
    Pricing at time of goods receipt not possible for this item
    Message no. 06634
    Diagnosis
    For this purchasing document item, you wish to specify that a new price determination process is to be carried out at the time of goods receipt.
    System Response
    Pricing cannot be carried out for the item at the time of goods receipt because the price was either entered manually or copied from the last purchasing document.
    The scenario is that we have a contract reference on a PO and the contract condition records are to be maintained as a new price is valid each day.  The problem without this is that the new pricing will not be reflected in the GR.
    What is the solution to overcome this issue?
    NOTE:  the Info Record conditions are not being read during GR as the PO references a contract.

    For further clarification the PO is referencing a contract and as such not pulling the pricing information from the info record and instead pulling the price from the conditions on the contract. 
    I want to change the pricing date category from " No Control" to "5 GR Date" however I'm receiving the error message stated and unsure of how to make this change.
    The intent is not to create a new PO each day the condition record is created and instead we are utilizing one PO referencing one contract with multiple date delimited condition records containing the daily pricing.

  • Customisation settings for VC Configuration copy from Purchase order to GRN(Goods Receipt note)

    Hi Experts
    I was looking for Customisation settings for VC Configuration copy from Purchase order to GRN(Goods Receipt note),
    Please share.
    Regards
    Sandeep

    Hi Ritesh
    Thanks for your reply,
    I checked  both of these transaction  we need to select 3 option Characetrstics frm configuration(prio) and classification. I will check that, I had one more question
    In PO VC configuration is called for class type-300  and  in GRN VC configuration  is called for class type -023. How it will fetch the variant class configuration to Batch class configuration?
    Once we had faced some issues the copy from PO to GRN was happening for some batches & some batches it was not happening.
    yes we have activated Mill Functions in our ERP box.
    Regards
    Sandeep

  • Hi i need one object from goods receipt, and one from invoice

    hi gurus
    what are the tables and fields we have in goods receipt and invoice
    plz send one object on goods receipt
    and one object on invoice
    thank oyu
    regards
    kals.

    Check EKBE table.
    If BEWTP='E' means Goods Receipt and 'Q' means Invoice Receipt.
    DMBTR and WRBTR fields gives you the value of that item.
    ALso check this thread.
    Goods Receipt and Invoice Amount
    Check this thread for goods receipt notice sample program.
    grn report(goods receipt notice)

  • Good Receipt Note

    Hi.
    can you tell how can i see print preview of good receipt note.

    Hi,
    1. From MB02, Enter the material doc and year.
    2. Choose tab GOTO->DETAILS ITEM.
    3. Choose MESSAGES from application toolbar.
    4. Assign Output type, Enter details in communication methhod.
    5. Save. now use transaction MB90.
    6. Enter the same output type and transmission medium.
    7. thats it.

  • O/p type  for good Receipt Note

    Hi.
    what is the output type for Good Receipt Note?
    How can we assign it?

    Hi,
    1. Use transaction MB03, Enter the material document and material year.
    2. click button 'DETAILS FM ITEM'.
    3. Now Click button MESSAGES.
    4. Here you have to assign a output type.
    5. Click further data, select value 'Send with application own transaction' to field 'DISPATCH TIME'.
    6. Use transaction MB90, give the output type assigned for the material document and year, u will get the printable output format for goods reciept.
    Output type WE01, WE02, and WE03 can be used.

Maybe you are looking for

  • How to get the link of the WDA application dynamically

    Hi,    I have created one web dynpro application. when it is saved the approver get a work item in his inbox.The work item should have the link to the web dynpro application.So that when the user clicks the link,He should able to view the web dynpro

  • [Urgent]Please tell me if this project should be done in Flex or in Flash ActionScript ?

    Hi, I have a project and I need to know if I should do it using Flash Builder and Flex or just using Flash and ActionScript (I Know Nothing About Flash Builder And Flex) The project is: Mp3 Player - Streaming Mp3's - Ads inside each song - XML driven

  • Unable to create new Planning application

    I try create Planning Application: http://<myserver>:19000/workspace -> Log On -> Navigate -> Administer -> Classic Application Administration -> Planning Administration and receive an error on the page "Create Application": An error occurred while p

  • About MI34

    Hi , I am working<b>.. MI34</b>. but facing problem while creating file. Actaully user want to use MI04 .<b> but MI04 is not support BDC.</b> In the MI34 help - . its given that the file format as BISEG . But I have pass 5 - 6 serial number to some m

  • IDVD freezes when attempting to make a disk image

    I created an iMovie, edited it and added music. I clicked Create DVD within iMovie and created my .dvdproj. I then attempted to create a Disk Image in iDVD and the application just keeps freezing during the Process Movies stage. What would be causing