Create BOM for material

Hi All,
I am using CSAP_MAT_BOM_READ to read the BOM details of one material and using these detals i am creating BOM for other material. I am using CSAP_MAT_BOM_CREATE to create the BOM, But always it is returing
sy-subrc as 1.
  I am not able to find out what kind of error this is, is this data error or any other error.
If anyone used this FM before please provide some input on how to use this FM for above requirement.
Regards,
Rahul

instead use BAPI_MATERIAL_BOM_GROUP_CREATE fm which will create a BOM for a material.

Similar Messages

  • BAPI to create profile for material

    Hi all,
    Is there a BAPI to do following things:
    1. create Profile for material
    2. Assign new Class Type 300 for Material
    3. add variants class to have characteristics and update its values.
    Thanks in advance,
    Amruta

    Hi Amrutha,
    Please try this BAPI
    BAPI_UI_CREATE
    Regards
    Rasheed

  • Sample code creating BOM for CS01 using BDC recording.

    Hi,
    Can anyone give me sample coding creating BOM for CS01 using BDC recording.
    I want to display the flat file records,under one (Alternative BOM).
    I m already working on it,but i m getting one A.BOM for each records.
    [       Header data          ]    [      Item Data               ]
    SOFTDRINKS   WIND   1       13            1     ml     l
    SOFTDRINKS   WIND   1       11            1     ml     l
    SOFTDRINKS   WIND   1       15        1     ml     l
    SOFTDRINKS   WIND   1       14       1     ml     l
    Code:
    report ZBOM
           no standard page heading line-size 255.
    *include bdcrecx1.
    *DATA: BEGIN OF bdc OCCURS 0,
          matnr(18),
          werks(4),
          stlan(1),
         END OF BDC.
    *DATA: BEGIN OF BDC1 OCCURS 0,
          idnrk(18),
          MENGE(18),
          MEINS(3),
          postp(1),
          posnr(4),
         END OF bdc1.
    DATA: BEGIN OF BDCDATA OCCURS 0,
             matnr(18),
             werks(4),
             stlan(1),
             idnrk(18),
             MENGE(18),
             MEINS(3),
             postp(1),
             posnr(4),
          END OF BDCDATA.
    data  ibdcdata type standard table of bdcdata WITH  header line.
    *start-of-selection.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'C:\Documents and Settings\dilipkumar.b\Desktop\soft.txt'
       FILETYPE                       = 'ASC'
       HAS_FIELD_SEPARATOR            = ','
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                     =
      HEADER                         =
      TABLES
        DATA_TAB                      = BDCDATA
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *perform open_group.
    loop at bdcdata.
    perform bdc_dynpro      using 'SAPLCSDI' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29N-STLAN'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RC29N-MATNR'
                                  'SOFTDRINKS'.
    perform bdc_field       using 'RC29N-WERKS'
                                  'WIND'.
    perform bdc_field       using 'RC29N-STLAN'
                                  '1'.
    perform bdc_field       using 'RC29N-DATUV'
                                  '16.09.2008'.
    perform bdc_dynpro      using 'SAPLCSDI' '0110'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RC29K-BMENG'
                                  '1'.
    perform bdc_field       using 'RC29K-STLST'
                                  '1'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29K-EXSTL'.
    perform bdc_dynpro      using 'SAPLCSDI' '0111'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29K-LABOR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPLCSDI' '0140'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POSTP(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=FCBU'.
    perform bdc_field       using 'RC29P-IDNRK(001)'
                                  BDCDATA-IDNRK.
    perform bdc_field       using 'RC29P-MENGE(001)'
                                  BDCDATA-MENGE.
    perform bdc_field       using 'RC29P-MEINS(001)'
                                  BDCDATA-MEINS.
    perform bdc_field       using 'RC29P-POSTP(001)'
                                  BDCDATA-POSTP.
    perform bdc_dynpro      using 'SAPLCSDI' '0130'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POSNR'.
    perform bdc_field       using 'RC29P-POSNR'
                                   BDCDATA-POSNR.            "'0010'.
    perform bdc_field       using 'RC29P-IDNRK'
                                  BDCDATA-IDNRK.             "'15'.
    perform bdc_field       using 'RC29P-MENGE'
                                  BDCDATA-MENGE.             "'1'.
    perform bdc_field       using 'RC29P-MEINS'
                                  BDCDATA-MEINS.             "'ml'.
    perform bdc_dynpro      using 'SAPLCSDI' '0131'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POTX1'.
    perform bdc_field       using 'RC29P-SANKA'
                                  'X'.
    *perform bdc_transaction using 'CS01'.
    *perform close_group.
    CALL TRANSACTION 'CS01' USING IBDCDATA MODE 'A' UPDATE 'S'.
    REFRESH IBDCDATA.
    clear ibdcdata.
    endloop.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR iBDCDATA.
      iBDCDATA-PROGRAM  = PROGRAM.
      iBDCDATA-DYNPRO   = DYNPRO.
      iBDCDATA-DYNBEGIN = 'X'.
      APPEND ibDCDATA .
    ENDFORM.
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
    IF FVAL <> NODATA.
        CLEAR iBDCDATA.
        iBDCDATA-FNAM = FNAM.
        iBDCDATA-FVAL = FVAL.
        APPEND iBDCDATA .
    ENDIF.
    ENDFORM.

    Hi,
          I tried with the sample code but i m not getting the required result.
        Can anyone give some other soln.
    Code:
    REPORT  ZBOM2
    no standard page heading line-size 255.
    *include bdcrecx1.
    TYPES: BEGIN OF TY_FLAT,      " structure for flat file
            STRING(200),
           END OF TY_FLAT.
    TYPES: BEGIN OF TY_HEAD,     " structure for header file
            IND(2) TYPE N,
            MATNR(18),
            WERKS(4),
            STLAN(1),
           END OF TY_HEAD.
    TYPES : BEGIN OF TY_ITEM,    "structure for item file
              IND(2) TYPE N,
              POSTP(1),
              IDNRK(18),
              MENGE(13),
              meins(3),
            END OF TY_ITEM.
    TYPES :BEGIN OF TY_FLAT1,   " structure for final file
             MATNR(18),
             WERKS(4),
             STLAN(1),
             posnr(4),
             POSTP(1),
             IDNRK(18),
             MENGE(13),
             meins(3),
           END OF TY_FLAT1.
    INTERNAL TABLE DECLERATIONS:
    DATA : T_FLAT TYPE STANDARD TABLE OF TY_FLAT,
           T_FLAT1 TYPE STANDARD TABLE OF TY_FLAT1,
           T_HEAD TYPE STANDARD TABLE OF TY_HEAD,
           T_ITEM TYPE STANDARD TABLE OF TY_ITEM,
           T_BDCDATA TYPE STANDARD TABLE OF BDCDATA with header line ,
           T_BDCMSG TYPE STANDARD TABLE OF BDCMSGCOLL.
    WORK AREA DECLERATIONS:
    DATA : ST_FLAT TYPE TY_FLAT,
           ST_FLAT1 TYPE TY_FLAT1,
           ST_HEAD TYPE TY_HEAD,
           ST_ITEM TYPE TY_ITEM,
           ST_BDCDATA TYPE BDCDATA,
           ST_BDCMSG TYPE BDCMSGCOLL.
    VARIABLES:
    DATA : FNAM TYPE LOCALFILE,           "rlgrap-filename,
           FTYP TYPE RLGRAP-FILETYPE,
           LF_FNAM TYPE STRING.
    DATA : V_IND(2) TYPE N,                " value 1,
           V_FLD(20),
           V_NO(2) TYPE N.
    *start-of-selection.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'C:\Documents and Settings\dilipkumar.b\Desktop\soft.txt'
       FILETYPE                       = 'ASC'
       HAS_FIELD_SEPARATOR            = ','
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                     =
      HEADER                         =
      TABLES
        DATA_TAB                      = T_FLAT
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT T_FLAT INTO ST_FLAT.
    SPLIT ST_FLAT AT CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB
    INTO ST_FLAT1-MATNR ST_FLAT1-WERKS
    ST_FLAT1-STLAN ST_FLAT1-POSTP
    ST_FLAT1-IDNRK ST_FLAT1-MENGE ST_FLAT1-MEINS.
    APPEND ST_FLAT1 TO T_FLAT1.
    CLEAR ST_FLAT1.
    ENDLOOP.
    SORT T_FLAT1 BY MATNR WERKS STLAN POSTP IDNRK MENGE MEINS.
    LOOP AT T_FLAT1 INTO ST_FLAT1.
    MOVE :
    ST_FLAT1-MATNR TO ST_HEAD-MATNR,
    ST_FLAT1-WERKS TO ST_HEAD-WERKS,
    ST_FLAT1-STLAN TO ST_HEAD-STLAN,
    ST_FLAT1-POSTP TO ST_ITEM-POSTP,
    ST_FLAT1-IDNRK TO ST_ITEM-IDNRK,
    ST_FLAT1-MENGE TO ST_ITEM-MENGE,
    ST_FLAT1-MENGE TO ST_ITEM-MEINS.
    AT new STLAN.
      ADD 1 TO V_IND.
    ENDAT.
    MOVE V_IND TO ST_HEAD-IND.
    MOVE V_IND TO ST_ITEM-IND.
    APPEND ST_HEAD TO T_HEAD.
    APPEND ST_ITEM TO T_ITEM.
    CLEAR ST_HEAD.
    CLEAR ST_ITEM.
    ENDLOOP.
    CLEAR V_IND.
    *perform open_group.
    SORT T_ITEM BY IND.
    SORT T_HEAD BY IND.
    DELETE ADJACENT DUPLICATES FROM T_HEAD.
    LOOP AT T_HEAD INTO ST_HEAD.
    perform bdc_dynpro      using 'SAPLCSDI' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29N-STLAN'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RC29N-MATNR'
                                  ST_HEAD-MATNR.
    perform bdc_field       using 'RC29N-WERKS'
                                  ST_HEAD-WERKS.
    perform bdc_field       using 'RC29N-STLAN'
                                  ST_HEAD-STLAN.
    perform bdc_field       using 'RC29N-DATUV'
                                  '16.09.2008'.
    perform bdc_dynpro      using 'SAPLCSDI' '0110'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RC29K-BMENG'
                                  '1'.
    perform bdc_field       using 'RC29K-STLST'
                                  '1'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29K-EXSTL'.
    perform bdc_dynpro      using 'SAPLCSDI' '0111'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29K-LABOR'.
    LOOP AT T_ITEM INTO ST_ITEM WHERE IND = ST_HEAD-IND.
    ADD 1 TO V_NO.
    perform bdc_dynpro      using 'SAPLCSDI' '0140'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29K-MENGE(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=FCBU'.
    perform bdc_dynpro      using 'SAPLCSDI' '0140'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POSNR(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=FCBU'.
    perform bdc_field       using 'RC29P-IDNRK(01)'
                                  ST_ITEM-IDNRK.
    perform bdc_field       using 'RC29P-MENGE(01)'
                                  ST_ITEM-MENGE.
    perform bdc_field       using 'RC29P-MEINS(01)'
                                  ST_ITEM-MEINS.
    perform bdc_field       using 'RC29P-POSTP(01)'
                                  ST_ITEM-POSTP.
    CONCATENATE 'RC29K-IDNRK(' V_NO ')' INTO V_FLD.
    CONDENSE V_FLD.
    PERFORM BDC_FIELD USING V_FLD
    ST_ITEM-IDNRK.
    CONCATENATE 'RC29K-MENGE(' V_NO ')' INTO V_FLD.
    CONDENSE V_FLD.
    PERFORM BDC_FIELD USING V_FLD
    ST_ITEM-MENGE.
    CONCATENATE 'RC29K-MEINS(' V_NO ')' INTO V_FLD.
    CONDENSE V_FLD.
    PERFORM BDC_FIELD USING V_FLD
    ST_ITEM-MEINS.
    CONCATENATE 'RC29K-POSTP(' V_NO ')' INTO V_FLD.
    CONDENSE V_FLD.
    PERFORM BDC_FIELD USING V_FLD
    ST_ITEM-POSTP.
    V_NO = 1.
    ENDLOOP.
    CLEAR V_NO.
    *perform bdc_dynpro      using 'SAPLCSDI' '0130'.
    *perform bdc_field       using 'BDC_OKCODE'
                                 '/00'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'RC29P-POSNR'.
    *perform bdc_field       using 'RC29P-POSNR'
                                  POSNR.
    *perform bdc_field       using 'RC29P-IDNRK'
                                 bdcdata-IDNRK.
    *perform bdc_field       using 'RC29P-MENGE'
                                 bdcdata-MENGE.
    *perform bdc_field       using 'RC29P-MEINS'
                                 bdcdata-MEINS.
    perform bdc_dynpro      using 'SAPLCSDI' '0131'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POTX1'.
    perform bdc_field       using 'RC29P-SANKA'
                                     'X'.
    perform bdc_dynpro      using 'SAPLCSDI' '0133'.
    perform bdc_field       using 'BDC_OKCODE'
                                    '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-matkl'.
    perform bdc_field       using 'RC29P-SANKA'
                                     'zv01'.
    perform bdc_dynpro      using 'SAPLCSDI' '0140'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29N-POSNR(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=FCBU'.
    *perform bdc_transaction using 'CS01'.
    perform close_group.
    CALL TRANSACTION 'CS01' USING t_bdcdata MODE 'A' UPDATE 'S'.
    REFRESH t_bdcdata.
    clear t_bdcdata.
    endloop.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR st_bdcdata.
      st_bdcdata-PROGRAM  = PROGRAM.
      st_bdcdata-DYNPRO   = DYNPRO.
      st_bdcdata-DYNBEGIN = 'X'.
      APPEND st_bdcdata to t_bdcdata .
    ENDFORM.
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
    IF FVAL <> NODATA.
        CLEAR st_bdcdata.
        st_bdcdata-FNAM = FNAM.
        st_bdcdata-FVAL = FVAL.
        APPEND st_bdcdata to t_bdcdata.
    ENDIF.
    ENDFORM.

  • GET BOM FOR MATERIAL

    Hello everybody.
    i want a program to get all bom for  raw and processed materials.
    input:
    a range of material, example material from 100005 to 100008
    output.
    all bom of material  100005 to 100008.
    in se37 i found function
    CP_BD_GET_BOM_FOR_MATERIAL
    but i don't know how to use it.and whether can get requirement output.
    help me.
    thanks.

    tables : mara,stpox.
    data : ibom1 like stpox occurs 0 with header line,
             ibom2 like stpox occurs 0 with header line,
             imatnr like mara occurs 0 with header line.
    select-options : s_matnr for mara-matnr.
    select matnr into corresponding fields of table imatnr from mara where matnr in s_matnr.
    loop at imatnr.
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
    EXPORTING
      FTREL                       = ' '
      ALEKZ                       = ' '
      ALTVO                       = ' '
      AUFSW                       = ' '
      AUMGB                       = ' '
      AUMNG                       = 0
      AUSKZ                       = ' '
      AMIND                       = ' '
      BAGRP                       = ' '
      BEIKZ                       = ' '
      BESSL                       = ' '
      BGIXO                       = ' '
      BREMS                       = ' '
       CAPID                       = 'PP01'
      CHLST                       = ' '
      COSPR                       = ' '
      CUOBJ                       = 000000000000000
      CUOVS                       = 0
      CUOLS                       = ' '
       DATUV                       = SY-DATUM
      DELNL                       = ' '
      DRLDT                       = ' '
      EHNDL                       = ' '
      EMENG                       = 0
      ERSKZ                       = ' '
      ERSSL                       = ' '
      FBSTP                       = ' '
      KNFBA                       = ' '
      KSBVO                       = ' '
      MBWLS                       = ' '
      MKTLS                       = 'X'
      MDMPS                       = ' '
       MEHRS                       = 'X'
      MKMAT                       = ' '
      MMAPS                       = ' '
      SALWW                       = ' '
      SPLWW                       = ' '
      MMORY                       = ' '
       MTNRV                       = IMATNR-MATNR
      NLINK                       = ' '
      POSTP                       = ' '
      RNDKZ                       = ' '
      RVREL                       = ' '
      SANFR                       = ' '
      SANIN                       = ' '
      SANKA                       = ' '
      SANKO                       = ' '
      SANVS                       = ' '
      SCHGT                       = ' '
      STKKZ                       = ' '
      STLAL                       = ' '
      STLAN                       = ' '
      STPST                       = 0
      SVWVO                       = 'X'
       WERKS                       = '1000' " PLANT NO
      NORVL                       = ' '
      MDNOT                       = ' '
      PANOT                       = ' '
      QVERW                       = ' '
      VERID                       = ' '
      VRSVO                       = 'X'
    IMPORTING
      TOPMAT                      =
      DSTST                       =
      TABLES
        STB                         = IBOM1
      MATCAT                      =
    EXCEPTIONS
      ALT_NOT_FOUND               = 1
      CALL_INVALID                = 2
      MATERIAL_NOT_FOUND          = 3
      MISSING_AUTHORIZATION       = 4
      NO_BOM_FOUND                = 5
      NO_PLANT_DATA               = 6
      NO_SUITABLE_BOM_FOUND       = 7
      CONVERSION_ERROR            = 8
      OTHERS                      = 9
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    APPEND LINES OF IBOM1 TO IBOM2.
    endloop.
    LOOP AT IBOM2.
    WRITE : / IBOM2-IDNRK.
    ENDLOOP.
    REGARDS
    SHIBA DUTTA

  • Creating Dependency for Material BOM

    hi,
    i have created a material bom using BAPI_MATERIAL_BOM_GROUP_CREATE. this bom has three line items in which the 3rd line item has a dependency for it. the dependency value is V29.
    please let me know how to add a dependency to a material bom item, while creating a material bom using BAPI_MATERIAL_BOM_GROUP_CREATE?
    is there any other function module to maintain the dependency after the material bom is created?
    i have tried CSAP_MAT_BOM_OPEN, CSAP_BOM_ITEM_MAINTAIN and CSAP_MAT_BOM_CLOSE. but i couldn't succeed.
    can anyone please let me know how to use these FM's for my case?
    please help me with your answers.
    thanks.

    BAPI_MATERIAL_BOM_GROUP_CREATE cannot be used to create object dependency.
    once the bom is created using the above function module, use...
    CSAP_MAT_BOM_OPEN, CSAP_BOM_ITEM_MAINTAIN and CSAP_MAT_BOM_CLOSE
    ...to create OD individually for each line item.

  • Mdm_clnt_extr is not able to create idoc for material

    Hello ,
    In my scenario material data has to transfered from ECC6.0 to MDM5.5 using XI.
    Scenario is configured in XI.
    Trying to extreact materials from ECC6.0 using mdm_clnt_extr.
    Material_extract is extraction object used in variant required for mdm_clnt_extr.
    once I give values for matnr and starts extraction, background job goes into error
    saying 'This idoc is permitted for XI logical system'. where In we20 of ECC6.0 , I have MATMAS04 and MATMAS05. In both cases I am getting error 'This idoc is permitted for XI logical system'.
    At the same one bp document od MDM , message type MATMDM is given, but i dont see that in ECC6.0.
    Pl can anyone suugest on this.
    thanks,
    Sharada

    Hi Sharada,
    i think there is some problem in your RFC destination settings,tats why the error is coming.
    I am trying to get the exact solution for your error,meanwhile you can check your configuration settings.
    I will outline the ALE Settings .
    1 WE21 : Set up the port in IDOC Processing
    2 SM59 : Set the RFC Destination to XI and check it.
    3 WE20 : Create a partner profile with Partner Type LS (Logical System) for XI
    Include the message types : DEBMDM, MATMAS, MDMRECEIPT
    4 BD64 : Create a Distribution model with Sender as SAP and receiver as XI.
    Include the message type DEBMDM,MDMRECEIPT,MATMAS,/SAPSSLL/MATMAS_SLL
    5 Generate partner profile. This will generate it in the receiving system.
    Following transactions are useful for trouble shooting any idoc issues
    WE02, WE20 ,BD87,SMQ2,SMQ3 and SALE->System Monitor->trfc check
    Hope it will solve your problem.
    <b>Please remark iof it really helped you :-)</b>
    Thanks,
    shiv prashant dixit

  • How to create MRP for material?

    Hello guys ,
    I want to create the MRP for my FTRM material?
    Thanks in advance.

    Hi,
    This is purely PP Configurations, Pls refer below link
    http://www.sap-img.com/sap-pp.htm
    http://www.sap-basis-abap.com/sappp01.htm
    Regards,
    Sankaran

  • Create view for Material using BAPI_MATERIAL_SAVEDATA

    Hello. I need create Accounting View(1&2) and Costing View(1&2) using FM BAPI_MATERIAL_SAVEDATA, but i don't now who importing values are required for this...
    please HELP!!!!

    Hi,
    Check this link.
    http://sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm
    Thanks,
    Anitha

  • Explode bom for material returned

    hi,
       we have  an item X in set of 12 pcs. now we have discontinued this item and want to use it in item y set of 4 pcs.
    i can not use 309 movement , as there is difference in quantity of items.
    please guide if there is any solution, by which i can rexplode the bom of the finished product.
    regards
    rahul

    Dear SAP Daya,
    do you check in congfiguration profile the flag Bom explosion?
    Are you in MTS Scenary with Configuration variant?
    You should try to insert the MTO strategy 20 so that the MRP explosion correctly the components.
    Do you manage also selection dependence in  item's SuperBom?
    Could you describe me much better what happen after run MRP?
    Daniele

  • Create transfer order for material document - 4.6C system

    Hi Gurus
    Can any one provide me the function module or BAPI to create transfer for material document in 4.6c system. I have to give input as supply storage type and bin and destination storage type and bin while execting the function module.
    Thank you in advance
    Regards
    Sarath

    Sarath,
    Thanks for responding, I finally found my answere via Thread: create transfer order for material document - 4.6C system
    Thanks again.

  • BOM for the Rawmaterial

    Dear all,
    I need your help to build a BOM for the Rawmaterial, my scenario is:
    I have a FERT material as "A'. Which has components B,C,D (B and C are Rawmaterials which is procurred externally and D is a semi-finished product).
    I have to maintain BOM for the component 'B' and having components X,Y and Z.   (Here the cost of X,Y and Z should not be rolled to the material 'B', so am not maintaining the costing relevancy indicators for the X,Yand Z materials).
    Now i have to sent the component 'X' for external processing and bring it back as Component 'D'.
    Please let me know how to process the above scenario.
    Thanks & Regards
    Dhanasekar

    Hi,
    As per your scenario you are manufacturing FERT A with compmonents as B,C & D. For component B you want to create bom with externally procured materials X, Y & Z.
    X is sent for externally processing & bring back as semifinshed product D.
    So you can map this scenario as,
    1. Create BOM for HALB material D with component as X (with the material master setting as SPK- 30 subcontacting to get it done from outside)
    2. Create BOM for FERT material A with the components B, C & D.
    3. You don't need to maintain BOM for ROH materials B & C as they are the externally procured materials.
    With this scenario when the BOM explosion is done for material A, then dependent requirements will be created for components B, C & D. Purchase requisition will be created for components B & C, and then they will be converted to purchase order. For component D planned orders are created & then purchase requisitions will be created for material X.
    Hope this resolve your issue, reward points if helpful.
    Regards,
    Avinash.

  • BDC - MM02 _long text  for material PO upload

    Hi experts,
    I want to upload Long text for material PO in MM02 (Purchase  order text view)
    throuh BDC upload.  I have successfully done recording for this transaction. But in the recording it show no  table field for that particular long text.
    Pls help me to do this issue.
    Thanks.

    Hi
    See the sample program for this and modify as per your requirement.
    REPORT zmm_longtext
           NO STANDARD PAGE HEADING
           LINE-SIZE 255.
    Internal Table for Upload of Long Texts Data
    DATA: BEGIN OF itab1 OCCURS 0,
            matnr    LIKE mara-matnr,    " Material
            text1    LIKE tline-tdline,  " Long Text
          END OF itab1.
    Internal Table for Upload of Long Texts Data
    DATA: BEGIN OF itab OCCURS 0,
            matnr LIKE mara-matnr,    " Material
            text  LIKE tline-tdline,  " Long Text
          END OF itab.
    To create Long Text lines for CREATE_TEXT function module
    DATA:BEGIN OF dt_lines OCCURS 0.
            INCLUDE STRUCTURE tline.   " Long Text
    DATA:END OF dt_lines.
    Variable declarations for CREATE_TEXT function module
    DATA : dl_name TYPE thead-tdname,   " Object Name
           dl_lan TYPE thead-tdspras,   " Language
           gv_matnr TYPE matnr.
    Constants
    CONSTANTS:
    Object ID for Long Text of Material Basic Data 1
      c_best     TYPE thead-tdid VALUE 'GRUN',
      c_material TYPE thead-tdobject VALUE 'MATERIAL'. " Object
    Parameters
    PARAMETERS p_file LIKE rlgrap-filename.
    At selection-screen on Value Request for file Name
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Get the F4 Values for the File
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
        IMPORTING
          file_name     = p_file.
    Start Of Selection
    START-OF-SELECTION.
    *To Upload Flat file
      CALL FUNCTION 'UPLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
        TABLES
          data_tab                = itab1
        EXCEPTIONS
          conversion_error        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          OTHERS                  = 7.
      SORT itab1 BY matnr.
      LOOP AT itab1.
        CLEAR gv_matnr.
        SELECT SINGLE matnr INTO gv_matnr
           FROM mara WHERE bismt = itab1-matnr.
            IF itab1-text1 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text1.
          APPEND itab.
        ENDIF.
        CLEAR itab.
      ENDLOOP.
      DELETE itab WHERE matnr EQ ' '.
    Upload the Texts
      SORT itab BY matnr.
      LOOP AT itab.
        dt_lines-tdformat = 'ST'.
        dt_lines-tdline = itab-text.
        APPEND dt_lines.
        dl_lan = sy-langu.
        dl_name = itab-matnr.
    Call the Function Module to Create Text
        CALL FUNCTION 'CREATE_TEXT'
          EXPORTING
            fid         = c_best
            flanguage   = dl_lan
            fname       = dl_name
            fobject     = c_material
            save_direct = 'X'
            fformat     = '*'
          TABLES
            flines      = dt_lines
          EXCEPTIONS
            no_init     = 1
            no_save     = 2
            OTHERS      = 3.
        IF sy-subrc <> 0.
          WRITE:/ 'Long Text Creation failed for Material'(001),
                 itab-matnr.
        ELSE.
          WRITE:/ 'Long Text Created Successfully for Material'(002),
                 itab-matnr.
        ENDIF.
        AT END OF matnr.
          REFRESH dt_lines.
        ENDAT.
      ENDLOOP.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • BPD for Material Ledger

    Hello All,
    I want to create BPD for Material Ledger/ Actual Costing. As I have never done this earlier I am not sure of what sought of questions should I ask the End Users to extract the right kind of information from them.
    Also we don't use solution manager so I cant use Q&A DB too.
    Any advice will be highly appreciated and points accordingly assigned.
    Thanks

    Hello Nasir,
    The following URL provides help document, which can help you.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/COPCACT/COPCACT.pdf
    Although it is 4.6C help document, the conceptual points are made clear.
    Please check 'SAP Best Practices', whether any document relevant to your industry is available.
    Thanks.

  • Inforecord for material group

    Hi,
    why SAP system allows to create recordinfo for material groups ?
    Regards

    Info record record contains following information.If you create next time with the same  material group it pulls all existing data and will update to currently created PO for reference.
    Units of measure in which materials are ordered from the vendor
    The applicable reminder levels
    Prices and Conditions with validity period (Present and Future)
    Applicable Tax Code
    Planned Delivery Time
    Standard & Maximum Quantity
    Tolerance limits for over-deliveries and under-deliveries
    Number of Last Purchase Order or Quotation
    Text
    Vendor evaluation data
    An indicator for showing vendor as regular vendor for the material
    The vendor sub-range to which the material belongs
    The availability period during which the vendor can supply the material

  • SAP PM-BOM and Material/Spares planning

    Hi dear all
    can some one help me how to use equipment BOM for Material/Spare planning effectively in SAP PM
    Vinod
    Edited by: vnodpm on Sep 9, 2011 11:33 AM

    Hi,
         BOMs in PM define the structure of that Object :eqpt,material,F.loc
    Eqpt BOM is used specfic for that eqpt
    Material BOM can be used for multiple eqpts in IE02 -->Construction type u can assign material BOM
    Similarly F.Loc BOM
    You can use this BOMs for material planning in MO
    Ex :- If a particular eqpt MOTOR has a BOM -> Then this BOM would be helpful for material planning in Maintenance Order -- Components ..
    Spares mentioned in BOM can be directly used for selection into Component Tab .. this will serve u an easy material planning ..
    More than this there is nothing .. to my knowledge ..
    regards
    pushpa

Maybe you are looking for

  • Ipod isn't recognized by computer

    OK I have a problem with my 60 Gb ipod on two OS. First Windows XP won't recognize my ipod. I'll plug my ipod in and it will go into do not disconnect mode. the computer will attempt to establish a connection but then it says that it doesnt recognize

  • How to reinstall a corrupt, third-party plugin?

    This is a multi-level issue. After purchasing and installing Recosoft PDF2ID (a very useful and clever plugin that allows a user to open PDFs right into InDesign), I noticed that InDesign would hang on Quit. Becasue this hang (and my subsequent force

  • Is it possible to display subtitles without Apple TV?

    I do not have Apple TV but I watch movies a lot on my iTouch. I have hearing loss and cannot always tell what is being said on movies. Is there a way to have subtitles on movies without Apple TV? I have switched the Closed Captioning from off to on a

  • Mass update via XK99

    Hello dear all, I want to update the field "INTAD" (email adress in vendor master record) for several vendor in only one company code. I executed XK99, and i fulfilled vendor and company code selection under " data records to be changed " Tab. Then,

  • Ant help - building a jar with image files.

    I have a jar that contains a handful of image files in a "resources" folder. I used the following command: jar -cf resources.jar resources/Now I need to make ANT do the same thing. I tried the following, with no success: <property name="build" locati