Problem in selecting views in MM01 Transaction

Hi,
I want to know where can i configure views (In SPRO) for a particular Industry sector and material type for a material.In my case some view are getting displayed when i enter a material in MM01 transaction i want to select some more views for that material.
Regards,
Mukesh Kumar

Hi,
Go to Logistics general -> material master -> basic settings -> material types -> Define attributes of material types.
Select the reqired material type and click on details ( Mirror glass)
regards,

Similar Messages

  • Dynamic select views for MM01 Transaction

    Hii  Friends,
    I have an issue like i need to dynamically select the views in MM01 transaction from the BDC program
    without selecting that views manually.
    Using SHDB recording i can select the views before recording  and then call those views again
    If i want to select the views from the program how do i do it..
    If there is any way to do this in call transaction let me know plz
    Thanks in advance
    kishore

    BDC is not good for MM01 , go for bapi
    other wise go for  LSMW bapi method...
    Business Object      BUS1001006   Standard material
    Method               SAVEDATA                    Create and change materia
    Message Type         MATMAS_BAPI                 Create and change materia
    Basic Type           MATMAS_BAPI02               Create and Change Materia

  • Problem with a view in XK01 transaction

    Hi All,
    I am working on upload conversion for Vendor Master. While doing conversion, i am getting a problem with a Contact person view in XK01 transaction. In contact person view the telephone field column sometimes allowing to add data ,sometimes it's not allowing data which results an error in conversion program saying that the telephone field in not an input field. I don't know why the view is showing the telephone field like that.
    Can any one suggest the solution for this problem. I know this is configuration problem with a view but i posted in ABAP forums.
    Thanks

    Hi Ben,
    I assume that you are writing a BDC program to upload contact person information. If so, you are trying to populate a table control here. Please check to see if you are calculating the index to assign values to the correct rows.
    if you are calculating index in your program then i think it should be configuration problem as you said.
    Thanks,
    Ganesh.

  • How to Handle dynamic views in mm01 transaction

    Hi ,
           Can any body say me how to handle Dynamic views in MM01 tcode. Since every time new view has to be selected, how can we manage this through our program.
    Regards,

    Hi Nilesh,
    Views will be vary based on the Material Type what u are selectiing , so u have to focus on this settings.
    Regards
    Peram

  • Problems on selecting views with french characters into column names

    Hi All,
    I have views with column names such as "Détermination Planimétriq" or "Année de construction:*";
    I can get in my c# function this columns names from ALL_VIEWS dictionary table, but if I try to make a selectionby use of an OracleCommand, Oracle returns an "Invalid identifier" error:
    SELECT "Détermination Planimétriq" FROM mytable;
    System.Data.OracleClient.OracleException (0x80131938): ORA-00904: "Determination Planimetriq": invalid identifier at System.Data.OracleClient.OracleConnection.CheckError(OciErrorHandle errorHandle, Int32 rc) at ...
    Any suggestion?...

    Be wary of using character codes outside the Western European "simple" alphanumeric [A-Z0-9] for object names, i.e. columns, table names, function and procedure names, and so on.
    First reason, there is a 30 character limit for most object names, and characters that have to be spelled out with unicode characters take more space, i.e.:
    select dump( 'Détermination Planimétriq'  ) from dual;
    DUMP('D?TERMINATIONPLANIM?TRIQ')
    Typ=96 Len=29: 68,239,[ ... ]Although the varchar string for that column name looks like 25 characters, it needs room for 29 to store the e<acute> character. And could also depend on the client settings. Using case sensitive names is not a best practice, its better to avoid specifying objects with the double quotes.
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements008.htm#i27570

  • How hide views in MM01

    Hello Experts,
    i am new to SPRO settings
    I have a requirement to hide the views in MM01 transaction.
    i want to hide MRP views and and some other views.
    Could anybody tell me how to acheive this.
    Thanks
    Note : Subject is FAQ,please search forum before posting.
    Edited by: Jeyakanthan A on Dec 25, 2011 12:13 AM

    > I have a requirement to hide the views in MM01 transaction.
    >
    > i want to hide MRP views and and some other views.
    Hi, From T-code OMS2 select the material type for which you do not want the MRP view, double click on the material type & deselect the MRP (all 4 MRP views are connected to these tab only) tab for that material type & save. Test & check.

  • Selection view

    how can we keep selection view in MM01 remain unchanged irrespective of fields that we input in the selection screen

    Hi,
      This is defined in SPRO -> Logistics-general ->Configuring the material master,
    Hope this helps,
    Rgds,

  • Open Transaction MM01/MM02 with multiple views using  CALL TRANSACTION

    Hi All,
    I want to open MM01/MM02 with multiple views using call transaction but in the parameter ID for Views (MMX) I can pass status of only one View.
      SET PARAMETER ID 'MAT' FIELD v_mat.
      SET PARAMETER ID 'VKO' FIELD ' '.
      SET PARAMETER ID 'MTA' FIELD IT_MOFF-MTART.
      SET PARAMETER ID 'MTP' FIELD IT_MOFF-MBRSH.
      SET PARAMETER ID 'VTW' FIELD ' '.
      SET PARAMETER ID 'BWT' FIELD ' '.
      SET PARAMETER ID 'LGT' FIELD ' '.
      SET PARAMETER ID 'MXX' FIELD 'K'.     "Sales View
      SET PARAMETER ID 'MM5' FIELD ' '.
      CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN
    Please suggest.
    Regards,
    Divya

    I do not exactly understand what you mean, but what i already did:
    - I checked that the fields are from the same type.
    - KUNNR is initialized! I already had a look to the debugger, that's why i'm posting this in this forum.
    any more comments on this ?
    maybe i have to change anything in the z-transaction. Btw, this is what the parameter looks like in the transaction:
    SELECTION-SCREEN BEGIN OF BLOCK Debitoren WITH FRAME TITLE text-001.
      PARAMETERS pkunnr type kna1-kunnr OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK Debitoren.
    Edited by: Sven Delangle on Sep 3, 2010 2:42 PM

  • How select different type views in MM01

    Hi abapers,
    plz tell me how to handle diffrent different type views in MM01.
    thanks in addvance

    hi,
    After the recording, you might see, that the selection of the views is
    monething like that: SELECTION(3) = 'X'
    SELECTION(4) = 'X'
    SELECTION(5) = 'X'
    you have to address the selected
    views by their index in the table.
    in Tcode SHDB, record MM01 transaction only for the MRP1 MRP2 MRP3 and use the same code in ur BDC prog.
    Look at the below code for MM01
    http://www.sap-img.com/abap/example-how-views-are-dealt-in-bdc.htm
    You have + button in the MK01 trasaction code, if you press that you
    can enter new record in the table control, so every time, enter a New
    record and press that + button, then enter the record then press + , like this we need to handle the table control
    Check the links -
    bdc -- mm01
    MM01 BDC
    mm01
    example:
    Example how Views are dealt in BDC
    Can any body tell me some views of MM  that we can use in BDC?
    ***This is a BDC for Semi finished Materials*******
    report ZBDC_SEMIFIN
           no standard page heading line-size 255.
    include bdcrecx1.
    Tables: Mara,"General Material Data
            mard,"Storage Location Data for Material
            mvke,"Sales Data for Material
            Makt,"Material Descriptions
            marc,"Plant Data for Material
            mbew,"Material Valuation
            rlgrap."Program Fields/Screen Fields for SAPLGRAP
    Data: begin of ITAB occurs 0,"Internal table for Semi-Finished Material
    Initial data
          matnr like mara-matnr,  "Material Code
          mbrsh like mara-mbrsh,  "Industry Data
          mtart like mara-mtart,  "Material Type
    Org Data
          Werks like marc-werks,  "Plant
          lgort like mard-lgort,  "Storage Location
          vkorg like mvke-vkorg,  "Sales Orgnization
          vtweg like mvke-vtweg,  "Distribution Chanel
    Basic 1
          Maktx Like makt-maktx,  "Description
          meins like mara-meins,  "Uom
          matkl like mara-matkl,  "Material Group
          BISMT LIKE MARA-BISMT, " Old Material Number
          spart like mara-spart,  "Division
          brgew(7),"like mara-brgew,  "Gross Weight
          gewei like MARA-GEWEI,  "Weight Unit
          ntgew(7)," like mara-ntgew,  "Net Weight
    Purchasing
           MAKTL LIKE MARA-MATKL, "Material Group
           ekwsl like MARA-EKWSL, " Purchasing Value Key
           ekgrp like MARC-EKGRP, " Purchasing Group
    Mrp 1
          disgr like MARC-DISGR,  "Mrp Group
        ekgrp like MARC-EKGRP,  "Purchasing group
          dismm like MARC-DISMM,  "Mrp Type
          dispo like MARC-DISPO,  "Mrp Controller
          disls like MARC-DISLS,  "Lot Size
          BSTMI like MARC-BSTMI,
          BSTMA like MARC-BSTMA,
          BSTRF like MARC-BSTRF,
          BSTFE like MARC-BSTFE,
    Mrp 2
          beskz like MARC-BESKZ,  "Procurement type
          lgpro like MARC-LGPRO,  "Production Storage Location
          dzeit(3),"like MARC-DZEIT,  "In house Production time
          plifz(3),"like MARC-PLIFZ,  "Planned delivery time
          fhori(3),"like MARC-FHORI,  "Sched margin key
          eisbe like MARC-EISBE,  "Safety stock
    Mrp 3
          PERKZ LIKE MARC-PERKZ,
          vrmod like MARC-VRMOD,  "Consumption mode
          vint1(3)," like MARC-VINT1,  "Backward Consumption period
          vint2(3),"like MARC-VINT2,  "Forward Consumption period
          mtvfp like MARC-MTVFP,  "Availability Check
    Mrp 4
          sbdkz like MARC-SBDKZ,  "Individual/ Collective
          SAUFT like MARC-SAUFT,  "Repetitive Manufacturing
          SFEPR like MARC-SFEPR,  "REM Profile
    Work Scheduling View
          ausme like MARC-AUSME,  "Unit of issue
          FEVOR LIKE MARC-FEVOR, "Production Scheduler
          SFCPF like MARC-SFCPF, "Production Scheduler Profile
          umren(5)," like RMMZU-UMREN,  "Val for base uom
          umrez(5) ,"like RMMZU-UMREz,  "Value for uo issue
    Accounting 1
          bklas like MBEW-BKLAS,  "Valuation Class
          vprsv like MBEW-VPRSV,  "Price Control Indicator
          verpr(7)," like MBEW-VERPR,  "Value/Price
          STPRS like MBEW-STPRS,
    *COSTING
         EKALR LIKE MBEW-EKALR," With qty str
         LOSGR like MARC-LOSGR, " Costing Lot size
        end of ITAB.
    Data: W_record type  I,  "Record Allready exists.
          w_trecord type I. "Total record processed
    start-of-selection.
    perform upload.        "Upload Data from Text File
    Perform Open_group.    "Create a session
    clear : w_record,w_trecord.
    perform semi. "Create Semi Finish Materials
    if w_trecord gt 0 or w_record gt 0.
      perform batch_job.
    endif.
    perform close_group.   "Close session
    FORM SEMI.
    loop at ITAB.
      Check for material in master        select single * from mara where matnr eq ITAB-matnr.
             if sy-subrc ne 0.
              w_trecord = w_trecord + 1.
    *Initial Screen
    perform bdc_dynpro      using 'SAPLMGMM' '0060'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-MTART'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=AUSW'.
    perform bdc_field       using 'RMMG1-MATNR'
                                  ITAB-MATNR.
    perform bdc_field       using 'RMMG1-MBRSH'
                                  'M'.
    perform bdc_field       using 'RMMG1-MTART'
                                  'HALB'.
    **********************Views*********************************
    *Select Views
    perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MSICHTAUSW-DYTXT(17'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'
                                   'X'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(09)'
                                  'X'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(12)'
                                  'X'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(13)'
                                  'X'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(14)'
                                  'X'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(15)'
                                  'X'..
    perform bdc_field       using 'MSICHTAUSW-KZSEL(17)'
                                  'X'.
    **********************Views*****************************
    *perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'MSICHTAUSW-DYTXT(01)'.
    *perform bdc_field       using 'BDC_OKCODE'
                                 '/00'.
    *perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'MSICHTAUSW-DYTXT(17)'.
    *perform bdc_field       using 'BDC_OKCODE'
                                 '/00'.
    *perform bdc_field       using 'MSICHTAUSW-KZSEL(17)'
                                 ITAB-KZSEL_17_011.
    *perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'MSICHTAUSW-DYTXT(01)'.
    *perform bdc_field       using 'BDC_OKCODE'
                                 '/00'.
    *perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'MSICHTAUSW-DYTXT(13)'.
    *perform bdc_field       using 'BDC_OKCODE'
                                 '=ENTR'.
    *perform bdc_field       using 'MSICHTAUSW-KZSEL(13)'
                                 ITAB-KZSEL_13_012.
    *Org Data
    perform bdc_dynpro      using 'SAPLMGMM' '0080'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-LGORT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'RMMG1-WERKS'
                                  ITAB-WERKS.
    perform bdc_field       using 'RMMG1-LGORT'
                                  ITAB-LGORT.
    *Basic 1
    perform bdc_dynpro      using 'SAPLMGMM' '4004'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SP09'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  ITAB-MAKTX.
    perform bdc_field       using 'MARA-MEINS'
                                  ITAB-MEINS.
    perform bdc_field       using 'MARA-MATKL'
                                  ITAB-MATKL.
    perform bdc_field       using 'MARA-BISMT'
                                  ITAB-BISMT.
    perform bdc_field       using 'MARA-SPART'
                                  ITAB-SPART.
    perform bdc_field       using 'MARA-MTPOS_MARA'
                                  'NORM'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MARA-NTGEW'.
    perform bdc_field       using 'MARA-BRGEW'
                                  ITAB-BRGEW.
    perform bdc_field       using 'MARA-GEWEI'
                                  ITAB-GEWEI.
    perform bdc_field       using 'MARA-NTGEW'
                                  ITAB-NTGEW.
    *Purchasing
    perform bdc_dynpro      using 'SAPLMGMM' '4000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SP12'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  ITAB-MAKTX.
    perform bdc_field       using 'MARA-MEINS'
                                  ITAB-MEINS.
    perform bdc_field       using 'MARC-EKGRP'
                                  ITAB-EKGRP.
    perform bdc_field       using 'MARA-MATKL'
                                  ITAB-MATKL.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MARA-EKWSL'.
    perform bdc_field       using 'MARA-EKWSL'
                                  ITAB-EKWSL.
    *MRP 1
    perform bdc_dynpro      using 'SAPLMGMM' '4000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SP13'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  ITAB-MAKTX.
    perform bdc_field       using 'MARA-MEINS'
                                  ITAB-MEINS.
    perform bdc_field       using 'MARC-EKGRP'
                                  ITAB-EKGRP.
    perform bdc_field       using 'MARC-DISMM'
                                  ITAB-DISMM.
    perform bdc_field       using 'MARC-DISPO'
                                  ITAB-DISPO.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MARC-DISLS'.
    perform bdc_field       using 'MARC-DISLS'
                                  ITAB-DISLS.
    IF ITAB-DISLS EQ 'EX'   .
    perform bdc_field       using 'MARC-BSTMI'
                                  ITAB-BSTMI."MIN LOT SIZE
    perform bdc_field       using 'MARC-BSTMA'
                                  ITAB-BSTMA."MAX LOT SIZE
    perform bdc_field       using 'MARC-BSTRF'
                                  ITAB-BSTRF."RNDING
    ELSEIF ITAB-DISLS EQ 'FX'.
    perform bdc_field       using 'MARC-BSTFE'
                                  ITAB-BSTFE.
    ENDIF.
    *MRP 2
    perform bdc_dynpro      using 'SAPLMGMM' '4000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SP14'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  ITAB-MAKTX.
    perform bdc_field       using 'MARC-BESKZ'
                                  ITAB-BESKZ.
    perform bdc_field       using 'MARC-LGPRO'
                                  ITAB-LGPRO.
    perform bdc_field       using 'MARC-DZEIT'
                                  ITAB-DZEIT.
    perform bdc_field       using 'MARC-PLIFZ'
                                  ITAB-PLIFZ.
    perform bdc_field       using 'MARC-FHORI'
                                  ITAB-FHORI.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MARC-EISBE'.
    perform bdc_field       using 'MARC-EISBE'
                                  ITAB-EISBE.
    *MRP 3
    perform bdc_dynpro      using 'SAPLMGMM' '4000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SP15'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  ITAB-MAKTX.
    perform bdc_field       using 'MARC-PERKZ'
                                  ITAB-PERKZ.
    perform bdc_field       using 'MARC-VRMOD'
                                  ITAB-VRMOD.
    perform bdc_field       using 'MARC-VINT1'
                                  ITAB-VINT1.
    perform bdc_field       using 'MARC-VINT2'
                                  ITAB-VINT2.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MARC-MTVFP'.
    perform bdc_field       using 'MARC-MTVFP'
                                  ITAB-MTVFP.
    *MRP 4
    perform bdc_dynpro      using 'SAPLMGMM' '4000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SP17'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  ITAB-MAKTX.
    perform bdc_field       using 'MARC-SBDKZ'
                                  ITAB-SBDKZ.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MARC-SFEPR'.
    perform bdc_field       using 'MARC-SAUFT'
                                  ITAB-SAUFT.
    perform bdc_field       using 'MARC-SFEPR'
                                  ITAB-SFEPR.
    *Work Scheduling
    perform bdc_dynpro      using 'SAPLMGMM' '4000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SP24'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  ITAB-MAKTX.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MARC-SFCPF'.
    perform bdc_field       using 'MARA-MEINS'
                                  ITAB-MEINS.
    perform bdc_field       using 'MARC-FEVOR'
                                  ITAB-FEVOR.
    perform bdc_field       using 'MARC-LGPRO'
                                  ITAB-LGPRO.
    perform bdc_field       using 'MARC-SFCPF'
                                  ITAB-SFCPF.
    perform bdc_field       using 'MARC-DZEIT'
                                  ITAB-DZEIT.
    *Check for Conversation Factor
              if ITAB-MEINS ne iTAB-ausme and iTAB-umren gt  0
                                          and iTAB-umrez gt  0.
              perform bdc_dynpro      using 'SAPLMGMM' '0510'.
              perform bdc_field       using:
                                      'BDC_OKCODE'    '=ENTR',
                                      'RMMZU-UMREN'   ITAB-UMREN,
                                      'RMMZU-UMREZ'   ITAB-UMREZ.
            endif.
    perform bdc_field       using 'MARC-LGPRO'
                                  itab-LGPRO.
    perform bdc_field       using 'MARC-DZEIT'
                                  itab-DZEIT.
    *Accounting
    perform bdc_dynpro      using 'SAPLMGMM' '4000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SP26'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  ITAB-MAKTX.
    perform bdc_field       using 'MARA-MEINS'
                                  ITAB-MEINS.
    perform bdc_field       using 'MARA-SPART'
                                  ITAB-SPART.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MBEW-STPRS'.
    perform bdc_field       using 'MBEW-BKLAS'
                                  ITAB-BKLAS.
    perform bdc_field       using 'MBEW-VPRSV'
                                  ITAB-VPRSV.
    perform bdc_field       using 'MBEW-STPRS'
                                  ITAB-STPRS.
    IF ITAB-VPRSV = 'S'.
    perform bdc_field       using 'MBEW-STPRS' "FILLS STD PRICE
                                  ITAB-VERPR.
    ELSEIF ITAB-VPRSV ='V'.
    perform bdc_field       using 'MBEW-VERPR' "FILLS VALUE
                                  ITAB-VERPR.
    ENDIF.
    *Cost Estimate
    perform bdc_dynpro      using 'SAPLMGMM' '4000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  ITAB-MAKTX.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MARC-PRCTR'.
    perform bdc_field       using 'MARA-MEINS'
                                  ITAB-MEINS.
    perform bdc_field       using 'MBEW-EKALR'
                                  ITAB-EKALR.
    perform bdc_field       using 'MARC-LOSGR'
                                  ITAB-LOSGR.
    perform bdc_transaction using 'MM01'.
    REFRESH BDCDATA.
        else.
             w_record = w_record + 1.
        endif.
    ENDLOOP.
    ENDFORM.
    form Upload.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
       CODEPAGE                      = ' '
       FILENAME                      = ' '
       FILETYPE                      = ' '
      TABLES
        DATA_TAB                      = ITAB
    EXCEPTIONS
       CONVERSION_ERROR              = 1
       INVALID_TABLE_WIDTH           = 2
       INVALID_TYPE                  = 3
       NO_BATCH                      = 4
       UNKNOWN_ERROR                 = 5
       GUI_REFUSE_FILETRANSFER       = 6
       OTHERS                        = 7.
    ENDFORM.
    form batch_job.
        uline.
          format color col_heading.
            if w_trecord gt 0.
            Write:/ 'Background Job has been Created for ',
                  w_trecord right-justified, 'Semi-Fin', 80 ''.
            write:/ 'Please follow the following steps to run this job',
                                                               80 ''.
            write:/ 'as listed below.', 80 ''.
            format color col_normal.
            skip.
            write:/05 '1.Goto Transaction SM35', 80 ''.
            write:/05 '2.Select your Session Name', 80 ''.
            write:/05 '3.Click On Execute Button', 80 ''.
           endif.
           if w_record gt 0.
             format color col_negative.
             write:/ w_record ,'records already existed', 80 ''.
             format color off.
           endif.
        uline.
    endform.

  • How rectify this problem in MM01 transaction in ECC6.0 ?

    Hi
    While creting material using MM01 transaction,
    Using MATERIAL as BLANK
    Industry sector as Mechanical Engineering and
    Material type as Spare Parts.
    I am getting error like Record 02  01 does not exist in table T133A.
    Thanks.

    Hi,
         You can do Edit -> Modification Operations -> Switch Off Modification assistant and then try changing it.
    Regards
    Rani.

  • Problem in mm02 for select view

    Hi
       get points and give me solution.
       Gurus
        I m creating one bdc for tcode mm02 ,in this bdc i want to select only one view
        QUALITY MANAGMENT but when i run bdc ,bdc select another view that r not  
        required . In our select view list required  QUALITY MANAGMENT comes
       after scrolling 3 times. so plz provide me solution .

    when u rcording u will get a screen no , before scrolling to next page for views.
    press page down once , press enter
    press page down second time , press enter
    press page down third time , press enter
    select your required view .
    after record completion ,
    insert the screen no  statement  perform ,,,,,,,
    before every page down ( for view )statement   in your bdc report .
    rgds
    Chalam

  • How to Upload different Material with Different Selection View

    Hello Experts!
    Iu2019m new in ABAP and trying to understand methods of LSMW. Now I get a question for you guys. Let say I need to upload 10 different materials. Now for instance.
    1st material has Basic data 1 and Basic data 2.
    2nd material has Basic data 1, Purchasing and Purchase Order text
    3rd material has Basic data 1, Classification, Purchasing, MRP 1, MRP 2 & MRP 3.
    4th material has Basic data 1 & Basic data 2.
    5th material has Basic data 1, Classification, Purchasing, MRP 1, MRP 2 & MRP 3.
    And so on. Now here Iu2019ve notice that every material has different INDUSTRY SECTOR, MATERIAL TYPE AND SELECTION VIEWS. I understand that Industry Sector, Material Type and other data I can specify in my file but how I can control SELECTION VIEWS for different materials. Because for different Selection view coming screens will become different accordingly.
    So can somebody can please tell me how I can control different select views for different material and upload it in SAP.
    Thanks.

    Hi
    I understand that you are performing LSMW on MM01 transaction code..and are uploading through batch input in LSMW.
    Actually, for a tcode like MM01 I dont think you should use LSMW, instead you can go with the BAPI: BAPI_MATERIAL_SAVEDATA.
    The views is a serious problem with MM01 when performing using batch input..
    So, go through the documentation in SE37 tcode for the BAPI...
    The information you get there will help you on how to proceed.
    Regards,
    Vishwa.

  • Selection view in MM02 BDC program

    Hi Experts,
    I am doing BDC Session method for Tcode MM02.There i am getting selection View screen for different material.But if i select a material in Sales view i need to select Sales :Sales org dAta.
    It's coming third position.
    But for some material it's coming fourth view.
    If i record bdc in third position it'll take third view some other. how i can select the view in selection view.
    Please,Anybody knows give me the suggestion.
    Thanks & Regards,
    Nandha

    Hi,
    use this Function module <b>SELECTION_VIEWS_FIND</b> to find the view position.
    This One of functional modules for those who still has to use BDC for Material Master transactions (MM01 and MM02). Allows to determine line number for desired view in the "Select View(s)" window, to prepare BDC for the view access
    Find the positon of the View based on this function module and write the code to select that perticular view.
    Hope this solves your problem
    Thanks
    Sudheer

  • Add field 'ebeln' in selection-screen of FBL1N transaction

    Hi Experts,
    Is there a way to display the field 'ebeln' in transaction FBL1N for certain document types and company code only..?
    I have already tried this steps below..But the problem is, this changes below is applicable to all document types.
    1. Trans. SE36, indicate logical database KDF. <- Logical database for FBL1N transaction
    2. Details > Selection views
    3. Update the standard SAP view
    4. Select table BSIK
    5. Include field ebeln.
    Regards,
    Ekitzv

    Dear,
    Please kindly note that field BSEG-EBELN is not possible for being shown
    with a value in FBL1N (and FBL5N).
    Since Release 3.0, several purchase orders can be offset in one invoice.
    As a result, different purchasing document numbers (BSEG-EBELN) can be
    contained in the different G/L account line items..
    As a result, it is no longer possible to enter a unique purchasing
    document number in the customer/vendor line item.Field BSEG-EBELN is not
    filled in the vendor line item and therefore cannot be displayed in the
    line item display for customers/vendors.
    You could reference note 152335 to find a more detailed explanation and
    possible solution of the issue.
    It is only possible to view the purchase order number(EBELN) in FBL3N.
    As a workaround, you may branch from vendor line item display to
    'Document overview' and you will see the PO number for the respective
    accounting document in other G/L account line items.
    What You are doing is to insert the field EBELN into the Dynamic selection of the FBL1N but this does not mean to have it available into the FBL1N layout.
    I hope the System behaviour is clerer.
    Mauri

  • Bdc for mm01 transaction

    Hi friends,
        I have to upload data using mm01 transaction.
        My program has to select respective views according to material type.
        Can anybody help me.
    Thanks and regards,
    Pavani.

    Hi,
    You will save lot of time & energy if you opt to use BAPI_MATERIAL_SAVEDATA. Have a look @the sample code. Please note Do not allocate any points as this code doesn't belong to me, however I have tested it & it works fine.
    TABLES bapi_MVKEx.
    * FLAGS
    DATA: F_STOP. " Flag used to stop processing
    * DATA DECLARATIONS
    DATA : V_EMPTY TYPE I, " No. of empty records
           V_TOTAL TYPE I. " Total no. of records.
    * STRUCTURES & INTERNAL TABLES
    *--- BAPI structures
    DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control
                                      "Information
    BAPI_MAKT LIKE BAPI_MAKT, " Material Description
    BAPI_MARA1 LIKE BAPI_MARA, " Client Data
    BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
    BAPI_MARC1 LIKE BAPI_MARC, " Plant View
    BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
    BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
    BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
    BAPI_MVKE1 LIKE BAPI_MVKE, "Sales Data
    BAPI_RETURN LIKE BAPIRET2. " Return Parameter
    DATA: return     LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    *--- Internal table to hold excel file data
    DATA: IT_INTERN TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    *--- Internal table to hold Matetrial descriptions
    DATA: BEGIN OF IT_MAKT OCCURS 100.
    INCLUDE STRUCTURE BAPI_MAKT.
    DATA: END OF IT_MAKT.
    *--- Internal to hold the records in the text file
    DATA : BEGIN OF IT_DATA OCCURS 100,
    WERKS(4), " Plant
    MTART(4), " Material type
    MATNR(18), " Material number
    MATKL(9) , " Material group
    MBRSH(1), " Industry sector
    MEINS(3), " Base unit of measure
    GEWEI(3), " Weight Unit
    SPART(2), " Division
    EKGRP(3), " Purchasing group
    VPRSV(1), " Price control indicator
    STPRS(12), " Standard price
    PEINH(3), " Price unit
    SPRAS(2), " Language key
    MAKTX(40), " Material description
    MTPOS_MARA(4), "Item Category Group
    vkorg(4), "Sales Org
    vtweg(2), "Dist channel
    Prdha(18), "Prod Hierarchy
    ladgr(4), " Loading Group
    prctr(10), "Profit Centr
    xchpf(1), "Batch Mgmt
    kondm(2), "Material Pricing Grp
    ktgrm(2), "Account Assignment Grp
    mvgr1(4),
    mvgr2(4),
    mvgr3(4),
    versg(1), "Material Statistics Grp
    * Added fields not part of the layout
    sapmatnr(18),
    END OF IT_DATA.
    * SELECTION SCREEN. *
    SELECTION-SCREEN BEGIN OF BLOCK SCR1 WITH FRAME TITLE TEXT-111.
    PARAMETER : P_FILE TYPE RLGRAP-FILENAME OBLIGATORY DEFAULT " Input File
    'H:\DATA\Nova\rbc\zrbc129.xls'.
    PARAMETER : P_MAX(4) OBLIGATORY DEFAULT '100'. " no.of recs in a session
    PARAMETERS: P_HEADER TYPE I DEFAULT 0. " Header Lines
    PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
    P_BEGROW TYPE I DEFAULT 1 NO-DISPLAY,
    P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
    P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
    SELECTION-SCREEN END OF BLOCK SCR1.
    * AT SELECTION-SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    *--- Validating file
    PERFORM VALIDATE_FILE USING P_FILE.
    * START-OF-SELECTION
    START-OF-SELECTION.
    *--- Perform to convert the Excel data into an internal table
    PERFORM CONVERT_XLS_ITAB.
    IF NOT IT_DATA[] IS INITIAL.
    *--- Perform to delete Header lines
    PERFORM DELETE_HEADER_EMPTY_RECS.
    ENDIF.
    * END OF SELECTION.
    END-OF-SELECTION.
    *--- Perform to upload Material Master data
    PERFORM UPLOAD_MATMAS.
    * Form : validate_input_file
    * Description : To provide F4 help for file if read from PC
    FORM VALIDATE_FILE USING F_FILE TYPE RLGRAP-FILENAME.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    exporting
    STATIC = 'X'
    CHANGING
    FILE_NAME = F_FILE
    EXCEPTIONS
    MASK_TOO_LONG = 1
    OTHERS = 2.
    IF SY-SUBRC <> 0.
    *MESSAGE S010" 'Error in getting filename'.
    ENDIF.
    ENDFORM. " validate_input_file
    *& Form CONVER_XLS_ITAB
    * To convert XLS to internal table
    FORM CONVERT_XLS_ITAB.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
    FILENAME = P_FILE
    I_BEGIN_COL = P_BEGCOL
    I_BEGIN_ROW = P_BEGROW
    I_END_COL = P_ENDCOL
    I_END_ROW = P_ENDROW
    TABLES
    INTERN = IT_INTERN.
    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 to move the data into an internal data
    PERFORM MOVE_DATA.
    ENDFORM. " CONVERT_XLS_ITAB
    *& Form MOVE_DATA
    * text
    FORM MOVE_DATA.
    DATA : LV_INDEX TYPE I.
    FIELD-SYMBOLS: <fs> type any.
    *--- Sorting the internal table
    SORT IT_INTERN BY ROW COL.
    CLEAR IT_INTERN.
    LOOP AT IT_INTERN.
    MOVE IT_INTERN-COL TO LV_INDEX.
    *--- Assigning the each record to an internal table row
    ASSIGN COMPONENT LV_INDEX OF STRUCTURE IT_DATA TO <fs>.
    *--- Asigning the field value to a field symbol
    <fs> = it_intern-value.
    *MOVE IT_INTERN-VALUE TO <fs>.
    AT END OF ROW.
    APPEND IT_DATA.
    CLEAR IT_DATA.
    ENDAT.
    ENDLOOP.
    ENDFORM. " MOVE_DATA
    *& Form DELETE_HEADER_EMPTY_RECS
    * To delete the Header and empty records
    FORM DELETE_HEADER_EMPTY_RECS.
    DATA: LV_TABIX LIKE SY-TABIX.
    IF NOT P_HEADER IS INITIAL.
    LOOP AT IT_DATA.
    IF P_HEADER > 0 AND NOT IT_DATA IS INITIAL.
    DELETE IT_DATA FROM 1 TO P_HEADER.
    * P_HEADER = 0.
    EXIT.
    ENDIF.
    ENDLOOP.
    ENDIF.
    CLEAR IT_DATA.
    *--- To delete the empty lines from internal table
    LOOP AT IT_DATA.
    LV_TABIX = SY-TABIX.
    IF IT_DATA IS INITIAL.
    V_EMPTY = V_EMPTY + 1.
    DELETE IT_DATA INDEX LV_TABIX..
    ENDIF.
    ENDLOOP.
    CLEAR IT_DATA.
    *--- Total no of recs in file
    DESCRIBE TABLE IT_DATA LINES V_TOTAL.
    IF V_TOTAL = 0.
    *MESSAGE I013" No records in the file
    F_STOP = 'X'.
    STOP.
    ENDIF.
    ENDFORM. " DELETE_HEADER_EMPTY_RECS
    *& Form UPLOAD_MATMAS
    * to upload Material Master data
    FORM UPLOAD_MATMAS .
    LOOP AT IT_DATA.
    * Header
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
      EXPORTING
        input              = it_data-matnr
    IMPORTING
       OUTPUT             =  it_data-sapmatnr
    EXCEPTIONS
       LENGTH_ERROR       = 1
       OTHERS             = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    BAPI_HEAD-MATERIAL = IT_DATA-sapMATNR.
    BAPI_HEAD-IND_SECTOR = IT_DATA-MBRSH.
    BAPI_HEAD-MATL_TYPE = IT_DATA-MTART.
    BAPI_HEAD-BASIC_VIEW = 'X'.
    BAPI_HEAD-PURCHASE_VIEW = 'X'.
    BAPI_HEAD-ACCOUNT_VIEW = 'X'.
    BAPI_HEAD-SALES_VIEW = 'X'.
    BAPI_HEAD-QUALITY_VIEW = 'X'.
    * Material Description
    REFRESH IT_MAKT.
    IT_MAKT-LANGU = IT_DATA-SPRAS.
    IT_MAKT-MATL_DESC = IT_DATA-MAKTX.
    APPEND IT_MAKT.
    * Client Data - Basic
    BAPI_MARA1-MATL_GROUP = IT_DATA-MATKL.
    BAPI_MARA1-BASE_UOM = IT_DATA-MEINS.
    BAPI_MARA1-UNIT_OF_WT = IT_DATA-GEWEI.
    BAPI_MARA1-DIVISION = IT_DATA-SPART.
    BAPI_MARA1-item_cat = it_data-mtpos_mara.
    BAPI_MARA1-PROD_HIER = it_data-prdha.
    bapi_marax-item_cat = 'X'.
    bapi_marax-prod_hier = 'X'.
    BAPI_MARAX-MATL_GROUP = 'X'.
    BAPI_MARAX-BASE_UOM = 'X'.
    BAPI_MARAX-UNIT_OF_WT = 'X'.
    BAPI_MARAX-DIVISION = 'X'.
    * Plant - Purchasing
    BAPI_MARC1-PLANT = IT_DATA-WERKS.
    BAPI_MARC1-PUR_GROUP = IT_DATA-EKGRP.
    BAPI_MARC1-LOADINGGRP = IT_DATA-LADGR.
    BAPI_MARC1-PROFIT_CTR = IT_DATA-prctr.
    BAPI_MARC1-BATCH_MGMT = IT_DATA-xchpf.
    bapi_marc1-qm_authgrp = 'X'.
    bapi_marcx-qm_authgrp = 'X'.
    BAPI_MARCX-PLANT = IT_DATA-WERKS.
    BAPI_MARCX-PUR_GROUP = 'X'.
    BAPI_MARCX-LOADINGGRP = 'X'.
    BAPI_MARCX-PROFIT_CTR = 'X'.
    BAPI_MARCX-BATCH_MGMT = 'X'.
    * Accounting
    BAPI_MBEW1-VAL_AREA = IT_DATA-WERKS.
    BAPI_MBEW1-PRICE_CTRL = IT_DATA-VPRSV.
    BAPI_MBEW1-STD_PRICE = IT_DATA-STPRS.
    BAPI_MBEW1-PRICE_UNIT = IT_DATA-PEINH.
    BAPI_MBEWX-VAL_AREA = IT_DATA-WERKS.
    BAPI_MBEWX-PRICE_CTRL = 'X'.
    BAPI_MBEWX-STD_PRICE = 'X'.
    BAPI_MBEWX-PRICE_UNIT = 'X'.
    * Sales Data
    BAPI_MVKE1-ITEM_CAT = IT_DATA-MTPOS_MARA.
    BAPI_MVKEX-ITEM_CAT = 'X'.
    BAPI_MVKE1-SALES_ORG = IT_DATA-vkorg.
    BAPI_MVKEX-SALES_ORG = IT_DATA-vkorg.
    BAPI_MVKE1-DISTR_CHAN = IT_DATA-vtweg.
    BAPI_MVKEX-DISTR_CHAN = IT_DATA-vtweg.
    BAPI_MVKE1-MAT_PR_GRP = IT_DATA-kondm.
    BAPI_MVKEX-MAT_PR_GRP = 'X'.
    BAPI_MVKE1-ACCT_ASSGT = IT_DATA-ktgrm.
    BAPI_MVKEX-ACCT_ASSGT = 'X'.
    BAPI_MVKE1-MATL_GRP_1 = IT_DATA-mvgr1.
    BAPI_MVKEX-MATL_GRP_1 = 'X'.
    BAPI_MVKE1-MATL_GRP_2 = IT_DATA-mvgr2.
    BAPI_MVKEX-MATL_GRP_2 = 'X'.
    BAPI_MVKE1-MATL_GRP_3 = IT_DATA-mvgr3.
    BAPI_MVKEX-MATL_GRP_3 = 'X'.
    BAPI_MVKE1-matl_stats = IT_DATA-versg.
    BAPI_MVKEX-matl_stats = 'X'.
    *--- BAPI to create material
    call function 'BAPI_MATERIAL_SAVEDATA'
    exporting
    HEADDATA = BAPI_HEAD
    CLIENTDATA = BAPI_MARA1
    CLIENTDATAX = BAPI_MARAX
    PLANTDATA = BAPI_MARC1
    PLANTDATAX = BAPI_MARCX
    SALESDATA = BAPI_MVKE1
    SALESDATAX = BAPI_MVKEX
    IMPORTING
    RETURN = BAPI_RETURN
    TABLES
    MATERIALDESCRIPTION = IT_MAKT
    IF BAPI_RETURN-TYPE = 'E'.
    WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,it_data-matnr.
    ELSEIF BAPI_RETURN-TYPE = 'S'.
    WRITE: 'Successfully created/Changed material' ,it_data-matnr.
          CLEAR return.
          REFRESH return.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
               IMPORTING
                    return = return.
    ENDIF.
    ENDLOOP.
    ENDFORM. " UPLOAD_MATMAS
    Regards
    Raju Chitale

Maybe you are looking for