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

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

  • In bdc how we handle page phone area in transaction pa30

    in bdc how we handle page phone area in transaction pa30.suppose one maintain phone no but not pager no.in that case how we will handle

    in my system ..i have phone number only displayed...if you want to put page number also then add a ddition qualifier like PG or some number by contacting functional guys..
    regards:)

  • How to create dynamic view in hr report category

    i want to make company code mandetory in in selection screen given by logical data base PNP here i want to make field mandetory. so how to create dynamic view in hr report category.
    thanks in advance

    solved by self

  • How to handle EXTENDED Views  SQL 2000 to Oracle Migration

    Hi All,
    I am in the process of migrating SQL server 2000 database to Orcle databse. I would like to know how to handle the views created in SQL server with Extended clause.
    See below for example for SQL 2000 view.
    create view "Order Details Extended" AS
    SELECT "Order Details".OrderID, "Order Details".ProductID, Products.ProductName,
         "Order Details".UnitPrice, "Order Details".Quantity, "Order Details".Discount,
         (CONVERT(money,("Order Details".UnitPrice*Quantity*(1-Discount)/100))*100) AS ExtendedPrice
    FROM Products INNER JOIN "Order Details" ON Products.ProductID = "Order Details".ProductID
    Thanks in advance for your reply.
    Ramesh

    Ramesh
    The Workbench has a problem with spaces in identifiers which will be fixed in a later release.
    Apart from that large drawback the view should work ok. [The parser handles convert and aliases]
    Turloch

  • How to handle tree view control in business one ui sdk

    Hi,
    Can any guide me on how to handle tree view control in business one ui sdk?
    Thanking in advance.
    With Regards,
    Ram.

    Hi Ram,
    Nowadays there are some trouble with the treeview controls in Windows XP SP2 as you can see here:
    It is said that SAP will publish a treeview control in 2005 SP1.
    Hope helps,
    Ibai Peñ

  • 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 to handle Dynamic Fiscal calendar

    Hi FolksWe have designed our cubes in such a way that the time dimension is actually split into 2 time dimensions "Fiscal Year" and "Fiscal Time". The "Fiscal Time" changes every four years, in that, it has an extra week. So usually the Month February has 4 Weeks WK01, WK02, WK03, WK04, but this year it has an exta week WK05 and usually WK05 falls under March. So we are not sure how to handle this, other than combining the both dimensions, which has a huge impact on our historical data. And also we think the current design is more elegant, if we do not have this problem. Is there any way we can manage this with out comibing the both time dimensions.1. Fiscal Year FY01 FY02 FY032. FY Time Q1 AUG Q1 Wk01 Sep Oct Q2 Q3 Feb Q3 Wk01 Q3 Wk02 Q3 Wk03 Q3 Wk04

    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

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

  • How to handle dynamic screens in bdc

    HI SIR,
    i am working on BDC for CA02 in this i have probelm that if operation 10 it doesnot contains any items it showing one  screen and if operation 10 contain some items
    and its item counter increasing automatically in this case it coming to this screen through some other screen.so.plz help me how to handle this dynamic screens in bdc ,plz help.

    hi sir,
              now i am working BDC UPLOAD with tcode CA02 in this in second screen their are some rows like in table control
    opt
    10                x
    20
    30                 x
    like above in this if row one of column contains 'x' then if i want to fill sub item then it display i one screen EX 100 else if it dsplay screen 200(ie item 10 already contains subitems it display  x in one row column(i.e selected check box) else it show unselected check box.plz tell how to know wheather check box is selected or not from screen to .plz tell.
    thanking u

  • How to use Dynamic View as a Prompt Table?

    Can someone give me or point me to an example of the code / syntax needed for this?
    First, to be clear, I'm not simply trying to have the name of the prompt table be a variable; e.g. I don't want to define the prompt table as %EDITTABLE and set the value of this field in pcode. I want to have a view where I can dynamically at run time change the WHERE clause in the SQL.
    In particular, I want to be able to specify WHERE BUSINESS_UNIT IN (xxxx)
    and to build the list of values at run time in pcode.
    - How should I code the SQL in the record? (Or do I leave the SQL blank and somehow pass the entire SQL from pcode?)
    - How do I code the SQL in my pcode, and how will this be passed to or incorporated into the prompt table? I know that I can code something like
    &BU_List = "'" || &BU1 || "','" || &BU2 || "'";
    but what's the next step?
    Thanks.
    Mike
    HCM 9.0

    I figured out the answer:
    - The prompt table is a dynamic view.
    - The field that points to the prompt table has a property called SQLText. Assigning SQL to that field/property causes the dynamic view's SQL (if any) to be overwritten with the new SQL.
    In this example, I take the basic SQL from a SQL object, then append an AND clause (which contains a list of BU values that I built in previous pcode) and assigns the concatenated SQL to field.SQLText.
    &SQLText = FetchSQL(SQL.B_DISTINCT_JOB_UNION);
    &WhereBU = " AND BUSINESS_UNIT IN (" | &BU_List | ")";
    B_BN016R_RUN.UNION_CD.SqlText = &SQLText | &WhereBU;

  • How to add three views in MM01

    How to add three custom views in MM01 based on material type.
    Regards,
    Malla

    hi,
    This will solve your problem.
    [https://forums.sdn.sap.com/click.jspa?searchID=19403068&messageID=5708251]

  • How to create dynamic View Object and Dynamic Table

    Dear ll
    I want to create a dynamic view object and display the output in a dynamic table on the page.
    I am using Jdeveloper 12c "Studio Edition Version 12.1.2.0.0"
    This what I did:
    1- I created a read only view object with this query "Select sysdate from dual"
    2- I added this View object to the application module
    3- I created a new method that change the query of this View object at runtime
        public void changeVoQuery(String dbViewName) {
            String sqlstm = "Select * From " + dbViewName;
            ViewObject dynamicVo = this.findViewObject("DynamicVo");
            if (dynamicVo != null) {
                dynamicVo.remove();
            dynamicVo = this.createViewObjectFromQueryStmt("DynamicVo", sqlstm);
            dynamicVo.executeQuery();
    4- I run the application module for testing the method and I passed "Scott.Emp" as a parameter and the result was Success
    5- Now I want to show the result of the view on the page, so I draged and dropped the method from the data control as a parameter form
    6- I dragged and dropped the view Object "DynamicVo" as a table and I choose "generate Column Dynamically at runtime". This is the page source
    <af:panelHeader text="#{viewcontrollerBundle.SELECT_DOCUMTN_TYPE}" id="ph1">
            <af:panelFormLayout id="pfl1">
                <af:inputText value="#{bindings.dbViewName.inputValue}" label="#{bindings.dbViewName.hints.label}"
                              required="#{bindings.dbViewName.hints.mandatory}"
                              columns="#{bindings.dbViewName.hints.displayWidth}"
                              maximumLength="#{bindings.dbViewName.hints.precision}"
                              shortDesc="#{bindings.dbViewName.hints.tooltip}" id="it1">
                    <f:validator binding="#{bindings.dbViewName.validator}"/>
                </af:inputText>
                <af:button actionListener="#{bindings.changeVoQuery.execute}" text="changeVoQuery"
                           disabled="#{!bindings.changeVoQuery.enabled}" id="b1"/>
            </af:panelFormLayout>
        </af:panelHeader>
        <af:table value="#{bindings.DynamicVo.collectionModel}" var="row" rows="#{bindings.DynamicVo.rangeSize}"
                  emptyText="#{bindings.DynamicVo.viewable ? 'No data to display.' : 'Access Denied.'}"
                  rowBandingInterval="0" selectedRowKeys="#{bindings.DynamicVo.collectionModel.selectedRow}"
                  selectionListener="#{bindings.DynamicVo.collectionModel.makeCurrent}" rowSelection="single"
                  fetchSize="#{bindings.DynamicVo.rangeSize}" filterModel="#{bindings.DynamicVoQuery.queryDescriptor}"
                  queryListener="#{bindings.DynamicVoQuery.processQuery}" filterVisible="true" varStatus="vs" id="t1"
                  partialTriggers="::b1">
            <af:iterator id="i1" value="#{bindings.DynamicVo.attributesModel.attributes}" var="column">
                <af:column headerText="#{column.label}" sortProperty="#{column.name}" sortable="true" filterable="true"
                           id="c1">
                    <af:dynamicComponent id="d1" attributeModel="#{column}"
                                         value="#{row.bindings[column.name].inputValue}"/>
                </af:column>
            </af:iterator>
        </af:table>
    when I run the page this error is occured
    <Nov 13, 2013 2:51:58 PM AST> <Error> <oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter> <BEA-000000> <ADF_FACES-60096:Server Exception during PPR, #1
    javax.el.ELException: java.lang.NullPointerException
    Caused By: java.lang.NullPointerException
    Can any body help me please
    thanks

    Have you seen Shay's video https://blogs.oracle.com/shay/entry/adf_faces_dynamic_tags_-_for_a
    All you have to do is to use the dynamic table to get your result.
    Timo

  • How to handle dynamic JMenuItem's actionListener??

    I want to implement a function like "Recent File" in "File" menu.
    But I don't know how to handle their actionListener?
    for (int i=0; i<count; i++)
    JMenuItem miNode = new JMenuItem(fileName);
    mnuFile.add(miNode);
    miNode.addActionListener(...) ///// ----- ????????
    }

    for (int i = 0; i < count; i++) {
        final String fileName = ... // the i-th file name
        JMenuItem miNode = new JMenuItem(fileName);
        mnuFile.add(miNode);
        miNode.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                // do whatever you want using "fileName" variable
                System.out.println("You have selected the '" + fileName + "' file.");
    }Alternatively you can create one ActionListener and add it to all menu items. When event is fired you can use ActionEvent.getActionCommand() - it will return the text of the JMenuItem (the file name on your case) that caused the event provided that you set only JMenuItem text (as you do in your example).

  • How to Handle Dynamic actions in batch mode???

    Hello Experts,
    We have a requirement where we need to automate PA40.  The data would be sent in csv file and we need to perform the required steps to insert data into Infotypes.
    The issue is in batch mode (background mode), the dynamic actions wouldn't be called and the business wants the dynamic actions to be considered as well. 
    Pls let me know if there is any way we can interpret the dynamic actions dynamically; meaning the prog should be able to handle the newly created dynamic actions as well.
    Any pointers to this are highly appreciated.
    Regards
    RK

    Hi.
    As far as i know, the limitation comes from the BDC execution itself, it doesn't really matter whether the execution is online or in batch mode.
    * dynamische Massnahme
        IF sy-binpt EQ space.
    *      befinden wir uns im ALE-Eingang ?
          CLEAR: ale_flag.                                   "XFYAHRK063273
          call function 'RHAP_ALE_FLG_GET'                   "XFYAHRK063273
            importing                                        "XFYAHRK063273
              ale_flg = ale_flag.                            "XFYAHRK063273
          IF ale_flag IS INITIAL.                            "XFYAHRK063273
            IF pspar-vinft NE space.  "infotype view         "XYLPH9K007065
              PERFORM dyn_measure IN PROGRAM (view_repid).   "XYLPH9K007065
            ELSE.                                            "XYLPH9K007065
              PERFORM dyn_measure.
            ENDIF.                                           "XYLPH9K007065
            PERFORM process_m
    One thing you could try to do to avoid this and get the dynamic measures executed is to use the NOBINPT variable of the OPTIONS structure in CALL TRANSACTION
      DATA opt TYPE ctu_params.
      opt-dismode = 'A'.
      opt-nobinpt = 'X'.
      CALL TRANSACTION 'PA30' USING bdcdata OPTIONS FROM opt.
      PERFORM close_group.

Maybe you are looking for

  • Color Corrector's Frame Viewer Split Not Showing Up On External Monitor

    Kind've a long title - sorry - but . . . here's my question: Why am I not able to see the Frame Viewer's split on my external monitor? A further, more detailed explanation of the problem: I recently purchased Ripple Training's Color Correction with A

  • How to pan and zoom multiple stills in a grid

    Hello, happy new year to the community! I recently did a lot of research in this forum and for the most problems in my project i could find adequate solutions in PrE 11 which I treated myself to purchase at Xmas But there's still something left: I'd

  • Desktop keeps freezing

    My laptop's desktop keeps freezing. All my icons become inactive and the only way I can access them is via the folders on my toolbar. Any advice? Also, my Internet explorer CONTINUALLY freezes up or takes FOREVER to load any data. I have been using G

  • How to transfer chat history in Skype?

    Hi guys, I've bought a new computer and I want to transfer my all chat history to it. I've chat running with 25 friends for almost 5 years now. So my chat history is extremely extensive and I need to transfer them all!It's very important for me. How

  • Transferring files between MacBook Pro and PC

    First, what's the best way to copy files back and forth between a MacBook Pro and a 5-year-old Dell PC? Would I use a "firewire"? (Is that the same thing as a USB?) Next, I've heard that there's some way to automate the process so that you can copy a