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

Similar Messages

  • Looking to create delivery with multiple batch line items

    Hi,
       Can you please suggest me BAPI / FM to create a delivery with multiple batches. like ... i have 1 mail line item in the delivery and n sub line items. If possible can you please post req parameters too. Thanks in advance.

    solved my own

  • Problems with multiple idocs in one file ( Inbound file )

    HI,
    Thanks in Advance for your suggestions.. Highly appreciated.
    We have problems with multiple IDocs in one file.
    We are using XIB ( Amtrix ) as Middleware to receive the files.
    Curretenly When the file contains one IDoc then there is no problem. IDoc is created and everything is ok.
    If file contains two IDocs ( for example two messages ORDERS and DELVERY ) then it is creating two IDocs but both IDocs contains ORDERS plus DELIVERY segements information. That is the problem. Some how SAP unable to differentiate the IDocs in the file.. But it knows that how many idocs are there in the file..because it is creating exact number of idocs.
    We are using TRFC port ... Do I need to change it to File port..
    When we have more than one idoc do we need set any parameter in the file ...

    Thanks for the swift response. Always ideas are useful.
    As of now , Middleware cannot split the file.
    Thing is SAP is creating two Idocs with different message types. Problem is First IDoc contains ORDERS message type but also DELIVERY segments as well. Second IDoc with DELIVERY message tyoe but ORDERS segments as well... This is the problem... I think we are missing some field activation in file for EDIDC record.
    As far as I know file port supports the number of IDocs in one file.. Hope TRFC port also supports that

  • 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

  • Packing material in inbound delivery - intercompagny process with SPED

    Hi,
    I am processing intercompany stock transfer using SPED functionality, with automatic creation of inbound delivery.
    Using HUM and WM storage location managed, I would like to add automatic packing material items in inbound delivery.
    What I did already check:
    1. there is a plant in HU (packing material type in transaction VHAR; plant determination: B).
    2. there is an item category in HU (transaction 0184; following entry: EL / "blank" / PACK / / ELP -> Inbound delivery type EL,  packing material has general item category group "blank" , then I expect item cat ELP in inbound delivery).
    With these settings, automatic creation of inbound delivery does not work anymore: output SPED failed. Error message is VN056:
    "Processing log for program /SPE/STO_ID_PROCESSING routine STO_ID_CREATION". When I check output analysis, it is mentioned for SPED : "Output ignored (requirement 408 not fulfilled)".
    I also tried with following setting:
    transaction 0184; delete previous setting; add following entry: EL / VERP / PACK / / ELP -> Inbound delivery type EL,  packing material with general item category group VERP.
    In that case, automatic inbound delivery creation OK but no packing material in it.
    Any idea to help me?
    Thanks in advance.

    A few years ago I got some help that got some Inbound delivery functionality working, but it was never put into production.
    1. Receiving storage location specified on the STO.
    2. Receiving points set up in the receiving plant: IMG > Logistics Execution > Shipping > Basic Shipping Functions > Shipping Point & Goods Receiving Point Determination > Assign Goods Receiving Points for Inbound Deliveries.
    3. On packaging material to be used the assigned packaging material group should coincide with the IMG setting of the packaging material type assigned to the packaging material group.
    4.  Assigned movement type 101 to the DIGN item category: IMG > Logistics Execution > Shipping > Basic Shipping Functions > Deliveries > Define Item Categories for Deliveries
    Other settings but not mandatory
    1.  In delivery copying control assigned source NL to target DIG: IMG > Logistics Execution > Shipping > Basic Shipping Functions > Deliveries > Copying Control > Specify Copy Control for Deliveries > Define Item Categories for Deliveries
    2.  Make packing control mandatory for item category DIGN: IMG > Logistics Execution > Shipping > Basic Shipping Functions > Deliveries > Packing > Packing Control by Item Category
    3.  HUM Required for Plant/Storage Location: IMG > Logistics General > Handling Unit Mgmt > Basics >  Technical Basics > Materials Mgmt > Inventory Mgmt > HU Requirement for Storage Locations
    In our process the HU was already created in the Outbound delivery for the STO.  These HU were then copied to the Inbound delivery.  It still works in our DEV client, but it's not being used.  Hope it helps.

  • 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

  • How to create inbound delivery for items with no confirmation control key.

    hi Please help me with this..
    are there any user exits to create an inbound delivery for scheduling agreement items with no confirmation control key.
    my req is
    i have 12 items (me33 transaction) of them three have confirmation control key populated and out of those three 2 will be deleted so only one item is left for inbound delivery creation, but i need to have all this possible for all items with or without confirmation control key.
    thank you

    hi
    for inbound delivery there is BAdi called LE_SHP_DELIVERY_PROC... in there is method called ITEM_DELETION... in this u can flag the item to delete or not..
    this will be triggered for inbound as well as oubound delivery..
    you can check confirmation status for the PO in the table EKES... in this table there is filed called EBTYP.. using this field u can check the PO item confirmation status..
    I hope above information is helpuful for u

  • 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

  • TO Confirmation. Handling units with multiple batches.

    Hi all!!
    I have a problem when i try to confirm an outbound TO with several positions. The problem is that the proposed handling unit is different than the original one. This problem only occurs when the handling unit has several batches, if there's only one this doesn't happen.
    This is configured in the customizing of the movement(601), but I don't know why it doesn´t work with multiple batches.
    Any idea?
    Thanks a lot.

    Hi!
    I have had the same problem and I put a note to sap. Their answer was:
    "As per my previous reply, the functionality you are requesting is not
    available in the standard system.  When processing a TO, each item is
    confirmed line by line.  There is no check on the remaining TO items
    if there is remaining stock in the source HU."
    Hope this help.
    Regards,
    Tatiana

  • 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

  • Move SU with multiple batches

    In the client's WH there can be pallets (storage units) with multiple batches. This is configured and works OK. However these storage units cannot be moved. Obviously when moved, they must keep their SU number.
    If I try to move only 1 batch, the movement is not allowed because then a duplicate SU will result.
    If I try to move the whole quantity, the data in the TO will not be consistent.
    Actually in both cases I get the message
    Storage unit XXXXXis not consistent with other transfer order data
    I have tried moving them in LT01. I also tried in LT10 - here the system moved both but assigned a new SU to one of the batches. (?!?!?!?!)
    Is there a way to move such pallets? And if not , why is there a config option for mixed batches for SU, IF IT DOES NOT WORK???
    Edited by: HunLogistic on Feb 10, 2010 3:34 PM

    In the client's WH there can be pallets (storage units) with multiple batches. This is configured and works OK. However these storage units cannot be moved. Obviously when moved, they must keep their SU number.
    This is obviously not true.
    The storage unit number uinquely identifies the storage unit within your warehouse. If you pick up goods from your storage unit you cannot use the same ID for the new unit since in this case you would have two SUs with same ID in your WH.
    Standard system is working poperly, you can have mixed storage units with different materials and batches and you can use complete and partial stock removal w/o any problem - please see online help.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/c6/f846eb4afa11d182b90000e829fbfe/frameset.htm
    If you only transfer a part of the storage unit into another SU-managed storage type, the system assigns a new SU number for this part of the original SU...
    Isn't it possible that there's a developemnt which want to use the existing SU number for the new one?
    Regards,
    Csaba
    Edited by: Csaba Szommer on Feb 10, 2010 4:08 PM

  • Problem with multiple Toplink/JPA apps in same server

    Anyone have experence of running serveral Toplink/ EJB-3 Web apps in the same server (OC4J, alas)?
    We seem to get a problem with the second app failing to initialise toplink, with an entity not found message. Each app runs OK on it's own.

    Yes, they access the same datasource and most of the tables overlap.
    We're thinking it might help to have common entity classes and put them in a shared library, but I don't know if this is relevant (setting up shared libraries complicates testing and tends to snowball, I reckon we need about 15 jars all told).
    I''ve had some funnies on OC4J before which I think may be to do with it's use of ClassLoaders, for example I initially put persistence.xml in the libary jar with the data model, but for some reason I get the entity not found error that way. It only seems to work if it's in the classes folder.
    For the moment we're getting arround the problem with multiple OC4J instances in the server.

  • 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

  • Document literal client

    Hi All, I am trying to access a document literal client service exposed by tibco business works. I modified the sample/jax-rpc/advanced/DIIHelloClient.java to access the service. I am stuck up now in this problem regarding serializers. ( i donno why

  • Is it possible to have a client in QAS that has ONLY Configuration?

    I've been informed that one of our migration consultants requires a new client created with ONLY configuration. Is this possible? Anyone Please advise on your expriences and how is client copy involved? Thank you ALL in advance maria

  • For new mac mini, I want all English printed documents inside the box

    I know what my question is now. I just want my documents (Any manual, booklet...etc. which inside of box) to be printed in English. The documents inside the box are Chinese when my first Mac mini arrived, not English. That's why I wanted to buy my 2n

  • Reading a Mac Disc on a PC

    The optical drive in my mac went out so I thought I would just create a disc image (of the iLife '09 installer disc) on a PC and transfer it over with a thumb drive. But I can't get the PC to read the disc at all! Any ideas on a workaround for this?

  • Touch screen will NOT operate to sync media

    I have the replacement phione, but the touch screen will not operate and i have no way of syncing media - ALL pictures - to my PC. This is the SECOND replacement phone, but at least the last time it froze, I was still able to sync. Thanks for any dir