Dump during inbound delivery creation with VL34

Hi,
when I try to create a inbound delivery for a Purchase order item with account assignment Q (project stock) I get the following dump
Runtime Errors         SAPSQL_ARRAY_INSERT_DUPREC
Except.                CX_SY_OPEN_SQL_DB
Date and Time          28.07.2010 17:37:10
Short text
     The ABAP/4 Open SQL array insert results in duplicate database records.
What happened?
     Error in the ABAP Application Program
     The current ABAP program "SAPLV05I" had to be terminated because it has
     come across a statement that unfortunately cannot be executed.
Error analysis
     An exception occurred that is explained in detail below.
     The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
      in
     procedure "SD_PARTNER_UPDATE" "(FUNCTION)", nor was it propagated by a RAISING
      clause.
     Since the caller of the procedure could not have anticipated that the
     exception would occur, the current program is terminated.
     The reason for the exception is:
     If you use an ABAP/4 Open SQL array insert to insert a record in
     the database and that record already exists with the same key,
     this results in a termination.
     (With an ABAP/4 Open SQL single record insert in the same error
     situation, processing does not terminate, but SY-SUBRC is set to 4.)
Missing RAISING Clause in Interface
     Program                                 SAPLV05I
     Include                                 LV05IU15
     Row                                     1
     Module type                             (FUNCTION)
     Module Name                             SD_PARTNER_UPDATE
Trigger Location of Exception
  Program                                 SAPLV05I
    Include                                 LV05IU15
    Row                                     480
    Module type                             (FUNCTION)
    Module Name                             SD_PARTNER_UPDATE
When I try to create the inbound delivery with VL31N it works fine. I also tried a couple of BAPIs/FMs which gave me the same dump as VL34.
Thanks in advance!!
br
Walter

I also failed to find any OSS note relevant to this.
If you are not using any exits / BADI, there's no standard modification, you should contact SAP AG and their responsibility is to correct the error.
But it may happen that you are using your own logic (via user exit, BADI, standard modification), in this case you have to find out what causes the problem. If the error is becasue of your develoments, then you cannot ask SAP AG to correct the error, if the error is not caused by your developments then it's SAP AG's responsibility.
Please read OSS note 575667 which says that:
The most common cause for this runtime error is an incorrect logic in USEREXIT_SAVE_DOCUMENT_PREPARE or USEREXIT_SAVE_DOCUMENT in include MV50AFZ1.
For this, read also notes 178328 and 415716.
Edited by: Csaba Szommer on Nov 3, 2010 8:49 AM
Edited by: Csaba Szommer on Nov 3, 2010 8:50 AM

Similar Messages

  • Issue with Message Type Triggering during Inbound Delivery Creation

    Hi Experts,
    Hi Experts, 
    Currently we are facing issue with message type triggering during inbound delivery creation:
    In NACE transaction for Inbound delivery we have 3 custom output types:
    Pricing Procedure Used is standard one -> E10001
    Z140  Inbound Delivery Create  (This should get triggered when IB delivery is created)
    Z141  Inbound Delivery Change (This should get triggered when IB Delivery is changed)
    Z142  Inbound Delivery Delete(This should get triggered when IB Delivery is deleted).
    At present if i check delivery in  VL33 -> Extras -> Delivery Output
    Both  Z140 and Z141 are being triggered during IB delivery creation. While it should be only Z140.
    Could you please suggest that are we missing any configuration in SPRO or we need to create any custom routine (requirement) to handle this?
    Thanks

    Hi,
    There is no fine-tuned control for inbound delivery messages as for Purchase order. Hence I guess to meet your above requirement, you have to go for a custom solution similar to the PO fine tune control settings.
    Thanks,

  • Check amount of transition stock during inbound delivery creation

    I want to move stock between plans, therefore I have the following steps:
    1. Stock Transfer Order (STO), e.g. 500 pieces
    2. Sending plant: MIGO (GI for STO) with MT 351 to post to transition stock,  e.g. 100 pieces
    3. Receiving plant: Inbound Delivery with reference to STO VL31N
    4. process Inbound delivery in warehouse (SAP-WM)
    The question is:
    During step 3, when accessing VL31N the system proposes the full order quantity (e.g. 500 pc.)
    I can change the amount to any amount I like, e.g 240 pieces.
    How can I tell SAP, that Inbound delivery creation is only possible for the amount
    which has been posted to stock in transition (100 pieces)
    I want an error/warning message in case user wants to create Inbound delivery quantity higher than the amount that has been posted to transition stock.
    Any ideas?

    MIGO in sending Plant?
    How it is possible? MIGO means, Goods receipt. This should be in Receiving plant.
    Sending plant should do the PGI
    MIRO in receiving plant
    Billing in sending plant
    Payment from Receiving palnt and clearing in sending plant
    Correct me if i am wrong
    Thanks

  • Inbound delivery creation with out reference to purchase order

    As per my requirement i am third party warehouse who provides space for my customers . i receive  goods from lot of customers who have their own ERP system or may not be any ERP system . The goods i am going to receive is non valuated material. How do i receive GR in the above scenario.
    I am thinking to create one dummy purchase order and then create inbound delivery. Otherwise How do i create inbound delivery without reference to any documents?.

    Hi,
    Inbound delivery
    You can create  purchase Order(ME21N),inbound delivery in t.code: VL31N and Goods Receipt in t.code: VL06IG and post the goods wrt PO into the GR blocked stock (movement 103) and finally you can release goods from blocked stock to unrestricted stock with 105 Movement type, if satisfy quality or other criteriau2019s.
    Or
    As you said, you just keeping customer stock better create material with non-valuated material type UNBW and do regular process like PO, GR & GI etc.Inbound delivery  not required for above said process.
    Regards,
    Biju K

  • IDoc or BAPI for inbound delivery creation with reference to PO.

    Hi
    I have requirement to create a inbound delivery, I  will get a ASN from external system with PO, Vendor Material number & batch. I want to know is there any BAPI or IDoc that can be used to create inbound delivery in R/3. I used BBP_INB_DELIVERY_CREATE to create inbound delivery and I was successful but problem is that inbound delivery was not updated with Vendor Material number & Batch.  Can some one suggest me any other BAPI or IDoc ?
    Thanks in advance
    Nagendra P Boggarapu
    Edited by: Nagendra P Boggarapu on May 6, 2010 4:06 PM

    Use Delvry0* IDOC.
    Reddy

  • Error during inbound delivery creation for some times not always

    Hi,
    I'm getting the following error when i'm trying to create an inbound delivery for PO.
                                                                                    Diagnosis                                                                               
    The system attempted to find the reference movement type for         
         the Warehouse Management system. A corresponding entry is            
         missing in table 156S with the argument 101/X/X/ / /X/.              
         The argument consists of:                                            
         o   IM movement type                                                 
         o   Indicator: Value update                                          
         o   Indicator: Quantity update                                       
         o   Special stock                                                    
         o   Movement indicator                                               
         o   Access indicator                                                 
         o   Indicator: Consumption         
    Can someone help me to resolve it? as it is not happening always
    Appreciates everyone time and help.
    Thanks and regards,
    Siva

    Hi,
    Thanks for the response and yes i did maintained IM/WM mvt types for 101 in both places.
    If the movement type is maintained well why SAP says it is not?
    SPRO > LE > WM > Interfaces > IM > Define Movement Types - "Assign WM Movement Type References to IM Movement Types'
    Related tabel is V_156S_WM
    If you check your configuration you will see that there are many entries with 101, and there are several other parameters...
    First you should check what you are doing in IM, what parameters that mvt has (qty, value update, special stock, etc) > after that you should check whether it is maintained well in WM customizing - see steps in my previous email.
    Regards,
    Csaba

  • Error during Inbound Delivery creation by Idoc DELVRY05

    Hi,
    We are trying to consolidate ASNs and creating an inbound delivery for the same. Thus we have more than one PO information in the idoc.
    It processes fine and creates an inbound delivery if all the line item nos are different.
    But the issue is, when there are articles which have the same line item no. even if the articles are different and they are on different POs. It gives the following errors.
    1) "Delivery item cannot be exactly determined
    Message no. HUFUNCTIONS313"
    I tried to debug the above error and found that while packing it looks to the lips-vbeln/posnr & not the PO nr./PO item.
    I am not sure if this could be handled by some config. Please advice.
    2) "V51VP - item was not found - process cancelled
    Message no. HUGENERAL056"
    Any hints or comments on the above would be appreciated.
    Thanks & Regards,
    Akshay

    Hi Raghavendra,
    It has been a long time. But, as far as I can remember we had made coding adjustments in the customer-exit EXIT_SAPLV55K_004, include ZXTRKU12 to fetch the correct item and fill the idoc segment fields.
    This resolved the issue.
    Best Regards,
    Akshay

  • Inbound Delivery Creation Problem with multiple batches

    I would appreciate if you can guide me if there is any BAPI or FM to create the inbound delivery (VL31N) with the multiple purchase orders and with the multiple batches for the materials.
    Regards
    Prasad

    TRY THIS ONE.
    BAPI_INB_DELIVERY_CONFIRM_DEC
    *& Report  ZZ_BAPI_OUTB_DELIVERY_CONF_DEC
    REPORT  ZZ_BAPI_OUTB_DELIVERY_CONF_DEC.
    data HEADER_DATA like BAPIOBDLVHDRCON.
    data HEADER_CONTROL like BAPIOBDLVHDRCTRLCON.
    data DELIVERY like BAPIOBDLVHDRCON-DELIV_NUMB.
    data HANDLING_UNIT_HEADER_CROSS type table of BAPIDLVHDUNHDR.
    data gs_HANDLING_UNIT_HEADER_CROSS type BAPIDLVHDUNHDR.
    data RETURN type table of BAPIRET2.
    parameters:
    * Delivery number
    p_deliv like BAPIOBDLVHDRCON-DELIV_NUMB default '0080015271',
    * External Handling Unit Identifikation
    p_hunr like BAPIDLVHDUNHDR-HDL_UNIT_EXID default '60000000000000000000',
    * Handling Unit Material Number
    p_humat like BAPIDLVHDUNHDR-SHIP_MAT default '000000000000002387'.
    * Work on clean data. Allways.
    clear:
    header_data,
    header_control,
    delivery,
    gs_HANDLING_UNIT_HEADER_CROSS.
    refresh:
    HANDLING_UNIT_HEADER_CROSS.
    * set data values
    header_data-DELIV_NUMB = p_deliv.
    header_control-DELIV_NUMB = p_deliv.
    delivery = p_deliv.
    gs_HANDLING_UNIT_HEADER_CROSS-DELIV_NUMB = p_deliv.
    gs_HANDLING_UNIT_HEADER_CROSS-HDL_UNIT_EXID = p_hunr.
    gs_HANDLING_UNIT_HEADER_CROSS-SHIP_MAT = p_humat.
    append
    gs_HANDLING_UNIT_HEADER_CROSS
    to
    HANDLING_UNIT_HEADER_CROSS.
    * Call Function
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
      EXPORTING
        HEADER_DATA                      = header_data
        HEADER_CONTROL                   = header_control
        DELIVERY                         = p_deliv
      TABLES
        RETURN                           = return
        HANDLING_UNIT_HEADER_CROSS       = HANDLING_UNIT_HEADER_CROSS
    commit work.
    write: 'Finished'.
    Edited by: pradeepvonti kumar on Nov 19, 2009 5:46 PM
    Edited by: pradeepvonti kumar on Nov 19, 2009 5:48 PM

  • 'Customer Not found' error during inbound delivery

    Hi Experts,
    During creation of inbound delivery(IBD) with transaction VL31N (against normal PO with doc. type NB), we are getting following error.
    Customer  not found
    Message no. 8B519
    Diagnosis
    No entry found in KNA1.
    Procedure
    Please contact your system adiministrator
    As per our understanding there should not be any connection for IBD & Customer master. Moreever we are getting this error for Only Brazil Plant. IBD works fine for India & Argentina plants.
    Requested to provide any possible clues.
    Regards
    Manoj

    Hi Manoj
    This error messag should be realted to the Brazilian localization...
    and th e problem reported should be  in the table J_1BTVAKV,  If you don't need a Nota Fiscal in the step of process, you should not assign the Nota Fiscal type  to sales doc type .
    Please correct your configuration and perform a new test.
    Regards,
    Mauro

  • Inbound Delivery creation in ECC6.0 through IDoc (DELVRY03.DESADV)

    Inbound Delivery creation in ECC6.0 through IDoc (DELVRY03.DESADV)
    From SCM ICH system Supplier creates ASN on the WEBUI & sends it ECC 6.0 using XI.
    This is Proxy (DespatchedDeliveryNotification) to IDOC (DELVRY03.DESAV) scenario
    But at the receiver end i.e. ECC6.0 its giving me error at Tcode WE02 as action is not supported.
    Can you suggest me how to tackle this issue.
    Thanks in Advance.
    Regards,
    N>B.Shanmukha

    hi,
    >>>giving me error at Tcode WE02 as action is not supported.
    there are many segments in delvry03 with a first field - action (like, delete, create, 001,002, etc)
    check all of them as probably you're using one which is not supported
    and this is the real cause of the error
    you can check it like this:
    open this IDOC in We19
    then open action field and F4 and see if the one you use in the idoc is in F4
    change the wrong one and it will work :for 100%
    Regards,
    Michal Krawczyk

  • Inspection lot problem during inbound delivery

    Hi,
    I am facing following issue during inbound delivery.
    I have activated inspection type 01 in material master for a packing material. Created a PO for the material through ME21N. PO created. Now I am creating inbound delivery through VL31N with reference to PO no and vendor. When I am entering the storage location I am getting the below error..
    Upon investigating the issue system is creating the inspection lot
    But inspection lot is not showing in QA32/QA02.
    checked various threads but not of much use. I am not able to proceed further.
    Kindly help.
    Thanks
    Kumar

    Hi Kumar,
    Plz check in PO history, if GRN is done. If yes then plz check in GRN quantity tab, if inspection lot is created. IN QA32, in dynamic selection enter the inspection lot and click on 'select all inspection lot' and check if it is created in system. If lot is prepared then as per the error message someone from your department must be processing it.
    In Your inbound delivery screen check your tab status overview if it is A: GR not made or C: GR completed.
    Also during inbound delivery  storage location is picked up in inbound delivery automatically from PO you need not to enter it again.
    Plz check else post screen shot of PO history and QA32.
    Regards,
    Priti.

  • Auto Inbound delivery creation

    Hi Sapgurus,
    I am trying to create Inbound delivery from Outbound delivery after it has been PGI'ed. These both are related to Intracompany STO. We have WM implemented so both of these deliveries result in TO creation and can be closed only after TO confirmations. I used SAP notes which stated to use SPED output type in output determination procedure for outbound delivery and then assign output determination procedure to delivery type. But I was not successful in getting the desired results.
    Can anyone please provide me with the steps of this configuration, I may be doing wrong something somewhere.
    Appreciate the help.
    Thanks in advance
    Manav Anand

    Hi,
    I think you are talking about stock transfer between two plants. I assume your requirement is after PGI of the replenishment delivery system should create automatic inbound delivery in second warehouse,right?
    You can create inbound delivery automatically for second warehouse.I had such scenario in my previous client.I believe through some user exit you can initiate inbound delivery creation immediately.
    Please check with your technical person.
    Regards,
    PRashant

  • User exit to change partner for inbound delivery creation

    Hello,
    I have a requirement to change the partner number for
    the inbound delivery creation.
    I only see the USEREXIT_MOVE_FIELD_TO_LIKP but I am not sure if this is
    the right user exit for this requirement.
    Is there the user exit for modifying partner in the inbound delivery?
    Thanks in advance,

    HI
    There is a program with which you can find the available exits as per your requirement. You have to execute the same and give your transaction code. Hope this helps...
    *& Report  ZFINDUSEREXIT
    report  zfinduserexit.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir where pname = tstc-pgmna.
    select single * from enlfdir where funcname =
    tfdir-funcname.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name eq enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct where sprsl eq sy-langu and
    tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    <b>Do reward if useful...</b>
    Regards
    Dinesh

  • Inbound delivery creation using VL31N

    Hi All,
    I could find that the message type DESADV, IDoc type DELVRY01 and process code DELS is used for creation of this.
    Let me know if this is correct. When i checked in my system I could not find process code DELS. Do i need to do some additional settings to get this.
    What is difference between IDOC type DELVRY01 and DELVRY03. Which one should be used.
    Here the ASN received is triggering inbound delivery creation.
    Please let me know on this.
    Regards,
    Shahu

    Hi,
    Where did you check that process code in WE64?
    Check in the correct set(Inbound messages).
    DELVRY03 is the latest one. You should use it only.
    Regards,
    Ravi

  • ASN from vendor and inbound delivery creation

    hi
    I have a scenario where vendor sends ASN via EDI to R/3.
    This inbound ASN should create an inbound delivery. 
    Can you please help me knowing the idoc type, message type etc which will serve my purpose.
    Also the FM / Badi for inbound delivery creation.
    thanks in advance,
    Jo

    Hi,
    Use DESADV Message type and basic type DESADV01
    Use function module IDOC_INPUT_DESADV
    Edited by: Chandra Shekhar Singh on Jul 5, 2011 12:39 PM

Maybe you are looking for

  • I set up wireless router and now it won't turn back on

    I had a friend set up the router so that my Comp sent out wireless signal. It doesn't automatically turn on and I can't find how to turn it back on. Please help i'm new to mac and these things are putting me off having one.

  • The same file with the same name need to call two RFC's with the sequence

    i have to pick up the same file with the same name  and call the two RFC in sequence scenario.i have xxx.txt file.file should be proces first calling the first rfc . I created two different communication channels for the first sender file communicati

  • Dead links in PDF -- any further updates?

    I started an lovely ebook in Pages and tested it to see how it would look in PDF, but to my dismay I found that the hyperlinks were no longer live. After searching these forums, I see this topic was discussed last September, and that Apple simply did

  • ABAP application and "End User License"

    Hi all, I'm happy to join to SDN!!! I newbe in the forum, and therefore I don't know if I post in the right section. I'm a Netweaver Architect and ABAP Developer. In the past I worked as java developer, and with other programming languages. I have a

  • Time machine error - backup fails due to sparsebundle already in use

    Since upgrading, Time machine reports backup error: TIme Machine Error The backup disk image ...sparsebundle is already in use. Any thoughts?