REPORT FOR SUBCONTRACTING

DEAR FRIENDS,
I am making a program for tracking the materials given (mb1b 541 movt.) for subcontracting and taken by me (101 for actual good receipt, 543 for the given material- stock type inward, 545 for the scrap returns). but while i made the program i am unable to pick up the materials BOM from the PO which is essential to take the difference between these and the supplied quantities taken-in by GR.
following is the program.
Please suggest the changes.   Thanks,
Deepak
*& Report  ZMM_SUBCONTRACTING_PO_REPORT
*& Author:
*& Date  :
*& Reason: Sub Contracting PO Report.
*&         Find Discreprancy in PO and BOM. according to 543 and 545
REPORT  ZMM_SUBCONTRACTING_PO_REPORT NO STANDARD PAGE HEADING
                                     LINE-SIZE 157.
*& TABLES DECLARATION
TABLES: EKKO,
        EKPO,
        EKBE,
        ENT5303.
*& SELECTION-SCREEN.
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_MATNR FOR EKPO-MATNR,
                S_WERKS FOR EKBE-WERKS OBLIGATORY.
PARAMETERS:     P_BUKRS LIKE EKKO-BUKRS OBLIGATORY.
SELECT-OPTIONS: S_BUDAT FOR EKBE-BUDAT OBLIGATORY,
                S_EBELN FOR EKKO-EBELN,
                S_BELNR FOR EKBE-BELNR,
                S_GJAHR FOR EKBE-GJAHR.
SELECTION-SCREEN: END OF BLOCK B1.
*& INTERNAL TABLES DECLARATION.
DATA: BEGIN OF IT_EKKO OCCURS 0,
      EBELN LIKE EKKO-EBELN,
      END OF IT_EKKO.
DATA: BEGIN OF IT_EKBE OCCURS 0,
      EBELN LIKE EKBE-EBELN,
      EBELP LIKE EKBE-EBELP,
      GJAHR LIKE EKBE-GJAHR,
      BELNR LIKE EKBE-BELNR,
      BUZEI LIKE EKBE-BUZEI,
      BEWTP LIKE EKBE-BEWTP,
      BWART LIKE EKBE-BWART,
      BUDAT LIKE EKBE-BUDAT,
      MENGE LIKE EKBE-MENGE,
      DMBTR LIKE EKBE-DMBTR,
      LFBNR LIKE EKBE-LFBNR,
      MATNR LIKE EKBE-MATNR,
      WERKS LIKE EKBE-WERKS,
      BUKRS LIKE WB2_V_EKKO_EKPO2-BUKRS,
      MENGE_I LIKE WB2_V_EKKO_EKPO2-MENGE_I,
      LIFNR LIKE WB2_V_EKKO_EKPO2-LIFNR,
      COUNT TYPE P DECIMALS 4,
      BMENGE LIKE EKBE-MENGE,
      MENGE101 LIKE EKBE-MENGE,
      MENGE543 LIKE EKBE-MENGE,
      MENGE545 LIKE EKBE-MENGE,
      DIFFER   LIKE EKBE-MENGE,
      TMENGE   LIKE EKBE-MENGE,
      RATE     LIKE EKBE-DMBTR,
      NAME1 LIKE LFA1-NAME1,
      LINE_COLOR(4),
      END OF IT_EKBE.
DATA: WA LIKE IT_EKBE.
DATA: BEGIN OF IT_FINAL OCCURS 0.
      INCLUDE STRUCTURE IT_EKBE.
DATA: END OF IT_FINAL.
DATA: BEGIN OF IT_FINAL_TEMP OCCURS 0.
      INCLUDE STRUCTURE IT_EKBE.
DATA: END OF IT_FINAL_TEMP.
DATA: BEGIN OF IT_BOM OCCURS 0.
      INCLUDE STRUCTURE CAPP_ITM.
DATA: END OF IT_BOM.
DATA: BEGIN OF IT_BOM_HEAD OCCURS 0.
      INCLUDE STRUCTURE CAPP_BOM.
DATA: END OF IT_BOM_HEAD.
*& DATA DECLARATION.
DATA: COUNT TYPE P DECIMALS 4,
      V_CNT TYPE P DECIMALS 4 VALUE '0.0001' ,
      V_MENGE LIKE EKBE-MENGE,
      V_DELETE.
TYPE-POOLS: slis.
DATA:  l_date(12) TYPE c,
       l_date1(12) TYPE c,
       l_time(10) TYPE c,
       l_list(60) TYPE c.
DATA:  CATALOG TYPE SLIS_FIELDCAT_ALV, "FIELDCAT
       TCATALOG TYPE SLIS_T_FIELDCAT_ALV, "IT FIELDCAT
       EVENT TYPE SLIS_ALV_EVENT, "EVENT
       TEVENT TYPE SLIS_T_EVENT,  "IT EVENT
       LAYOUT TYPE SLIS_LAYOUT_ALV, "LAYOUT
       PG_TOP TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
       PG_HEAD TYPE SLIS_T_LISTHEADER,
       EXIT1  TYPE SLIS_EXIT_BY_USER,
       VAR1 LIKE DISVARIANT,
       VAR2 LIKE DISVARIANT.
*& START-OF-SELECTION.
START-OF-SELECTION.
PERFORM PROCESS_SELECTION.
PERFORM DELETE_CANCELLED_DOCUMENTS.
PERFORM EXPLODE_BOM_FOR_101.
SORT IT_FINAL BY COUNT.
PERFORM DISPLAY_OUTPUT.
FREE IT_FINAL_TEMP.
*& ALV FORMATTING
*&                  ALV DISPLAY
  PERFORM GENERATE_ALV_FIELDCAT.
PERFORM EVENTS USING TEVENT.
PERFORM TEXT USING PG_HEAD.
  PERFORM ALV_SHOW.
*& FORM PROCESS_SELECTION.
FORM PROCESS_SELECTION.
SELECT
  A~EBELN
  A~EBELP
  A~GJAHR
  A~BELNR
  A~BUZEI
  A~BEWTP
  A~BWART
  A~BUDAT
  A~MENGE
  A~DMBTR
  A~LFBNR
  A~MATNR
  A~WERKS
  B~BUKRS
  B~MENGE_I
  B~LIFNR
FROM
  EKBE AS A
JOIN
  WB2_V_EKKO_EKPO2 AS B
ON
  AEBELN = BEBELN AND
  AEBELP = BEBELP_I
INTO
  CORRESPONDING FIELDS OF TABLE IT_EKBE
WHERE
A~MATNR IN S_MATNR AND
  A~WERKS IN S_WERKS AND
  A~BUDAT IN S_BUDAT AND
  A~EBELN IN S_EBELN AND
  A~BELNR IN S_BELNR AND
  A~GJAHR IN S_GJAHR AND
  A~VGABE IN ('1', '7') AND
  A~BEWTP IN ('E', 'O') AND
  ( A~BWART IN ('101', '545', '543') OR
  ( ABWART = '102' AND ABEWTP = 'E' ) ) AND
  B~BUKRS = P_BUKRS AND
  B~BSTYP = 'F' AND
  B~BSART = 'SUBC'."AND
B~LOEKZ <> 'X'.
SORT IT_EKBE BY EBELN EBELP GJAHR BELNR BUZEI.
ENDFORM.
*& FORM DELETE_CANCELLED_DOCUMENTS.
FORM DELETE_CANCELLED_DOCUMENTS.
DELETE IT_EKBE WHERE BWART = '102' AND BEWTP <> 'E'.
LOOP AT IT_EKBE WHERE BWART = '102'.
  READ TABLE IT_EKBE INTO WA WITH KEY BELNR = IT_EKBE-LFBNR.
  IF SY-SUBRC = 0.
    DELETE IT_EKBE WHERE BELNR = WA-BELNR.
  ENDIF.
ENDLOOP.
CLEAR WA.
DELETE IT_EKBE WHERE BWART = '102'.
ENDFORM.
*& FORM EXPLODE_BOM_FOR_101.
FORM EXPLODE_BOM_FOR_101.
CLEAR COUNT.
LOOP AT IT_EKBE WHERE BWART = '101' OR
                      BWART = '543'.
IF NOT IT_EKBE-MATNR IN S_MATNR.
  V_DELETE = 'X'.
ELSE.
  CLEAR V_DELETE.
ENDIF.
IF V_DELETE <> 'X'.
COUNT = COUNT + 1.
IT_EKBE-COUNT = COUNT.
V_MENGE = IT_EKBE-MENGE.
MODIFY IT_EKBE.
IT_FINAL = IT_EKBE.
APPEND IT_FINAL.
ENDIF.
  call function 'CABM_READ_BOM'
    exporting
      I_MATNR               = IT_EKBE-MATNR
      I_WERKS               = IT_EKBE-WERKS
      I_STLAL               = '01'
      I_STLAN               = '3'
      I_DATUV               = IT_EKBE-BUDAT
    TABLES
      EXP_BOM_DATA          = IT_BOM_HEAD
      EXP_ITM_DATA          = IT_BOM
   EXCEPTIONS
     NO_RECORD_FOUND       = 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.
  ELSE.
*START RK 18.06.2007
  DELETE IT_BOM WHERE DATUV > IT_EKBE-BUDAT.
END : 18.06.2007
    IF V_DELETE = 'X'.
      LOOP AT IT_BOM.
        DELETE IT_EKBE WHERE MATNR = IT_BOM-IDNRK.
      ENDLOOP.
      REFRESH IT_BOM.
    ELSE.
      PERFORM CHECK_BOM_GR.
    ENDIF.
  endif.
ENDLOOP.
FREE IT_EKBE.
ENDFORM.
*& FORM CHECK_BOM_GR.
FORM CHECK_BOM_GR.
DATA: WACNT TYPE P DECIMALS 4.
WACNT = COUNT.
LOOP AT IT_BOM.
  READ TABLE IT_EKBE INTO WA WITH KEY EBELN = IT_EKBE-EBELN
                                      MATNR = IT_BOM-IDNRK.
  IF SY-SUBRC = 0.
    WACNT = WACNT + V_CNT.
    WA-COUNT = WACNT.
    WA-BMENGE = IT_BOM-MENGE.
    WA-TMENGE = V_MENGE.
    APPEND WA TO IT_FINAL.
    DELETE IT_EKBE WHERE EBELN = WA-EBELN AND
                         EBELP = WA-EBELP AND
                         MATNR = WA-MATNR AND
                         BELNR = WA-BELNR AND
                         BUZEI = WA-BUZEI.
**START : ADDED BY .... KUMAR ON 14.06.2007
  ELSE.
    WACNT = WACNT + V_CNT.
    WA-COUNT = WACNT.
    WA-BMENGE = IT_BOM-MENGE.
    WA-MATNR  = IT_BOM-IDNRK.
    WA-TMENGE = V_MENGE.
    APPEND WA TO IT_FINAL.
**END ADDED BY .... KUMAR ON 14.06.2007
  ENDIF.
CLEAR WA.
ENDLOOP.
REFRESH IT_BOM.
ENDFORM.
*& FORM DISPLAY_OUTPUT.
FORM DISPLAY_OUTPUT.
Populate color variable with colour properties
Char 1 = C (This is a color property)
Char 2 = 3 (Color codes: 1 - 7)
Char 3 = Intensified on/off ( 1 or 0 )
Char 4 = Inverse display on/off ( 1 or 0 )
          i.e. wa_ekko-line_color = 'C410'
IT_FINAL_TEMP[] = IT_FINAL[].
LOOP AT IT_FINAL.
CLEAR IT_FINAL-DMBTR.
********added by .... .... on 17.02.2007
   if it_final-bmenge  < 0.
IT_FINAL-DIFFER = IT_FINAL-TMENGE * IT_FINAL-BMENGE * -1.
   else.
*********end by .... .... on 17.02.2007
IT_FINAL-DIFFER = IT_FINAL-TMENGE * IT_FINAL-BMENGE.
********added by .... .... on 17.02.2007
endif.
*********end by .... .... on 17.02.2007
  IF IT_FINAL-BWART = '101'.
    IT_FINAL-LINE_COLOR = 'C210'.
    IT_FINAL-MENGE101 = IT_FINAL-MENGE.
    IT_FINAL-DIFFER = 0.
    LOOP AT IT_FINAL_TEMP WHERE BELNR = IT_FINAL-BELNR AND
                                EBELN = IT_FINAL-EBELN AND
                                EBELP = IT_FINAL-EBELP.
      IF IT_FINAL_TEMP-BWART <> '545'.
        IT_FINAL-DMBTR = IT_FINAL-DMBTR + IT_FINAL_TEMP-DMBTR.
      ELSE.
        IT_FINAL-DMBTR = IT_FINAL-DMBTR - IT_FINAL_TEMP-DMBTR.
      ENDIF.
    ENDLOOP.
    IT_FINAL-RATE = IT_FINAL-DMBTR / IT_FINAL-MENGE101.
    SELECT SINGLE
      NAME1
    INTO
      IT_FINAL-NAME1
    FROM
      LFA1
    WHERE
      LIFNR = IT_FINAL-LIFNR.
    IF SY-SUBRC <> 0.
      CLEAR IT_FINAL-NAME1.
    ENDIF.
  ELSEIF IT_FINAL-BWART = '543'.
    IT_FINAL-MENGE543 = IT_FINAL-MENGE.
    IT_FINAL-LINE_COLOR = 'C200'.
    IT_FINAL-DIFFER = IT_FINAL-DIFFER - IT_FINAL-MENGE543.
    CLEAR: IT_FINAL-LIFNR,
          IT_FINAL-EBELN,
          IT_FINAL-BELNR,
          IT_FINAL-MENGE_I,
          IT_FINAL-BUDAT.
  ELSEIF IT_FINAL-BWART = '545'.
******added by .... on 17.02.2007
   IT_FINAL-MENGE = IT_FINAL-MENGE * -1.
    IT_FINAL-MENGE = IT_FINAL-MENGE.
*******end by .... on 17.02.2007
    IT_FINAL-MENGE545 = IT_FINAL-MENGE.
    IT_FINAL-LINE_COLOR = 'C200'.
    IT_FINAL-DIFFER = IT_FINAL-DIFFER - IT_FINAL-MENGE545.
    CLEAR: IT_FINAL-LIFNR,
          IT_FINAL-EBELN,
          IT_FINAL-BELNR,
          IT_FINAL-MENGE_I,
          IT_FINAL-BUDAT.
  ELSE.
    IT_FINAL-LINE_COLOR = 'C200'.
    CLEAR: IT_FINAL-LIFNR,
          IT_FINAL-EBELN,
          IT_FINAL-BELNR,
          IT_FINAL-MENGE_I,
          IT_FINAL-BUDAT.
  ENDIF.
MODIFY IT_FINAL.
ENDLOOP.
ENDFORM.
*&      Form  GENERATE_ALV_FIELDCAT
      text
FORM GENERATE_ALV_FIELDCAT.
DATA: POS TYPE I.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'COUNT'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = 'S. No.'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'MATNR'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = 'Mat. No.'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'BMENGE'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = 'BOM Qty'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'EBELN'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = 'PO No.'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'MENGE_I'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = 'PO Qty'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'BELNR'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = 'Gr. No.'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  CATALOG-HOTSPOT = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'BUDAT'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = 'GR Date'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'MENGE101'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = '101 Gr Qty'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'MENGE543'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = '543 Gr Qty'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'MENGE545'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = '545 Gr Qty'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'DIFFER'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = 'Difference'.
  CATALOG-NO_ZERO = ' '.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'LIFNR'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = 'Vendor'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'NAME1'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = 'Vendor Name'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'RATE'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = 'Rate'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
  POS = POS + 1.
  CLEAR: CATALOG.
  CATALOG-COL_POS = POS.
  CATALOG-FIELDNAME = 'DMBTR'.
  CATALOG-TABNAME = 'IT_FINAL'.
  CATALOG-SELTEXT_L = 'Value'.
  CATALOG-NO_ZERO = 'X'.
  CATALOG-FIX_COLUMN = 'X'.
  APPEND CATALOG TO TCATALOG.
ENDFORM.
*&      Form  ALV_SHOW
      text
FORM ALV_SHOW.
  LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
  LAYOUT-BOX_TABNAME = 'IT_FINAL'.
  LAYOUT-INFO_FIELDNAME = 'LINE_COLOR'.
  LAYOUT-ZEBRA = 'X'.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_CALLBACK_PROGRAM      = SY-REPID
      I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
      IS_LAYOUT               = LAYOUT
      IT_FIELDCAT             = TCATALOG
      IS_VARIANT              = VAR1
      I_SAVE                  = 'A'
      IT_EVENTS               = TEVENT[]
    TABLES
      T_OUTTAB                = IT_FINAL.
ENDFORM .                    "ALV_SHOW
*& FORM USER_COMMAND.
FORM USER_COMMAND USING
          R_UCOMM LIKE SY-UCOMM
          SELFIELD TYPE SLIS_SELFIELD.
DATA: TABIX LIKE SY-TABIX,
      WA LIKE IT_FINAL.
TABIX = SELFIELD-TABINDEX.
READ TABLE IT_FINAL INTO WA INDEX TABIX.
IF NOT WA-BELNR IS INITIAL.
set parameter id : 'MBN' FIELD WA-BELNR.
CALL TRANSACTION 'MB03' AND SKIP FIRST SCREEN .
ENDIF.
ENDFORM.

Hi,
U can try this standard report for subcontracting:
J1IFR (Transaction name),
Not sure how much this will be useful to u.
regards,
Viji

Similar Messages

  • Report for Subcontracting Components

    Hi
    I require to create a report for the list of subcomponents, its quantity etc in subcontracting Purchase order. Could you please inform me which table i should be looking for.

    dear sir
    please check with this report S_P00_07000140.
    regards
    jrp

  • Reports for subcontracting

    Hi All,
    Are there any standard reports available for subcontracting process other than ME2O.
    Regards,
    V S

    Dear,
    1) To obtain a overview at any time of the current situation for stocks of material provided to vendor, you can use report SC Stock Monitoring for Vendor (RM06ELLB via SE38).
    The report provides the following information:
    current stock situation
    planned issues
    planned receipts
    Choose Purchase order --> Reporting --> SC stocks per vendor.
    2) MBLB Vender Stock
    if u are using CIN then
    J1IF01 - Create SubContracting Challan
    J1IFR - Challan Listing
    Regards,
    Pardeep Malik
    Edited by: Pardeep  Malik on Mar 5, 2009 6:39 PM
    Edited by: Pardeep  Malik on Mar 5, 2009 6:41 PM

  • Report for subcontracting material

    Dear all,
    I need your help.
    we have two plants suppose plant 1 and 2
    plant 1 have sent some material to plant 2 by subcontracting challan
    so i need a detail like
    1) material sent via 57f4
    2) input material (raw material)
    3) output material (finish material after subcontracting)
    4) vendor
    5) price, qty
    is there is any report like this....

    Hi
    Go to J1ILN > Indirect taxes > procurement > subcontracting > reports > chalan Listing.
    This may be of your help. beyond this you will have to develop client specific report.
    Best Regards
    Nishant Shende

  • Standard report for subcontracting cost

    Hi, Is there any std report exists for total sub-contracting cost dorn over a period of time in PP? Pls advise.

    Hi,
    The sub contracting cost you can't see through PP module. You can try using MM or FICO module.
    Regards,
    V. Suresh

  • Report for issuing componets to subcontracting materials

    Hi
    I am trynig to develop a report for issung components  to subcontacrting maerial
    as per our scenerio... every day we are creating purchase orders item cat L for subcontract material
                                      then issue the materials against to subcon. pur.order...then do GR with 101..
    as per our requirement...
    report input entries..like   1. subcon material code
                                 2.  from date --- to --- todate
    out put..for report..like.... total consumption of components with line item wise (as per bom) with that pertical period..
    for this any std. report is there  ?
    or  if  go for zreport....pls guide to me..
    any one can suggest to me
    thanku
    regards
    sesidhar

    HI,
    Certain set of inforamtion can be availed in MB51 and using 541 Mvt type..
    But it is better that you develop a zreport to get the information what you wanted if you are not satisfied with the MB51 report from standard SAP.
    Try MBLB also
    Thanks & Regards,
    Kiran

  • Report for Issued component Quantity vs Subcontracting PO component qntity

    Dear Expert,
    My client wants to know a report on issued Component quantity (what is issued against a Sub- contraction PO) with PO component quantity (what is maintained in a subcontracting PO component).
    Is there any standard report available for the same?
    Please suggest if any query report can be built or not.
    Thanks in Advance
    Regards
    Rajib Debnath

    Do you change child qty consumption in p.o BOM ?
    Check it in mb51 541 mvmt for material for issued component quantity.
    Also check reports MBLB,ME2O.
    Can you explain term
    Report for Issued component Quantity vs Subcontracting PO component qntity

  • Report For Sub Contract Material

    Dear Experts,
    Is there any standard report for finding the details of the subcontract.
    I tried through ME2O, MBLB where I am not getting the report I wanted.
    I want to take a montly report for all the subcontract work given to the vendor. (The work is completed )
    Please help. Thanks

    Thanks,
    In ME2L I am able to get the details, but the problem is;
    I want to get a report which will give me the full details of the Sub COntract PO.
    Example. I created a Sub COntract PO for Fineshed Material A. For makng Material A I need to supply Material B, Material C to the Sub Contract Vendor.
    I want to know by the end of the month
    1) The Subcontract PO
    2) Final Material (Material A)
    3) Raw materials Supplied to vendor (Material B & Material C)
    4) Status of the order
    5) Material A given back to me
    6) remaining Material (Material A)
    Please help.

  • Report for materials sent out side receipt tracking

    hi gurus,
    I have a requirement that the materials sent outside for subcontraction purposes, after the work completed, should be back with in 180 days, i m not finding any standard report, can any body suggest
    to view without any development of report, as we are near to go live.
    Thanks in advance.

    hi indranil,
    ME2o for sending the material outside to subcontractor, and after completion of the job at subcontractor, we are doing jwc reconciliation also there i will get the return date, my question, my client want a pop up within the stipulated time( say one month before) so that he can follow up with the out side party to get deliver the material with in one month.
    YOur speedy response is highly appreciated.
    regards...

  • Goods receipt for subcontracting order! BAPI_GOODSMVT_CREATE

    I wanna use BAPI "BAPI_GOODSMVT_CREATE"  to create goods receipt for subcontracting order.
    But it says that this combination is not possible.  Combination of my movement type and this BAPI.
    What can i do to solve it?
    thanks in advance.

    >
    Julia Nikiforva wrote:
    > I wanna use BAPI "BAPI_GOODSMVT_CREATE"  to create goods receipt for subcontracting order.
    > But it says that this combination is not possible.  Combination of my movement type and this BAPI.
    >
    > What can i do to solve it?
    >
    > thanks in advance.
    Might work
    report zbapi_goodsmovement.
    parameters: p-file like rlgrap-filename default
    'c:\sapdata\TEST.txt'.
    parameters: e-file like rlgrap-filename default
    'c:\sapdata\gdsmvterror.txt'.
    parameters: xpost like sy-datum default sy-datum.
    data: begin of gmhead.
    include structure bapi2017_gm_head_01.
    data: end of gmhead.
    data: begin of gmcode.
    include structure bapi2017_gm_code.
    data: end of gmcode.
    data: begin of mthead.
    include structure bapi2017_gm_head_ret.
    data: end of mthead.
    data: begin of itab occurs 100.
    include structure bapi2017_gm_item_create.
    data: end of itab.
    data: begin of errmsg occurs 10.
    include structure bapiret2.
    data: end of errmsg.
    data: wmenge like iseg-menge,
    errflag.
    data: begin of pcitab occurs 100,
    ext_doc(10), "External Document Number
    mvt_type(3), "Movement Type
    doc_date(8), "Document Date
    post_date(8), "Posting Date
    plant(4), "Plant
    material(18), "Material Number
    qty(13), "Quantity
    recv_loc(4), "Receiving Location
    issue_loc(4), "Issuing Location
    pur_doc(10), "Purchase Document No
    po_item(3), "Purchase Document Item No
    del_no(10), "Delivery Purchase Order Number
    del_item(3), "Delivery Item
    prod_doc(10), "Production Document No
    scrap_reason(10), "Scrap Reason
    upd_sta(1), "Update Status
    end of pcitab.
    call function 'WS_UPLOAD'
    exporting
    filename = p-file
    filetype = 'DAT'
    IMPORTING
    FILELENGTH =
    tables
    data_tab = pcitab
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    OTHERS = 6
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    exit.
    endif.
    gmhead-pstng_date = sy-datum.
    gmhead-doc_date = sy-datum.
    gmhead-pr_uname = sy-uname.
    gmcode-gm_code = '01'. "01 - MB01 - Goods Receipts for Purchase Order
    loop at pcitab.
    itab-move_type = pcitab-mvt_type.
    itab-mvt_ind = 'B'.
    itab-plant = pcitab-plant.
    itab-material = pcitab-material.
    itab-entry_qnt = pcitab-qty.
    itab-move_stloc = pcitab-recv_loc.
    itab-stge_loc = pcitab-issue_loc.
    itab-po_number = pcitab-pur_doc.
    itab-po_item = pcitab-po_item.
    concatenate pcitab-del_no pcitab-del_item into itab-item_text.
    itab-move_reas = pcitab-scrap_reason.
    append itab.
    endloop.
    loop at itab.
    write:/ itab-material, itab-plant, itab-stge_loc,
    itab-move_type, itab-entry_qnt, itab-entry_uom,
    itab-entry_uom_iso, itab-po_number, itab-po_item,
    pcitab-ext_doc.
    endloop.
    call function 'BAPI_GOODSMVT_CREATE'
    exporting
    goodsmvt_header = gmhead
    goodsmvt_code = gmcode
    TESTRUN = ' '
    IMPORTING
    goodsmvt_headret = mthead
    MATERIALDOCUMENT =
    MATDOCUMENTYEAR =
    tables
    goodsmvt_item = itab
    GOODSMVT_SERIALNUMBER =
    return = errmsg
    clear errflag.
    loop at errmsg.
    if errmsg-type eq 'E'.
    write:/'Error in function', errmsg-message.
    errflag = 'X'.
    else.
    write:/ errmsg-message.
    endif.
    endloop.
    if errflag is initial.
    commit work and wait.
    if sy-subrc ne 0.
    write:/ 'Error in updating'.
    exit.
    else.
    write:/ mthead-mat_doc, mthead-doc_year.
    perform upd_sta.
    endif.
    endif.
    FORM UPD_STA *
    form upd_sta.
    loop at pcitab.
    pcitab-upd_sta = 'X'.
    modify pcitab.
    endloop.
    call function 'WS_DOWNLOAD'
    exporting
    filename = p-file
    filetype = 'DAT'
    IMPORTING
    FILELENGTH =
    tables
    data_tab = pcitab
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    OTHERS = 6
    endform.

  • Sending components on a PM03 task for subcontracting

    Hi,
    Is it possible to send components on a PM03 (external services) operation for subcontracting?
    To be more clear: we've defined the following starting scenario's:
    1) send an item for an analysis - positiontype L / PM02 operation
    2) send an item for a modification directly - position type L / PM02 operation
    Ad1:
    The subcontractor might report back that the item sent needs to be overhauled or should be modified. In any way, a certain service (modification) should be carried out. This service is predefined in the system in a service master record. We currently process this service as a PM03 operation in the PM order and stipulates a service preq and PO. So send the item on PM02, add another line - PM03 - to handle to service. We do a GR on the PM02 operation and do a service entry sheet receipt for the service performed.
    Ad2)
    The item will be modified and shipped back. Only PM02 is applicable and only a GR will be performed.
    The service / modification will be handled as a PM03 operation as the item is already at the subcontractor. Would it also be possible to only use a PM03 and add send the item on this PM03 operation as well? I.e. somehow combine position type S and L?
    Or would material type Service  (DIEN) be suitable for this?
    Thanks for the suggestions.

    Hi,
    Is it possible to send components on a PM03 (external services) operation for subcontracting?
    To be more clear: we've defined the following starting scenario's:
    1) send an item for an analysis - positiontype L / PM02 operation
    2) send an item for a modification directly - position type L / PM02 operation
    Ad1:
    The subcontractor might report back that the item sent needs to be overhauled or should be modified. In any way, a certain service (modification) should be carried out. This service is predefined in the system in a service master record. We currently process this service as a PM03 operation in the PM order and stipulates a service preq and PO. So send the item on PM02, add another line - PM03 - to handle to service. We do a GR on the PM02 operation and do a service entry sheet receipt for the service performed.
    Ad2)
    The item will be modified and shipped back. Only PM02 is applicable and only a GR will be performed.
    The service / modification will be handled as a PM03 operation as the item is already at the subcontractor. Would it also be possible to only use a PM03 and add send the item on this PM03 operation as well? I.e. somehow combine position type S and L?
    Or would material type Service  (DIEN) be suitable for this?
    Thanks for the suggestions.

  • Report for credit releasing.

    Hi team,
    May I know that whether there is a report to display the credit detail informatio including :sales order number,customer code, billing date;due date;sale amount(include TAX)? Or can you give me the related table name?
    Thanks
    Srikanth

    hi,
    FD32 SETTING CREDIT LIMIT FOR CUSTOMER
    wiki related to credit info - https://wiki.sdn.sap.com/wiki/display/ERPLO/Credit+Management
    CIN related reports,
    J1IFR List subcontracting challans
    J1INREP Reprint a withholding tax certificate for a vendor
    J1IR Download register data
    J2I9 Monthly CENVAT return
    J2I5 Extract data for excise registers
    J2I6 Print excise registers
    J1I7 TO SEE EXCISE INVOICE DOCUMENTS REPORT
    J2I9 MONTHLY REPORTS OF EXCIE REGISTER
    J1IGR EXCISE REPORT FOR GR.
    J2IUN EXCISE UTILISATION REPORT.
    Customised reports depends on the requirement.
    Regards,
    Raj

  • J1IFR report of subcontracting challans by material type

    How to extract the list of  subcontracting challans based on Material type selection.with Transaction J1IFR
    Krishna

    Dear,
    Report J1IFR is country specific report of SAP it is not the Standard Report for every country.
    Whatever is ther is the best given by SAP considering the requirement  of the Reporting regarding Challan reconcillation.
    If u still want that ,Then u have to go for the devolopment.
    regards,
    Sujit

  • Create PO return for subcontracting item

    Dear Expert,
    I want to create PO Return for subcontracting item category.But when I tried to create it,the system prompted an error message:"Returns not possible for subcontracting items Message no. ME 548". Then I used SPRO to check the system message and there is no such a message in the system.Also I added this message into my system and set the catetory to "W". But when I create the PO Return,the same error occured.
    What should I do then?
    Any advice?
    Best Regard,
    Pauline

    Thanks for the reply.
    I have done one testing for PO return subcon item. I create the Normal PO return, and I create return delivery (mvt type 122) with reference to original material document.
    But when i checked in the subcon report ( ME2O/ MBLB/ MMBE) the subcon material dont have any effect when I create the return delivery. the subcon material should be increase as we return back the item to the vendor.
    Example here: we return back the boxes to the vendor, means the papers the we provided for them to produce the boxes should be increase ( means that they haven't done anything with the papers so the papers stock should increase)
    In the reports ( ME2O, MBLB, MMBE) they not show the changes in stock level of papers when there is return delivery transaction. I'm not sure whether I miss out something in the report ? or maybe there are other reports to show the subcon stock level.
    Pauline

  • PO reference in GI document for Subcontracting PO

    Hi Experts,
    Where I can find a reference of subcontracting Puchase order in the Goods Issue material document?
    If I issue goods to the subcontractor against a subcontracting PO and when I display the document then I cant find PO reference anywhere in this document and not even in PO history.
    Please let me know wher i can get this reference?
    Regards
    Santosh

    Hi Santosh,
    There is no reference for goods issue in subcontracting P O.
    Only you have to send the matls.in MB1B with Mov type 541 for subcontracting which are attached to Subcontracting P O under Components.
    Only you can display that matl document .
    But you can not find any reference to P O & also it can not comes into P O History Tab.
    You can check the report J1IFR for Challan List.
    Regards,
    Rahul.

Maybe you are looking for

  • Initialization Parameters for JSPs ??

    Hi All,           Is there any way to provide Initialization Parameters for JSP ??           If so how should it be done on Weblogic ??           Thanx In Advance,           Navaneeth.           

  • Testing cost

    Hi, we do testing during receiving inpsection. there we issue raw material to perform testing on it and we use specific machines to perform test, some operators will perform test. basically we want to charge for materials and hrs spent by testers. pl

  • Credit management at order level ,delivery level and PGI Level.

    Hi All, I have a scnario where in at the order level i want to give a wariniog message ,at the delivery level again a warning message and at the pgi level the system should stop me form doing PGI!kindly specify the settings. Second Scenario:Error at

  • How do I get into my phone without my passcode?

    I have been locked out of my iPhone 4s. I tried using several passcodes and now my phone says disabled. I'm not sure how to get back into my phone without losing any of my contacts, pics etc.

  • Iphoto pictures

    Question on Iphoto, can you resize and optimize a picture and then post iton a web site, thx