Sales Order -- Update the delivery Document Credit status using FM or BAPI

hi All,
The requirment is quite urgent......  Actually i am Using a userexit V56FSTAT through VT02N and want to update the credit status through VKM4 Transation. But i require a Function module or Bapi to Update the credit status of the delivery status.
Please do give me suitable Function module or Bapi through which i can perform the VKM4 transation to update the credit status of delivery document....

when we go to vkm4 there we click on the reassign button and save then the status is changed in VBUK table....
so i have to perform this steps through VT02N transation....
Ny ways thanks for the reply,
i guess i require more support fom u all
Message was edited by:
        siddharth samal

Similar Messages

  • 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

  • Find the sales order number with  delivery document

    hi:
    i want to quickly look for the delivery document  related the sales order ,now i find it via se16 in talble vbfa.
    please help me provied with means.
    best regards.

    hello, friend.
    you can go to your delivery document and click on the 'document flow' icon.  you will see the sales order number there.
    regards.

  • Sales Order Update during Delivery Creation

    Hi,
      I have a requirement to update one of the customer specific sales order header table field during the creation of delivery.I'm trying to do this through the delivery user exit USEREXIT_SAVE_DOCUMENT program MV50AFZ1.
    I have a structure CVBAK available, but if i update customer specific the field in the CVBAK it's not changing the sales order.I won't be able to use BAPI or BDC to update SO from the exit, because during this delivery process the current sales order is being used, so system doesn't allow me to acces the sales order.
    Please give me the solution for my problem.
    Thanks

    Hi
    Probably the table VBAK is not updated by delivery transaction, so u can try to update that field (if it's custom field) by yourself.
    U can create a you function module for updating and call it in USEREXIT_SAVE_DOCUMENT:
    FORM USEREXIT_SAVE_DOCUMENT.
    CALL FUNCTION 'Z_VBAK_UPDATE'
          IN UPDATE TASK
          EXPORTING
               VBAK = VBAK.
    ENDFORM.
    In 'Z_VBAK_UPDATE' insert the code to update VBAK, you can also try to call the BAPI here, perhaps (the fm is called in update tusk) in this moment all blocks are released.
    Max

  • Sales order stock on delivery document and transfer order

    Hi all,
    At my current client I have a requirement where we need to put stock against sales order (sales order stock E). So, being a MTO process we create production order and perform goods reciept to unrestricted stock. To avoid getting picked up by a different sales order, we move the stock to sales order stock using 412 E (tcode: MB1B). Here are the issues I am facing currently:
    1. Is there a direct way of receiving production order directly to sales order stock?
    2. I couldn't find a way to do the first, so I am currently receiving production order against unrestricted inventory and then move it using MB1B. So, the stock can be seen to assigned to sales order.
       2a. When I create delivery it is not consuming same stock, it is consuming inventory out of unrestricted stock (if any, in case no inventory is available it throws error of 0 available quantity). Once I have assigned sales order stock why is it still looking into unrestricted? Is it due to the requirement type which is assigned. Do I need to change the item category so availability will check sales order stock (similar to item category TAB)?
      2b. This probably will be resolved if I get the delivery fixed but we have SAP WM and during TO creation I don't see the special stock reference filled in? I tested this process with item category ZTAB (copy of TAB) which creates purchase requisition and it seems to be working but I don't need the purchase req for my case.
    3. This is more of an accounting issue: when I attempt to move stock from unrestricted to sales order stock using 412 E, I was getting "Account XXXXX is not assigned to cost center". So, I went in an assigned a cost center to this cost element. IS THIS REQUIRED & WHAT IS THE RELEVANCE as it takes stock out of inventory.
    I understand it crosses other functional areas but even if you can clarify 1 part of it, will be very helpful.
    Thanks.
    Naren

    Dear Friend
    You are telling that it is MTO scenario and you are posting stocks into unrestricted stocks
    This is entirely wrong
    This is happening because of a simple thing missing in your sales order item category configuration in VOV7 that is special stock indicator E is missing which should be there
    This is the cause of whole problem
    MTO item categories will have special stock indicator E in standards
    In MTO based on the sales order production order is triggered and stocks are receipted against sales order and not into unrestricted use by defaut in standard
    You will receive MTO stocks as sales order stocks in your plant  only in standard
    But it is not happening for you because of  stock indicator E in VOV7 of your sales order item category is missing
    Posting MTO stock in to unrestricted use is meaningless  and the same is happening because of a slight miss out in setting in VOV7
    This is the solution for issue no 1
    For issue no 2
    You have created the sales order( MTO order) without special stock indicator E and now you are doing a transfer posting in MB1B with 412 E  referencing the order no sales order stocks  that is Fine
    You are getting an error that only zero qty is available either at delivery or at pgi eventhough in MMBE you will find sales order stocks in your order name
    This is happening because
    Reservation in MB1B is done with special stock indicator E for sales order
    But the  same sales order is not created with special stock indicator E in VA01 during creation
    There is a mismatch
    Hence the system is not able to sense while the order comes for delivery there are already stocks are reserved
    By inputting  special stock indicator E for sales order item category the whole issues will get solved
    By doing that there is no need to do MB1B itself
    The first step itself will get corrected  as the stocks will be posted to sales order stocks no need for MB1B
    No need to touch TAB make it ZTAB as it is meant for a different purpose it is for individual purchase order not to be used for MTO
    *By marking the special stock indicator as E in your sales order item category your entire issue will be resolved*
    Issue no 3
    MTO is based on costing for which you have take the help of FI person
    Note Very important
    If U make the settings now in item category it will not work for the existing or already created order
    With existing orders it will have the same error as the order is created without special stock indicator E
    Only for new orders it will work and from Now on it will work
    Test it with new order cycle starting from VA01
    Please let me know this issue has got solved or not?
    I am 200 % sure it will get solved
    Regards
    Raja

  • Status : Being Processed in Sales Order after the Delivery and Billing also

    Hi All,
    For one Sales Order........ Delivery and Billing are over but it shows
    In the Sales Order> Header level>Status bar>Overall Status>Being Processed.
    In Document Flow:
    Sales Order xxxxxxxxx  : Being Processed.
    Delivery xxxxxxxxxxxx   : Completed.
    Billing xxxxxxxxxxxxx    : Completed.
    Functionally we checked everything......but through technically we can solve the issue or not
    Pls help me with some solutions.
    Advanced Thanks.
    Diwakar Reddy.
    [email protected]

    Hi,
    This generally happens if the sales order is for a quantity greater than the quantity delivered.
    SAP treats the sales order as still open and delivery of the remaining quantity is possible through that sales order itself. So the status is shown as "Being Processed".
    If you want to see the status as "Completed" then you need to cancell the remaining open items in that sales order. Automatically the status will change to "COMPLETE"
    Hope this solves your querry.
    Regards,
    Anirban

  • Sales orders due for delivery beyond credit horizon date credit blocked

    Hi
              I have given credit horizon date as 1 month . When I create a sales order which has a single item and schedule line with delivery date after 45 days i.e clearly after the horizon date , document is blocked with credit limit block .
    I am actually testing the cycle after I changed credit horizon date from 3 months to 1 month .
    Is there any thing else to be done like running any reprort , etc ?
    Regards
    Raghav SSk

    Hi,
    I had the same problem. The Horizon the 1 month mean that every sales order that entry in the systen during the month, will be affected the credit exposure.
    For example.
    Today is 02/july and my horizon are 1 month, so the date are 01/august. Every sales order tha entering in period between july and august will be affect the credit exposure. The sales order entering in 05/august, the credit will be affected. The sales order entering in 30/august, the credit will be affected, but if you enter the sales order in 01/september the credit will not be affect beacause the month is different.
    Another example
    Today is 02/july and my period are 2 months, so the date are 31/august. Every sales order that entering in period between july and august will be affect the credit exposure. If a sales order entering in 01/september, the credit exposure is not be affected, because the month is different.
    Regards
    Paulo

  • How to tranfer changes in the sales order when the delivery is created

    Can anyone please help for the following scenario:
    Sales Order created --> Delivery created --> Customer calls to make changes in Sales Order.
    In this case what customizing is required so that the changes in Sales Order (including 1. qty & 2. delivery date or 3.Addition of new Line item) triggers changes in delivery.
    Many Thanks in Advance.
    Hiren Panchal

    As per my best knowledge ther's no such setting. Copy control works only when you are creating the delivery from the SO.
    So, I think you have two options - basically:
    - modify the already created delivery manually
    - delete the delivery and create a new one form the updated SO

  • Profit center is not picking from sales order to the billing document

    Hi
    I am creating billing document but it is not picking profit centre from the sales order.
    Could you please help me in this.
    thanks in advamce.

    Hi,
    Ensure that the profit center is assigned to your Sales order.
    Also maintain the following settings in copy control.
    Goto the T.Code "VTFA".
    Select your valid combination.Details.
    Double click on "Item".Select your Item category.
    Details.
    Maintain "Copy requirements" as "002".
    Data VBRK/VBRP as "002".
    Regards,
    Krishna.

  • Sales District updation in Delivery header table

    Dear Gurus,
    Sales district is mandatory field in customer master and is copied to the sales orders, when the delivery document is created the sales district is not copied.
    Is there any technical way or customization process to update the sales district in LIKP.
    In this project we ARE NOT USING shipment and transportation process.
    the process implemented here is Sales Order creation, followed by delivery creation (picking and Post goods issue) and finally Invoice creation and posting to accounts.
    Kindly help me in achieving the updation of Sales district in LIKP table.
    Thanks and Regards
    LR

    Hello,
    The current copy control setting between the sales order and delivery is as per the standards.
    ie 001 - Header
    Please suggest a better approach whether:
    Data Transfer routine - 001 -Header (FV50C001) which is a default routine to be copied and add the logic of updating the sales district in delivery header and maintain in place of 001
    or
    copy the Data transfer routine - 002 - Business Data ( FV50C002) to a new routine activate the logic of copying the sales district from VBKD to LIKP and maintain in place of 001
    The replies suggested by seniors is very helpful.
    Kindly help me to come out of my confusion.
    Thanks and Regards
    LR

  • Sales Order Updation when the delivery changed

    Hello Experts,
                           I am working an object where I need to update the sales order when the delivery changed.
                             Actually when the remote system rejected the delivery an IDOC will come to R/3
    Sooner the delivery changed in R/3 I need to update few fields in sales order.
              When I am trying to code in the exit in the FM attached to the IDOC it is first updating the sales order and calling ws_update_delivery  next.
    Even if I am trying in mv45afz1 also same thing is happening.
              Can anyone let me know how to solve this problem.

    Hi,
    you can see the work center capacity situation for manufacturing an item in the salesorder. But it needs Assemble to Order strategy. Anyway u can see the material details in the sales order.
    Kiran.

  • Re: Printing Cancelled line items in the sales order on the packing slip

    Hi gurus,
    Currently we have a unique requirement in our company. Our wholesale customers send the Purchase order to us via EDI. Now saw they have requested an order containing 10 materials out of which we can fulfill only 8. the other 2 due to some reasons cannot be fulfilled.
    So the business wants to keep the other 2 line items to be entered in the sales order with a cancelled status.
    Now correct me if I am wrong, only the confirmed line items will be copied from a sales order to a delivery document. So thats the reason why these cancelled line items cannot be printed on the packing slip.
    However somehow the business wants the packing slip tp have the 2 line items printed on it with the reason of not being delivered. this is to facilitate the customer to know why those items couln't be fulfilled by our company. Now we cannot use a manual work-around of letting the customer know about the impossibility of not fulfilling the other 2 items as there are a lot of orders that come thru EDI per day.
    Can anyone suggest a solution to this requirement asap.
    Thanks in advance
    Vinit

    Hi Vinit,
    This requirement makes a lot of sense, that is to be able to inform your customer that some item(s) of the sales order could not be delivered, not even partially.
    A possible solution would be to allow for zero quantity in the delivery item (check customizing and mark "zero quantity allowed" in the item category).
    Then in the packing split, it would be easy to print the delivered quantity (0) and the sales order quantity (whatever it was), because you have the "null" item available in the delivery.
    Personally I am not found of having have delivery items with zero quantity, but they are useful in that case, and they can also be useful to automatically "close" the sales order item (instead of having to do it manually if the goods can't be served).
    Note: Usually in Consumer Goods, if you can't serve part of a sales order to a customer, you have to close it, because the Retailer's next Sales Order will include the remaining quantity.
    Hope it helps.
    Best Regards,
    Franck Lumpe
    Freelance SAP ERP Consultant

  • UK VAT - MWST Condition Rate in Sales Order different to Billing Document

    We are testing the UK VAT Rate Change.
    Condition MWST has a rate of 15% until today and 17.5% from tomorrow.
    When I create a sales order with a requested delivery date of tomorrow and a pricing date of today the MWST Condition is shown as 17.5% at both header and lin eitem.
    If I create a delivery, post goods issue and create a billing document today, the billing document correctly shows the MWST Condition rate as 15%%.
    But the Sales document still displays the MWST Condition rate as 17.5% .
    ?? How can I get the sales document to display the actual condition rate ??
    I cannot find a solution to this anywhere and would be grateful for any help.
    Regards,

    Hi Michael,
    If the pricing date for the Sales Order and the Billing Document are the same, the VAT should be also be the same.
    But the pricing date for both document does not always have to be the same.
    If the real goods issue date is different from the planned goods issue date and you use it as a reference for the pricing date, then both dates will be different & that's OK. The same would happen if a discount is changed after the Sales Order is introduced but before billing & a new price determination takes place during billing.
    IMHO the Billing Document is the critical document and needs to have the right VAT rate.
    The Sales Order should have the data calculated based on the best information available at creation time, but does not need to be corrected after Billing.
    Best Regards,
    Franck

  • Combing multiple sales order into one delivery - help needed!

    basically, this is what im doing and maybe someone can direct me in the right direction?
    i goto vl10c, enter the shipping point and then goto the sales order tab and enter one sales order in sales document 1st field and then in the second field for sales document i enter the second sales order. it then opens up a list of the 2 sales order and i can check mark one or both sales order here. after i check mark both, im not sure what to do to combine the 2 sales order into one delivery document. anyone???
    thanks!

    I will suggest you to go through the link [http://help.sap.com/saphelp_erp60_sp/helpdata/en/38/c1853488601e33e10000009b38f83b/frameset.htm]
    I request you to search the SD forum before posting the issues. You will get plenty of treads on this subject.
    Check the required confiquration for "combing multiple sales order into one delivery" and if still problem persists then you post the error you are getting for resolution.
    Best Regards,
    Bashir
    Edited by: Bashir on Oct 16, 2009 8:58 AM
    Edited by: Bashir on Oct 16, 2009 8:58 AM

  • Combined sales orders to one delivery

    is there a way other than vl10c to combine delivery and make one bill, I mean this is background and when combine three sales orders and one delivery document and when in delivery document says "in process"
    any foreground process?? if yes then what are the steps please tell me

    Hi,
    Split Invoice,in that case, please check the following in the two sale orders whether they are same.
    1) Payer
    2) Inco Term
    3) Payment Term
    4) Shipping Conditions
    5) Exchange rate at header level
    If either of the above differs in the two sale orders, then you will get invoice split.
    You can use split analysis to review why the system has split a billing document. It compares two billing documents and lists the fields which have differing contents.
    To display the split analysis for one of these screens, proceed as follows:
    1. Enter the number of the first billing document that you wish to compare.
    2. Choose Environment
    --> Split analysis.
    Enter the number of the second billing document which you wish to compare to the first in the dialog box.
    3. Enter the billing document number and choose Continue.
    The system displays the Billing document split analysis log. It is made up of three parts. The first shows the header partners and header fields which are different in the two documents while the second and third columns show the respective values for these fields...
    But for comination of delivery what ever transaction above are the ones available.
    Regards

Maybe you are looking for