Storage Location from USERTEMP1 not picked during Goods Issue

Hi All,
We had populated the USERTEMP field in FMDERIVE with the Storage Location using the steps mentioned in the following thread
Fund Center not getting populated through FMDERIVE
The problem is that during a Goods Issue made from MIGO, this particular field is not getting picked up in the USERTEMP (trace was set up in FMDERIVE, which showed that the USERTEMP is empty).
But in the case of PR/PO and other purchases, the USERTEMP is getting derived properly with the storage location.
Why is that the USERTEMP behaves differently for a Goods Purchase and a Goods Issue ?
Requesting help from the experts on this issue,
Thanks,
Wy.

Hi Eli,
We replicated the development we did for procurement (copying from storage location into USERTEMP) by finding out the enhancement point and the code worked fine here.
One important thing to note is that the buffer need to be cleared everytime, before a value is entered here - the USERTEMP field is static otherwise.
Thanks for your inputs,
Wy

Similar Messages

  • DESADV is not generated during Goods issue from VT02N.

    Hello,
    DESADV is generating during goods issue from VL02N.
    But DESADV is not generated during Goods issue from VT02N.
    Any idea what was missing?
    I maintained the variant of RV56ABST for Delivery message with output type LAVA and Medium 6 (EDI).
    Thanks,
    Venkat

    I got reply from SAP. It is as follows:
    Please goto tcode VL10CUC. For Profile 2000, please check whether
    indicator "No OutputDet." is flagged.
    Please unflag that indicator and then retest.
    Please read note 1410599 for more inforamtion.
    Thanks,
    Venkat.

  • Batch determination not working during goods issue in MIGO screen

    Hi,
    We have configured search strategy according to shelf life expiration while doing the goods issue with movement type 201, 351 etc. Now when I do goods issue in MB1A for movement type 201 or in MB1B for movement type 351, by entering the * and clicking enter, system proposes the batch nos of the material according to the shelf life expiration. But when I do same procedure in MIGO screen, while entering * in batch field system does not propose the batch nos., instead it gives error as "use of special characters are not allowed"
    How the above problem can be resolved?
    Thanks in advance,
    Satish

    Thanks Aroop & Jurgen
    I have done the settings as per your suggestions by maintaining the Stock Determination Group. However It picks the batches as per FIFO and not as per shelf life expiration. Also same is the case with MB1A or MB1B.
    The reason I wish to use MIGO instead of MB1A or MB1B is as follows
    Suppose STO is made of say 10 line items (all Batch managed items). Now while issuing the goods, say for the seventh item there is no stock available then I can not bypass this item (it asks for enter the batch no. even though I change the quantity to zero) and I have to abort the complete transaction. But in case of MIGO I can bypass this item by unchecking the item OK check box.
    Any inputs on the above will be helpful.
    Thanks,
    Satish

  • Automatic batch determination during goods issue

    Hi,
    We want automatic batch determination during issuance of components to a process order with out clicking on batch determination tab in COIK as well as I don't want to give '' in MB 1A transaction.  Without clicking anything batch is determining is process order for components. But it is not happening during goods issue either in transaction COIK or in MB1A. If I use COIK again i have to click on batch determination tab and putting '' in MB1A. Then only batch determining. How to avoid this. Batch should determine automatically in inventory posting also like COIK, MB1A etc.
    Thanks & Regards,
    N. Laxman

    Dear Laxman,
    Check these links,
    https://wiki.sdn.sap.com/wiki/display/ERPLO/Batch+Determination
    Automatic batch determination
    Re: how to make the batch determination process automatic
    Regards
    Mangalraj.S

  • Storage location Data is not saving in table MARD using BAPI method.

    Hi Experts,
    TABLES: T001L, "Storage Locations
            MARA,  "General Material Data
            MAKT,  "Material Descriptions
            MBEW,  "Material Valuation
            MARC,  "Plant Data for Material
            MARD.  "Storage Location Data for Mate
    DATA: BAPI_HEAD   LIKE BAPIMATHEAD,  "MATERIAL
          BAPI_MAKT   LIKE BAPI_MAKT,    "Material Description
          BAPI_MARA1  LIKE BAPI_MARA,    "Client Data
          BAPI_MARAX  LIKE BAPI_MARAX,
          BAPI_MARC1  LIKE BAPI_MARC,    "Plant View
          BAPI_MARCX  LIKE BAPI_MARCX,
          BAPI_MBEW1  LIKE BAPI_MBEW,    "Accounting View
          BAPI_MBEWX  LIKE BAPI_MBEWX,
          BAPI_MARD1  LIKE BAPI_MARD,    "Storage location
          BAPI_MARDX  LIKE BAPI_MARDX,
          BAPI_RETURN LIKE BAPIRET2.
    DATA: BEGIN OF INT_MAKT OCCURS 100.
            INCLUDE STRUCTURE BAPI_MAKT.
    DATA: END OF INT_MAKT.
    DATA: BEGIN OF INT_MAT OCCURS 100,
             WERKS(4),     "Plant
             LGORT(4),     "Storage location
             MTART(4),     "Material type
             MATNR(18),    "Material number
             MAKTX(40),     "Material description
             MATKL(9) ,    "Material group
             MBRSH(1),     "Industry sector
             MEINS(3),     "Base unit of measure
             GEWEI(3),     "Weight Unit
             SPART(2),     "Division
             EKGRP(3),     "Purchasing group
             VPRSV(1),     "Price control indicator
             STPRS(12),    "Standard price
             PEINH(3),     "Price unit
             SPRAS(2),     "Language key
             BKLAS(4),     "VALUATION CLASS
             VERPR TYPE VERPR_BAPI,    "MOVING PRICE
             BWTTY(1),     "Valuation Catogory
             MLAST(1),     "Price determination
             MLMAA(1),     "Material Ledger
             EKLAS(4),     "Valuation Class for sales order stock
             QKLAS(4),     "Valuation Class for Project Stock
             ZKPRS TYPE DZKPRS, "Future price
             ZKDAT TYPE DZKDAT, "Valid From Date
             BWPRS TYPE BWPRS,  "Tax price 1
             BWPS1 TYPE BWPS1,  "Tax price 2
             VJBWS TYPE VJBWS,  "Tax price 3
             ABWKZ TYPE ABWKZ,  "Devaluatin indicator
             BWPRH TYPE BWPRH,  "Commercial price 1
             BWPH1 TYPE BWPH1,  "Commercial price 2
             VJBWH TYPE VJBWH,  "Commercial Price 3
             XLIFO(1),          "LIFO/FIFO revelant
             MYPOL(4),          "Pool no for LIFO
             MMSTA(2),          "Plant specific material status
             AUSME TYPE AUSME,  "Unit of issue
             QMATA(6),          "Material Authorization group
             RBNRM(9),          "Catalog Profile
             WEBAZ TYPE WEBAZ,  "Goods reciept processing time in days
             PRFRQ TYPE PRFRQ,  "Recurring Insepction
             SSQSS(8),          "QM Control key
             QZGTP(4),          "Certificate Type
             QSSYS(4),          "Required QM system for vendor
           END OF INT_MAT.
    DATA: V_MATNR TYPE MARA-MATNR.
    SELECT-OPTIONS:
                PLANT    FOR  MARC-WERKS OBLIGATORY MEMORY ID PLT,
                S_LGORT  FOR  MARD-LGORT MEMORY ID STL,
                MATERIAL FOR  MARA-MATNR MEMORY ID MAT,
                MATLTYPE FOR  MARA-MTART MEMORY ID MTY,
                DIVISION FOR  MARA-SPART MEMORY ID DIV.
    PARAMETERS:  F_FILE LIKE RLGRAP-FILENAME
                 DEFAULT 'C:\DATA\ZMATERIAL.XLS' MEMORY ID F_FILE,
    GETDATA AS CHECKBOX, "Tick to download materials data to local harddisk
             UPDDATA AS CHECKBOX. "Tick to update date to Materials Master
    IF GETDATA = 'X'.
       PERFORM DOWNLOAD_DATA.
       PERFORM DOWNLOAD_FILE.
    ENDIF.
    IF UPDDATA = 'X'.
       PERFORM UPLOAD_FILE.
       PERFORM UPDATE_MM.
    ENDIF.
    FORM DOWNLOAD_DATA.
    SELECT * FROM MARC  WHERE LVORM EQ ' '
                          AND WERKS IN PLANT
                          AND MATNR IN MATERIAL.
        CLEAR MARA.
        SELECT SINGLE * FROM MARA WHERE MATNR =  MARC-MATNR.
        CHECK MATLTYPE.
        CHECK DIVISION.
        CLEAR MBEW.
        SELECT SINGLE * FROM MBEW WHERE MATNR =  MARC-MATNR
                                    AND BWKEY =  MARC-WERKS.
        CLEAR MAKT.
        SELECT SINGLE * FROM MAKT WHERE SPRAS =  'EN'
                                    AND MATNR =  MARC-MATNR.
        CLEAR MARD.
        SELECT SINGLE * FROM MARD WHERE WERKS IN PLANT
                                  AND   LGORT IN S_LGORT.
        WRITE:/ MARC-WERKS,    "Plant
                MARD-LGORT,    "Storage location
                MARA-MTART,    "Material type
                MARA-MATNR,    "Material number
                MARA-MATKL,    "Material group
                MARA-MBRSH,    "Industry sector
                MARA-MEINS,    "Base unit of measure
                MARA-GEWEI,    "Weight Unit
                MARA-SPART,    "Division
                MARC-EKGRP,    "Purchasing group
                MBEW-VPRSV,    "Price control indicator
                MBEW-STPRS,    "Standard price
                MBEW-PEINH,    "Price unit
                MBEW-BKLAS,    "VALUE CLASS
                MAKT-SPRAS,    "Language key
                MBEW-BKLAS,    "Valuation Class
                MBEW-VERPR,    "Moving price
                MAKT-MAKTX,    "Material description
                MBEW-BWTTY,    "Valutaion Catogorey
                MBEW-MLAST,    "Price Determination
                MBEW-MLMAA,    "Material Ledger
                MBEW-EKLAS,    "Valuation class for Sales order stock
                MBEW-QKLAS,    "Valutaion Class for Project Stock
                MBEW-ZKPRS,    "Future Price
                MBEW-ZKDAT,    "Valid From Date
                MBEW-BWPRS,    "Tax price 1
                MBEW-BWPS1,    "Tax price 2
                MBEW-VJBWS,    "Tax price 3
                MBEW-ABWKZ,    "Devaluatin indicator
                MBEW-BWPRH,    "Commercial price 1
                MBEW-BWPH1,    "Commercial price 2
                MBEW-VJBWH,    "Commercial Price 3
                MBEW-XLIFO,    "LIFO/FIFO revelant
                MBEW-MYPOL,    "Pool no for LIFO
                MARC-MMSTA,    "Plant specific material status
                MARC-AUSME,    "Unit of issue
                MARC-QMATA,    "Material Authorization group
                MARA-RBNRM,    "Catalog Profile
                MARC-WEBAZ,    "Goods reciept processing time in days
                MARC-PRFRQ,    "Recurring Insepction
                MARC-SSQSS,    "QM Control key
                MARC-QZGTP,    "Certificate Type
                MARC-QSSYS.    "Required QM system for vendor
                INT_MAT-WERKS = MARC-WERKS.    "Plant
                INT_MAT-LGORT = MARD-LGORT.    "Storage Location
                INT_MAT-MTART = MARA-MTART.    "Material type
                INT_MAT-MATNR = MARA-MATNR.    "Material number
                INT_MAT-MAKTX = MAKT-MAKTX.    "Material description
                INT_MAT-MATKL = MARA-MATKL.    "Material group
                INT_MAT-MBRSH = MARA-MBRSH.    "Industry sector
                INT_MAT-MEINS = MARA-MEINS.    "Base unit of measure
                INT_MAT-GEWEI = MARA-GEWEI.    "Weight Unit
                INT_MAT-SPART = MARA-SPART.    "Division
                INT_MAT-EKGRP = MARC-EKGRP.    "Purchasing group
                INT_MAT-VPRSV = MBEW-VPRSV.    "Price control indicator
                INT_MAT-STPRS = MBEW-STPRS.    "Standard price
                INT_MAT-PEINH = MBEW-PEINH.    "Price unit
                INT_MAT-SPRAS = MAKT-SPRAS.    "Language key
                INT_MAT-BKLAS = MBEW-BKLAS.    "VALVATION CLASS
                INT_MAT-VERPR = MBEW-VERPR.    "MOVING price
                INT_MAT-BWTTY = MBEW-BWTTY.    "Valutaion Catogorey
                INT_MAT-MLAST = MBEW-MLAST.    "Price Determination
                INT_MAT-MLMAA = MBEW-MLMAA.    "Material Ledger
                INT_MAT-EKLAS = MBEW-EKLAS.    "Valuation class forS.O Stock
                INT_MAT-QKLAS = MBEW-QKLAS.    "Valutaion Class for Project
                INT_MAT-ZKPRS = MBEW-ZKPRS.    "Future Price
                INT_MAT-ZKDAT = MBEW-ZKDAT.    "Valid From Date
                INT_MAT-BWPRS = MBEW-BWPRS.    "Tax price 1
                INT_MAT-BWPS1 = MBEW-BWPS1.    "Tax price 2
                INT_MAT-VJBWS = MBEW-VJBWS.    "Tax price 3
                INT_MAT-ABWKZ = MBEW-ABWKZ.    "Devaluatin indicator
                INT_MAT-BWPRH = MBEW-BWPRH.    "Commercial price 1
                INT_MAT-BWPH1 = MBEW-BWPH1.    "Commercial price 2
                INT_MAT-VJBWH = MBEW-VJBWH.    "Commercial Price 3
                INT_MAT-XLIFO = MBEW-XLIFO.    "LIFO/FIFO revelant
                INT_MAT-MYPOL = MBEW-MYPOL.    "Pool no for LIFO
                INT_MAT-MMSTA = MARC-MMSTA.    "Plant specific material
                INT_MAT-AUSME = MARC-AUSME.    "Unit of issue
                INT_MAT-QMATA = MARC-QMATA.    "Material Authorization group
                INT_MAT-RBNRM = MARA-RBNRM.    "Catalog Profile
                INT_MAT-WEBAZ = MARC-WEBAZ.    "Goods reciept processing
                INT_MAT-PRFRQ = MARC-PRFRQ.    "Recurring Insepction
                INT_MAT-SSQSS = MARC-SSQSS.    "QM Control key
                INT_MAT-QZGTP = MARC-QZGTP.    "Certificate Type
                INT_MAT-QSSYS = MARC-QSSYS.    "Required QM system for
                APPEND INT_MAT.
                CLEAR  INT_MAT.
    ENDSELECT.
    ENDFORM.
    FORM DOWNLOAD_FILE.
    call function 'WS_DOWNLOAD'
      EXPORTING
        FILENAME                      = F_FILE
        FILETYPE                      = 'DAT'
      FILETYPE                      = 'WK1'
      tables
        data_tab                      = INT_MAT
      EXCEPTIONS
        FILE_OPEN_ERROR               = 1
        FILE_WRITE_ERROR              = 2
        INVALID_FILESIZE              = 3
        INVALID_TYPE                  = 4
        NO_BATCH                      = 5
        UNKNOWN_ERROR                 = 6
        INVALID_TABLE_WIDTH           = 7
        GUI_REFUSE_FILETRANSFER       = 8
        CUSTOMER_ERROR                = 9
        OTHERS                        = 10.
    IF SY-SUBRC = 0.
       FORMAT COLOR COL_GROUP.
       WRITE:/ 'Data Download Successfully to your local harddisk'.
       SKIP.
    ENDIF.
    ENDFORM.
    FORM UPLOAD_FILE.
    call function 'WS_UPLOAD'
      EXPORTING
        FILENAME                      = F_FILE
        FILETYPE                      = 'DAT'
      FILETYPE                      = 'WK1'
      tables
        data_tab                      = INT_MAT
      EXCEPTIONS
        FILE_OPEN_ERROR               = 1
        FILE_WRITE_ERROR              = 2
        INVALID_FILESIZE              = 3
        INVALID_TYPE                  = 4
        NO_BATCH                      = 5
        UNKNOWN_ERROR                 = 6
        INVALID_TABLE_WIDTH           = 7
        GUI_REFUSE_FILETRANSFER       = 8
        CUSTOMER_ERROR                = 9
        OTHERS                        = 10.
    IF SY-SUBRC = 0.
       FORMAT COLOR COL_GROUP.
       WRITE:/ 'Data Upload Successfully from your local harddisk'.
       SKIP.
    ENDIF.
    ENDFORM.
    FORM UPDATE_MM.
    LOOP AT INT_MAT.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
      EXPORTING
        INPUT              = INT_MAT-MATNR
    IMPORTING
       OUTPUT             = INT_MAT-MATNR
    EXCEPTIONS
      LENGTH_ERROR       = 1
      OTHERS             = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Header
        BAPI_HEAD-MATERIAL        = INT_MAT-MATNR.
        BAPI_HEAD-IND_SECTOR      = INT_MAT-MBRSH.
        BAPI_HEAD-MATL_TYPE       = INT_MAT-MTART.
        BAPI_HEAD-BASIC_VIEW      = 'X'.
        BAPI_HEAD-PURCHASE_VIEW   = 'X'.
        BAPI_HEAD-ACCOUNT_VIEW    = 'X'.
    Material Description
        REFRESH INT_MAKT.
        INT_MAKT-LANGU           = INT_MAT-SPRAS.
        INT_MAKT-MATL_DESC       = INT_MAT-MAKTX.
        APPEND INT_MAKT.
    Client Data - Basic
        BAPI_MARA1-MATL_GROUP     = INT_MAT-MATKL.
        BAPI_MARA1-BASE_UOM       = INT_MAT-MEINS.
        BAPI_MARA1-UNIT_OF_WT     = INT_MAT-GEWEI.
        BAPI_MARA1-DIVISION       = INT_MAT-SPART.
        BAPI_MARAX-MATL_GROUP = 'X'.
        BAPI_MARAX-BASE_UOM   = 'X'.
        BAPI_MARAX-UNIT_OF_WT = 'X'.
        BAPI_MARAX-DIVISION   = 'X'.
    Plant - Purchasing
        BAPI_MARC1-PLANT      = INT_MAT-WERKS.
        BAPI_MARC1-PUR_GROUP  = INT_MAT-EKGRP.
        BAPI_MARC1-PUR_STATUS = INT_MAT-MMSTA.
        BAPI_MARC1-ISSUE_UNIT = INT_MAT-AUSME.
        BAPI_MARC1-QM_AUTHGRP = INT_MAT-QMATA.
        BAPI_MARC1-GR_PR_TIME = INT_MAT-WEBAZ.
        BAPI_MARC1-INSP_INT   = INT_MAT-PRFRQ.
        BAPI_MARC1-CTRL_KEY   = INT_MAT-SSQSS.
        BAPI_MARC1-CERT_TYPE  = INT_MAT-QZGTP.
        BAPI_MARC1-QM_RGMTS   = INT_MAT-QSSYS.
        BAPI_MARCX-PLANT      = INT_MAT-WERKS.
        BAPI_MARCX-PUR_GROUP  = 'X'.
        BAPI_MARCX-PUR_STATUS = 'X'.
        BAPI_MARCX-ISSUE_UNIT = 'X'.
        BAPI_MARCX-QM_AUTHGRP = 'X'.
        BAPI_MARCX-GR_PR_TIME = 'X'.
        BAPI_MARCX-INSP_INT   = 'X'.
        BAPI_MARCX-CTRL_KEY   = 'X'.
        BAPI_MARCX-CERT_TYPE  = 'X'.
        BAPI_MARCX-QM_RGMTS   = 'X'.
    Accounting 1
        BAPI_MBEW1-VAL_AREA      = INT_MAT-WERKS.
        BAPI_MBEW1-PRICE_CTRL    = INT_MAT-VPRSV.
        BAPI_MBEW1-STD_PRICE     = INT_MAT-STPRS.
        BAPI_MBEW1-PRICE_UNIT    = INT_MAT-PEINH.
        BAPI_MBEW1-MOVING_PR     = INT_MAT-VERPR.
        BAPI_MBEW1-VAL_CLASS     = INT_MAT-BKLAS.
        BAPI_MBEW1-VAL_CAT       = INT_MAT-BWTTY.
        BAPI_MBEW1-ML_SETTLE     = INT_MAT-MLAST.
        BAPI_MBEW1-ML_ACTIVE     = INT_MAT-MLMAA.
        BAPI_MBEW1-VM_SO_STK     = INT_MAT-EKLAS.
        BAPI_MBEW1-VM_P_STOCK    = INT_MAT-QKLAS.
        BAPI_MBEW1-FUTURE_PR     = INT_MAT-ZKPRS.
        BAPI_MBEW1-VALID_FROM    = INT_MAT-ZKDAT.
    *ACCOUNTING 2
       BAPI_MBEW1-TAXPRICE_1    = INT_MAT-BWPRS.
       BAPI_MBEW1-TAXPRICE_2    = INT_MAT-BWPS1.
       BAPI_MBEW1-TAXPRICE_3    = INT_MAT-VJBWS.
       BAPI_MBEW1-DEVAL_IND     = INT_MAT-ABWKZ.
       BAPI_MBEW1-COMMPRICE1    = INT_MAT-BWPRH.
       BAPI_MBEW1-COMMPRICE2    = INT_MAT-BWPH1.
       BAPI_MBEW1-COMMPRICE3    = INT_MAT-VJBWH.
       BAPI_MBEW1-LIFO_FIFO     = INT_MAT-XLIFO.
       BAPI_MBEW1-POOLNUMBER    = INT_MAT-MYPOL.
        BAPI_MBEWX-VAL_AREA   = INT_MAT-WERKS.
        BAPI_MBEWX-PRICE_CTRL = 'X'.
        BAPI_MBEWX-STD_PRICE  = 'X'.
        BAPI_MBEWX-PRICE_UNIT = 'X'.
        BAPI_MBEWX-MOVING_PR =  'X'.
        BAPI_MBEWX-VAL_CLASS =  'X'.
        BAPI_MBEWX-VAL_CAT       = 'x'.
        BAPI_MBEWX-ML_SETTLE     = 'X'.
        BAPI_MBEWX-ML_ACTIVE     = 'X'.
        BAPI_MBEWX-VM_SO_STK     = 'X'.
        BAPI_MBEWX-VM_P_STOCK    = 'X'.
        BAPI_MBEWX-FUTURE_PR     = 'X'.
        BAPI_MBEWX-VALID_FROM    = 'X'.
       BAPI_MBEWX-TAXPRICE_1    = 'X'.
       BAPI_MBEWX-TAXPRICE_2    = 'X'.
       BAPI_MBEWX-TAXPRICE_3    = 'X'.
       BAPI_MBEWX-DEVAL_IND     = 'X'.
       BAPI_MBEWX-COMMPRICE1    = 'X'.
       BAPI_MBEWX-COMMPRICE2    = 'X'.
       BAPI_MBEWX-COMMPRICE3    = 'X'.
       BAPI_MBEWX-LIFO_FIFO     = 'X'.
       BAPI_MBEWX-POOLNUMBER    = 'X'.
    *Storage Locations
        BAPI_MARD1-PLANT      = INT_MAT-WERKS.
        BAPI_MARD1-STGE_LOC   = INT_MAT-LGORT.
        BAPI_MARDX-PLANT      = INT_MAT-WERKS.
        BAPI_MARDX-STGE_LOC   = INT_MAT-LGORT.
       WRITE:/ BAPI_HEAD-MATERIAL, BAPI_MARC1-PLANT ,BAPI_MARD1-STGE_LOC.
        call function 'BAPI_MATERIAL_SAVEDATA'
          exporting
            HEADDATA                   = BAPI_HEAD
            CLIENTDATA                 = BAPI_MARA1
            CLIENTDATAX                = BAPI_MARAX
            PLANTDATA                  = BAPI_MARC1
            PLANTDATAX                 = BAPI_MARCX
          FORECASTPARAMETERS         =
          FORECASTPARAMETERSX        =
          PLANNINGDATA               =
          PLANNINGDATAX              =
    <b>      STORAGELOCATIONDATA        =  BAPI_MARD1
           STORAGELOCATIONDATAX       =  BAPI_MARDX</b>
            VALUATIONDATA              = BAPI_MBEW1
            VALUATIONDATAX             = BAPI_MBEWX
          WAREHOUSENUMBERDATA        =
          WAREHOUSENUMBERDATAX       =
          SALESDATA                  = BAPI_MVKE1
          SALESDATAX                 = BAPI_MVKEX
          STORAGETYPEDATA            =
          STORAGETYPEDATAX           =
          IMPORTING
            RETURN                     = BAPI_RETURN
          TABLES
            MATERIALDESCRIPTION        = INT_MAKT
          UNITSOFMEASURE             =
          UNITSOFMEASUREX            =
          INTERNATIONALARTNOS        =
          MATERIALLONGTEXT           =
          TAXCLASSIFICATIONS         =
          RETURNMESSAGES             =
          PRTDATA                    =
          PRTDATAX                   =
          EXTENSIONIN                =
          EXTENSIONINX               =
    IF BAPI_RETURN-TYPE = 'E'.
       WRITE:/ 'Error Message ', BAPI_RETURN-MESSAGE.
    ENDIF.
    ENDLOOP.
    ENDFORM.
    <b>i am using this bapi method to copy materials from one plant to another plant using storage location so here what happenig is everyting is going correct but only the storage location data is not saving in table mard so any body faced this kind of problem please tell me.... and one more dbt
    bapi_marcx-pur_status = 'x' what is 'X' here??? is that mandatory field or required field ???
    points wil be rewarded.
    reagrds,
    sunil k airam.

    In the HEADDATA structure, STORAGE_VIEW should also be set as 'X' , in order to update storage location data
    for example
    BAPI_HEAD-STORAGE_VIEW = 'X'.
    Also, PUR_STATUS corresponds to field MARA-MSTAE whose domain has value table T141, therefore values in the field are checked against T141
    Edited by: Harris Veziris on May 12, 2008 12:37 PM

  • Exclude stock at a storage location from the Productionn Planning run

    Hi,
    We have to exclude a storage location from the Production Planning run. We already implemented a user exit in CIF and changed the stock at the storage location to a category Z1 that is not relavant to SAP, but the stock at the location is still being consitered for production planning.
    Please suggest a way so that it is excluded from the Production planning
    Regards,
    Sireesh

    Hi Sireesh,
    Please try these following options.
    1) Filter this storage location in the programme /SAPAPO/RMSDPDEP by writing customised code with an abapper, so that it will drops the storage location stocks not getting planned during deployment
    2) Try anyof these user exists
    APOBP011 Enhancement for Stock BAPIs (BUS10504)
    APOCF011 Inbound Processing: Stock
    APOCF027 Customer-Specific Enhancements: Stock
    3) Exclude the category from the ATD receipts category group maintained in the master data
    Regards
    R. Senthil Mareeswaran.

  • QM exclude storage location from QM

    Dear All,
    is it possible in some way to exclude a storage location from QM in a plant managed with QM.
    The case is this:
    We have the material AAA with QM active for good receipt.
    -If the material arrive in st. location 10 we want have stock in Q status.
    -If the material arrive in st. location 20 we want have stock in Free status.
    St location 10 and 20 belong to same plant.
    If it is not possible, do you have some suggestion to solve this case (u.exit?)?
    Thanks in advance. Best regards.

    Tanks,
    but finally we have used another u.exit, EXIT_SAPLQAAT_002.
    This one is called directly in the MIGO and allow to deactivate QM setting X in the parameter NO_INSPECTION.
    Best Regards.
    Alby

  • Excluding storage location from MRP run in Long Term Planning

    Hi,friends,
         In my scenario , i want to exclude storage location from MRP run in long term planning.When i set storage location MRP indicator "2" in SPRO and SLoc MRP indicator "1" MRP4 in material master, i can exclude the storage location after run MRP with MD01/MD02,and i can see the expected result in MD04.But in Long Term Planning scenario the storage location can not be excluded after run MRP with MS01/MS02,and the requirements list in MS04 include the stock in the storage location i want to exclude. i dont know if i miss something.Plz give me some advice.
    Regards
    Joey

    Hi,
    Refer the OSS Note 208017 - LTP: Long-term planning and storage locations
    ==========================================================================
    Symptom
    In long-term planning (Transactions MSBT / MS01 / MS02 / MS03), the MRP indicator of a storage location for a material is not taken into account (material master, view MRP 2 [up to and including Release 3.1I] or MRP 4 [as of Release 4.0A]).
    The storage locations excluded by MRP or planned separately are also planned in the plant segment.
    Additional key words
    LTP, MM01, MM02, MM03, master data, MRP indicator, LGORT ...
    Cause and prerequisites
    The MRP indicator for a certain storage location of a material is only taken into account in operative planning (requirements planning, MRP).
    The long-term planning occurs exclusively at plant level.
    Solution
    This is no error. The system works as intended.
    The individual storage locations should not be distinguished in the long-term planning, in order to perform a comprehensive long-term planning.
    This is important, for example, within the kanban processing where the storage locations with kanban MRP are excluded from the MRP, but in spite of that should be included in the long-term planning.
    ==========================================================================
    Regards,
    Siva

  • Storage location value is not adopting fron PO into GR

    Hi All,
    I'm making Goods receipt with reference to Purchase Order. For few materials the storage location value is not adopting fron PO into GR. It's in disable mode. So i'm not able to maintain the stock at storage location level. What could be problem? Please help me on this.
    Thanks
    Anilkumar Dalai

    Dear Expert,
    PO is with refrence to Order 'f' Category.
    is it a Production order or a Customer Sales Order?
    or is it a financial internal Order?
    Could you please be more specific??
    In case please check which Sloc you have assigned in the order with ref to which you created PO.
    Please change directly in the order.
    Raghavan

  • Error during goods issue-Posting period not open

    Hi ,
    I am getting an error during goods issue which says posting period not open.I guess that we have had deliveries that were created and in process while crossing over from one financial period to another quite frequently before, but we were still able to goods issue them in the next period. Can anyone tell me why this error happens and if there is any work around for this?
    Thanks,
    Hari.

    Hi,
    Goods issue takes place, say on a given date and this should be updated, so that the plant valuation changes are recorded. But the periods need to opened to do this. Normally there are two posting periods available, one is in MM, done by t.code MMPV and the other in FI, t.code is OB52.
    So, in MMPV we need have the current month as the posting period. But in your case it was allowing, probably because you have marked the indicator " allow posting in previous period " in MMRV t.code as our friend just conveyed.
    Hope it helps. Please reward if useful.
    Thanks & Regards
    Sadhu Kishore

  • I want to exclude a storage location from MRP

    I want to exclude repair storage location from MRP so that the stock with repairs storage location should not be considered for other demands.
    Also repair storage location stock should not be calculated against 'stocks'  term in MD04.
    How to do this ? Pls share.

    Hi,
    In transaction OMIR, choose your plant & then for the storage location you want to exclude from MRP enter 1 (exclude from MRP).
    After this setting is maintained, whenever a material is created in this plant & storage location, it will have MRP indicator as "1" in the mrp 4 view .
    For materials already in this storage location if the MRP indicator "1" is not maintained in mrp 4 view, please go for a mass change maintenance in the material master & maintain this indicator.
    Stock in the excluded storage location will not add up to the stock which is displayed in the top in the md04 screen. This stock will be displayed separately in the bottom of the screen.
    Please let me know if you have any questions.
    Regards,
    Senthilkumar

  • Deactivation of storage locations from MRP run

    Hi gurus,
    How can i deactivate a particular storage location from MRP in a particular plant.
    Regards
    Kaisar

    Hello,
    There are 2 ways of doing that.
    1. With the Transaction OMIR and selecting th indicator 1 Storage location stock excluded from MRP
    This storage location will be excluded from MRP.
    2. For a Specific Material(s), if you want the Storage location to be excluded from MRP:
    You need to select the storage locatio MRP indicator as 1 in MRP4View of the Material.
    Some concerns:
    Your Materials are extended to the St.location say xxxx.
    Now if you want this storage location to be excluded from the MRP.
    By simply seeting the Customization settings will not work.
    You need to manually select the MRP4 view and change the St.Loc MRP Indicator to 1.
    The Materials created after this customization setting will adopt this settings automatically.
    Hope this helps..
    Regards,
    Siva

  • Need to exclude storage location from MRP.

    Hi Gurus,
    Is there an option to exclude a specified storage location from MRP at configuration level. But not at material level as in MRP4 view.
    We have excluded the stoarge location in config OMIR, however the system considers that stock if the same is not excluded in MRP4 of that material.
    Now, the problem is every time i need to go to the material master of every material  i have to excude from MRP, which is very time consuming..!
    Please advise me is there any option in point of view of Storage Location,  just simply  define the storage location to be excluded from MRP run.
    Thanks in advance.
    Naveen.

    Dear,
    Yes you can do it though OMIR or MMSC 1-Storage location stock excluded from MRP.
    Also check this link for more details,
    Exclude purchase order on storage location from MRP
    Regards,
    R.Brahmankar
    Edited by: R Brahmankar on May 25, 2009 12:22 PM

  • Default Storage location from PO to GR

    Dear All,
    How i can made storage location from to come automatic while i am doing the GR through MIGO movement type 101, but it should be changeable but main thing it should appear from PO while i am doing GR.
    regards,
    qsm sap

    Hi,
    First Storage location should be extended in Material master.
    Then you can include this Storage location in PR . If you are creating PO based on PR then it will copy to PO.
    While doing GR in MIGO with respect to PO the system will default this Storage location & stock will be posted to that Storage location.
    If you extended in Material master but not inputed in PR/PO system will not default in MIGO.
    One other option is In IMG settings if you set the checkbox set storage location automatically.
    Then in MIGO you can directly choose any storage location which is created for your plant.(Make sure the str loc should be part of Plant)
    No matter if you extended in material master/PR/PO
    rgds
    Chidanand

  • Exclude storage location from Availability check

    Hi,
    We have to exclude 4 storage location out of 46 storage locations from availability check in sales order processing.
    Please advice how to do it.
    We can not use MRP area and MRP Groups to control this because of certain reasons. 
    Regards,
    Avnish

    Please check this..
    spro...material management....consumption based planneng....planning...define storage location MRP...
    Here give plant name and enter...
    Against every storage location you ll have indicators for excluding,including the stock....
    hope this clarifies..
    For material availablity check in production order,
    1. you need to delete the storage loation in OX09 (it is possible If no stock)
    2. Or you need to transfer post the materials to a storage location xxxx which you can name as Blocked storage location...
    F Y I....In OVZ9  you can exclude all the storage locations which is not your reequirement..
    katrthick
    Edited by: karthick PP on Mar 26, 2009 12:40 PM

Maybe you are looking for