Good Receipt w.r.t Handling Units(outbound delivery)

Hi everyone,
i am doing a BDC for MIGO t-code....to create Good Receipt w.r.t Handling Units(outbound delivery).....
While executing the Pgm....if some other user has opened the MIGO t-code in DISPLAY mode then that pgm is not able to call the MIGO t-code...to create Good Receipt w.r.t outbound delivery.....
As this bdc pgm is witten to create the good receipt i.e. why it is not allowing to create the receipt as already someone else has opened it in DISPLAY mode....
The following code is to create Good Receipt w.r.t outbound delivery handling unit
perform bdc_field using 'GODYNPRO-ACTION'
'A01'. -
Good receipt
perform bdc_field using 'GODYNPRO-REFDOC'
'R05'.-----outbound delivery
PLease if somebody can help me out with this code...or can send me any program related to this pgm.

hi,
dont write bdc for migo.
use bapi.
*& Report  ZRPT_SUB_KO01GOODSMOVEMENT
REPORT  ZRPT_SUB_KO01GOODSMOVEMENT.
PARAMETERS : P_BAG(17)  TYPE C,
             P_ZZORG LIKE zaUFK-ZZORG,
             P_MATNR LIKE MARA-MATNR,
             P_WERKS LIKE AUFK-WERKS,
             P_WERK LIKE AFPO-PWERK,
             P_DATE LIKE MKPF-BUDAT,
             P_LGORT LIKE GOITEM-LGOBE.
DATA : BDC_DATA TYPE STANDARD TABLE OF BDCDATA. "internla table for bdc data
  DATA : WA_BDC_DATA TYPE BDCDATA .                "work area for bdc data
  DATA : T_XMSEG TYPE   MSEG.
  DATA : T_XMKPF TYPE MKPF.
  DATA : V_BAGS1(17) TYPE C.
DATA : BEGIN OF WA_MB1B,
       ZZGCODE TYPE ZMIGO-ZZGCODE,
       ZZGBAGS TYPE ZMIGO-ZZGBAGS,
       WERKS TYPE AUFK-WERKS,
       LGORT TYPE VBRP-LGORT,
       ZZORG TYPE zAUFK-ZZORG,
       END OF WA_MB1B.
DATA : V_MATERIAL TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
data : v_date(10) type c.
DATA : T_GOODSMVT_HEADER TYPE BAPI2017_GM_HEAD_01,
       T_GOODSMVT_CODE TYPE BAPI2017_GM_CODE,
       T_GOODSMVT_ITEM TYPE STANDARD TABLE OF BAPI2017_GM_ITEM_CREATE,
       T_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
DATA : WA_GOODSMVT_ITEM TYPE BAPI2017_GM_ITEM_CREATE.
DATA : BEGIN OF S_MARA,
       MEINS LIKE MARA-MEINS,
       END OF S_MARA.
DATA : MATERIALDOCUMENT TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
*FORM GOODSMOVEMENT TABLES T_RETURN
                         USING WA_MB1B LIKE WA_MB1B.
SELECT SINGLE  MEINS
               FROM MARA
               INTO S_MARA
               WHERE MATNR = P_MATNR.
   CONCATENATE p_date6(2) p_date4(2) p_date+0(4) INTO V_DATE SEPARATED BY '.'.
    T_GOODSMVT_HEADER-PSTNG_DATE = P_DATE.
    T_GOODSMVT_HEADER-DOC_DATE = P_DATE.
    T_GOODSMVT_CODE-GM_CODE = '04'.
    WA_GOODSMVT_ITEM-MATERIAL =      P_MATNR.                    "'000000000000001556'.
    WA_GOODSMVT_ITEM-PLANT  =        P_WERK.                     " '1000'.
    WA_GOODSMVT_ITEM-STGE_LOC =      P_LGORT.                    " '0001'.
    WA_GOODSMVT_ITEM-MOVE_TYPE =     'Z42'.
    WA_GOODSMVT_ITEM-VENDOR =         P_ZZORG.                   "'0000100224'.
    WA_GOODSMVT_ITEM-ENTRY_QNT =      P_BAG.                   " '1'.
    WA_GOODSMVT_ITEM-ENTRY_UOM =     S_MARA-MEINS.
    WA_GOODSMVT_ITEM-ENTRY_UOM_ISO = S_MARA-MEINS.
    WA_GOODSMVT_ITEM-MOVE_PLANT = P_WERKS.
    APPEND WA_GOODSMVT_ITEM TO T_GOODSMVT_ITEM.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
      GOODSMVT_HEADER          = T_GOODSMVT_HEADER
      GOODSMVT_CODE            = T_GOODSMVT_CODE
IMPORTING
    MATERIALDOCUMENT           = V_MATERIAL
TABLES
      GOODSMVT_ITEM            = T_GOODSMVT_ITEM
RETURN                        = T_RETURN.
BREAK shailajaa.
           EXPORT t_return  to MEMORY ID '123'.
           EXPORT V_MATERIAL TO MEMORY ID 'MAT'.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
     EXPORTING
       WAIT          = ' '.
*ENDFORM.
see this example.
reward points if usefull..

Similar Messages

  • Goods Receipt with respect to Handling Unit (Transaction u0096 MIGO)

    Hi All,
    A delivery is created for stock transport order for goods movement from Plant XXXX (Storage Location – YYYY) to Plant XXXX (Storage Location – ZZZZ).
    Handling Units are packed on delivery and delivery is post goods issued from Plant XXXX (Storage Location – ZZZZ).
    While posting goods receipt (Transaction – MIGO) without selecting “Via Handling Units” system populates the “packaging material” line item whereas when “Via Handling Units” is selected (in other words – when tried to post Goods Receipt with respect to Handling Units) system doesn’t populate the associated “packaging material”.
    Requirement is to populate “packaging material” line item while posting Goods Receipt with respect to Handling Unit.
    Plz guide me.
    Satish

    Hi Vatcan,
    Chek the Inbound Delivery 1st weather you refer the right PO in it
    You can also chek in  PO i
    1 Me23n Go to confirmation tab here you can see the  Inbound delivery  quantity
    2 Chek  which reference document you recived the goods,  (i.e You recived the goods with reference to PO or  Inbound delivery)
    2 Coz if you refer the inbound delivery then syestem will deafult show the inbound quanity
    And yes the actual quanity will update in inbound delivery if you refer the inbound deivery while reciveing the goods

  • Goods Receipt of co-product (handling unit)

    Hi everybody,
    I wonder if it is possible to make goods receipt of co-product using standard transaction (like COWBHUWE)?
    I can pack co-product with reference to an order, but when I try to post packed HU (with COWBHUWE or function module) material/co-product inside HU is switched with material defined in production order header (main material).
    I can post GR of co-product with MIGO (or FM equvialent) and pack co-product later; but in that case HU has no reference to production order.
    Is there any way (standard transaction or function module) to post GR of co-product HU with reference to production order?
    Thank you for your answers.
    Marko

    Marko Kunsic wrote:
    I can post GR of co-product with MIGO (or FM equvialent) and pack co-product later; but in that case HU has no reference to production order.
    In case we posted goods receipts of co-product using MIGO, we have to create/pack handling units afterwards.
    Is it possible to create HU with reference to production order (VEKP-VPOBJ = '09') or somehow regularly insert data about production order number into 'free' HU (VEKP-VPOBJ = '12') history?
    There is an option to fill this data (production order number) into field of VEKP, but this seems not to be the optimal way.
    Thank you for your help.
    Marko

  • Post goods receipt of HU items (Handling unit) inbound deliveries

    Hi all,
        could u plz tell me how to post goods receipt of HU 
        items. i am using BAPI Goods_movment_create
        ( movement indicator 'B' and '01') but it
        is giving error. i am not passing purchase number
        and item , insted i am passing inbound delivery 
        number and item. plz help me out.
    thanks and regards
    manish

    PLease read the FM documentation.
    It is given very clearly.
    Regards,
    ravi

  • Check if handling Unit/outbound delivery locked?

    Hi all,
    How do i check whether a HANDLING UNIT is locked or not?
    How do i check whether a Outbound delivery is locked or not?
    Any Std FM's available?Any input will be highly appreciated.
    Thanks.
    Edited by: Andy102 on Apr 23, 2010 7:56 AM

    Hi,
    To check the Outbound delivery is locked, call the below function module
    CALL FUNCTION 'SHP_ENQUEUE_EVVBLKE'
      EXPORTING
       MODE_LIKP               = 'E'
       MANDT                   = SY-MANDT
        vbeln                   = <Delivery Number>
    EXCEPTIONS
       FOREIGN_LOCK            = 1
       SYSTEM_FAILURE          = 2
       CSL_NO_CONNECTION       = 3
       CSL_INCONSISTENCY       = 4
       OTHERS                  = 5
    IF sy-subrc ne 0.
      delivery is locked
    else.
      delivery is not locked. 
    ENDIF.
    For handling unit use the function module "ENQUEUE_EVVEKPE"
    Regards
    Vinod
    Edited by: Vinod Kumar on Apr 23, 2010 11:51 AM

  • Automatic creation of TO's for Handling Unit Inbound Delivery -del type HID

    Hi Guru's,
    I would like to create the putaway TO's for a Handling Unit inbound delivery automatically (delivery type HID). This means at the moment of the creation of the Inbound Delivery. The packing is also automatically done by the customizing of the delivery type. Did somebody faced this requirement before?
    Thx,
    Carl

    I found the solution:
    Choose Customizing activity Define Output Types for Inbound Delivery, and define output type WMTA. Enter the following values in the detail view of output type WMTA under General Data:
    Enter an existing Access sequence. Access sequence 0001 is predefined in the standard system.
    Set the indicator Access to conditions.
    Set the indicator Partner-indep. output.
    Save your entries.
    In the menu tree, choose the entry Processing Routines in the Customizing activity Define Output Types, and enter the following values:
    Choose entry 8 (special function) for the indicator Transmission Medium.
    Enter RLAUTA20 in the field Program.
    Enter ENTRY in the field Form Routine.
    Save your entries.
    Choose the Customizing activity Maintain Output Determination Procedure.
    Define a procedure and enter the output type WMTA in the control view of the procedure. The procedure E10001 is predefined in the standard system.
    To define a suitable condition record for inbound deliveries,
    choose Logistics -> Materials Management -> Purchasing -> Master Data ->
    Messages -> Inbound Delivery -> Create from the SAP menu.
    Enter the output type WMTA.
    Enter output medium 8 (special function) for delivery type Inbound Delivery.
    Select the desired Date/Time.
    Select the desired Language.
    Cheers,
    Carl

  • Picking handling unit in Delivery

    Hi,
    I have a scenario in which I want to pick handling units from stock into the delivery. At the time of picking in delivery transfer order is created, but warehouse management is not in the scope. Can we pick handling unit in delivery without warehouse management.?
    Regards
    Falgun

    Dear Falgun,
    I think its not possible. if i understood your question correctly, that you have created an order and for that you are doing picking/packing, you should create handling unit first and then allocate it in the material master for that perticular material in material master MM01 ->basic data tab under packing material data.
    hope its helpful for you.
    Regards
    Ashwini

  • Handling units outbound process

    Hi People,
    Can we not activate Storage Unit management/HU management in the warehouse and still create HUs during outbound process via packing transfer order? We dont want to manage stock at SU/HU level but create handling unit for material during outbound process. Possible?
    Any suggestions will be appreciated.
    Thanks
    Puneet

    Goto delivery document flow -> then goto the HU -> check HU history.
    Has the HU been changed / assigned to other document after the GI?
    If HU has been changed / moved after goods issue, it's no longer allowed to reverse the GI in VL09. This is standard behavior.
    The only option is to post another movement in the opposite direction.
    E.g. create a return processs.

  • How to fetch external handling unit# using delivery#

    Hi Gurus,
    Please tell me relationship how to fetch the VBEP-EXIDV(external handling unit)    Using LIKP-VBELN(Outbound Delivery no) .
    Any suggestions welcome.
    Thanks in advance,

    Table vekp has a field SPE_DELDEC.
    Also if field STATUS = 60, its deleted.

  • How to get hierarchy of a handling unit in delivery

    Hi All,
    We have a requirement of displaying in the form output highest level handling unit details(measurements length width and all).
    After that we want to display lower level handling units materials that has been packed.In the transaction Vl03n I can find this by just double clicking the parent Handling unit.
    To make simple how to get the hierarchy of handling units?
    If I know handling unit(say HU1) how to find there are some handling units(may be HU2,HU3) included in this handling unit HU1.
    I refered to the tables VEKP and VEPO it does not help me in this regard.Please suggest some body some idea on this.
    Regards
    Mahesh

    Hi,
    Have you look into field VEKP-UEVEL (Higher-Level Handling Unit)
    RF_SW_VEKP_READ                  Select from table VEKP - 1st layer
    VEKP_READ                        Select from table VEKP - 2nd layer
    Kind Regards
    Edited by: Raymond Friston on Apr 24, 2008 8:37 AM

  • Freight Calculation basis Handling Unit in Delivery

    Hi Expts.
    Could anybody help me how to identify shipment cost (freight) on the basis of Number of Handling Unit in a Delivery.
    Example:
    1-One Delivery
    2-Multiple quantity of material (10 qty)
    3-Packed in multiple handling units (2 in one HU, 5 HU)
    Freight calculation on the basis of handling units handled by freight forwarder.
    Urgent help required.
    Regards
    AB

    hi raja,
    packing done at delivery and transfer order is used for packing an item at delivery level or at transfer order level that is at ware house management level.
    packing material is normal material which you will use for packing purpose like
    TV packing uses: polythene cover, thermocol sheets, then a carton and you will keep 10 TV's in one single pallet that is handling unit
    please check SPRO config settings for multi level packings.
    please take this link:
    http://sdconfiguration.blogspot.com/2008/02/multi-level-packaging-in-delivery.html

  • Handling units in delivery

    hello gurus
       can any body send the relavent stepby stepby step configuration settings for handling units.
    thanks in advance,
    balu

    Hi Bala,
    Please go through this SAP help it will help you,
    http://help.sap.com/saphelp_47x200/helpdata/en/16/4bad1ba63611d2b44e006094b9b9dd/frameset.htm
    I hope it will help you,
    Regards,
    Murali.

  • Post Goods Receipt in EWM : No items found for delivery

    Hi All,
    I am sending across am Inbound Delivery from ERP to the EWM System.
    The sequence of actions are as follows :
    1. In bound delivery being sent from ERP to EWM.
    2. Warehouse task being created in EWM.
    3. Warehouse order being created in EWM.
    4. Warehouse task confirmed and saved in EWM.
    When I go and try to do a PGR for the delivery in EWM, then it complains about no items being found in the delivery for Goods Movement. Could someone please let me know if I am missing any steps for the PGR. Are there any specific configurations that need to be done for the PPF?
    Thanks,
    Arup

    Hi Thiru,
    A somewhat late aswer, but it might be helpfull for other users with the same problem. You can solve this problem by assigning the division/valuation area to the business area. Follow the path below to execute this:
    SPRO - enterprise controlling - Consolidation - Integration: preparation for consolidation - Preparation in the sender system - Further settings for Business Area Consolidation - Materials Management - Assign Division/Valuation Area to Business area.
    Under Enterprise structure -  Assignment - Logistics General, you will find a similar function. First execute option 1 or 2 here and then execute option 3. This makes it work as well, exept that it will not be recorded in a proper transport. The first option I gave for assigning is properly transportable.
    Greetings,
    Sjaak van den Berg
    Magnus Technology Consultants
    Edited by: S. van den Berg on Aug 14, 2009 1:09 PM
    Edited by: S. van den Berg on Aug 14, 2009 1:10 PM

  • Error while assigning Handling Unit to Delivery

    Hi Friends,
    I am facing the problem while assigning(manually) the HU to Delivey in VL02N.
    Plant/St.Loc are not manged by WM.
    It gives the following error:
    HU XXXXXXX is in the warehouse. Assignment only possible through transf.order
    Note:Warehouse Management is not active.
    kindly guide me..
    With Regards
    Azeez.Mohd

    Hi,
    Activate lean warehouse management,
    Logistics execution>>>shipping>>>picking>>>lean warehouse.
    kapil
    Edited by: Kapildev Farakte on Nov 24, 2009 9:56 AM

  • Goods Receipt in STO with delivery ( SD Route ) problem

    Hi,
    there is issue related to Goods Receipt in STO with delivery ( SD Route)
    here
    1. PO with delivery is created ( SD rote )
    2. with reference to above STO outboud delivery & PGI is done
    but after this Goods Receipt is done but outbound delivery document is not updated.
    Note : as per my understanding here user has done Goods Receipt against STO PO instead of Outbound delivery.
    so please guide me so in the future user can not do Goods Receipt against STP PO in the case of STO with delivery cycle. only user can do Goods Receipt against outbound delivery.
    Thanks
    h shah

    You have to ensure in your organizational processes that there is no switch between Transactions MB0A/MIGO and VL32/VL32N. please read the note 199703.

Maybe you are looking for

  • How to change the resolution of a file?

    Hi, can someone please help me. I am working with illustrator CS and I am exporting a file as a jpeg. I need to print that file so when i export it i am changing the resolution to 150dpi. When i open the file in windows picture manager edit it and sa

  • Regarding dump in print program for form 16 tranction code PC00_M40_F16

    Hi  gurus,            While executing the tcode PC00_M40_F16 I am getting short dump. details are given            below. here K1 is  Payroll area. its data type is char2 and program is standard program            so why its generating dump, please g

  • What does upgrading to Mavericks due to my BootCamp partition?

    I'm still running my OSX 10.6 that was upgraded to 10.8, but i haven't downloaded and installed 10.9 yet.  If I install Mavericks, will that make any changes to BootCamp or should that still function the same after the upgrade?  Right now my laptop b

  • Problem with 5800

    Since I downloaded the latest version of the firmware, I have being seeing system error popping up on the screen especially when the phone is turned back on.....can anyone tell me why this is happening?

  • Photoshop 5 Vista OS DVD Not working

    I cannot make backups of my catalogs on my Vista computer from Photoshop Elements 5. The CDDVDW is a TSST Cop. TSH653Q drive. Photoshop tells me the driver is not loaded, Install Photoshop. I do the install and the same thing happens. When attempting