Goods Receipt tracking

I am trying to create a Querry for tracking Goods receipt Movements for which i have linked table MKPF -(Header Material Document) with MSEG(Document Segment Material) , We have scenarios where the Material is either recieved from the Vendor or by Stock transfer from Another plant.
I am not able to locate Supply plant in Header table although material document showns Supplying plant -RESWKNAME but it does not stores that in MPKF also at item level there is Field of Partner -RESWKNAME Field name -where we have supplying plant but same is not stored in MSEG table .
How do i bring the same in my querry

Hi,
In Table "MSEG", RESWK field is not available, there is field called Receipt Indicator (KZZUG), if this field has value "X" i.e. GR against Stock Transport Order and if it is "Balnk", it means GR against Normal PO.
Also instead of joining MKPF and MSEG, you can use Table " WB2_V_MKPF_MSEG2" (Which join of MKPF and MSEG with all possible fields)

Similar Messages

  • Goods Receipt Tracking - from one Department to another.

    Dear All,
    In our Organisation GR document flow is as follows.
    1] GR creation by Procurement Department (961 Movement) T-code MIGO.
    2] Procurement department sends GR to Project department for Release Order.
    3] Project Department sends GR to Billing department for Billing to Client.
    4] Billing department sends GR to Bill Passing for MIRO
    We want to track the GR sending & receipt date of above activities. Is there any standard solution in SAP.
    Kindly send your valuable solution.
    Regards,
    Shekhar Gaikwad
    PUNE - INDIA

    If they are not recorded in SAP, you cannot track them in SAP.
    I am not aware of any standard solution for this problem. The normal flow is PO-MIGO-MIRO.
    What happens in between is specific to each organisation?
    In absence of any standard solutions, you will have to develop
    1. Custom programs to record these dates by appropriate people when they receive them,
    2. Store the data in custom tables and
    4. Then generate reports to collate and present this data.
    Check other sites also to find someone who might have implemented something like this through custom code.

  • Goods Receipt Against Purchase Order

    Hi All,
             I am creating a report for goods receipt tracking against purchase order  within in date range .  If any material documant has been canceld ( 101 to 102 or 103 to 104 ) then it (101 or 103) should not be calculate receipt goods. if 105 is pending for any 103 still 103 qty should be add in receipt goods. Is there any Function module for do that or any other logic. plz tell.
    Thanks in Advance.
    Jitendra

    Hi
    Please take a look at the links for sample coding of the function module - BAPI_GOODSMVT_CREATE.
    http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
    http://www.4ap.de/abap/bapi_goodsmvt_create.php
    <b>Reward points</b>
    Regards

  • Tracking of Inbound Delivery reference for a Goods Receipt/GR line item

    Hi,
    We are posting goods receipt with reference Inbound delivery. We need to track Inbound delivery reference for a Goods Receipt/Goods Receipt line item.
    Is it possible? What will be correct way to do this?
    Regards,
    Makarand

    Hi Makarand ,
    You may try with Table MKPF.
    Goto SE16 and enter the above table to get the required data.
    Regards
    Ramesh Ch

  • Goods receipt for purchase order with account assignment 'K'

    Hello All,
    There are couple of purchase orders with acc.*** "K". On doing the GR for these PO's they have been done with mvt type 103 & mvt typ 105.
    I understand that material has been directly consumed to the respective cost center.
    How do track the internal movement for these materials??
    I need to view the stock for these materials at the cost center as in MMBE the stock is seen as ZERO.
    All these materials are with QM proc ACTIVE. So a goods receipt is done 105, then the inspection lot is cleared. However, in this case as the material is directly consumed, it is NOT displayed in QA32.
    Is the above procedure correct??? Is it better to receive stock against mvt type 101 & then do a 201 mvt ??
    Request your inputs.....
    Regards,
    Manoj Reddy

    Account assignment inventories are not maintained. To maintain a report for cost center receiving/issuing you need to make a customized report with help of ABAP.
    Other way is to pull report in MB51, with selection criteria COST CENTER and it will give you result of stocks available on cost center. For stocks received on cost center, you can pull report with cost center and movement 101.
    201 is used for goods issue to cost center from warehouse, the stock you receive from PO against 101 is directly charged to cost center, so no need to issue later to cost center.
    Edited by: Afshad Irani on May 17, 2010 2:17 PM

  • PO Goods Receipt

    Hi All
    Please give me the solution for the following scenario
    I want to place the order for ToolBox, it contains 5 different size of spanners
    Tool Box has the created as semi finished item
    spanners are created as Raw materials
    I placed the order for ToolBox -   100 Nos
    When i do the good receipt against  the Purchase order, system should update the spanners  stock along with tool box stock.
    How to handle this in SAP
    can any one suggest?
    Thanks in Advance
    SUNIL

    Hi,
    Charlii is correct.
    Yes it updates twice the stock value.If do GR for both Semi finished material( tool box) and intern if you update raw material( Spanner) as per your scenario.
    This will lead to Finance discrepancy. Hence it is not available in standard as well as it is not advisable to go for Z development also.
    But there is way out,
    If you want to track the stock quantity of spanners based on order quantity of Tool Box.
    You can use Order qty and Order Qty SKU ( Stock Keeping unit field in Item overview - quantity and weight tab). There you can maintain the value for
    Order quantity 1(tool box) = SKU order unit 5 (Spanners).
    When you do GR for Order quantity 1. It updates 5 number for spanners.
    Keep in mind it updates only SKU.
    It won't update the Order quantity in the stock.(to Avoid double entry form FI point of view).
    But you can get the quantity of GR done for tool box (order unit via standard reports).
    Hope it will helps.
    Thanks
    Giri

  • Very urgent :: country of origin issue to be populated on Goods receipt

    We have multiple vendor PART NUMBERS assigned to 1 vendor i.e N - 1 Relationship,
    if we maintain PIR , which can be used only for 1 vendor to 1 part number we cannot use PIR in this case as it is N - 1 Relation.
    So, the situation is we need to maintain Country of origin for part numbers, which can be seen in Goods receipt.
    By country of origin we should be able to track the inventory in Goods Receipt.
    There is one other option by maintaining a Batch which is the last option, plz do look for the options.
    Please solve this problem with possible solution.
    Appreciate ur help in advance.
    Thanks,
    kalyan

    We have multiple vendor PART NUMBERS assigned to 1 vendor i.e N - 1 Relationship,
    if we maintain PIR , which can be used only for 1 vendor to 1 part number we cannot use PIR in this case as it is N - 1 Relation.
    So, the situation is we need to maintain Country of origin for part numbers, which can be seen in Goods receipt.
    By country of origin we should be able to track the inventory in Goods Receipt.
    There is one other option by maintaining a Batch which is the last option, plz do look for the options.
    Please solve this problem with possible solution.
    Appreciate ur help in advance.
    Thanks,
    kalyan

  • Country of origin issue to be populated on Goods receipt

    We have multiple vendor PART NUMBERS assigned to 1 vendor  i.e N - 1 Relationship,
    if we maintain PIR , which can be used only for 1 vendor to 1 part number we cannot use PIR in this case as it is N - 1 Relation.
    So, the situation is we need to maintain Country of origin for part numbers,  which can be seen in Goods receipt.
    By country of origin we should be able to track the inventory in Goods Receipt.
    There is one other option by maintaining a Batch which is the last option, plz do look for the options.
    Please solve this problem with possible solution.
    Appreciate ur help in advance.
    Thanks,
    kalyan

    Hi Kalyan
    You need to do a bit of reading.
    Check this link:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/47/61017149f011d1894c0000e829fbbd/frameset.htm
    Configuration is available under IMG node for MM->Valuation  & account assignment.
    Go through the IMG documentation also.
    Best regards
    Ramki

  • Grn report(goods receipt notice)

    hi to all sdn people can u pls give coding for this if u give the answer i will be greatful to u and i will reward point to all of u
    my report is as follows
    a report for grn details which shows the all details of goods receipt movements based on the purcahse order.
    and pls tell what is the pupose of this report and tables used

    Hi
    Use the Tables
    EKKO,EKPO --PO tables and
    MKPF and MSEG Tables GRN related.
    This report is useful to track the qty of ggods/materials received with respect to the PO's placed.
    see the sample code and change the output as per your requirement.
    *& Report  ZMM_PO_REPORT
    REPORT  ZMM_PO_REPORT message-Id yb
           NO STANDARD PAGE HEADING
           LINE-COUNT 60(1)
           LINE-SIZE 230.
           D A T A B A S E  T A B L E S   D E C L A R A T I O N
    TABLES: lfa1,           " Vendor Master
            t161,           " PO Doc Types
            t024,           " Purchase Groups
            ekko.           " PO Header
                   T Y P E S  D E C L A R A T I O N S
    Purchase Orders Main Structure
    TYPES: BEGIN OF s_po,
            ebeln TYPE ebeln,           " PO No.
            ebelp TYPE ebelp,           " PO Item
            bstyp TYPE bstyp,           " PO Category
            bukrs TYPE bukrs,           " Company Code
            bsart TYPE bbsrt,           " PO Type
            lifnr TYPE lifnr,           " Vendor No
            ekgrp TYPE bkgrp,           " Purchase Group
            waers TYPE waers,           " Currency
            bedat TYPE etbdt,           " PO Date
            txz01 TYPE txz01,           " Material Text
            werks TYPE ewerk,           " Plant
            lgort TYPE lgort_d,         " Storage Location
            matkl TYPE matkl,           " Material Group
            menge TYPE bamng,           " PR Quantity
            meins TYPE bamei,           " UOM
            bprme TYPE bbprm,           " Price Unit
            netpr TYPE netpr,           " Net price
            peinh TYPE peinh,           " Price Unit UOM
            pstyp TYPE pstyp,           " Item Category
            knttp TYPE knttp,           " Account Assignment Category
           END OF s_po.
    Purchase Orders History Structure
    TYPES: BEGIN OF s_account,
            ebeln TYPE ebeln,           " PO No.
            ebelp TYPE ebelp,           " PO Item
            gjahr TYPE mjahr,           " Fiscal Year
            belnr TYPE mblnr,           " PO Invoice No
            menge TYPE menge_d,         " PR Quantity
            wrbtr TYPE wrbtr,           " Price in Local Currency
            dmbtr TYPE dmbtr,           " Price in Foreign Currency
            waers TYPE waers,           " Currency
            shkzg TYPE shkzg,           " Dr/Cr Indicator
           END OF s_account.
    Purchase Orders History Structure(Item Sum)
    TYPES: BEGIN OF s_inv_sum,
            ebeln TYPE ebeln,           " PO No.
            ebelp TYPE ebelp,           " PO Item
            menge TYPE menge_d,         " PR Quantity
            wrbtr TYPE wrbtr,           " Price in Foreign Currency
            waers TYPE waers,           " Currency
           END OF s_inv_sum.
    Purchase Orders Main Structure
    TYPES: BEGIN OF s_rep,
            lifnr TYPE lifnr,           " Vendor No
            ebeln TYPE ebeln,           " PO No.
            ebelp TYPE ebelp,           " PO Item
            bstyp TYPE bstyp,           " PO Category
            bsart TYPE bbsrt,           " PO Type
            ekgrp TYPE bkgrp,           " Purchase Group
            waers TYPE waers,           " Currency
            bedat TYPE etbdt,           " PO Date
            txz01 TYPE txz01,           " Material Text
            werks TYPE ewerk,           " Plant
            lgort TYPE lgort_d,         " Storage Location
            matkl TYPE matkl,           " Material Group
            menge TYPE bamng,           " PR Quantity
            meins TYPE bamei,           " UOM
            bprme TYPE bbprm,           " Price Unit
            netpr TYPE netpr,           " Net price
            peinh TYPE peinh,           " Price Unit UOM
            pstyp TYPE pstyp,           " Item Category
            knttp TYPE knttp,           " Account Assignment Category
            name1 TYPE name1,           " Plant
            orewr TYPE netpr,           " To be Invoiced Price
            curr  TYPE waers,           " Inv Doc Currency
           END OF s_rep.
               D A T A  D E C L A R A T I O N S
    DATA: gv_title1 TYPE sylisel,            " Report title
          gv_dial.                           " Color flag
                C O N S T A N T S  D E C L A R A T I O N S
    CONSTANTS: c_x                VALUE 'X',   " Flag X
               c_h                VALUE 'H',   " Debit
               c_vgabe TYPE vgabe VALUE '2'.   " Transaction Type
         I N T E R N A L  T A B L E S  D E C L A R A T I O N S
    DATA: i_po    TYPE STANDARD TABLE OF s_po WITH HEADER LINE,
                                 " Purchase Order
          i_inv   TYPE STANDARD TABLE OF s_inv_sum WITH HEADER LINE,
                                         " PO Invoice Values
          i_rep   TYPE STANDARD TABLE OF s_rep WITH HEADER LINE,
                                     " PO Invoice Values
          i_ekbe  TYPE STANDARD TABLE OF s_account WITH HEADER LINE.
                               " PO Invoice Values
                     S E L E C T I O N  S C R E E N                      *
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_lifnr FOR lfa1-lifnr MATCHCODE OBJECT kred,
                    s_ebeln FOR ekko-ebeln MATCHCODE OBJECT mekk,
                    s_bsart FOR t161-bsart,
                    s_ekgrp FOR t024-ekgrp,
                    s_bedat FOR ekko-bedat.
    SELECTION-SCREEN END OF BLOCK b1.
                      I N I T I A L I Z A T I O N                        *
    INITIALIZATION.
                  A T  S E L E C T I O N - S C R E E N                   *
    AT SELECTION-SCREEN.
    Validate the screen fields
      PERFORM validate_screen.
                   S T A R T - O F - S E L E C T I O N                   *
    START-OF-SELECTION.
    Fetch main data
      PERFORM fetch_data.
                   T O P - O F - P A G E                                 *
    TOP-OF-PAGE.
    Header of the List
      PERFORM header.
                   E N D - O F - P A G E                                 *
    Footer
    END-OF-PAGE.
      ULINE.
                   E N D - O F - S E L E C T I O N                       *
    END-OF-SELECTION.
    Display the Report Output data
      PERFORM display_data.
    At Line-Selection
    AT LINE-SELECTION.
    When double clicked on EBELN display the details of Purchase Doc
      PERFORM line_sel.
    *&      Form  validate_screen
    Validation of Selection Screen fields
    FORM validate_screen .
    Validation of Vendor Number
      CLEAR lfa1-lifnr.
      IF NOT s_lifnr[] IS INITIAL.
        SELECT lifnr UP TO 1 ROWS
            INTO lfa1-lifnr
            FROM lfa1
            WHERE lifnr IN s_lifnr.
        ENDSELECT.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'Invalid Vendor'(002).
        ENDIF.
      ENDIF.
    Validation of PO Number
      CLEAR ekko-ebeln.
      IF NOT s_ebeln[] IS INITIAL.
        SELECT ebeln UP TO 1 ROWS
            INTO ekko-ebeln
            FROM ekko
            WHERE ebeln IN s_ebeln.
        ENDSELECT.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'Invalid Document Number'(003).
        ENDIF.
      ENDIF.
    Validation of PO Document Type
      CLEAR t161-bsart.
      IF NOT s_bsart[] IS INITIAL.
        SELECT bsart UP TO 1 ROWS
            INTO t161-bsart
            FROM t161
            WHERE bsart IN s_bsart.
        ENDSELECT.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'Invalid Purchase Document Type'(004).
        ENDIF.
      ENDIF.
    Validation of Purchasing Group
      CLEAR t024-ekgrp.
      IF NOT s_ekgrp[] IS INITIAL.
        SELECT ekgrp UP TO 1 ROWS
            INTO t024-ekgrp
            FROM t024
            WHERE ekgrp IN s_ekgrp.
        ENDSELECT.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'Invalid Purchasing Group'(005).
        ENDIF.
      ENDIF.
    ENDFORM.                    " validate_screen
    *&      Form  fetch_data
    Fetching the PO related data from Database Tables
    FORM fetch_data .
      CLEAR i_po.
      REFRESH i_po.
      SELECT a~ebeln            " PO No.
             b~ebelp            " PO Item
             a~bstyp            " PO Category
             a~bukrs            " Company Code
             a~bsart            " PO Type
             a~lifnr            " Vendor No
             a~ekgrp            " Purchase Group
             a~waers            " Currency
             a~bedat            " PO Date
             b~txz01            " Material Text
             b~werks            " Plant
             b~lgort            " Storage Location
             b~matkl            " Material Group
             b~menge            " PR Quantity
             b~meins            " UOM
             b~bprme            " Price Unit
             b~netpr            " Net price
             b~peinh            " Price Unit UOM
             b~pstyp            " Item Category
             b~knttp            " Account Assignment Category
        INTO TABLE i_po
        FROM ekko AS a JOIN ekpo AS b
        ON a~ebeln = b~ebeln
        WHERE a~ebeln IN s_ebeln AND
              a~lifnr IN s_lifnr AND
              a~ekgrp IN s_ekgrp AND
              a~bsart IN s_bsart AND
              a~bedat IN s_bedat.
      SORT i_po BY ebeln ebelp.
      break-point.
      IF NOT i_po[] IS INITIAL.
    Fetch the PO History/Invoice Details from EKBE Table
        CLEAR i_ekbe.
        REFRESH i_ekbe.
        SELECT ebeln           " PO No.
               ebelp           " PO Item
               gjahr           " Fiscal Year
               belnr           " PO Invoice No
               menge           " PR Quantity
               wrbtr           " Price in Local Currency
               dmbtr           " Price in Foreign Currency
               waers           " Currency
               shkzg           " Dr/Cr Indicator
         INTO TABLE i_ekbe
         FROM ekbe
         FOR ALL ENTRIES IN i_po
         WHERE ebeln = i_po-ebeln AND
               ebelp = i_po-ebelp AND
               vgabe = c_vgabe.
      break-point.
        IF sy-subrc = 0.
          SORT i_ekbe BY ebeln ebelp.
          LOOP AT i_ekbe.
            IF i_ekbe-shkzg = c_h.
              i_ekbe-wrbtr = i_ekbe-wrbtr * -1.
            ENDIF.
            MODIFY i_ekbe.
          ENDLOOP.
      break-point.
    Sum up the Item wise Invoice totals
          LOOP AT i_ekbe.
            AT END OF ebelp.
              READ TABLE i_ekbe INDEX sy-tabix.
              SUM.
              MOVE-CORRESPONDING i_ekbe TO i_inv.
              APPEND i_inv.
            ENDAT.
            CLEAR i_inv.
          ENDLOOP.
          SORT i_inv BY ebeln ebelp.
            break-point.
        ENDIF.
      ENDIF.
    Move the Vendor Name and Invoice Values to I_rep Internal Table
      LOOP AT i_po.
        MOVE-CORRESPONDING i_po TO i_rep.
        CLEAR i_inv.
        READ TABLE i_inv WITH KEY ebeln = i_po-ebeln
                                  ebelp = i_po-ebelp.
        IF sy-subrc = 0.
          i_rep-orewr = ( i_po-menge - i_inv-menge ) * i_po-netpr.
          i_rep-curr  = i_inv-waers.
        ELSE.
          i_rep-orewr = i_po-menge * i_po-netpr.
          i_rep-curr  = i_po-waers.
        ENDIF.
      break-point.
    Get the Vendor Name
        CLEAR lfa1-name1.
        SELECT SINGLE name1 FROM lfa1 INTO lfa1-name1
          WHERE lifnr = i_po-lifnr.
        IF sy-subrc = 0.
          i_rep-name1  = lfa1-name1.
        ENDIF.
        APPEND i_rep.
        CLEAR  i_rep.
          break-point.
      ENDLOOP.
      SORT i_rep BY lifnr ebeln ebelp.
      DELETE i_rep WHERE orewr LE 0.
      break-point.
    ENDFORM.                    " fetch_data
    *&      Form  display_data
    Display the Report Output data
    FORM display_data .
      DATA: lv_flag,               " New Flag
            lv_rec TYPE i.         " No of Records
      CLEAR lv_rec.
      IF i_rep[] IS INITIAL.
        MESSAGE e000 WITH 'No Data found'(022).
      ELSE.
        LOOP AT i_rep.
    Toggle Color
          PERFORM toggle_color.
          IF lv_flag <> space.
            NEW-LINE.
          ENDIF.
    At New Purchase Document
          AT NEW ebeln.
            WRITE:/1 sy-vline, 2(10) i_rep-ebeln INTENSIFIED OFF.
            lv_flag = c_x.
            lv_rec = lv_rec + 1.
          ENDAT.
          WRITE: 1 sy-vline,
                12 sy-vline,13(4)   i_rep-bsart,
                17 sy-vline,18(10)  i_rep-lifnr,
                28 sy-vline,29(35)  i_rep-name1,
                64 sy-vline,65(4)   i_rep-ekgrp,
                69 sy-vline,70(10)  i_rep-bedat,
                80 sy-vline,81(5)   i_rep-ebelp,
                86 sy-vline,87(40)  i_rep-txz01,
               127 sy-vline,128(9)  i_rep-matkl,
               137 sy-vline,138(1)  i_rep-pstyp,
               139 sy-vline,140(1)  i_rep-knttp,
               141 sy-vline,142(4)  i_rep-werks,
               146 sy-vline,147(4)  i_rep-lgort,
               151 sy-vline,152(13) i_rep-menge UNIT i_rep-meins,
               165 sy-vline,166(3)  i_rep-meins,
               169 sy-vline,170(15) i_rep-netpr CURRENCY i_rep-waers,
               185 sy-vline,186(4)  i_rep-waers,
               190 sy-vline,191(5)  i_rep-peinh,
               196 sy-vline,197(4)  i_rep-bprme,
               201 sy-vline,202(15) i_rep-orewr CURRENCY i_rep-curr,
               217 sy-vline,218(4)  i_rep-curr,
               222 sy-vline,223(7)  i_rep-bstyp centered,
               230 sy-vline.
          NEW-LINE.
          hide: i_rep-ebeln.
        ENDLOOP.
        ULINE.
        FORMAT COLOR OFF.
        WRITE : /2 'Total Number of Purchasing Documents:'(025) COLOR 3,
                    lv_rec COLOR 3.
      ENDIF.
    ENDFORM.                    " display_data
    *&      Form  header
    Write the Report Header
    FORM header .
      FORMAT RESET.
    header
      WRITE:/1(230) 'LIST OF PURCHASE DOCUMENTS PER VENDOR'(006) CENTERED.
      SKIP.
      FORMAT COLOR COL_HEADING.
      ULINE.
      WRITE:/1 sy-vline,2(10)   'Pur.Doc.No'(006) CENTERED,
            12 sy-vline,13(4)   'Type'(007),
            17 sy-vline,18(10)  'Vendor'(008) CENTERED,
            28 sy-vline,29(35)  'Name'(009) CENTERED,
            64 sy-vline,65(4)   'PGrp'(010) CENTERED,
            69 sy-vline,70(10)  'Doc.Date'(012) CENTERED,
            80 sy-vline,81(5)   'Item'(011),
            86 sy-vline,87(40)  'Material Short Text'(024) CENTERED,
           127 sy-vline,128(9)  'Mat.Group'(013),
           137 sy-vline,138(1)  'I',
           139 sy-vline,140(1)  'A',
           141 sy-vline,142(4)  'Plnt'(014),
           146 sy-vline,147(4)  'SLoc'(015),
           151 sy-vline,152(13) 'Quantity'(016) CENTERED,
           165 sy-vline,166(3)  'UoM'(017),
           169 sy-vline,170(15) 'Net Value'(018) CENTERED,
           185 sy-vline,186(4)  'Curr'(019),
           190 sy-vline,191(5)  'Per'(020),
           196 sy-vline,197(4)  'Unit'(021),
           201 sy-vline,202(15) 'To be Invoiced'(023) CENTERED,
           217 sy-vline,218(4)  'Curr'(019),
           222 sy-vline,223(7)  'Doc.Cat'(026),
           230 sy-vline.
      ULINE.
    ENDFORM.                    " header
    *&      Form  toggle_color
    This routine alters the color of the records in the list
    FORM toggle_color.
      IF gv_dial = space.
        FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
        gv_dial = c_x.
      ELSE.
        FORMAT COLOR 1 INTENSIFIED OFF.
        CLEAR gv_dial.
      ENDIF.
    ENDFORM.                    " toggle_color
    *&      Form  LINE_SEL
    *When double clicked on EBELN field display the details of Purchase Doc
    FORM line_sel.
      CASE sy-lsind.
        WHEN '1'.
          DATA: lv_field(20),
                lv_value(10),
                lv_bstyp like i_rep-bstyp.
          clear: lv_bstyp,lv_value, lv_field.
          GET CURSOR FIELD lv_field VALUE lv_value.
          IF lv_field = 'I_REP-EBELN'.
            IF NOT lv_value IS INITIAL.
              READ LINE sy-index FIELD VALUE i_rep-bstyp
                                       INTO  lv_bstyp.
             READ CURRENT LINE FIELD VALUE i_rep-bstyp INTO lv_bstyp.
              if lv_bstyp = 'F'.
                SET PARAMETER ID 'BES' FIELD lv_value.
                CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
              elseif ( lv_bstyp = 'K' or lv_bstyp = 'L' ).
                SET PARAMETER ID 'VRT' FIELD lv_value.
                CALL TRANSACTION 'ME33' AND SKIP FIRST SCREEN.
              elseif lv_bstyp = 'A'.
                SET PARAMETER ID 'ANF' FIELD lv_value.
                CALL TRANSACTION 'ME43' AND SKIP FIRST SCREEN.
              endif.
            ENDIF.
          ENDIF.
      ENDCASE.
    ENDFORM.                    " line_sel
    Reward points if useful
    Regards
    Anji

  • Reg: Open goods receipt

    Hi,
             Can anybody explain me the difference between we101 and we103 selection parameter in ME2L tcode as both having the same discription as " open good receipt" . Please help me in this issue.

    HI
    We have 2 methods of doing GR
    Mov Type 101
    Mov Type 103-105
    You can use we103/we104 to track GR103
    And use we101/we102 GR 101 and GR105
    Just take in mind that we103 will show all open GR ... so will we101
    if u follow just GR101 ... then go for we101/we102 .. thts it
    if u follow GR103-105 then only we103/we104 come into picture.

  • Import Declaration after goods receipt - Inward Processing Help

    Looking for some advice on setting up Inward Processing as I am running into issues.  Our system makeup is this:
    ECC - 617
    GTS - 10.1
    One of our facilities is setup so that they have duty deferment for imported components that are used in manufacturing and re-exported within a 36 month period. Based on this requirement we have determined that we could be leveraging the Inward Processing functionality in GTS to manage / track the inventory for duty purposes.  With that being said, this is what I have configured so far.
    Configuration:
    Purchase document in ECC is setup to transfer to GTS and create an import customs document, the check box for Customs Services is checked.  The corresponding purchasing document in GTS is activated for compliance and customs services.
    Inbound delivery in ECC is setup to transfer to GTS.  I am worried I have done something wrong in this configuration with how it maps in GTS. The document is currently creating a customs document that can be viewed in the import side of compliance.  The document type I mapped in GTS “Inbound Customs Delivery”
    Movement type 101B has been configured to come over from ECC to GTS.
    I configured in ECC the prelim. Document type T1 and also maintained that doc type in GTS which I mapped as prev. doc cat 01.  I then assigned Service LECTPR with prelim doc type category 01 as duty unpaid and target procedure 01 – Transit.
    I configured the authorization for both transit and inward processing, created the “license” for these items, and configured the activity sequence for the matching legal regulation.
    My process has been this:
    Create purchase order in ECC
    Create inbound delivery in ECC
    Update inbound delivery with the prelim doc type T1 and doc number / date
    MIGO with reference to the inbound delivery (movement type 101 against purchase order stored in MSEG)
    In GTS I go to create a customs declaration AFTER goods receipt, but I get a “no data found” information message.  When I debug I can see the that a check is done to pull records from table /sapsll/cuswlo, I have no entries in this table.
    I can see all the documents definitely made it over to GTS because they show up in the General List of Display Customs Declaration Quantities and Goods Receipt quantities (/SAPSLL/CUSWLM).  So at this point I have to be missing some key piece of configuration to allow the Import Declaration to create so the goods become available for inward processing. Any ideas on what I should be looking at that could be missing?
    Rachael

    Ok, then that's (at least) what you need to fix.
    In the Plug-In area, make sure that you've added your Inbound Delivery type to transfer for Customs purposes ("Query Customs Management for Document Type"), and that the technical activation has been turned on for Application MM0B.  For the moment - although it shouldn't make any difference - don't tick to transfer the Inbound Delivery for Compliance Management, or for Placement into Customs Status before GR.
    In GTS, make sure that Document Type 'TRLOIM' is active for Transit, and that the Document Type has an active Number Range.  Then check that the Legal Regulation for Transit (TRSxx) is active for your country code and that the Process Template is assigned in the Control Settings.
    Then see if the IBD is transferred ok.
    Regards,
    Dave

  • Cancellation of Goods Receipt with Credit Memo Transaction Issue

    Dear SAP Expert and Guru,
    Normally cancellation of goods receipt cannot be done when invoice has been issued. Cancellation of Goods receipt can only be done when there is the credit memo being issued in MIRO.
    The problem now is that is there any table that can tracked the linkage between Credit Memo and the Cancellation of Goods receipt?
    The goods receipt with the invoice linkage can be found in both table EKBE and BKPF. But not the credit memo and cancellation of Goods receipt.
    Thank you
    Regards
    Leonard Tan

    Dear Jeya and SAP expert and Gurus,
    You are correct, but with the document number, how am I going to get the Cancellation of GR document?
    In table BKPF and EKBE. With the invoice number (34*******) then pass it to table BKPF to get the invoice number (52*******),
    Then get the invoice number (52*******) pass it to table EKBE to get the Goods Receipt document (61*******).
    However, this only can track the transaction goods receipt and Invoice but not the credit memo with cancellation of goods receipt.
    Kindly asvise on that.
    Thank you
    Regards
    Leonard Tan
    Note : Do not quote previous reply every time,simply reply for member you want to respond.
    Edited by: Jeyakanthan A on Jul 8, 2011 3:23 PM

  • PO report for field:Latest Possible Goods Receipt Date

    Hi Gurus,
    can you please recommend me a standart report of Purchase orders, where is possible to see field from PO - item level - tab Delivery - field:Latest Possible Goods Receipt Date. It should be field MEPO1313-LEWED
    thank you!

    hi,
    please check it in me2n
    Purchase order list displays by Vendor                           ME2L
    Purchase order list displays by Material                           ME2M
    Purchase order list displays by General                           ME2K
    Purchase order list displays by Material Group     ME2C
    Purchase order list displays by Tracking Number     ME2B
    Purchase order list displays by PO Number     ME2N
    Purchase order list displays by Service                          MSRV3
    Aggregate PO History                                               ME87
    Analysis of Purchase Order Values                          ME81N
    Thanking you

  • Goods receipt for subcontracting material

    Hello friends,
    i  am doing operation subcontractiing. My first operation is subcontracted. So, I have assigned PP02 control key to first operation (external processing and no auto goods receipt indicator)  and maintained external processing data for opration in routing. When i saved the order, for that operation PR gets generated.
    Now, I converted PR into PO and assigned raw material that has to be send to vendor. By 541 mvt. type material is issued to vendor. When i do goods receipt in MIGO, system is not showing storage location field. I dont find material in stock anywhere.
    But i can see quantity received in external processing tab of first operation in routing overveiw in order.
    Then how can i issue the material from storage for second operation if it is not in stock?
    How can i get stock of subcontracted material by MIGO?
    Please help me.
    Thanks in advance!

    Kiran,
    Since your scenario is Subcontract of operations, you will not find a material referance in your PR/PO, so there is no GR of Material happening, in this Scenario GR means delivery of the operation.
    If you really want to track, then you need to create an additional material number and assign that material number with Special Procurement key "30", here in this case you can recieve the product after subcontract as this is product sub contract process. In this case Production order is not relevant.
    Regards,
    Prasobh

  • Goods receipt against inbound delivery

    After an import po has been created then an inbound delivery is created also.So after the inbound delivery we do goods receipt and our goods receipt is done against po even when their is inbound delivery.The reason why the goods receipt is done with reference to the po is that we have different vendors for all the delivery costs for example we have a vendor for custom charges, a vendor for freight charges, a vendor for terminal charges.so the goods receipt is done against the po so that when doing the miro they can select the different vendors.But inbound delivery is done with a single vendor and if the goods receipt is done against the inbound delivery it might acquire all the costs to that vendor.Is there any method whereby we can be able to do our goods receiot with reference to inbound delivery that will also capture all the delivery costs

    The process you should follows is this:
    1) PO - define all the custom and freight condition types and enter the corresponding vendor in the condition types. Also, in the confirmations tab, choose Inbound delivery
    2) When the vendor ships the material, create an inbound delivery from VL31N to track it (against the actual import vendor)
    3) When the goods reaches customs, do a MIRO against the PO choosing 2-Planned delivery costs. This will credit the Customs vendor.
    4) When the goods arrive at your plant, do a MIGO against the Inbound delivery from step 2. Enter the MIRO number of step 2 in the popup that appears.
    5) Now do the MIRO for the actual import vendor and the freight vendors if applicable.
    Try this in your sandbox system. Doing a GR against IBD will not cause any difference in the accounting entries.

Maybe you are looking for