BDC Recording of Forecasting View of MM01

Hi Everyone,
              I've been working on a BDC to upload consumption values in the Forecasting View of MM01.When there are more than 11 line items then we have to scroll the "TABLE CONTROL". But Page Down does not work in this BDC. The Code that's being used for Page Down in this TABLE CONTROL is "PB09". I've also tried using various codes like P++ etc. I've recorded many MM01 times but could not get a concrete answer.How to get this Page Down work?
Any Inputs will be very helpful.
Regards
Ramky.G

Hi,
Better to use following function module
BAPI_MATERIAL_SAVEDATA
if you find it is usefule , just reward me points
Thanks
Ramesh

Similar Messages

  • BDC RECORDING  FOR MM01 PROBLEM

    Hi Experts ,
    I did recording using SHDB for TC MM01. I selected Purchase order text as one of the view but after saving my recording I not able to find the text I have entered.
    Please help.

    while recording
    if the view is selected
    and the text is not getting displayed its because of control tecnoogy being used in enjoy transactions so u cant record if u see there will be a choose button in purchase order text view
    click that it will take u to sap script editor where u can enter text

  • 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

  • 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.

  • Help for creating classification view in mm01

    hi guys can anybody help on creating classification views in mm01 using bdc recording i need a step by step procedure . since when i tryed in mm01 there are filds like class name i dont know where all these data's to find one more thing is i was asked to create classification view using bdc recording ...please help me with some programs if u have

    Hi,
    You need to use the BAPI 'BAPI_OBJCL_CREATE' to create characteristics for a material.
    The characteristics are need to be passed in the table ALLOCVALUESCHAR.
    If you do not know the values for a particular characteristics then you canmake use of FM
    BAPI_CLASS_GET_CHARACTERISTICS and BAPI_CHARACT_GETDETAIL to get the values.
    Regards,
    Ankur Parab

  • Unable To Capture View in MM01

    Dear All,
    I am unable to capture the 'Accounting' view in MM01.
    In recording in SHDB, I find the accounting view cannot be captured.
    Please advice.
    Regards,
    Prosenjit.

    Hi Prosenjit,
    try to do this it may be help full to you...
    while selecting the views in MM01 at the time of recording. If you want to capture Accounting view after selecting required views please press PAGE DOWN button in the key board then select Account view by doing this you can capture the Account view.....
    please reward if this helpfull.

  • Material Master BDC recording

    hi gurus,
    i am trying to do a material master creation using BDC recording,
    i am new i dont know how to modify the code,
    the following is the code, please let me know how to make changes.
    report ZTEST95
           no standard page heading line-size 255.
    include bdcrecx1.
    parameters: dataset(132) lower case default
                                  'C:\Documents and Settings\Deskt'
                                & 'op\test95.txt'.
       DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***
      If it is nessesary to change the data section use the rules:
      1.) Each definition of a field exists of two lines
      2.) The first line shows exactly the comment
          '* data element: ' followed with the data element
          which describes the field.
          If you don't have a data element use the
          comment without a data element name
      3.) The second line shows the fieldname of the
          structure, the fieldname must consist of
          a fieldname and optional the character '_' and
          three numbers and the field length in brackets
      4.) Each field must be type C.
    Generated data section with specific formatting - DO NOT CHANGE  ***
    data: begin of record,
    data element: MATNR
            MATNR_001(040),
    data element: MBRSH
            MBRSH_002(001),
    data element: MTART
            MTART_003(004),
    data element: REF_MATNR
            MATNR_004(040),
    data element: XFELD
            KZSEL_01_005(001),
    data element: MAKTX
            MAKTX_006(040),
    data element: MEINS
            MEINS_007(003),
    data element: MATKL
            MATKL_008(009),
    data element: SPART
            SPART_009(002),
    data element: MTPOS_MARA
            MTPOS_MARA_010(004),
    data element: BRGEW
            BRGEW_011(017),
    data element: GEWEI
            GEWEI_012(003),
    data element: NTGEW
            NTGEW_013(017),
          end of record.
    End generated data section ***
    start-of-selection.
    perform open_dataset using dataset.
    perform open_group.
    do.
    read dataset dataset into record.
    if sy-subrc <> 0. exit. endif.
    perform bdc_dynpro      using 'SAPLMGMM' '0060'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-MATNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'RMMG1-MATNR'
                                  record-MATNR_001.
    perform bdc_field       using 'RMMG1-MBRSH'
                                  record-MBRSH_002.
    perform bdc_field       using 'RMMG1-MTART'
                                  record-MTART_003.
    perform bdc_field       using 'RMMG1_REF-MATNR'
                                  record-MATNR_004.
    perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MSICHTAUSW-DYTXT(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'
                                  record-KZSEL_01_005.
    perform bdc_dynpro      using 'SAPLMGMM' '4004'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  record-MAKTX_006.
    perform bdc_field       using 'MARA-MEINS'
                                  record-MEINS_007.
    perform bdc_field       using 'MARA-MATKL'
                                  record-MATKL_008.
    perform bdc_field       using 'MARA-SPART'
                                  record-SPART_009.
    perform bdc_field       using 'MARA-MTPOS_MARA'
                                  record-MTPOS_MARA_010.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MARA-BRGEW'.
    perform bdc_field       using 'MARA-BRGEW'
                                  record-BRGEW_011.
    perform bdc_field       using 'MARA-GEWEI'
                                  record-GEWEI_012.
    perform bdc_field       using 'MARA-NTGEW'
                                  record-NTGEW_013.
    perform bdc_dynpro      using 'SAPLSPO1' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=YES'.
    perform bdc_transaction using 'MM01'.
    enddo.
    perform close_group.
    perform close_dataset using dataset.
    thanks.

    Hi,
    It is better if the Material Master creation step is done by LSMW - Direct Input method with the following object:
    Object               0020   Material master
    Method               0000                 
    Program name         RMDATIND             
    Program type         D   Direct input
    Check the program documentation for more details.
    For a sample data file generation ( Sequential file ),  check the program RMDATGEN
    If the reqmt., is for a repetetive loading of Material Master you could schedule / execute the LSMW by following program: /SAPDMC/SAP_LSMW_INTERFACE.
    Hope this helps.
    Best Regards, Murugesh

  • Problem In Converting BDC recording to program

    Hi to all,
    I have recorded ZMM01 using t-code MM01 to create material with accounting codes. Here i am able to create material with accounting codes. But when I am converting that into program there i am getting problem(not creating any material and not showing any error). So please guide me.
    Any help would be appreciated .

    Have you tried executing your BDC program in debug mode with mode A? Also, are you trapping errors in BDCMSGCOLL structure?
    Thanks,
    Santosh

  • BDC recording for transaction 'Me01'

    Hi,
    Can u help me in BDC recording for transaction 'ME01' .
    I have no idea for transaction 'ME01' .
    give sample code if possible.
    Thanks

    For creating source list you will check that purchasing view has been maintained for this material
    Source list for resticting, purcasing a material from a specific vendor only for the period specified in source list
    Regards,
    Amit R.

  • Forecasting view in material master

    I want to add forecasting view to Finished goods for all the exiting materials. Pl help how can I do it .
    Thanks

    You have many options for this.
    You can use CATT SCRIPTs or you can use BDC.
    Cheers
    NS

  • Sequencing of views in MM01

    Hi Gurus
    Customer Requirement is to maintain the sequencing of views in MM01.
    say sequence is KTEN...
    If we try to maintain view N after K then there should be error..
    any idea welcome..
    Thanks in advance

    Hi
    It is always better to maintain the sequence like this (same as MM01 sequence)
    Basic Data 1
    Basic Data 2
    Classification
    Sales: Sales Org. Data 1
    Sales: Sales Org. Data 2
    Sales: General/Plant Data
    Foreign Trade: Export Data
    Sales Text
    Purchasing
    Foreign Trade: Import Data
    Purchase Order Text
    MRP 1
    MRP 2
    MRP 3
    MRP 4
    Forecasting
    Work Scheduling
    Production Resources/Tools
    General Plant Data / Storage 1
    General Plant Data / Storage 2
    Warehouse Management 1
    Warehouse Management 2
    Quality Management
    Accounting 1
    Accounting 2
    Costing 1
    Costing 2
    Sometimes it creates problem when you won't follow this
    for example
    If you wants to come to Sales data2, without entering the basic sales data in 1 then it will be a problem.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • BDC Recording for creating a new Transport request

    Hi folks,
            I have done BDC to update a view. It has to update the values in view and create a new request at run time. Its working fine in foreground. But when it comes to back ground, it shows error, saying no batch input data for that screen. Here i am cliking 'create new request' icon to create new request and system will generate a request at runtime. So it might be showign that error. Could any body suggest me how to handle this error. How to create a new request in BDC recording at ruen time....Thanks in advance..
              Shyam.

    Hi Shyam,
    Please check the recording. I think you have missed some thing  while recording.
    Best regards,
    raam

  • Problem in BDC Recording

    Hi I am having a problem in BDC Recording. My requirement is that when I input data in transaction fb02 to block the invoices, It shows a list of invoices. Now i need to double click that item(line) in which PK = 06 at runtime during bdc recording. During BDC recording it takes the line number on which we have clicked which is constant but i want it dynamic that if item 1 is having PK=6, that line should be double clicked and if item 3 is having PK=6, the third item should be double clicked to open another screen. Kindly help me... Thanks in advance.

    Hi Ravi,
    While writing your code that is in your code you know which line number is having the PK = 06, then you can use the same line number and add the code for double click after that.
    Regards,
    Atish

  • Need help for bdc recording TC fp05

    Hi,
    My requirement is: I want to create a Payment lot using fp05 and then post   
                                it through a program.
    First i want to know is there any BAPI available to do that.
    I couldnt find any BAPI. That is why i did BDC Recording. The recording is working till Payment Lot creation. But after creation when i try to post the lot, it is giving status as "Direct Posting Stopped". Again if i come out of the program and then manually post it, it is working fine. But through program if i try to post it, it is giving status as "Direct Posting Stopped".
    Is this because we cannot Post a Payment Lot programatically or some Authorisation issue is there.
    Can anyone respond immediately
    Regards,
    Sheron

    Hi Raj,
    May be this can be useful.
    BAPI_INSPOPER_RECORDRESULTS
    You can search other in se37 BAPIINSP.
    Regards,
    Amit Mittal.

  • What is the tcode for bdc recording and how to do in hr-abap for pa and om

    hi,
         I need to do the bdc recording for pa and om. So, can any of you tell me how to do and what are the tcodes we have to use.
    thanks & regards,
        Sekhar.

    Hi ,
    Here is the link from you will get all the transaction code
    http://www.sap-basis-abap.com/saphr004.htm
    As far PA specfic some tcodes are given below
    PA20  Display HR Master Data
    PA30  Maintain HR Master Data
    PA40  Personnel Actions
    PA41  Correct Actions
    PA42  Fast Entry for Actions
    PA46  Import from Resumix
    PA47  Export to Resumix
    PA48  Hiring from non-SAP system
    PA51  Display Time Data
    PA53  Display Time Data
    PA61  Maintain Time Data
    PA62  List Entry of Additional Data
    PA63  Maintain Time Data
    PA64  Calendar Entry
    PA70  Fast Entry
    PA71  Fast Entry of Time Data
    PA88  Benefits
    For OM specific
    PP01  Maintain Plan Data (menu-guided)

Maybe you are looking for

  • Help needed in SRM-Bid Invitation creation

    Can any one send me steaps to create Bid Invitation in SRM. Thanks in Advance. Regards Uday

  • Applet in a .jar file?

    I want to program a program which can be used as application or as applet. Is it possible to create a .jar file and use something inside as applet? What would the <applet> tag look like?

  • Netflix damage iPad screen?

    Hi, I've heard and read that diaplaying static images could cause damage a screen, and that's my concern Hi, Recently got an iPad 2 mainly to watch netflix and also bought an Apple Digital AV adapter today so I can watch it on my TV. The thing is tha

  • Employee Id

    I have imported employees through dtw.Each employee is identified by Employee No.But the primary key of the record is displayed as Employee No.I tried setting EmployeeID,IDNumber but were of no use.The field empID from the table is displayed as Emplo

  • ITunes dosen´t work

    No se qué pasa con iTunes, me sale un mensaje diciendo que falta el archivo: MSVCR80.dll  "intente reinstalar el programa para corregir este problema" Ya lo reinstalé dos veces y sigue aparaciendo el mismo mensaje. Qué debo hacer???? Translation What