Correct procedure to transfers Sales Delivery to Sales A/R Invoice

Hi,
Is there someone who can white some code to explain the best way to transfers a Sales Delivery to A/R Invoice with the SDK the same way as Copy To (A/R Invoice) from the Delivery window in SAP ?
I've been successful at transfering one by hand saving every properties of the document source to the document destination for a simple document
but now I'm faced with documents that have BP's with Credit Limit exceeded etc..etc and I'm getting (XXXX) Internal Error (-5002) occured
Which XXXX is different from one document to another

Hi Marc,
I don't think there is a simple procedure as such because there are quite a few ways to code this, depending on your requirements. It obviously gets more complex where you are copying multiple deliveries to a single invoice or splitting a delivery in to multiple invoices based on the originating orders. If you use additional expenses (eg freight) then you also need to copy this across otherwise it will be left on the delivery and never invoiced.
It makes sense to check for available credit before you add an invoice. In this way you can give a much more user-friendly error message than the one that SBO gives (ie the 5002 error). You'd still need to trap any errors returned by the Add method.
Kind Regards,
Owen

Similar Messages

  • Creating Excise Invoice from Sales Delivery using DI API.

    Hi Experts,
    I have been searching a lot for any Business Object for creating Excise Invoice base on Sales Delivery using DI API.. But have not yet found any one.
    I want to create Invoice for excisable items from Sales Delivery using DI API.,for Excisable items we cannot create standalone A/R Invoice . We need to create Excise Invoice also . But How to create Excise Invoice based on Sales Delivery using DI API. Is there any Business Object for that.
    Please suggest me.
    Thanks and Regards,
    Pooja Singh.

    Hi all,
    I have not received any reply for this thread. Does this mean that there is no provision for creating Excise Invoice from Sales Delivery ? Actually I was asked to create sales delivery and then Outgoing Excise Invoice and then Sales Invoice using DI API.
    But I don't find any Business Object for this in SDK ? Is it really not possible to create Outgoing Excise Invoice from Sales Delivery using DI API.? If possible then how?
    Please reply me if anyone has got any idea in this regard.
    Thanks and Regards,
    Pooja Singh.

  • Creation of delivery when sales order is saved through VA01

    Hi All
    We got the requirement in such a way that
    we are creating sales order of type (ZOR -standard order ) . Configrration is donde in such a way that when the order is saved one dilvery will be created for that order of deilvery type ZLF .as this is assginned as default delivery type in VOV8 .
    Hre we have two delivery types ZLF and  ZF and we have diffrent different item categories for that sales order like ZZTC , ZPU ,
    and ZTDP .
    our requirement is  as follows
    case1:
    when we create sales order through va01 (order type - ZOR standard order ) having onlu one item category ZPU  then delivery should be created of type ZLF it is happing correctly .
    case 2:
    when we create a sales order through va01 having  non ZPU item categroies like ZZTC and ZTDP dlivey should not be created  for that sales oder on saving that order .one success message is thwoing as salers order has been created but delivry cannot be created for this order .this is  is also happeing correctly . for this we have copied a rottine no 102 from VOFM  and we have added some logic
    but the problem is
    when we create a sales order having diffrene item categories ( one condiotn here one item should be ZPU) and other item is  ZZTC while saving the sales order delivery is getting created partially for one item only not for two items i mean delivery is getting created only for item categroy zpu the item with type ZZTC is not gettting added to that delivey .
    for exmaple
    sales order 1234
    item category ZPU
    item category ZZTC
    delivery created with only one item ZPU
    May i know any requirments (routines ) are thre to solve this in VOFM .
    let me know how to hanlde this issue .
    Moderator Message: Spec-dumping is not allowed
    Edited by: kishan P on Oct 14, 2010 4:31 PM

    Hi Mohanty,
    I think the Immediate Delivery under Shipping for that order type may have value A or X, Clear that value.
    1) Goto VOV8 tansaction.
    2) Select the Sales order type (For eg: OR for standard order) and double click on that
    3) Under Shipping tab, Set Immediate Delivery with Blank value
    Plz reward points if it is helpful
    Thanks,
    Vinay

  • Crystal Report for Sales, Delivery and Payment.

    Hi Guys,
    Need some expert advice over here. Currently, our sales team are using 3 separate report, one report on sales per month for each specific customers, one report on delivered amount per month for specific customers again and the last one report on payment received per month for specific customers as well.
    We have the idea of joining this 3 report so that I can report on sales, delivery and payment all at once so that they can see the trend better. However, after trying for quite a few times, we fail to create a common joining between ORDR, ODLN and ORCT. Is there any possible way to work something out ?
    I have thought of using subreport, but I just cant find the way to plug in the figure correctly.
    Need some advice over there.
    Thank you.
    Best Regards,
    Alex

    Based on what you have told me, then you should then join Sales Order, Delivery, Invoice and Incoming Payments into one.
    The reason I say Invoice table also is because, you cannot directly link Delivery and Incoming Payments window.
    Also you it is not enough that you link the ORDR, ODLN and ORCT, you will need to get the details from RDR1 and DLN1.
    In SAP Business One, each line in SAP Business One can have a different Delivery documnet.
    The TrgetEntry, TargetType will give you this information. For example, if a line for Sales Order has TargetType 15, then TrgetEntry will be the DocEntry in the ODLN. But if it TargetType is 13 it means the Sales order was converted directly to and Invoice and bypassed the creation of Delivery step, which is possible in SAP.
    So here is how I think you will need to link Sales order and Delivery
    RDR1.TrgetEntry INNER JOIN DLN1.DocEntry AND
    RDR1.TargetType INNER JOIN DLN1.ObjType AND
    RDR1.LineNum INNER JOIN DLN1.BaseLine
    Now this could get a little more complicated if you do partial deliveries. For example if a line in your Sales Order has say 10 items and 6 of them are delivered using Delivery Note 123 and the remaining are delivered using Delivery Note 124, then the join will give you 2 different lines.
    So basically you will need to link the tables in this fashion
    ORDR <-> RDR1 <-> DLN1 <-> INV1 <-> RCT2 <-> ORCT
    Unfortunately, this linking process can get complicated if you do not follow certain steps, like for example if you do not create a Delivery Note and converted your Sales order to Invoice. Then the link would be
    ORDR <-> RDR1 <-> INV1 <-> RCT2 <-> ORCT
    I hope I didn't confuse you.
    Krishnan

  • Delivery from Sale Order for Inquiry stock

    Dear All,
    We have unique requirement from client mentioned below, any help would be greatly appreciated.
    This is a trading sale which is initiated from inquiry.
    1. Inquiry is created in SD, which in turn triggers Purchase Requisition.
    2. PR is converted to RFQ.
    3. Based on RFQ prices are negotiated with vendors, then Quotation is sent to Customer from VA21 which is created against inquiry.
    4. Now when the PO is created w.r.t RFQ, then GR is done , Stock will be lying against inquiry.
    5. But i want to do delivery from sales order for stock lying against inquiry.
    we are looking for a workaround solution.
    Note:
    1. Client has disagreed with Stock Movement from Inquiry to quotation using MB1B, as it becomes manual transaction.
    2. PR triggering has to be @ Inquiry, as sale order will not be created until quotation is approved.
    Looking forward for valuable inputs.
    Thanks in advance
    Best Regards,
    Chaithru

    Tien,
    Approval will not work when you have mutiple rows of data.  You would have to work with SP Transaction Notification
    There has been threads before on the forum on the same topics.
    Block the Quantity in Sales Delivery
    Approval Procedure for chaning quantity in Delivery Document
    Suda

  • Populating the Partners from Sales document (Customer/Sales order/delivery)

    Hi All,
    Is there any way to Populate the Partners which are mantained in Sales document (Customer/Sales order/delivery) into Customer Quality notification (Q1)
    Presently only Sales to party and ship to party is getting populated when we create Q1 notification.
    Thanks in advance
    jay

    Explore :
    Quality notification>Notifcation creation->partner->Define partner fuction procedure->Assign Partner Functions to Notification Type--->
    Check here whether you can get here the partner function.

  • IDOC to create from outbound delivery from sales order as INBOUND process

    Hi Experts,
    We have third party interface for sales processing. Sales order, Outbound delivery and PGI will be done in Third party software and XML files will be send to SAP.
    We have to process this XML file into SAP with IDOC.
    Sales order processing is done but i am not able to find correct IDOC type for creating outbound delivery.
    Can you suggest Basic IDOC type / Message type and process code for the same.
    Regards,
    Sahadev Abhyankar

    Good morning !
    In the transaction WE20 to create the customer EDI  KU with EM function.
    Output parameter: message type DESADV and basic IDOC DESADV01.
    I associate the IDoc message type to LAVA, you should link it to the XML file, that is not how.
    Please : Could you please explain how you linked the XML file to IDOCS to create sales order ?
    Sorry for my poor English
    A greeting.

  • Block the Quantity in Sales Delivery

    Hi,
    I want to block the Quantity in Sales Delivery if it is Exceeding the Quantity in Sales Order.
    The scenario is..............
    I m creating a sales order for one or more line items with Quantity as 100.
    based on this sales order i m creating a Sales delivery (it can b partial too)
    if the Deliver Quantity exceeds the Order Quantity,
    either it shoudn't allow the Document to b added
    or show a error msg
    Thanks in advance

    Hi,
    Please select this and paste in "SBO_SP_TransactionNotification"- Stored Procedure
    IF @transaction_type IN (N'A', N'U') AND (@Object_type = N'15')
    BEGIN
    declare @numlinii int
    SELECT @numlinii = (LineNum + 1) FROM DLN1
    WHERE DLN1.DocEntry = @list_of_cols_val_tab_del AND
    ((Quantity > BaseOpnQty))
    ORDER BY LineNum ASC
    IF (not ISNULL(@numlinii, 0) = 0)
    BEGIN
    SET @error = 10
    SET @error_message = N'Quantity is invalid in Line ' + CONVERT(nvarchar(4), @numlinii) + N' !'
    end
    END
    SAGAR

  • Create delivery with sales order reference.

    Dear all,
           I created a sales order with sales area (1000,10,00) and order type(or).
           when i am creating a delivery with sales order reference , error is occurring.
    error:(Order cannot be delivered (see long text)).
           plz solve the problem urgent.
                                          Regards,
                                v.mallikharjuna rao.

    Hi,
    You must do the PGI before creating the delivery. Please follow the below mentioned procedure carefully and you will be able to do that.
    Once you create a Sales order, go to the transaction VL01 and do the PGI. To do PGI (from transaction VL01), in the menu, go to Outbound Delivery->Save and Subseq.Func->Transfer order. This will take you to Transfer order transaction. click on Generate TO and save. Now return to transaction VL02 and click on Post Goods Issue. This will do the PGI and save the Delivery document. Now go to VF01 and you will have the delivery number just created as a line item. Select it and click on execute button. Save once the execution is done and a Billing doument (invoice) is created. Now if you go to the sales order and click on document flow all these documents will be displayed.

  • Procedure for creating credit memo for sales return

    Dear Gurus,
    Please let me know the procedure creating a credit memo for sales returns.
    I am able to cancel the invoice using vf11. create a return sales order using vao1. create a retrun delivery using vl01n, transfer the stock from returns to blocked to unrestricted use using mb1b and movement types 459 and 343.
    Pls let me know the procedure for creating the credit memo for the goods receipt of sales return.

    Dear,
             I am not geeting your question but well i explain in my company scenarion,
        1)    We create the Sales Order : VA01 ( Order type : ZREW : Return without invoice, ZRES : Return with Invoice)
                Here, ZREW is our own created order type and it is maintain in config.
                         ZRES is use for Return with invoice. In that we enter the bill number in return sales order which sales.
        2)    In Delivery : VL01N : That is base on Return Sales order.
        3)    In Billing   : VF01 : Create credit memo with resp. to delivery number.
                      Credit memo type : Same as sales order,
                                                    ZREW : Crd Return (W/O Inv)
                                                    ZRES  : Credit For Returns.
    Hope it will help you.
    Regards,
    Sandip

  • Partial delivery of sales order with some line items

    Hi all,
    Please help me in the issue i want to create delivery against sales order partially for some line items of the sales order . Can any one suggest me the procedure how to do it through programing .
    Thanks in advance,

    Hi,
    You have several methods of doing same.
    Method 1
    Go to VL01N, and given your sales order number.
    Without giving the line item, just press Enter
    Now inside the delivery, you can delete unwanted line items, and you can adjust quantities under Item overview tab.
    After that do picking and PGI.
    Method 2
    Go to VL10E,
    Give your sales order number and execute.
    Mark relevant schedule lines only and press execute,
    then those line items with marked schedule lines will copied to the delivery document.
    Best regards,
    Anupa

  • Approval Query  for Sale Delivery Problem

    Hello,
    I have to set approval procedure of Sale Delivery in following condition
    If i add sale order for Specific item for 10 Qty for example C01 customer & after that i add sale order for same item qty 10 for another customer ie C02 & i have stock for that item 50 but user give delivery first to C02 in staid of C01 but C01 give me first order
    on this condition i have to set approval user can't deliver second sale order first he have to take approval from manager to do this & he deliver first order first then then don't have to need approval.
    Can any one help me?

    Hi,
    Row level approval is not possible in SBO.
    You may check this for your reference: http://www.beonesolutions.com/ip/Solutions/ap.html
    Thanks,
    Joseph

  • FM:create a delivery for sales order in the background.

    Hi experts
    I want  Function Module to create a delivery for sales order in the background for both inbound and outbound.
    tcode : VL10A.
    Thanks in advance.
    kiran j

    Hi Kiran,
    Welcome to SDN Forums
    Please use the correct or most appropriate forum.
    The ABAP Objects Forum should be used for: ABAP Object definition and implementation including encapsulation, interfaces and inheritance in ABAP Objects.
    This thread will be moved from to .
    The forum is dedicated to: Data Transfer Techniques, Batch Data Communication, Legacy System Migration Workbench, Application Link Enabling, IDOCs, BAPIs.
    Please see the [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting.
    Also read this thread Welcome and Rules of Engagement.
    Greetings,
    Marcelo Ramos

  • Procedure of Procuring the material-Payment-Sales

    Can any body send me full procedure of Procuring the material-Payment-Sales with tcodes.
    I am a MM guy and I know this process till invoice but not aware about after that process i.e. payment(FI) and Sales.
    I want the process after the below steps:-
    1.PO(ME21n)
    2.PO Release(ME29n)
    3.GRN(MIGO)
    4.Invoice(MIRO)
    5.
    6.
    7.
    Kindly provide the transaction from step no. 5.

    Hi Himanshu,
                        actually there are different cycles in the process,
    after this comes the roles of PP,
    where they will issue the guds based on the production orders or maintenance order, do the process and confirm the orders, there could be N no of different process to be followed like Repetitive Manufacturing or Descreet Manufacturing, and based on this they will post the goods to the stores.
    after that SD comes in play.
    they will generate the sales order based on the PO sent to them by the customer, and then Picking will be done and delivery in turn.
    ant the last step will be billing.
    sorry i cant recall all the T-Codes.
    hope it helps.
    regards,
    YK

  • Link between Delivery and Sales Order Schedule Line

    Hi Gurus,
    I have a requirement in which i need to display quantity and amount at schedule line level and also the delivery and delivery item for each schedule line.
    For example, if there is a sales order O1 and item 10 for which we have 3 schedule lines and 3 deliveries as well say D1, D2 and D3.
    Report should be something like this
    Sales Order    Item   Schedule Line    Delivery    Del Item   Confirmed Order Qty
    O1                 10      1                       D1           10            5
    O1                 10       2                      D2            10            5
    O1                 10       3                      D3            10            4
    How can i determine that a particular delivery corresponds to which schedule line of that saler order-item?
    We have the link between delivery and sales order but is there any way that we can get the link of delivery at schedule line level?
    Please help.
    Regards,
    Gaurav

    Hi,
    I suppose you must check with SD functional consultant and the post should also be in the logistics SD forum and not BI. But I suppose there is know specific link between the schedule line of SO to the Delivery. It is more like a bucket flow for ex.
    Sale order   Item    Schedule line  qty
    SO1            Item1     Sch1            10
    SO2            Item1      Sch2           10
    Delivery Item QTy
    DO1       IT1   15
    DO2       IT1    5
    In this case qty 15 is distributed over both SO1 and SO2, and SO2 ITem1 Sch2 has link to both the DOs
    So I am not sure if you can establish a one to one link, please check with your SD consultants.
    Regards,
    Ashwin G

Maybe you are looking for

  • I need to repair a Macbook Pro with disk utility using target mode to another my iMac. Can I use ethernet cable or must it be firewire?

    I need to repair a Macbook Pro with Disk Utility using target mode connected to my iMac. Can I use ethernet cable to connect them or must it be firewire?

  • IPhone 5 - black model paint problem

    Dear apple community! I have iPhone 5 black model and edge color was chipped off after very carefull usage! If the paint chips this easy now what's my phone gonna look like in a years time after being in and out of my pocket, car keys, kids getting h

  • Issue with Ipad Syncing with Exchange

    We have 6 folks using Ipads regularly to access our corporate exchange server. Up to now things have been fairly stable. That said starting this week our President has been having significants issues with the syncing process. The process seems to be

  • Essbase Shared Services

    Hi, Can any one tell me what are the significant improvements in Essbase Shared Services with the new Essbase 11.1.1 version over the Essbase System 9? If anybody know this, Please let me know. It will be a great help to me. Thank you very much

  • Volcano 7+ Not Fitting 845 Ultra AR

    Hey folks - just bought a Thermaltake Volcano 7+ HSF to replace the stock intel HSF on my 1.8a.  However, upon installing it I discovered that the the heatsync won't make contact with the cpu.  At first I thought that the base of the retention clips