Updating the delivery document once the picking is done :

Hi Iam designing a custom screen,
Here i have a icon for automatic picking, should be a check box for that, if it is once checked all the lines items in the transaction should be automatically picked as of the delivery quantity.(The delivery quantity should be copied automatically in picking column if auto Picking is selected).
     Once the picking is done, and hit SAVE, then the data should be updated automatically to delivery document, all the picking quantities should be copied to delivery document for those concerned line item. The picking quantity should update field LIPSD-PIKMG, in delivery picking tab.
Please advice how we can achieve this.
Edited by: vinay raj on Jun 19, 2009 12:52 PM

yes iam using the same function module.
But for some reasons this function module is not updating the delivery document.
Any suggestions.
iam writing the code like this :
LOOP AT IT_PICK.
    hvbpok-vbeln_vl = it_pick-vbeln.----
delivery number
    hvbpok-posnr_vl = it_pick-posnr.----
delivery item
    hvbpok-posnn = it_pick-posnr.----
i have doubt here
    hvbpok-vbeln = it_pick-vgbel.----
doubt here.
    hvbpok-vbtyp_n = 'Q'.
    hvbpok-ndifm = 0.
    hvbpok-taqui = ' '.
    hvbpok-charg = it_pick-charg.
    hvbpok-matnr = it_pick-matnr.
    hvbpok-lfimg = it_pick-lfimg.
    hvbpok-pikmg = it_pick-PICQTY.----
picking quantity
    hvbpok-brgew = it_pick-brgew.
    hvbpok-gewei = tvblkp-gewei.
    hvbpok-volum = tvblkp-volum.
    hvbpok-voleh = tvblkp-voleh.
    hvbpok-orpos = 0.
    APPEND hvbpok.
  ENDLOOP.
  VBKOK-KZLSP = 'X'.
*insert default value for test
  VBKOK-VBELN_VL = l_vbeln.----
Delivery number.
BREAK SKUMAR.
  CALL FUNCTION 'SD_DELIVERY_UPDATE_PICKING'
    EXPORTING
      VBKOK_WA                     = vbkok
      NICHT_SPERREN                = 'X'
      AUFRUFER_T                   = 'X'
    TABLES
      VBPOK_TAB                    = hvbpok.
  IF SY-SUBRC EQ 0.
    COMMIT WORK.
Edited by: vinay raj on Jun 23, 2009 6:58 AM

Similar Messages

  • Not able to create the delivery document in '000' client of IDES

    Dear Experts,
                           I am facing a problem while creating an sd process flow in the client '000' of SAP IDES system. I am working over SD CIN. Previously I received an error while generating sales order. The error was stating that certain entries were missing in the table CRMPAROLTP & it was the error message number V3, 302.
    For that I went to SM30 & defined 'CRM_RELEASE' (under parameter name) & '600' (under parameter value), which solved my problem. Now I received another problem while creating the delivery document which is as follows:
    Problem :   "Message no. B2 001 : Local logical system is not defined"
    Kindly assist me in sorting out this problem. I checked the stock level at MMBE, but the stock was not reduced with the quantity as was specified under the delivery document & at the same time the document number was also not available for further processing.
    What to do?
    Thanks & regards,
    M.S.Kumar.

    Hi Prashant,
    Thank you very much for resolving my problem. Meanwhile I first went to trx. code 'BD54' &, there I defined a new logical system & ultimately assigned that logical system to client at 'SCC4' as specified by you. And my problem got resolved.
    Thank you very much once again.
    With regards,
    M.S.Kumar.

  • Regarding- Packing Line Item Not Displayed in the Delivery Document.

    Hi,
    I have 2 queries
    1) Have  created separate Material Type Packaging for my packing material and the item category group used is VERP, my Orginal Material is getting packed in the Delivery Document, however the packed item is not coming as a separate line item in the Delivery document, I have maintained the item category settings for the Delivery Packing Material and also the packing Material contains stock,
    2) The Plant and Storage Location for my handling unit need to get defaulted autmatically in the delivery document what settings should I configure for the same.
    Kind Regards
    Atul Keshav

    Hi,
       Find the below threads, which is explained in context with returnable packaging, same will be useful for you.
    [Re: returnable packaging]
    [Returnable packaging process;
    Regards,
    Reazuddin MD

  • Report to Monitor the change of delivery address on the delivery document

    Is there a report that can show me when a user had changed the delivery address in a sales document or delivery document. The ship to # would stay the same but the address can be changed within the sales document which does not effect Master Data records.
    We are trying to moitor this to find where users have modified the address when shipping a delivery.
    Thanks

    Grant,
    I was unable to find a solution to your problem.  I think it is unlikely that this change
    when a user had changed the delivery address
    is explicitly recorded by SAP.  In the systems I looked at today, address changes in Sales docs are not among those that are automatically recorded.
    You can, however, look in table VBPA.  If an address has been entered manually (vs the normal automatic determination via customer master tables), then VBPA-ADRA is changed to 'E'.  Unfortunately, I can't find any place where this event is time-stamped, or the user responsible is recorded.  You might be able to intuit the user using other means. 
    Regards,
    DB49

  • In delivery document flow the shipment should be added

    Hi Gurus,
    when the delivery is created, users have to affect the delivery to the right shipment document:
    They have to :
    1.Check the sales order document number form the document flow of the delivery
    2.check in the order the shipment document number
    3.Enter in the shipment document number (VT02N) and affect the delivery.
    If the copy cannot be processed (sales order locked for example), user is not informed and data are incoherent between order an shipment document.
    plz help me to find a solution to solve this problem
    thanks in advanced
    Edited by: snehal patil on Nov 21, 2008 9:55 AM

    Welcome to the forum.
    First of all, this should have been posted in sales forum as this is not the right place to post.  Coming to the query, if I understood your requirement correctly, you want to restrict the number of line items in delivery.  If so, check this thread
    [Re: How can I limit the item number of the delivery?|How can I limit the item number of the delivery?]
    If my understanding is wrong, please elaborate and post the same in sales forum.
    thanks
    G. Lakshmipathi

  • In SD i am looking to add some custom fields to the delivery document.

    In SD i am looking to add some custom fields to the delivery document. can any one help me out.

    hi,
    u have get the access key for the program with respective to the delivery document & user exit has has to done.
    This is job of abaper
    regards,
    Arun prasad

  • Update the FI document with the PO customer number

    Hi,
    Is it possible to update a header field or item line field of customer of the FI document with the PO customer number or sales document of PO (VBAK-VBELN) at the billing moment. I cannot do by standard substitution because the original field is not saved in the table BSEG or BKPF. 
    Thanks,
    Cecilia

    It can be done via substitution with exit.
    You can configure your exit and then ABAPer can define the code for that exit in the copy of the program RGGBS000 assigned to the substitution in view V_T80D (Transaction SM30)
    In ABAP code you can fetch the values from various tables.
    Regards,
    Gaurav

  • Excise condition types not appearing in the Delivery document pricing

    Hi,
    This is a scenario of sales from an Exciseable Plant.
    The client has pricing requirement at delivery document.
    I have configured the pricing at Delivery document, but the Excise condition type (JEXP) does not appear.
    We are maintaine ED values at control code level and control code field is not availabe in LIPS, i tried adding the field in LIPS structure but still the ED condition type does not appear as program is not identifying the control code field in delivery.
    Can you please let me know the solution for bringing Excise condition type in the Delivery document pricing procedure.
    Regards
    Venkat

    Changed the Condition Category from 'F' to 'L'.

  • Auto Population of number of packages field in the delivery document

    I have a requirement wherein the number of packages field (LIKP-ANZPK) field needs to be populated automatically in the delivery document. I have maintained the packing instruction(POP1) and assigned the instruction to respective material(POF1). Is there anyway that standard SAP calculates the number of packages from POP1/POF1 and populates it into the delivery document?
    It would be helpfull if someone can let me know if this scenario is possible via standard SAP config? If yes what other configs should i setup?
    Thanks,
    Harish

    As far as i know SAP does not perform this calculation based on POP1/POF1 and this is not controlled in Configuration.  It is simply performed automatically by the system by calculating the number of HU's in the "Pack Screen" of the Delivery.
    thanks,
    A

  • Add new field in the delivery document

    Dear Guru ,
    I want to add one Field  in the delivery document and that should be open after PGI done .Can you please help how to create one additional field in the delivery document.
    Thanks in advance ..
    Regards,
    Abhijit ...............

    Dear Abhijit
    Even after doing PGI, there are some fields which are in editable mode in delivery.  For example, in VL02N, if you select "Goto --> Header --> Shipment, you can see fields like Bill of Lading are in editable mode.
    If you specify what your requirement is, then probably, a better option can be given.
    Thanks
    G. Lakshmipathi

  • Issue in the Billing Document from the Delivery.

    Hi Experts,
    I have an issue with date of the bill document. The date is taken from the date when the delivery was posted however the users want to change this date to the day that the bill document was created.
    I don´t know where I can change this.
    Thank you and best regards.
    Thank you and best regards.

    Hi,
    While creating Billing Doc (T. Code: VF01), Mention "Billing date" as desired.
    If you leave this field as blank, System will create Billing doc based upon Delivery date.
    However, there is one more date ("Created on" in Header Data), where System records Document date as the date on which Billing Doc has been created.
    Best Regards,
    Amit
    Note: If want to make changes in Billing date for already created Billing Docs.
    Go to: VF02
    Key-in your Billing Doc. No. and Go to Header Data (Edit --> Header --> Header).
    There you will find Field: "Billing Date", which would be modifiable. Change the date as desired.
    Imp: on the same screen, You may see the details like:
    1. Payer
    2. Created By:
    3. Created on:
    4. Time

  • How to Change Shipping Condition on the Delivery Document

    I want to change the Shipping Condition on the delivery document .  Please explain !

    Hi,
    I think you cant change shipping condtions directly in delviery. Because this data will be copied from sales order. So if you want to change u can change in sales order and then try to create delevery.
    Based on this shipping conditions only shipping point will be determined. So you cant change in delivery but u can change in sales order or directly u can change in customer ship to pary then it will be copied to sales documents...
    Regards
    sankar

  • Delivery document not being picked while creating shipment document

    Dear All,
    Issue is regarding creation of shipment document.
    As i am creating shipment document in VT01N, am unable to get the delivery doc . ie., delivery document is not picked in shipment creation.
    I have created a sales order, picking is completed n saved, PGI not yet been done.
    Am unable to create a shipment document due to delivery document not being picked.
    i/p's will be of great help.
    with regards,
    Vijayashree

    Dear all,
    The issue is solved.
    As the Route was not picking in Sales Order so the delivery was not picked in shipment creation.
    Route determination setting was not correct.
    Regards,
    Vijayashree

  • Not to allow to save the billing document in the back date if FI period clo

    Can anybody help me please. My FI period for october is closed. But there are still some open delivery documents in billing due list for October. So now let say on 7th december if i will make the billing documents by giving the date 30.11.2007 logically as FI period is closed it will allow to save the billing document but will not pass to accounting.
    So this normaly happening in my industry endusers are creating the billing documents in the back date even after the period close so all the documents come into VFX3.
    So can any body help me? Can we have any check if the FI period is closed for a perticular months if we will try to make the billing documents in the closed period it will not allow to generate the billing document rather saving the documents and blocking for accounting.
    Reggards.
    Laxmikanta Das.
    09958119889.

    Dear laxmikanta
    I also not come across the situation what you said and hence dont have much idea about authorization group.
    However, on going through the F1 help, it says
    <b>Procedure</b>
        If only a limited set of users is to be able to post in a particular
        posting period, proceed as follows:
                 o   Add the posting period authorization (authorization object
            F_BKPF_BUP) to the authorizations of the selected users. Assign an
            authorization group (e.g. '0001').
                  o   Enter the account type '+' for the posting period variant to which
            the restriction is to apply. Enter the period(s) whose use is to be
            restricted in the first period, those which are available to all
            users in the second period, and the authorization group (e.g.
            '0001') in the last column.
    <b>Examples</b>
        A posting period can be successively restricted. If, e.g. 10 users have
        the posting period authorization with authorization group '0001', and 3
        of these 10 users also with authorization group '0002'.
        If the period is only to be accessible to the 10 selected users the
        authorization group '0001' is entered in the posting period variant.
        Access can later be restricted to the remaining 3 users by entering
        '0002'.
    From the above, I feel your requirement can be met.
    Thanks
    G. Lakshmipathi

  • How to return the XMLDOM Document to the caller of a URL?

    Hi,
    We are using Oracle9.2 and have created applications and reports written in PL/SQL + Oracle Web Toolkit. A PL/SQL Package now generates an XML document using XMLDOM, and is invoked by calling an URL. The customer is looking for ways to create a kind if Web Service out of this Package, without using OC4J / JDeveloper to deploy it - they simply don't want to go there, yet.
    The question then is: How can they simulate a Web Service by returning the content of the XMLDOM document in the URL? Creating an XML file on disk or putting the XMLDOM document into a CLOB works fine. But how can they most easily return the XMLDOM document to the caller simply by using the URL itself?
    Please ask for clarifications if needed. Any good suggestions are highly appreciated. Thanks, Eilev.

    Hi, I can answer my own question as it turns out the answer was just as simple as I was hoping for:
    By printing the content of the XMLDOM document using HTP.PRINT it can easily be picked up and parsed by the caller.
    Have a wonderful day :-)

Maybe you are looking for