From inbound delivery to reservation

Hello,
Maybe this will be an easy question for lots of people, but for me it isn't that simple ...
I have an inbound delivery item and now I need the corresponding reservation (header + item) ... I tried to find how I should write this in ABAP, but it doesn't seem to work ...
I know each inbound delivery item corresponds with a component line in the service order and this component line refers to a reservation, but I still don't know how to write this logic ?
Can someone help me with this ?
Thanks a lot & greetz,
Kurt.

Hi,
Please check the Reservation Tables RKPF and RESB for the Linkage with other documents.Also you mentioned about Inbound Delivery Item? Shall I think that it is nothing but Material Document (inbound Goods receipt), in that case check the Tables MKPF and MSEG of that. You will find the Reservation Number in MSEG table through which you can link RESB table.
So now Write a select Query for MSEG and RESB tables.
Hope this helps.
Regards,
Anji

Similar Messages

  • Delete serial numbers from inbound delivery

    which is the best way to delete serial numbers(not manually) from inbound delivery other than writing a VL32N BDC. is there any FM or BAPI to do this? I've tried WS_DELIVERY_UPDATE and SERNR_DEL_FROM_DOCU, but they are not working. any suggestions/tips please.
    thanks
    Sam

    There was no data relating to serial numbers in the system. It rarely happens that FMs whose name and description almost fits our purpose doesn't work. Nevertheless it happens.
    Coming back to your point, I think SERNR_DEL_FROM_DOCUMENT should work. Did you check the changing parameter T_SMESG ? Is it informative ?
    Also check tables SERNR and R_SERNR.
    Other way (but a circuitous way) to check is just before deleting the serial numbers do a '/h' and in debugging find out what Function Modules does SAP call before deleting. You can simulate the same scenario and test it.
    You can also check if any classes are available to serve the same purpose.

  • Auto GR from Inbound Delivery

    Hi Alll...
    1. Is ther any std config or Master data checks involed for creating an Auto GR from Inbound Delviery ??
    2. Thru ASN i am going to get an Inbound Delivery Created & need an Auto GR for one scenarion & other it shd not create an Auto GR. Basically we need this since we recieve goods from two differenet Locations ( One Location very close by and other Location quite far)
    Thanks
    Balaji

    Please use BAPI_GOODSMOVT_CREATE for your requirement.That should allow you to differentiate between what you need a GR against and what not..

  • Create muliple TO Putaway from Inbound Delivery line tiems

    Hi,
    Let say, we want to create TO just for three first line of Inbound Delivery XXXXX using VL06I
    In the item view screen we have selected one 3 line item
    we ever been done it for several times, but TO created was not follow our need although we have already tick some certain lines only.
    TO was created for all items as mention on one inbound delivery.
    Its also happen whenever we want to create TO by put a PO # only and we put tick remark on some items on some inbound deliveries.
    System will create TO for all items on that nominated PO #.
    Bascially we want multiple TO for one IBD
    Please suggest

    Hi,
    Please check the Reservation Tables RKPF and RESB for the Linkage with other documents.Also you mentioned about Inbound Delivery Item? Shall I think that it is nothing but Material Document (inbound Goods receipt), in that case check the Tables MKPF and MSEG of that. You will find the Reservation Number in MSEG table through which you can link RESB table.
    So now Write a select Query for MSEG and RESB tables.
    Hope this helps.
    Regards,
    Anji

  • Goods receipt from Inbound Delivery

    My requirement is to get the Goods receipt no that got generated for a particular Inbound Delivery!
    Please do give me table used to get the same..

    Hi Sravanthi,
      Whenever a GR is made a <b>Material Document number</b> is created.
    U can view the MaterialDocuments from <b>MB03</b> transaction
    and it's values are stored in tables are <b>MKPF</b> and <b>MSEG</b>.
    cheers,
    Kalyan

  • No selectable items while reciving from Inbound Delivery

    Dear Experts,
    I have created  a PO then inbound delivery using VL31N then I went to receive the inbound delivery using MIGO reference to Inbound Delivery but the system keep tilling me that there are no any selectable items
    Please Advice

    Goto SPRO-MM-Purchaisng-Confirmation-set up comfirmation control
    here select your confirmation control key and click on confirmation seq from left menu
    now here you have to check the GR assignment box to receive the GR against the Inbound delivery otherwise you have to receive against the PO.

  • MIGO Goods Receipt - error with Movement Types on GR from Inbound Delivery

    Hi,
    I am getting an error message when processing a Goods Receipt (MIGO) against an Inbound Delivery with as 2 lines with different movement types, a standard 101 and a 970 (the latter being a user defined movement type for free goods).
    The error message I get is 'Movement type 970 is not allowed; only 101 is allowed
    Message no. BORGR622'
    This error message only occurs with a Goods Receipt against an Inbound Delivery, we are able to process a similar Goods Receipt using MIGO against a Purchase Order, with two different movement types 101 and 970, without any issues. 
    It is only a problem with a GR against an Inbound Delivery which is necessary in our MM solution.
    As anybody and ideas how to resolve this?  I cannot see anything obvious in config, and have not spotted any SAP OSS notes either.
    I should mention that we can process a single line Inbound Delivery and Goods Receipt for the Movement Type 970 also!

    Thanks for the reply.  The Price Control Indicator is 'S'.
    The solution was set up at my company before I joined, but the different movement type is to enable the free goods stock to make a Finance posting to a Bonus Stock GL Account.  Bonus stock sale update the same account.
    As I mention the '970' movement type worked fine with Goods Receipt against a Purchase Order (it was coded into to the user exit). 
    The MM procedures were changed to use the Inbound Delivery matched to the PO, this had a result that when the Goods receipt was posted in MIGO it posted as 101 movement, as the PO number was not being recognised.
    By making a further change to the user exit we able to suggest the '970' movement type, but now get the BORGR622 error I refer to.
    '511' is not possible against an inbound delivery either.

  • Batch is not copy from inbound delivery

    batch number is enter in inbound delivery but when perform MIGO - Inbound delivery,the batch is not copy over ( shows blank )
    anyone know the reason?

    Hi Sasy,
    The vendor batch in the purchase order has preference over the vendor batch in the inbound delivery. The vendor batch in the purchase order is the one which is always updated in MCHA.
    If there is not any vendor batch in the purchase order and this is only specified in the inbound delivery then, the system behaviour depends on the transaction used for the posting of the receipt :
    If the receipt is posted with the shipping transactions VL31N/VL32N, MCHA-LICHA is updated with the vendor batch in the inbound delivery.
    If the receipt is posted with the inventory management transaction MIGO, MCHA-LICHA is not updated. The vendor batch in the inbound delivery is not considered. MCHA-LICHA remains empty.
    Regards,
    Mauro

  • Details from Inbound delivery number(VBELN)

    Hello Gurus,
    Can anyone suggest me how to arrive at the following fields if i am given with inbound delivery number(VBELN).
    The fields are:
    1) Due date(GR date)
    2) Vendor delivery number
    3) Material
    4) Name of material
    5) Quantity
    6) Vendor
    7) Name of Vendor
    Would help if  table and the field names for the above are given.

    Hello Prashant,
    Thanks a lot for the useful info.
    The fields i got are:
    1. Inbound delivery number - VBAK-VBELN
    2. Due date (GR date)       - ??
    3. Vendor delivery number - ??
    4. Material                       - VBAP-MATNR
    5. Name of material          -VBAP-MATWA
    6. Quantity                      -??
    7. Vendor                        -LFA1-LIFNR
    8. Name of vendor            -LFA1-NAME1
    Could you pls check if the fields are right and also provide the missing details?

  • Error while getting shipment cost from inbound delivery

    Hi all, I already make the setting according to sapnote 427944.
    I made PO with condition type FRB1 and value 0.
    Then we made the inbound delivery and shipment documents
    next while we makin shipment cost using VI01 the net value field is grey and the value is 0.
    can anyone please explain to me how can i get the value for the shipment cost? Thanks

    Hi
    On double clicking on the item level, respective item details of the material is displayed and then click SHIFT+ F6 to see the COSTCENTER in the shipement cost document.
    Configuration:
    1) In Item category configuration account assigment category is Cost Center.
    Logistics Execution>Transportation>Shipment Costs>Shipment Cost Document>Shipment Cost Types and Item Categories-->Define item categories
    2) In the Transaction code OKB9 Costcenter is assigned to the company code , in order to automate the determination of CO assignments in case of Shipment cost document creation
    Logistics Execution>Transportation>Shipment Costs>Settlement>Automatic Determination of CO Assignments
    Edited by: Bhaskar C.R on Jun 17, 2010 10:13 AM

  • Post Goods Receipt from Inbound Delivery

    Hi,
    I need to find a customer enhancement or a BADI that is modifyed a field when a Post Goods Receipt is created for an inbound delivery, in transaction VL32N.
    I have tried to use the Business Add-In LE_SHP_GOODSMOVEMENT, but the field I modified after is overwritten. It is a field of the mseg structure.
    Can anybody please advise on the available exits or BADIs?
    Thanks

    Hi,
    Please clarify whether you want to modify th efield at item or header. Please check the Badi names Starting with LE_SHP* .These BADI' are for Delivery.find the Suitable BADI and Apply it. For custom tab at header BADI is  LE_SHP_TAB_CUST_ITEM
    LE_SHP_TAB_CUST_OVER
    The BADI does not allow the update of data. There is a common trick used to perform the job ...
    - in the BADI, export the data to memory (e.g. in TRANSFER_DATA_FROM_SUBSCREEN)
    - in the old-fashion exit like USEREXIT_MOVE_FIELDS_TO_LIPS, import the data and map it.
    I hope this will resolve your issue. Thanking you.

  • Copy Control from Inbound Delivery to Goods Receipt

    Hi  Experts,
    When we Post Goods Receipt against Inbound Delivery in VL32N transaction, the date (document) in the Inbound Delivery is being copied to the Document Date in the Goods Receipt Document
    Ex. Inbound Delivery document date : 10/05/2010. Goods Receipt posted on 15/05/2010. The Document date in Goods Receipt found to be 10/05/2010.
    However we want the system to populate the date of Goods Receipt (in this case 15/05/2010)  in the document date of GR instead of the Document date in the Inbound Delivery.
    Is this can be controlled thru any Configuration? Request you to provide inputs for this kind of copy control.
    Thank you,
    Best Regards,
    Ramakrishna Mangena

    Any inputs please...

  • Creating TO from Inbound delivery

    hi, all
    while creating Transfer Order with Inbound Delivery I am getting the following error.
    AN INTERNAL ERROR HAS OCCURRED(L03T  0154H)
    Message L3705.
    How to fix it.
    pls give some inputs

    Hello,
    In Customizing, the transfer order creation is not allowed for the entered material and plant. This leads to the generation of the error message with the number L3360.
    As a result of missing program settings (how the program should respond in such a case), the system generates the error message L3705.
    You need to make the following corrections
    A material status is created in Customizing under transaction OMS4
    The field 'Transfer order message' is set to 'B' - Error message (Error) in this material status in the WMS view.
    The above mentioned material status is maintained in the view 'Purchasing' in the field 'Plant-Specific Material Status' in the material master for this material.
    You have to implement  OSS Note 495452
    Insert new entries in view V_T342 as per OSS 495452
    BR,
    Tushar

  • Function Module for UNPACKING Handling Unit from Inbound Delivery

    Hello Experts,
    I am working on a RFID program to Receive goods from vendor...
    One of the steps of the program should CHANGE the quantity inside a received batch.
    To do so, I need to UNPACK the Handling Unit first... then change the quantity.
    I am using the following Function Modules to do so:
    - 'HU_GET_HUS'
    - 'V51P_FILL_GT'
    - 'HU_PACKING_AND_UNPACKING'
    - 'HU_POST'
    First 2 FM works fine...
    But when I get to the 3rd one, I keep getting "NOT_POSSIBLE" error...
    Have anyone done this before??
    Here's the code I've done to do some testing before putting it into my code...
    PLEEEEEEEEEEEASE HELP.
    TYPE-POOLS: vsep. PARAMETERS: p_venum LIKE vekp-venum.
    DATA: wa_object LIKE hum_object,
          it_object TYPE TABLE OF hum_object.
    DATA: wa_v51vp LIKE v51vp,
          it_v51vp TYPE TABLE OF v51vp.
    DATA: flag LIKE v51p_select_flags.
    DATA: it_venum            TYPE STANDARD TABLE OF hum_venum,
          ef_rcode            LIKE sy-subrc,
          et_vekp             TYPE STANDARD TABLE OF vsep_s_vekp,
          et_vepo             TYPE STANDARD TABLE OF vsep_s_vepo,
          et_vevw             TYPE vsep_t_vevw,
          et_highest_level    TYPE vsep_t_venum,
          et_messages         TYPE huitem_messages_t,
          is_packing_request  TYPE vsep_s_pithu,
          es_p_request        TYPE vsep_s_pithu,
          es_item             LIKE vepovb,
          cs_header           LIKE vekpvb,
          ef_number           TYPE vpobjkey,
          et_header           TYPE STANDARD TABLE OF vekpvb,
          et_items            TYPE STANDARD TABLE OF vepovb,
          et_item_serialno    TYPE vsep_t_rserob,
          et_history          TYPE hum_history_t,
          et_highest_levels   TYPE hum_venum_t.
    DATA: wa_venum            LIKE hum_venum,
          wa_vepo             TYPE vsep_s_vepo,
          wa_vekp             TYPE vsep_s_vekp,
          wa_items            TYPE vepovb,
          wa_header           TYPE vekpvb.
    START-OF-SELECTION.
      wa_venum-venum = p_venum.
      APPEND wa_venum TO it_venum.
      CALL FUNCTION 'HU_GET_HUS'
        EXPORTING
          it_venum          = it_venum
        IMPORTING
          et_header         = et_header
          et_items          = et_items
          et_item_serialno  = et_item_serialno
          et_history        = et_history
          et_highest_levels = et_highest_levels
          et_messages       = et_messages
        EXCEPTIONS
          hus_locked        = 1
          no_hu_found       = 2
          fatal_error       = 3
          OTHERS            = 4.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE et_header INDEX 1 INTO wa_header.
      CALL FUNCTION 'V51P_FILL_GT'
        EXPORTING
          it_venum         = it_venum
        IMPORTING
          ef_rcode         = ef_rcode
          et_vekp          = et_vekp
          et_vepo          = et_vepo
          et_vevw          = et_vevw
          et_highest_level = et_highest_level
          et_messages      = et_messages
        EXCEPTIONS
          hu_locked        = 1
          no_hu_found      = 2
          fatal_error      = 3
          OTHERS           = 4.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE et_vepo INDEX 1 INTO wa_vepo.
      READ TABLE et_vekp INDEX 1 INTO wa_vekp.
      MOVE-CORRESPONDING wa_vepo TO  is_packing_request.
      is_packing_request-belnr    = wa_vepo-vbeln.
      is_packing_request-quantity = wa_vepo-vemng.
      is_packing_request-veanz    = '-1'.
      is_packing_request-meins    = wa_vepo-vemeh.
      is_packing_request-exidv    = wa_vekp-exidv.
      CALL FUNCTION 'HU_PACKING_AND_UNPACKING'
        EXPORTING
          is_packing_request = is_packing_request
        IMPORTING
          ef_rcode           = ef_rcode
          es_p_request       = es_p_request
          es_item            = es_item
        CHANGING
          cs_header          = cs_header
        EXCEPTIONS
          missing_data       = 1
          hu_not_changeable  = 2
          not_possible       = 3
          customizing        = 4
          weight             = 5
          volume             = 6
          serial_nr          = 7
          fatal_error        = 8
          OTHERS             = 9.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'HU_POST'
        EXPORTING
          if_synchron = 'X'
          if_commit   = 'X'
        IMPORTING
          ef_number   = ef_number.
      break nunfx004.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Thanks in advance,
    Fernanda

    Hi ,
    Check this code.
    Pack componet HU to Overpack HU. *
        l_packing_req-venum = g_ovrp_venum.                  "Overpack Internal HU
        l_packing_req-exidv = g_ovrp_exidv.                  "Overpack External HU
        l_packing_req-veanz = '1'.                     "PACK Constant
        l_packing_req-sub_hu_venum = l_int_venum.
        l_packing_req-sub_hu_exidv = l_int_exidv.       "Componet External HU
        l_packing_req-velin = '3'.                      "HU Type Constant
        l_packing_req-quantity = '1.000'.
    call function 'HU_PACKING_AND_UNPACKING'
          exporting
            is_packing_request = l_packing_req
          exceptions
            missing_data       = 1
            hu_not_changeable  = 2
            not_possible       = 3
            customizing        = 4
            weight             = 5
            volume             = 6
            serial_nr          = 7
            fatal_error        = 8
            others             = 9.
        if sy-subrc <> 0.
    error
          clear: v_msgv1, v_msgv2, v_msgv3.
          v_msgv1 = text-031.
       PERFORM display_message USING v_msgv1 v_msgv2 v_msgv3.
          leave to screen sy-dynnr.
        endif.
    No Errors --> POST HU
        call function 'HU_POST'
          exporting
            if_synchron = 'X'
            if_commit   = 'X'.
    plz write what you are passing to 'HU_PACKING_AND_UNPACKING' and hu_post fm.
    Regards
    Mohinder Singh Chauhan

  • Creation of inbound delivery without reference to a PO

    Dear gurus,
    Let's say that a normal inbound flow is something like this:
    PO > Create inbound delivery with reference to PO > inbound shipment > Transfer Order > Confirm Transfer Order > Post Goods Receipt > Putaway
    Issue:
    My client does not want to create the PO because the PO serves no purpose to them. They want the process to start from inbound delivery.
    Question:
    1. Can a standalone inbound delivery be created WITHOUT reference to a PO ? If yes, please tell me the configuration and transaction code involved in order to create this standalone inbound delivery.
    2. Based on standard configuration, can an inbound delivery be created automatically with reference to a material document (for eg MIGO Mvt Type 501). Once again, for this scenario, no PO should be involved. If yes, please tell me the configuration and transaction code involved in order to trigger the creation of this inbound delivery (I'm not looking for the answer of an inbound delivery creation BAPI to being triggered directly after the creation of the Material Document).
    3. Based on standard configuration, can an inbound delivery be created manually with reference to a material document (for eg MIGO Mvt Type 501). Once again, for this scenario, no PO should be involved. If yes, please tell me the configuration and transaction code involved in order to create this inbound delivery.
    Thanks.

    Hi Peter,
    Actually, my intention is not really to create an inbound delivery based on a goods receipt. Since my client is not keen on the idea of creating a PO, I'm actually trying to provide alternatives and workarounds. From what I have gathered, I already know this much
    -> An inbound delivery must be created with reference to PO unless Handling Unit Management is activated. If Handling Unit Management is activated, the creation of a Material Document will trigger the creation of an inbound delivery (I havent tested this out yet). Therefore, a PO will not be necessary in this case.
    I was kind of expecting answers along this line, unless of course, something better pops up. Maybe someone out there may know something more.
    As for Handling Units, I'm not familiar with it. Hopefully somebody can give me a good configuration guideline on what to do in order to activate it so that I can simulate the scenario of a Material Document triggering the creation of an inbound delivery (I'm not looking for the kind of answers which simply cuts and pastes the SAP HELP URL, 4.6C Handling Unit PDF, Best Practice Document and etc). Hopefully somebody out there can really give me a good guideline on how to do this.
    Thanks..

Maybe you are looking for