BDC Selecting view in MM02

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

Similar Messages

  • 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

  • Auto select u201CView selection only on requestu201D in selection view screen-MM02

    HI Friends,
    I want to auto set u201CView selection only on requestu201D in selection view screen before entering into various views (Basic data 1 / Basic data 2 . . .etc) for t.code- MM02 for all users. Please let me know where needs to be set.
    Thanks in advance.
    RAMAN.

    Hi
    Please go to SM30 and enter the table USRM1. There you can control the user departments for the users and check the required filed " View selection on request" field name : -ASCHL.
    Hope this helps your requirement.
    Regards,
    Sunil.K

  • Logic to get the view in MM02

    Hi,
    I would just like to ask if there is an easier way to get the selection views in MM02. There are different views per material and I need to insert the logic in getting the view to a custom program. The custom program will be used for performing a BDC transaction that's why I need to get the logic for the views.

    Hi
    Try using the function module SELECTION_VIEWS_FIND
    * Material views ....................................................
      data:  l_vpsta like t130m-pstat.
      select single vpsta
             into   l_vpsta
             from   mara
             where  matnr = p_matnr.
    * Get View sequence .................................................
      data: l_bild  like t133a-bilds,
            lt_bild like mbildtab occurs 0 with header line.
    * Screen Sequence for Standard Industry tab pages in material master
      l_bild = '21'.
    * Get screen sequence
      call function 'SELECTION_VIEWS_FIND'
        exporting
          bildsequenz     = l_bild
          pflegestatus    = l_vpsta
        tables
          bildtab         = lt_bild
        exceptions
          call_wrong      = 1
          empty_selection = 2
          others          = 3.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    Shiva

  • Problem in BDC for selecting the QM View in MM02

    Hi,
    I am facing a problem that when the material is entered select view screen opens and the positioning of QM view is 11 or 13 sometimes. i want the processing should of QM should be irespective of position.
    report ZBDC_MM02_QM_VIEW
           no standard page heading line-size 255.
    include bdcrecx1.
    data: begin of record OCCURS 0,
          MATNR_001(018),
                WERKS_002(004),
          ART_003(008),
          APA_004(001),
          AKTIV_005(001),
          end of record.
    PARAMETERS : P_FILNAM LIKE RLGRAP-FILENAME.
    initialization.
    CTUMODE = 'A'.
    CUPDATE = 'A'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILNAM.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
       MASK                   = ',.'
       MODE                   = 'O'
    IMPORTING
       FILENAME               = P_FILNAM
    EXCEPTIONS
       INV_WINSYS             = 1
       NO_BATCH               = 2
       SELECTION_CANCEL       = 3
       SELECTION_ERROR        = 4
       OTHERS                 = 5.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    start-of-selection.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
       FILENAME                      = P_FILNAM
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = RECORD
    EXCEPTIONS
       CONVERSION_ERROR              = 1
       FILE_OPEN_ERROR               = 2
       FILE_READ_ERROR               = 3
       INVALID_TYPE                  = 4
       NO_BATCH                      = 5
       UNKNOWN_ERROR                 = 6
       INVALID_TABLE_WIDTH           = 7
       GUI_REFUSE_FILETRANSFER       = 8
       CUSTOMER_ERROR                = 9
       NO_AUTHORITY                  = 10
       OTHERS                        = 11.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT RECORD.
      ON CHANGE OF RECORD-MATNR_001.
    perform bdc_dynpro      using 'SAPLMGMM' '0060'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-MATNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RMMG1-MATNR'
                                  record-MATNR_001.
    perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MSICHTAUSW-DYTXT(11)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(11)'
                                  'X'.
    perform bdc_dynpro      using 'SAPLMGMM' '0080'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-WERKS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'RMMG1-WERKS'
                                  record-WERKS_002.
    perform bdc_dynpro      using 'SAPLMGMM' '4000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=PB01'.
    perform bdc_dynpro      using 'SAPLQPLS' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMQAM-ARGUMENT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=NEU'.
    perform bdc_field       using 'RMQAM-INSMK'
                                  'X'.
    perform bdc_field       using 'RMQAM-QKZVERF'
                                  '06'.
    perform bdc_field       using 'RMQAM-PPL'
                                  'X'.
    perform bdc_field       using 'RMQAM-APP'
                                  'X'.
    perform bdc_field       using 'RMQAM-DYN'
                                  'X'.
    perform bdc_field       using 'RMQAM-MER'
                                  'X'.
    perform bdc_field       using 'RMQAM-AVE'
                                  'X'.
    perform bdc_dynpro      using 'SAPLQPLS' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMQAM-AKTIV(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=WEIT'.
    perform bdc_field       using 'RMQAM-ART(01)'
                                  record-ART_003.
    perform bdc_field       using 'RMQAM-AKTIV(01)'
                                  'X'.
    perform bdc_transaction using 'MM02'.
    ENDON.
    ENDLOOP.

    Hi,
    Use following code
                  CALL FUNCTION 'MATERIAL_BTCI_SELECTION_NEW'
                    EXPORTING
                      MATERIAL                  = IT_UPLOAD-MATNR  " Material number
                      MATERIALART               = GI_MARA-MTART          " Material Type
                      SELECTION                 = 'Q'              " PSTAT(maintenance status) value for Quality Managemant.
                      TCODE                     = 'MM01'           " Tcode where view's are called.
                    TABLES
                      BTCI_D0070                = IT_BDCDATA_VIEW
                    EXCEPTIONS
                      MATERIAL_NOT_FOUND        = 1
                      MATERIAL_NUMBER_MISSING   = 2
                      MATERIAL_TYPE_MISSING     = 3
                      MATERIAL_TYPE_NOT_FOUND   = 4
                      NO_ACTIVE_DYNPRO_SELECTED = 5
                      NO_AUTHORITY              = 6
                      OTHERS                    = 7.
                  READ TABLE IT_BDCDATA_VIEW WITH KEY FVAL  = 'X'.
                  IF SY-SUBRC = 0.
                    V_SELECTION = IT_BDCDATA_VIEW-FNAM.
                    VAR = IT_BDCDATA_VIEW-FNAM+17(2).
                    IF VAR > '17'.
                      VAR = VAR - 17.
                      IF VAR NE '2'.
                        CONCATENATE '0' VAR INTO VAR.
                      ENDIF.
                      PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                                  '=P+'.
                      PERFORM BDC_DYNPRO      USING 'SAPLMGMM' '0070'.
                      CONCATENATE 'MSICHTAUSW-DYTXT(' VAR ')' INTO VAR1.
                      PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                                    VAR1.
                      PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                                    '=ENTR'.
                      CLEAR VAR1.
                      CONCATENATE 'MSICHTAUSW-KZSEL(' VAR ')' INTO VAR1.
                      PERFORM BDC_FIELD       USING VAR1
                                                    'X'.
                      PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                                  '=ENTR'.
                    ENDIF.
                    IF VAR < '17'.
                      CONCATENATE 'MSICHTAUSW-DYTXT(' VAR ')' INTO VAR1.
                      PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                                    VAR1.
                      PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                                    '=ENTR'.
                      CLEAR VAR1.
                      CONCATENATE 'MSICHTAUSW-KZSEL(' VAR ')' INTO VAR1.
                      PERFORM BDC_FIELD       USING VAR1
                                                    'X'.
                      PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                                  '=ENTR'.
                    ENDIF.
    Regards,
    Pritish

  • How to find the position of view in MM02 transaction for coding BDC?

    Hi Guys,
    Is there any FM or BAPI Available to find the position of the view in MM02 transaction. I tried FM SELECTION_VIEWS_FIND. But getting inconsistent results
    i.e Some materials it is giving correct positions but for others i am getting wrong position. So my BDC is getting failed.
    Thanks in advance.
    Vinod.

    Hi,
    data : i_t133a like t133a occurs 0 with header line,
          ch(1),
           viewno(2) type n.
    clear viewno.
      select * from t133a into corresponding fields of table i_t133a
                    where bilds = '21' and guifu like 'SP%'  .
      loop at i_t133a .
        ch = i_t133a-pstat.
        if mara-vpsta na ch .
          delete i_t133a     .
          continue .
        endif .
      endloop.
      sort i_t133a by guifu ascending .
      loop at i_t133a .
        viewno = viewno + 1 .
        if i_t133a-guifu = 'SP01'.  "FOR BASIC DATA1                CHANGES              ACCORDINGLY REFER TABLE T133A TO FIND VTHE VALUE
          exit .
        endif .
      endloop .
    reward if usefull

  • 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

  • MM02 Select View option releated

    I would like to confirm my understanding regarding MM02 Select View popup screen where we get list of views like Basic data1, MRP 1, etc.
    Is this views are only controlled in OMS2 and OMT3E for one particular material type?
    Is there anyway where we can restrict these number of views  to any specific user, if this can be done how these can be restricted?
    Thank you very much
    Regards,
    Arvind

    Hi,
    1) control though spro
    You can control the view through Logistics general--> Material master >Configuring material master> User setting.
    Here you can select the User name & then select the view selection--> list of screen.
    you can select the which you want control
    2) better control form authorization object
    restrict by authorization object:
    M_MATE_STA ( for particular view authorization )
    M_MATE_MAR with  ( for particular material type authorization)

  • Bdc control views

    hai,
        i have a problem in selecting views for multi user run,i will explain here,while recording a transaction in bdc for example take mm01 transaction when u record first u will be selecting the views which u need for the data batch process run so when one user runs the recording and saves it when another user runs the same recording the views order in the views  selection may change so how can one constrain the views order to a particular way irrespective of user ,means who ever be the user once the views order is selcted the same order shoul be taken by all users so kindly help me in thiss problem

    Hi.....
    We should not select the views by scrolling ...need to select views using PgDn button then it could work fine for any User..
    Please do close the thread if your problem solves..
    regards,
    sg

  • Reading MS Project column names and data on the fly from a selected View

    Hi guys,
    I have several views on my project file (MSPROJECT 2010) and I want to build a macro so that;
    1. User can select any view ( Views can have diffrent columns and the user may add new columns as well)
    2. User runs the Macro and all the coulmns along with the tasks displayed in the view will be written to a excel file. ( I don't want to build several macro's for each view, I'm thinking of a common method which would work for any selected view)
    The problem I'm facing is that how will i read the column names and data for a particular view on the fly without hard coding them inside the vba code ?
    The solution needs to work on a master schedule as well.
    Appreciate your feedback.

    Just to get you started the following code writes the field name and data for the active task to the Immediate window.
    Sub CopyData()
    Dim fld As TableField
    For Each fld In ActiveProject.TaskTables(ActiveProject.CurrentTable).TableFields
    If fld.Field >= 0 Then
    Debug.Print Application.FieldConstantToFieldName(fld.Field), ActiveCell.Task.GetField(fld.Field)
    End If
    Next fld
    End Sub
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • How to get the values inputted by the user in Classification view of  MM02

    Hello,
    Does anyone know how to get the inputted values in Classification view of MM02/MM01? I tried to use CLAF_CLASSIFICATION_OF_OBJECTS but this gets the values that is currently saved in the tables and not the values that the user recently inputted in the screen.
    Regards,
    Alfred

    hi
    try this...
    How to Display the Batch Characteristics in BOM?

  • In iPhoto if I select View, then Sort Photos by title, how do I stop it reverting to sorting by date when I close iPhoto and re-open it later?

    In iPhoto if I select View, then Sort Photos by title, how do I stop it reverting to sorting by date when I close iPhoto and re-open it later?

    In what mode, Events, Photos or in an Album, are you when you select View ➙ Sort ➙ By Title?
    As a first fix attempt try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder
    3 - launch iPhoto and try again.
    NOTE 1: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    NOTE 2:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    OT

  • How can i select view attribute in a method

    hi how can i select view attribute in method and pass that attribute to procedure
        public void DeleteAgr(Integer agrid) {
                     ViewObject svo = this.findViewObject("AGR");
                     //select current view id from agr and link id with agrid          
                    callPerformSdmsLogon("SMS_FORM_TO_ADf.delete_agr(?)", new Object[] { agrid });
    }Edited by: Tshifhiwa on 2012/06/30 1:01 PM
    Edited by: Tshifhiwa on 2012/06/30 1:22 PM
    Edited by: Tshifhiwa on 2012/06/30 1:24 PM

    hi i use your sample but now am geting this errror (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
    ----- Level 1: Detail 0 -----
    (java.lang.NullPointerException) null check the code below
                              public String getCurrentagrid(String currentagrId) {
                            if (currentagrId != null && currentagrId.length() > 0) {
                                ViewObjectImpl agrVO =
                                    this.getAGR1();
                                if (agrVO != null) {
                                    Key key = new Key(new Object[] { currentagrId });
                                    //Searching for the row with key
                                    //getRow(key) will search in the cache which contain atmost
                                    //2000 records Becoz the MaxFetchSize of EmpVO is 2000
                                    AGRRow agrRow =
                                        (AGRRow)agrVO.getRow(key);
                                    //if the record with key is not present in the cache
                                    if (agrRow == null) {
                                        //Searching for the row with key in the DataBase
                                        //findByKey() searches in DB
                                        Row[] agrRows = agrVO.findByKey(key, 1);
                                        if (agrRows != null && agrRows.length != 0) {
                                            //agrRows = (AGRRow)agrRows[0];
                                    if (agrRow  != null) {
                                        //currentagrId = (String)agrRow.getAttribute("id");
                                        //agrVO.executeQuery();
                                        //agrRow = agrVO.first();
                                        callPerformSdmsLogon("SMS_FORM_TO_ADf.delete_agr(?)", new  Object[] { currentagrId });
                            return currentagrId ;
                        }Edited by: Tshifhiwa on 2012/07/01 10:51 AM
    Edited by: Tshifhiwa on 2012/07/01 11:38 AM

  • Creating a Selection View : HR ABAP

    Hi All,
    How to create a selection view in HR Abap.
    I found some information related to it.
    Call the Object Navigator, (SE80), and from the Workbench menu, select
    Edit object. Under More.., click Selection view and choose Create.
    I tried it but unfortunately i got stuck.
    Can anyone navigate me how can i create a selection view.
    Thanks
    A

    I got it sorted now, what you need to do is type /nse80 and before you enter the into the actual program for editing you will see workbench on the top left then the rest of the path is available, as described in the reading material!
    Enjoy
    Regards
    Tatenda

  • Regarding selection view in ldb KDF

    Hello All,
    In logical db KDF when i go to selection view i can see three function groups ie vendor master companycode and documents with their respective ids.
    But when i execute report related with this logical database like tcode f.42 adn fbl1n i can see only two options in dynamic selections ie vendor master and company code where as documents option is missing
    How can i get documents options back in the report or is there any program to regenerate these dynamic selections
    Thanks
    SUnny

    Hi Suny,
    When I run the T-code FBL1N at my place and click on Dynamic selections button,what I see that there are all the three options--Vendor Master,Company Code and Documents available.
    You need to observe that against Vendor number there is no input box available but all the fields available under it till Company Code belong to Vendor Master.Similarly,all the fields mentioned under Comaony Code belong to Company Code and likewise all the fields mentioned under Documents like Special G/L Indicator,Assignment,Document number etc. belong to Document.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

Maybe you are looking for