Reverse PGI but relevant sales order is already deleted.

Hello,
We have created a consignment fill up order and completed up to posting goods issue.
Now we need to reverse the PGI for this delivery, unfortunately the relevant sales order was already deleted.
Can you kindly advise how to reverse the goods issue?
Thank you.
1001ailas

hi,
this piece of code states that,
it is checking the VBELN for some other program and compares and passes the value into VBAK-VBELN
which has been deleted earlier.
FORM vbak_select USING value(vs_mandt) LIKE sy-mandt
                       value(vs_vbeln) LIKE vbak-vbeln.
  SELECT SINGLE *
         INTO vbak
         FROM vbak
         WHERE vbeln = vs_vbeln.
  IF sy-subrc > 0 .
    PERFORM auftrag_entsperren USING vs_vbeln.
    IF t180-trtyp EQ chara.
      MESSAGE i303(vl) WITH vs_vbeln.
    ELSE.
      PERFORM message_handling(sapmv50a) USING posnr_low
                                               '303'
                                               'E'
                                               'VL'
                                               vs_vbeln
                                               space
                                               space
                                               space.
    ENDIF.
  ELSE.
    cvbak = vbak.
    rv50a-vtweg = vbak-vtweg.
    rv50a-spart = vbak-spart.
  ENDIF.
ENDFORM.                    "vbak_select
there is only one way here i think so,
please go to archiving team and get be activated or wait till the date of archiving run and make it active.
balajia

Similar Messages

  • Delete sales order stock with deleted sales order reference

    Hi,
    Our user deleted a SALES ORDER Document without checking if there is still inventory. Now, we cant zero-out the sales order stock because the reference sales order was already deleted. The system is giving us error message that the reference sales order does not exist.
    Regards,
    Marianne

    Hi Marianne,
    You could try to reverse post the stock from sales order to own using movement type 412 - "E"and then re transfer it to some other sales order that you desire with 411
    if the above gives error
    you may consume the stock , or scrap and then recreate the stock with 561 or or 531 goods movement type. cause when you try to reverse the system would give a error as no valid sales order is to be found
    Thanks
    Akasha

  • WBS with billing element but no Sales Order

    Trying to write a SQ01 query to find WBS with billing element but no sales order assigned.  Can anyone help?

    VBRP is the billing item table, OP is asking about the sales documents.
    Queries for something that does not exist might be tricky. Use the tables/fields mentioned above (not VBRP), but make sure to use LEFT JOIN to VBAP. In this case you'll get blank/initial values in the query when no sales record exist. If you do a regular INNER JOIN then you just won't see the WBS that don't have VBAK/VBAP records.

  • WBS with billing element but no sales order assigned

    Trying to write a SQ01 query to find WBS with billing element but no sales order assigned. Can anyone help?

    Such WBS elements can be identified using CN43N report also using proper filtering criteria.
    Fileting criterias:
    Billing element.
    Order accepted status.

  • How to make the line items of sales order cannot be deleted.

    Hi All,
    Is there any Enhancement spots or user-exits which make the line items of sales order cannot be deleted if item category is 'TAN'.
    Thanks in Advance,
    Sudhakar Reddy .A

    Hi All,
    If you doesn't want to delete sales order line items then we have write in the Include Program which has mentioned below and in the form .....endform.
    Program Name :  Include MV45AFZB
    _Example:_
    form userexit_check_xvbap_for_delet using us_error
                                              us_exit.
    IF .......
      US_EXIT = CHARX.
    ENDIF.
    endform.

  • Sales order line item delete error for MTO sales order

    Dear Experts
    iam facing below error for MTO sales order line item deletion
    "For reasons of cost management, item 000040 cannot
    be deleted"
    Please help
    Regards,
    KEdar

    It looks you try to delete the sales order line item and you get this error message.
    Try to put reason for rejection for the line item and save the order. This is equal to deleting the line item.
    You can also refer the OSS note 14097 - Order item cannot be deleted/overwritten for further information.
    Regards,

  • A Sales Order is Already Completed But Still Creating PR Thru MRP

    The item is already delivered, but the MRP still creating PR for that item.
    When deleting the PR, our MRP will run again and create new PR.
    How can I stop the MRP in creating new PR for that item?
    Please help.
    Thanks,

    1.In running MD04, it display the Sales Order,Delivery No. and the PR generates from MRP.
    2.This is the Sales Order for the said item.
    3.Here's the assigned PR for the Sales Order
    4. Here's the assigned PR for those items.
    5.Here's the generated PR from MRP (see the reference PR No. in no.1)
    Thanks!

  • Need help on IDoc for Picking, Packing and PGI against the Sale order

    Hi All,
    I am new to this IDoc stuffs. Below is the scenario for which I would like to know the details of the IDoc...
    Business Case:
    1. Storage location is a HU Managed but not WM managed.
    2. This storage locations is managed by a third party
    3. Outbound delivery document against the SO will be created by our personnels in SAP for this storage location.
    4. Picking, Packing and PGI needs to happen/post via Idoc. (By packing here, i refer to assign the HUs that are already created for the materials and is available in the storage location and not repacking)
    Is there any standard IDoc that can be used here to Pick, Pack and post PGI. We would like to have picking and packing in a first idoc and PGI on the second idoc.
    Thanks,
    Prashant

    Hi Typewriter,
    Thanks for your reply on this post..
    The business process is as below (it was changed recently to have the creation of OBD, pick HUS and then post GI via single IDOC)
    1. We have a storage loc in our enterprise structure that is HU managed but not WM managed.
    2. This storage loc is being maintained by a third party.
    3. SO will be created to be shipped out of this plant/sloc.
    3. The stocks at this storage loc will be Special stock "E" against the sales order. And the stocks will be Packed in HUs.
    4. The third party is informed to deliver the stocks (HUs - that do have the special stock number which internally refers to the the SO number and the line item number) directly to ship to party address in SO.
    5. The 3rd party will physically ship the HUs to customer and send in the details that they have shipped goods against the sales order.
    6. The details sent by the 3rd party will be received in SAP to create OBD for the sales order, Pick, Pack and post GI. This can happen via a single IDOC..
    I am now planning to create a custom IDOC type referring to the standard IDOC type DELVRY03 and message type DESADV and to use a custom BAPI/FM.
    Do you think I am using the right ones?
    Thanks,
    Prashant Kumar

  • Mb1b movement 453 - profit center not from material but from sales order

    Dear All,
    we have the problem that by return process from sales order stock to free stock (453 movement) we would like to have the original Profit center from sales order, but as SAP standard it moves PC from material master.
    we have implemented already oss 978159 sowie 1038490, but did not help.
    Since days we try to find an uxer exit in MM or CO!? where we could write in the correct profit center. But unfortunately PC from material master pops up at the end of the process, and the system overwrites it again and again.
    Had sy of you similair problem? can you please help with an user exit?
    Thanks,
    BB

    Hi
    I think this behaviour is correct.. Since you are moving from Sales order stock to Unrestricted stock, the PC from mat master would prevail...
    As far as I know, this behaviour is correct
    Regards
    Ajay M

  • PGI on a Sales order

    Hi SAP SD Gurus
    Can I post a goods issue on a sales order directly?
    This need cam in as I wanted to do a Billing on the order (order relevant billing)
    If yes, kindly let me know the steps
    Thanks

    Hi,
    you can do it as order related billing. You can check the order items item category at VOV7. Here you will find the billing relevance field, where you can select the item as order relavant billing.
    Also you have many other options. But this is something which needs to be with a lot of care, as you are going to give direction to the business process by setting this way.
    Thanks
    Sadhu Kishore

  • More than one PGI for STO/Sale order

    Dear All,
             When doing PGI for a STO or Sales order that having many no.of items, more than one PGI is created for the same STO
    or Sale order. My doubt is How the system takes the material in each PGI whether there is any logic behind this or it takes in
    random manner. This happens while creating billing doument also.
    Could anybody help me to find the reason ?
    Regards,
    S Sridhar

    Dear Suresh,
              Thanks for your response.
              Please let me know, why  the system creates more than one outbound delivery for a single STO that contains many items.
    In my case, I have 8 items in a STO. When I create a Outbound dely,in VL10B, the system created 4 outbound dely.documents.
    my question is,
    1. Why the system creates 4 Outbound Dely.documents for a single STO that having 8 items ?
    2. By which logic the system decides the material in outbound dely ?
    My requirement is to create a single outbound dely for a single STO or otherwise I have to control the outbound dely.creation (more than one Outbound dely.document for a single STO)
    Regards,
    S Sridhar

  • Credit Check for "Not Relevant" sales order items

    Hello All,
    I am having a situation where my client takes advance reservations almost an year in advance.
    The sales order items have schedule line category to not consume inventory and so the overall status on each line item is "not relevant". The credit status on the order is "not performed". Since the overall status is "not relevant", the sales order amount is not added to the credit master receivables.
    We have around 100K orders and I am trying to see if there is a good solution to do a credit check on all these orders.
    I am in a desperate situation and would really appreciate a quick response.
    Thanks very much for your help.
    AM

    Hi Shiva Ram,
    Thanks very much for your reply.
    When I change the schedule line category on the items, the overall status on the line item changes to "Open". The credit status of the order will be "not performed".
    If I were to create an advance order with items consuming inventory, it goes through a credit check with the existing configuration.
    AM

  • Error in PGI delivery for sales order

    Hi Experts,
    Can any tell me why do I get an error message
    "You are not authorized for given plant and mvt tpe"
    when I try to do a PGI for a delivery of sales order.
    thanks in advance.

    Hi Ashwin
    In realtime there will limit to user to access to some Plant Data.
    For SD guys access to sales order only it will not allow to create delivery for that product..for thts y u r not allowed to access  for delivery.
    In real time they will create user profiles for each document type.
    Regards
    Srinivas.

  • Error PGI delivery for sales order

    Hi Experts,
    Can any tell me why do I get an error message
    "You are not authorized for given plant and mvt tpe"
    when I try to do a PGI for a delivery of sales order.
    thanks in advance.

    Dear,
    Check with basis peson for authorization.for perticular movement type. Check OMJJ also.
    System ask the user with the authorization problem to run SU53 transaction after getting the error message and pass that screen to your BASIS/ Authorization guy to add the required authorizations to your users.
    Regards,
    R.Brahmankar

  • Change of Sales order info without deletion of Outbound Delivery Order

    Hi Experts
    Background :  Although Invoice has been created and issued , Customer request SD user to divide the invoice into two invoices.
    or change the amount or quantity with same order No.
    AS IS  : 1 . Cancel invoice -> Reverse PGI -> Delete Outbound Delivery -> Change Sales Order -> Create New Outbound Delivery -> PGI ->
    Invoice
    Please let us know how to change sales order info ( cases : seperate 1 item with two items , change ship-to-Customer ,,,,,,,
    Further Explanation on this : After the invoice has been issued, If the customer wants to change the quantity 10, into two line items and One line item with 5 quantity another line item into another 5 quantity , wnats to have two seperate Invoices for this
    Is it possible to have?
    And some times the user wants to change the Ship to party after the Invoice has been issued, Is it possible to change ?
    Pls help me on this
    Thanks In advance

    Further Explanation on this : After the invoice has been issued, If the customer wants to change the quantity 10, into two line items and One line item with 5 quantity another line item into another 5 quantity , wnats to have two seperate Invoices for this
    Then, you have to first change the same in SO. to do so, you have to reverse all the process to reach SO & amend as required.
    Parila quantity billing is another way to have 2 seperate invoices.
    Is it possible to have?
    And some times the user wants to change the Ship to party after the Invoice has been issued, Is it possible to change ?
    This is doesnt seems logical or Business need. Once goods are alredy sent to respective partner. I dont think business asks you to change the Party name that too Invoice is already made. Is it your assumption or business requirement?
    if its really a business requirement, instead of thinking about the solution, suggest you to educate the Business. Is there any such practical scenario happens in the Market. I dont think so.

Maybe you are looking for

  • Material Master Replication From SAP R/3 to SRM

    Hi Gurus For the testing, I maintain a Job for the program SMOF_DOWNLOAD on daily basis in SRM system and I created the 5 material Masters in R/3. I am facing two issues. 1. The Material Master are replicated immediately, its not working as per the j

  • JTextArea How do I add text on a new line from Text field

    I want to put each new input from the text field at the start of a new line and keep the previous entries at the start of their own line. I'm doing this but need help with the new line. jTextArea1.setLineWrap(true); jTextArea1.setWrapStyleWord(true);

  • Ipod wont charge :((

    I have a 3rd generation nano. It's about 1 year and 3 months old. Here is the problem: a little while ago my nano wouldn't charge anymore. When I plugged it in, either with my wall plug or the USB connector to my computer the battery would say it was

  • Forum opens and then complete portal is shown in portal iFrame

    Hello, I implemented the jive Forum into my test portal. It was working really good. I have been away for a couple of weeks and now I am facing the problem that when I call the forum it appears for 2-3 seconds and then it navigates to the portal main

  • Exceed

    Hi gurus, do you installer for Exceed (humming bird) the emulator.. because i need to revised a custom pll of the seeded form.. my problem is in our office they dont have this emulator to open a seeded form in unix.. also, what are the things i need