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

Similar Messages

  • How to find the Databse field used in which Transaction

    Hi,
    I have one query about:
    How to find the particular field from the Database table, used in which transaction?
    Bottomline:  I want to find the LIKP- LIFEX field, used in which Transaction. I know it is related to inbound delivery, but i couldn't find it in which transaction it is.
    Thanks in advance.
    Jai.

    Hi Jai,
    The field is called External ID which equal to LIKP-LIFEX or RV50A-VERUR_LA (structure).
    Path:
    Goto -> Header -> Administration -> External ID.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • How to find the max session count and process count for a database

    Hi All,
    How to find the maximum session count and process count reached for a database over a period of 15 days?
    DB version:11.2.0.2
    OS:AIX

    Thanks for the link.
    The output of the below query that is given in the link shows the results for the last 10 or 12 days.. Is there a query which gives a result for the last 30 days?
    col metric_unit for a30
    set pagesize 100
    Select trunc(end_time),max(maxval) as Maximum_Value,metric_unit
    from dba_hist_sysmetric_summary
    where metric_id in ( 2118,2119) group by trunc(end_time),metric_unit order by 1;

  • How to find the list of USER-EXITS or BADI for the transaction ABSO

    Hi all,
    Please help me to find the list of USER-EXITS or BADI for the transaction ABSO & find the exact user-exit which meets the requirement.
    Thanks & Regards,
    gyanaraj

    Hi,
    Copy the problem  in SE38 and  Execute it
    Enter the Tcode  u want
    this  will the  list of Userexits and badis
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.

  • How to find the position of the deicmal place?

    Hi,
    I have a String '-234.45'. I need to determine it decimal place.
    I have try:
      SEARCH '-234.45' FOR '.'.
    but the sy-fdpos is 0.
    How to get the decimal place? Is there other way to get it?
    Please advise.
    Regards,
    Rayden

    Hi,
    see , if this will help you out.
    DATA: text TYPE string VALUE `Roll over Beethoven`,
          pos TYPE i.
    SEARCH text FOR '. .'.
    SEARCH text FOR ` `.
    IF sy-subrc = 0.
      pos = sy-fdpos + 2.
        SEARCH text FOR 'bth' STARTING AT pos
                              ABBREVIATED AND MARK.
    ENDIF.
    cheers,
    Hetal.

  • How do find the list of Supported Cameras raw files for Elements 12

    Where can you find the list of cameras that are supported by photoshop Elements 12  raw processing?

    Hi R Kelly,
    I tried to follow your directions for marking your answer as correct….. but I could not locate the “Correct” under the box where your answer appeared.  I tried clicking on the green icons to the right of the page but I could not get the “not answered” phrase to change to “Correct answer”.   I have not used this forum before and have no clue how it functions….  sorry
    LinDaZie
    Begin forwarded message:
    From: Garth & Linda Ziegenhagen <[email protected]>
    Subject: Re: Camera Raw supported Camera list
    Date: May 1, 2015 at 10:34:10 PM PDT
    To: [email protected]
    Dear R  Kelley,
    Thank you so much for your help.   I am thinking of purchasing the Panasonic Lumix Fz200 and wanted to be sure that my editing software supported my cameras raw format.  The OSX system is….. iMac Mavericks.   do have the Camera raw 8.5 with both my Elements 12  and the Photoshop CS6 Extended.   I will go ahead and order my camera… yeah!
    Again, thank you,
    LinDaZie

  • How to find the number of users log into ESS for last three months

    Hi Team
    Is there any transaction / Report to find the number of users logged into the ESS and used the payslip tab. Is this possible to find?
    Waiting for hopeful replies.
    Regards
    Bhaskar

    Bhaskar,
    you can use google analytics,
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50b94044-7008-2b10-1680-c04e4526367b
    jo

  • How to change the position of Views in IC webclient

    Dear all,
    Our requirement is to change the Views locations in IC Webclient Interface. like we want to see morefields view (BuAgmoreFieldViewset) in the place of Product Veiw in Identify accout work area.
    In the same way in Interaction record we want to replace follow-up activity view has to be replaced with Interaction record partners view.
    Kindly suggest me what sort of development is required for this requirement. How can we configure this in SAP?
    Your valuable suggestions will be highly appreciated.
    Best regards,
    R. Sravanthi
    Edited by: Sravanthi_Revella on Apr 19, 2009 2:46 PM
    Edited by: Sravanthi_Revella on Apr 19, 2009 2:47 PM

    There is no easy way or direct configuration to handle this . You need a complete knowledge of  all concepts in IC WebClient Cookbook , essentially  View , Viewset and how to make modification in standard viewset . Once that is done you will have to Handle the Navigation using the Navigation Link concept .   Apart from that you will need BSP/ Object Oriented ABAP to handle the Object Node Instantiation either in the Inbound Plug etc so that your View Context Node and Attributes are populated to be display .

  • How to find the current CPU and Memory (RAM) allocation for OMS and Reposit

    Hi There,
    How do I check the CPU and memory (RAM) allocation for the OMS and the Repository database? I'm following the "Oracle Enterprise Manager Grid Control Installation and Configuration Guide 10g Release 5 (10.2.0.5.0)" documentation and it says to ensure the following:
    Table 3-1 CPU and Memory Allocation for Oracle Management Service
    Deployment Size Host CPU/Host Physical Memory (RAM)/Host Total Recommended Space
    Small (100 monitored targets)                   1                                             1 (3 GHz)                            2 GB                                                                        2 GB
    ***Table 3-2 CPU and Memory Allocation for Oracle Management Repository***
    Deployment Size Host CPU/Host Physical Memory (RAM)/Host Total Recommended Space
    Small (100 monitored targets)                   1                                   1 (3 GHz)                                        2 GB                                                                          10 GB
    Thanks,
    J

    Hi J,
    This is the minimum requirement. However It will work fine.
    Also read below article on "Oracle Enterprise Manager Grid Control Architecture for Very Large Sites"
    http://www.oracle.com/technology/pub/articles/havewala-gridcontrol.html
    For GRID HA solution implementation please read :
    http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_EnterpriseManagerBestPractices.pdf
    Regards
    Rajesh

  • How to find the sessions which generated maximum redo amount at instance?

    I use below query or Sql*Plus's set autotrace traceonly statistics > redo size statistic to calculate how much redo I generated in my session;
    CREATE OR REPLACE VIEW redo_size AS
    SELECT value
    FROM v$mystat, v$statname
    WHERE v$mystat.statistic# = v$statname.statistic#
    AND v$statname.name = ‘redo size’;
    But how to find the sessions which generated maximum(top 5 for example) redo from the last database startup on 9iR2 or also with new 10gR2 historic views?
    We need this information because from the produced archived log files we observe something new producing almost 2 times more redo for a week. I looked at statspack report but couldnt find as I suspected for a massive update or delete.
    Best regards,
    Tonguc

    I tried v$sysstat but I didnt think about v$sesstat Mr.Gasparotto, thank you very much :)
    SELECT ss.sid,
    sq.sql_text,
    se.status,
    se.username,
    se.osuser,
    se.program,
    se.machine,
    ss.VALUE
    FROM v$sesstat ss, v$statname sn, v$session se, v$sqlarea sq
    WHERE ss.statistic# = sn.statistic#
    AND se.sql_hash_value = sq.hash_value(+)
    AND se.sql_address = sq.address(+)
    AND ss.sid = se.sid
    AND sn.NAME = 'redo size'
    ORDER BY ss.VALUE DESC
    Best regards.

  • How to find the source code of EJB?

    I have download the EJB class file on the sun's site,but I wanna download java file of EJB,how to find the java file?

    download a decompiler for java ...search in downlaod.com

  • How to find the technical name

    Hai,
    How to find the technical name of a data source for General Ledger: Balances – Period Breakdown
    Thanks

    Hai
    my question is in General Ledger: Balances – Period Breakdown
    the link is showing General Ledger : Balances , Leadingledger
    I got this link in queries for General Ledger: Balances – Period Breakdown
    http://help.sap.com/saphelp_nw70/helpdata/en/2d/955a73da4d6d41a0a6128caf274ce8/frameset.htm
    But here technical name of info cube is given.But i dont know how to find the technical name of the data source.This might be simple question i think but i am new to SAP
    Thanks

  • HT2204 how to find the gift code

    how to find the gift code

    create a SQ01 quickview query for table TSTC  or, even do a join for TSTC&TSTCT
    TSTC - Transaction codes
    TSTCT - Transaction codes texts
    if you want to see where some of the transactions are in the hierarchy you can use transaction "search_sap_menu"  or SPRO and use the binocular button to search

  • How to find the match code ? what is matchcode : MARA-MTART checktable T134

    hi ALL,
    How to find the match code ? what is matchcode for MARA-MTART and the checktable is T134.
    How to use in select-options using match-code?
    Thanks in advance.
    Points will be rewarded

    Hi
    Hi goto SE11 and inside the table u will see search help
    click on Entry Search Help. there u see the name of the search help for each field.
    Use this Search Help H_T134 in parameters
    select-options: s_mtart for mara-mtart matchcode object H_T134.
    Thanks
    Shiva
    Message was edited by:
            Shivakumar Hosaganiger
    Message was edited by:
            Shivakumar Hosaganiger

  • Finding the user-exits of a SAP transaction code

    Hi All,
    Can any one tell me how to find the user exits related to particular transaction code?
    Regards,
    Prem

    Dear PremKumar,
    *Please Search SDN Before posting any thread the question you have asked is already available since you are new to SDN and for your reference iam pasting the code copy paste the same code and execute and give the TCODE then it will list out all the exits.
    *REPORT  ZUSEREXIT.
    report zuserexit no standard page heading.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
             tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
       select single * from tadir where pgmid = 'R3TR'
                        and object = 'PROG'
                        and obj_name = tstc-pgmna.
       move : tadir-devclass to v_devclass.
          if sy-subrc ne 0.
             select single * from trdir where name = tstc-pgmna.
             if trdir-subc eq 'F'.
                select single * from tfdir where pname = tstc-pgmna.
                select single * from enlfdir where funcname =
                tfdir-funcname.
                select single * from tadir where pgmid = 'R3TR'
                                   and object = 'FUGR'
                                   and obj_name eq enlfdir-area.
                move : tadir-devclass to v_devclass.
              endif.
           endif.
           select * from tadir into table jtab
                         where pgmid = 'R3TR'
                           and object = 'SMOD'
                           and devclass = v_devclass.
            select single * from tstct where sprsl eq sy-langu and
                                             tcode eq p_tcode.
            format color col_positive intensified off.
            write:/(19) 'Transaction Code - ',
                 20(20) p_tcode,
                 45(50) tstct-ttext.
                        skip.
            if not jtab[] is initial.
               write:/(95) sy-uline.
               format color col_heading intensified on.
               write:/1 sy-vline,
                      2 'Exit Name',
                     21 sy-vline ,
                     22 'Description',
                     95 sy-vline.
               write:/(95) sy-uline.
               loop at jtab.
                  select single * from modsapt
                         where sprsl = sy-langu and
                                name = jtab-obj_name.
                       format color col_normal intensified off.
                       write:/1 sy-vline,
                              2 jtab-obj_name hotspot on,
                             21 sy-vline ,
                             22 modsapt-modtext,
                             95 sy-vline.
               endloop.
               write:/(95) sy-uline.
               describe table jtab.
               skip.
               format color col_total intensified on.
               write:/ 'No of Exits:' , sy-tfill.
            else.
               format color col_negative intensified on.
               write:/(95) 'No User Exit exists'.
            endif.
          else.
              format color col_negative intensified on.
              write:/(95) 'Transaction Code Does Not Exist'.
          endif.
    at line-selection.
       get cursor field field1.
       check field1(4) eq 'JTAB'.
       set parameter id 'MON' field sy-lisel+1(10).
       call transaction 'SMOD' and skip first   screen.
    Can you closse the thread if your problem got fixed !!!!
    Cheers
    fareed

Maybe you are looking for

  • Itunes/quicktime will not install

    I am trying to udgrade my intunes to the newest version (7.34) to add music to my 2nd genertaion ipod nano. The installer will not even open giving the error message of invalid drive J:/. I already tried changing my ipod's drvie letter to (k) but it

  • High DPI External Display not Working on OS X

    I am developing a new monitor using high DPI laptop displays and it seems to work on every OS except OS X. And it even works on apple hardware running linux. I get no signal at all when using it with either 10.8.5 or 10.9 using a rMBP 13" (Ivy Bridge

  • PI Installation Problem

    Hi, We are doing a fresh PI Installation with ABAP + JAVA stacks with HP-UX and Oracle 10g database, when the installation is going on we are facing problems due to missing java library file when sapinst trying to configure UME. There is no log viewe

  • ITunes beeps before and after each song-WHY?

    Since three days ago, when playing songs on my iTunes, i hear a beep at the beginning and end of each song; it also beeps if i pause or click Next. Where can i look for this reason, why is this happening.

  • What exactly does Arch do with existing partitions at install time?

    Hi there, I would like ton install linux on a computer which has already ubuntu and Vista. I'd like to keep ubuntu and erase vista altogether. My partitions look like this: /dev/sda1               1           5       40131   de  Dell Utility /dev/sda