Delivery status update in sales document at PGI

Normally system updates the delivery status of sales document line level, when a delivery document is created with respect to that sales document line.
But I want system to update the delivery status (in sales doc. line) when PGI is done for respective delivery document; not at the creation of delivery document. Below I have shown the status updating scenarios that I expect.
Scenario 1
Sales doc line qty: 100 PCs
Delivery Doc qty: 50 PCs
PGI: Not done
Status in Sales document line should be A (Open)
Scenario 2
Sales doc line qty: 100 PCs
Delivery Doc qty: 50 PCs
PGI: 50 PCs
Status in Sales document line should be B (Partially delivered)
Scenario 3
Sales doc line qty: 100 PCs
Delivery Doc qty: 100 PCs
PGI: 100 PCs
Status in Sales document line should be C (Fully delivered)
Can anyone propose a possible way of doing this (configuration/ user exits/ BADI etc,)?
Thanks,
Ramindu

Hi,
I dont know it with the use of  ABAP development, but by functional logic, can suggest you to configure the rush order sales configuration for your particular sales order.
just check that availability of that particualar sales order is met or not prior to it.
and then automatically when your delivery doc is created, PGI would be done and the status of your sales order would be updated with it.
try it out on your development client, if it works out.
regards,
Siddharth.

Similar Messages

  • Delivery status of a sales order

    Hi,
    I have a requirement wherein I need to extract the delivery status from a sales order.
    VA03 --> Header Info --> Status
    In this screen you have the various processing status. From that I need to pick up the delivery status.The corresponding field data is VBSTT-LFSTA_BEZ.
    Since this points to a structure, I am not able to find out a way to get this value.
    Kindly help.
    Thanks,
    Raj.

    give the vbeln number in table VBUK
    check 
    the status for delivery as
    A /  B / C
    A not processed
    B Partially processed
    C completely processed
    GBSTK ne C will be overall processing status
    LFSTK ne C will be for delivery open
    regards,
    vijay

  • ABAP query to find delivery number of a sales document

    Hi Gurus,
    Can anyone help me how can i create an ABAP query to fetch the delivery number of a sales order. What are the tables to be joined.
    Through tables I got the solution. From VBAP table I fetched the sales order numbers. I copied the sales order numbers and opened VBFA table. In the preceding documents field I had pasted those sales orders numbers. Then I've selected subsequent document category 'J' to get the deliveries.
    But now how to write an ABAP query for this.
    regards
    rama krishna

    Hi,
    Try to use join query like:
    Select vbfa~VBTYP_N  INTO CORRESPONDING FIELDS OF TABLE itab from VBFA inner join VBAP
      where vbapvbeln = VBFAVBELN.
    Regards
    Mudit

  • Status update on Sales Opportunity when Quotation is won

    I need to set up an automatic status update for the sales opportunity; when the quotation is set as won, the related sales opportunity is also set as won. I have tried the <Define status profile for user statuses> in IMG, but don't seem to get it right..
    Can anyone help me?
    Krgds, Eva

    HI Eva,
    Even i did the same thing for my project. Updating the Sub contract status, with whatever the master contract has got.
    SO i used the ORDER_SAVE badi, and called a FM , where i wrote the logic to update the subcontract.
    So u can also do the same thing, by coding in the ORDER_SAVE badi, what ever logic u want.
    Reward points if helpful.
    Robin

  • Fm for status based on sales document number

    Hello Gurus,
    Can you please provide me the function module to get status( open, complete, inprocess) based on Sales document Number.
    Thanks

    Hi,
    Use FM BAPI_SALESORDER_GETSTATUS for getting the status of the Sales Order.
    Also:
    Check the given requirementcorrectly once again
    Because for sales order we don't use the field OBJNR (object no) to find the ststau
    Generally we use this field OBJNR for finding the Status of the PP,PM related Orders.We will take the OBJNR from AUFK table and Pass it to the JEST table
    and will read the STATUS of the Order
    So for sales order we don't have that field OBJNR
    if needed use the BAPI BAPI_SALESORDER_GETSTATUS to find the sales Order status
    Or use the table VBUK to find the Sales order status
    Reward points if found helpful...
    Cheers,
    Chandra Sekhar.

  • User Status update on Sales Order Header

    Hi all,
    I need to update the "User Status" on sales order header when a sales order is saved. As user status reside in JEST, what available user exits are there to change/insert new user statuses? I don't believe the common exits like MV45AFZZ would do.
    To clarify, to get to these user statuses, you go to the header of the sales order, select on the 'Status' tab, then click on the "Object Status" pushbutton.
    Any help would be greatly appreciated in the form of points!
    Thank you.
    Liam

    Hi Liam,
    In the Program MV45AFZZ in the FORM userexit_save_document
    you use the following fn module to change the user status
    'STATUS_CHANGE_EXTERN'
    Example
    IF t180-trtyp = 'H'.  "Only creation time
      READ TABLE xvbap WITH KEY matnr = c_matnr.
      IF sy-subrc = 0.  "If above material exist then change status
        LOOP AT xvbap WHERE cuobj NE space
                       AND  matnr =  c_matnr.
          l_objnr = xvbap-objnr.
          CALL FUNCTION 'STATUS_CHANGE_EXTERN'
            EXPORTING
              objnr               = l_objnr
              user_status         = 'E0013'  "Send ej IDOC
              set_chgkz           = 'X'
            EXCEPTIONS
              object_not_found    = 1
              status_inconsistent = 2
              status_not_allowed  = 3
              OTHERS              = 4.
        ENDLOOP.
      ENDIF.
      sy-subrc = 0.  "Restore the previous condition
    ENDIF.
    Reward if helpful *********

  • Object status for a sales document

    Hi
    I have maintained one status profile with 3 status and assigned it quotation document (Quotation -> Stauts Data - > Object status -> 3 new status in radio buttons ). In which table can i see that this document number and status of document?
    Tj30t has the description and number of new status .
    Thanks in advance.
    Regds,
    Vaishnavi

    Hi,
    You can get document number and status details in V.26 transaction code.
    Goto V.26, enter status e.g BLK ( blocked) and choose user status and execute.
    System will show you list of the documents with status.
    If you are using header status, then goto VBAK table get the value from the OBJNR field (Object number).
    Goto JEST table and enter Object number and system will show the status.  E.g E0001(Tehnical name) . (The sequence you maintained in status profiles)
    E0001  CRT created
    E0002  BLK  Blocked
    E0003  REL Released
    Regards,
    Chandrasekhar

  • Condition not updating in Sales Document.

    Hi,
    We have created a Conditon type ZEX2, a copy of JEX2 with negative value for Deemed Exports. It is working fine in Quality server but not working in PRD Server. Analysis says Condition record not found. Some times it says condition record exists but removed manually and sometimes it says missing.
    I tried but couldn't get to a conclusion where I am missing. Please advise.
    Regards,
    Ajit

    Hi Ajit,
    Normally this program is run only if u create a new routine for some calculation/requirements in pricing.
    If the same worked well for you, I guess it has got to do something with generation of routines after the request has been transported.
    Next time try logging off and log in again or run the same program for errors related to pricing. Most of the errors are eliminated in these 2 steps.
    Kindly close the thread if ur question is answered
    Regards,
    Amit
    Edited by: Amit Iyer on Aug 24, 2010 11:11 AM

  • Iphone delivery status update

    Just got email and can now track my Iphone 4S...Its in Hong Kong right now

    Got may email as well. Mine is in Alaska as of 2:45 our time. To iknowapple, I ordered mine at 3:30 am Pacific Time, ordered the black 16 Gig

  • Field and Table for PGI status updation

    Hi All,
    I want to know in which field and table the PGI status will get updated.
    i.e. once we do the PGI for a delivery in which table will this PGI status gets updated.
    Thanks in advance for help.
    Harini

    Hi Harini,
    In Table VBUK you 3 different status related fields for  sales documents.
    Over all status field name GBSTK ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its complete open)
    B  Partially processed     ( This means the sales doc is partially processed)
    C  Completely processed  ( This means the sales doc is completly processed)
    Delivery status  and over all delivery status field name LFSTK and LFGSK respectively, these 2 fields will be same always ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its completly  open)
    B  Partially processed     ( This means the delivery doc is partially processed)
    C  Completely processed  ( This means the delivery doc is completly processed)
    So overall status can be  different then delivery or overall delivery status.
    If sales document has 100 quantity for 1 material, if delivery is done for 50 quantity.
    Then over all status field name GBSTK will be B  Partially processed and delivery and overall delivery will be C  Completely processed  .
    Regards
    vK

  • Update vbup/vbuk from user-exit for sales document

    Dear All.
    Is it possible to update the sales document status for an item (vbup) from a user exit , customer function, badi, or other, in the billing document?
    We'd like to make the control of updating the status tables dynamic, rather than based on the confiuration for an exception process.
    For example, when service item (order related billing) is partially billed, depending on some conditions we would set the sales order service item to fully invoiced. 
    In this case vbup-FKSAA = C.
    Many thanks!

    There is a BAdI LE_SHP_ITEM_STATUS that can change the item status in VBUP. Be sure to read the documentation first. It states
    If you use this BAdI to change the delivery item status that was set in delivery
    processing, it can affect further processing of the delivery extensively, and
    lead to data inconsistencies. Therefore, SAP recommends that you only use
    the BAdI to modify your own status fields.
    Regards,
    Brenda

  • FM for sales order delivery status

    Hi,
    Is there any FM which can return the delivery status for a sales order line item?
    Thanks and regards,
    Madhu

    Delivery Status -- It is for Sales Document -- Means if one or more items of a Sales Order processed it will consider and based on that this status is set (Delivery started for at least one item of Sales Order)
    Overall Delivery Status -- It is based on the Sales Order Items... Means all the items of a Sales Order are processed it will consider and based on that this status is set

  • Status Update of Service Order From Billing Document

    Dear Experts,
    I am told to change the User status of Service Order once the Billing Document is Generated.
    Here we are in CRM 2007 and i have done the status update of previous document but here
    Billing document is not possible to read through CRM_ORDER_READ (function module).
    Do any one have any idea how do i proceed.
    Thanks,
    SA

    hi sa
    to change the service order user status , when biling document is generated
    make an implementation of bill_acc_if  bai and in the method ENRICH_ACC_DOCUMENT
    read order data using crm_order_read  and change the status using
    CRM_STATUS_CHANGE_EXTERN
    thnks
    sam

  • Incorrect overall processing status on Sales Document Header

    Hello Everyone,
    It has been observed at my clients site, though very sporadically, the sales document, overall processing status gets corrupted. SAP has provided correction reports by which we can rectify a corrupted status on the sales document, but I haven’t so far read or heard of any mechanism by way of which we can “figure out” which sales documents have corrupted statuses.
    I will appreciate if anyone of you who has come across a similar problem can share what was done to fish out the sales documents with corrupted statuses
    Thanks

    Hi Altaf Shaikh,
    The incorrect statuses happen not very often if you client is using all standard program but not modification.
    90% for all the reported case is due to customer own modification & I'm afraid that we could not find out the exact cause if the same could not be reproduced.
    Report SDVBUK00 will help to correct the incorrect status. For detail info on this report, you can refer to note 207875.
    Hope this is helpful to you.
    Thank you.

  • Delivery block in Sales document type

    Hi All,
    Can you please explain the usage of the delivery block field available in Sales document type customization under the Scheduling Agreement Tab with an example.
    Please let me know on where the "tolerance" described in the F1 help is defined or controlled?
    Thanks & Regards
    ilango

    Hi Ilango,
    I could not find the "tolerance" described by you. Please read:
    Delivery block (document header)
    Indicates if an entire sales document (a sales order, for example) is blocked for delivery.
    Procedure
    The system can propose the delivery block indicator according to sales document type. You can also enter a block manually in the header. A block in the header applies to the entire document. If you want to block one or more specific items, you can enter the block at item level.
    The delivery block at header level is only effective if this block is assigned to the corresponding delivery type in the Customzing table (TVLSP). Regardless of the settings in Customizing, the delivery block is always effective at schedule line level.
    Example
    You can block delivery automatically for certain sales document types (for example, free of charge deliveries) where it is important that someone checks the details before shipping takes place.
    Dependencies
    If you use a credit limit check, the system can automatically block delivery. You can change this block. However, as soon as you change any of the values in the sales document, the system automatically reapplies the delivery block.
    So, in abstract, the whole document will be blocked, depending of this customization.
    Regards
    Ruy Castro

Maybe you are looking for

  • Mavericks refuses to mount Time Machine partition

    Hi there, Two days ago, my MBP crashed, kernel panicked. Since then, it has not been able to mount my external Time Machine partition. Notice that the external drive has two partitions in it, MBP is happy to mount the other partition, but not the TM

  • I'm looking For Mac Version intel Base Internet Explorer Browser

    I need to Download the Internet Explorer browser so that I can use it to open a web Page from Staples to fill out a Job application Form, Safari and FireFox doesn't support that web page from staples. I am having a Hard time finding the right web sit

  • Aggregation level deletion issue

    Hi , I have a requirement to delete few aggregation levels from the system , i deleted them in development system and put them in a request but on transporting to Production these are not getting deleted. Any pointers . Is there any other way to dele

  • (parent target) opens in a new page !!

    hi i'm designing this HTML website with dreamweaver 8 and i have a flash navigation menu on the top of the page and when a link is clicked it should be opened in the same page (parent target) anyway it was working fine untill i upgraded the IE6 to IE

  • Macbook icloud music list does not allow new music download why?

    My macbook icloud music list does not allow new music download why? I have only 5.000 mp3.