Cannot select the fields for table view WB2_V_MKPF_MSEG2

Hi, I have a program where the query is using join statement of MSEG and MKPF.  As part of the performance enhancement I use Table View WB2_V_MKPF_MSEG2 instead.
Validation: Entries in MSEG and MKPF is the same as in  WB2_V_MKPF_MSEG2 = OK (via SE16)
But upon debugging the program on SY-SUBRC breakpoint, I can see 5 rows appended in internal table T_MSEG "BUT" the entries are all blank.
The entries in my SE16 are exact data that's appearing on the filter statement in my SQL query below.  SE16 is giving correct output, but using table view in my SQL does not give me the correct output.
(Note: This is my first time to use table view in ABAP-SQL)
  SELECT MATNR_I BWART_I MENGE_I
    FROM  WB2_V_MKPF_MSEG2
      INTO CORRESPONDING FIELDS OF TABLE T_MSEG
  WHERE MATNR_I IN R_MATNR3
      AND  MATNR_I IN R_COMPNTS
      AND  WERKS_I EQ P_WERKS
      AND  BWART_I EQ '931'
     AND  BUDAT    IN S_GSTRP 
     AND  MJAHR    EQ W_DOC_YEAR.
IF SY-SUBRC EQ 0.
ENDIF.
THANKS, appreciate your inputs.
Regards,
Jun

Hi Suhas,
I just did a short test just now:
REPORT  ZTEST_SELVIEW.
TABLES: WB2_V_MKPF_MSEG2.
TYPES: BEGIN OF Y_MSEG,
         MATNR LIKE MSEG-MATNR,
         BWART LIKE MSEG-BWART,
         MENGE LIKE MSEG-MENGE,
       END   OF Y_MSEG.
DATA: T_MSEG TYPE STANDARD TABLE OF Y_MSEG.
SELECT MATNR_I
       BWART_I
       MENGE_I
  FROM WB2_V_MKPF_MSEG2
  INTO CORRESPONDING FIELDS OF TABLE T_MSEG
WHERE MATNR_I EQ '000000000000004000'
   AND WERKS_I EQ '0288'
   AND BWART_I EQ '931'
*   AND BUDAT   EQ '20071117'
   AND MJAHR   EQ '2007'.
IF SY-SUBRC EQ 0.
ENDIF.
In my debug, T_MSEG contains the same number of rows that my SE16>WB2_V_MKPF_MSEG2(using the hard coded statement in my SQL) "BUT" each rows does not have any entries.  Bottomline, I can't only see blank entries in ITAB T_MSEG but the rows are being selected properly, so the itab contains x-number of rows with blank entries.
Thanks.

Similar Messages

  • How to set the font for table view contol

    Dear All,
    My requirement is to set Font type = Arial and size=1 for
    Table View control. The same font should be for  header, Rows and footer.
    One way we are achieving it through the Renderer class. Where in we are we are supplying data, colums with html font tags.
    Is there any simple way to fix font fot the entire TableView.
    Thanks
    Markandeya

    An approach I've used is to override the CSS styles by adding code like the following to the top of the JSP page.  It's a bit of a hack, but it did the job.  You will need to find ALL the styles used in a table view, and override the font size.
    <%-- OVERRIDE SOME CSS STYLES SO WE HAVE THE DESIRED TABLE CELL PADDING --%>
    <style>
    <!--
    .sapTbvCellStd {
         PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
    .sapTbvCellAlt {
         PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
    //-->
    </style>

  • How to make the Pager for table view as non editable?

    Hi,
    I am using an HTMLB pager for my table view .
    It appears as Page '1' of 2 for examle.
    But '1' is dispalyed in an input field.
    How do I make this input field as disabled.
    I just want to use the Vertical and horizontal indicators to traverse through the pages of the table view.
    I do not want the user to enter the page number ..
    Thanks,
    Sachin

    Look at SBSPEXT_XHTMLB sample, pages pager.bsp and pagerX.bsp.
    If you use the external pager, then you can specify a format where a text string will only be displayed without an inputfield for editing.

  • Cannot find the field for the Contact Role in Contact object.

    Hi, friends,
    I need to set Contact Role when creating new Account and Contact. I tried the following tests but cannot figure it out:
    1. Create new Account and then new Contact, set the AccountContactRole in Account WSDL as “Main” but failed to set that field in form
    2. Create new Account and then new Contact, set the ContactRole in Contact WSDL as "Main” but failed to set that field in form
    3. Create new Contact and then new Account, set those two fields, but failed to set that field in form
    So far I know, the Account Contact Role is kind of picklist type in Account Contact Field. I could find its customization in Admin-> Application Customization -> Account -> Account Contact Fields -> Contact Roles. However, I cannot find the exact item in WSDL file to map this item. The AccountContactRole in Account WSDL and ContactRole in Contact WSDL are suspicious.
    It will be appreciated if anyone could help me on this issue.
    Thank you very much
    Ray
    Edited by: user9015675 on Jan 19, 2010 2:59 PM

    Hi, Sean, I tried the Web Service 1.0 call to create a new Contact and then a new Account with created Contact ID. But the CRMOD return the "Access Deny" fault. Is there somewhere I could see or change this kind of access rights? Or some bug in my web service call?
    I am sorry I did not open a new topic thread as I think they are related and easy for reference. Thank you very much.
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <AccountWS_AccountInsert_Input xmlns="urn:crmondemand/ws/account/10/2004" xmlns:ns2="urn:/crmondemand/xml/account">
    <ns2:ListOfAccount>
    <ns2:Account>
    <ns2:AccountName>XXXX1264030832268</ns2:AccountName>
    <ns2:ListOfContactRole>
    <ns2:ContactRole>
    <ns2:ContactRole>Main</ns2:ContactRole>
    <ns2:ContactId>XXXX1264030828034</ns2:ContactId>
    </ns2:ContactRole>
    </ns2:ListOfContactRole>
    </ns2:Account>
    </ns2:ListOfAccount>
    </AccountWS_AccountInsert_Input>
    </soap:Body>
    </soap:Envelope>
    Return:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server</faultcode>
    <faultstring>Method &apos;SetFieldValue&apos; of business component &apos;Account Contact Role&apos; (integration component &apos;Account Contact Role&apos;) returned the following error:
    &quot;Access denied.(SBL-DAT-00542)&quot;(SBL-EAI-04376)</faultstring>
    <detail>
    <siebelf:siebdetail xmlns:siebelf="http://www.siebel.com/ws/fault">
    <siebelf:logfilename>OnDemandServicesObjMgr_enu_18122.log</siebelf:logfilename>
    <siebelf:errorstack>
    <siebelf:error>
    <siebelf:errorcode>(SBL-DAT-00542)</siebelf:errorcode>
    <siebelf:errorsymbol></siebelf:errorsymbol>
    <siebelf:errormsg>Method &apos;SetFieldValue&apos; of business component &apos;Account Contact Role&apos; (integration component &apos;Account Contact Role&apos;) returned the following error:
    &quot;Access denied.(SBL-DAT-00542)&quot;(SBL-EAI-04376)</siebelf:errormsg>
    </siebelf:error>
    </siebelf:errorstack>
    </siebelf:siebdetail>
    </detail>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

  • Cannot select report field for chart....

    Post Author: wstromer
    CA Forum: Charts and Graphs
    I have a formula that calculates a value from 2 interim total fields, a and b. This value is a percentage: 100 x a/(a+b), where a and b are calculated from interim totals within a time interval. When I want to create a chart on this value, the "Chart Expert" does not give this field as an option to include on the chart. I suspect it has something to do with associating it with the time period but I don't know how to get around this.What is the criteria that dictates if a value is "chartable"?

    Post Author: qcheng
    CA Forum: Charts and Graphs
    Not all formula fields can be used in charts. Please refer the paper:
    Evaluation Times and the Multi-Pass Model
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=http--supportbusinessobjectscom-communityCS-TechnicalPapersNoNav-cr9evaluationtimespdfasp&sliceId=&dialogID=17564660&stateId=1 0 17566646

  • I have created numerous forms in Designer and for some reason, "Edit in Designer" from PDF, I cannot edit any of the fields in Design View.

    I have created numerous forms in Designer and for some reason, "Edit in Designer" from PDF, I cannot edit any of the fields in Design View.

    Is it possible you accidentally put the fields on the master page?

  • Cannot select ROWID from a join view without a key-preserved table at OCI c

    Hi All,
    Can anybody help me..?
    When i am creating the request in the presentation services ..
    for some of the columns i am getting the following error..by removing those those columns it's working fine..
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1445, message: ORA-01445: cannot select ROWID from a join view without a key-preserved table at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    Please suggest me a solution..
    Thanks in Advance...

    Looks like you have a view that contains the ROWID of another table. Does the view work first from sqlplus? See whether it returns any data. Its a ORA- specific error. So, the error is related to your view rather than BI EE. Also, how many columns are you trying to pull in your report?
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • How to display the selection screen fields for selected checkboxes

    Hi all,
             I have 7 checkboxes, for each check box we have some seletion screen fields.if i select first check box,i want to display first slection screen fields only.
    and if we select more than one check box how to display the selection screen fields for selected check boxes,please help me this
    Thanks
    sriman.

    hi,
    Try this code
    report z_13317_sdn2.
    tables : mara, marc, dd03l.
    parameters : p_chk1 as checkbox user-command ABC,
                 p_chk2 as checkbox user-command PQR,
                 p_chk3 as checkbox user-command XYZ.
    select-options : s_matnr for mara-matnr modif id A,
                     s_ersda for mara-ersda modif id A,
                     s_werks for marc-werks modif id B,
                     s_lvorm for marc-lvorm modif id B,
                     s_tab for dd03l-tabname modif id C.
    data: v_chk1,
          v_chk2,
          v_chk3.
    at selection-screen output.
      loop at screen.
        if screen-group1 = 'A' or
           screen-group1 = 'B' or
           screen-group1 = 'C'.
            screen-input = 0.
           modify screen.
        endif.
      endloop.
      loop at screen.
        if v_chk1 = 'X'.
          if screen-group1 = 'A'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
        if v_chk2 = 'X'.
          if screen-group1 = 'B'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
        if v_chk3 = 'X'.
          if screen-group1 = 'C'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
      endloop.
    at selection-screen.
      if sy-ucomm = 'ABC'.
        if v_chk1 = ' '.
          v_chk1 = 'X'.
        else.
          v_chk1 = ' '.
        endif.
      endif.
      if sy-ucomm = 'PQR'.
        if v_chk2 = ' '.
          v_chk2 = 'X'.
        else.
          v_chk2 = ' '.
        endif.
      endif.
      if sy-ucomm = 'XYZ'.
        if v_chk3 = ' '.
          v_chk3 = 'X'.
        else.
          v_chk3 = ' '.
        endif.
      endif.
    Regards,
    Sailaja.

  • I'm using iTunes 9 and I recently just bought AirPort Express. I have used it before in the past put the problem I have now is that I cannot select the Express network for my speakers. Does Airport Express only work with iTunes 10 or 11?

    I'm using iTunes 9 and I recently just bought AirPort Express. I have used it before in the past put the problem I have now is that I cannot select the Express network for my speakers. Does Airport Express only work with iTunes 10 or 11?

    Hello Hornet12,
    Indeed, iTunes 10.2 or later will be required to utilize AirPlay.
    Using AirPlay
    http://support.apple.com/kb/HT4437
    AirPlay requirements and capabilities
    To get full AirPlay features, make sure your AirPlay-enabled devices are running the latest software updates. The table below identifies minimum AirPlay requirements and capabilities:
    Stream content from
    Requirement
    Notes
    iPad
    iOS 4.3 or later.1
    From the Videos, iPod, Photos, Music, and YouTube apps on iOS devices, stream videos, music, and photos to an Apple TV (2nd and 3rd generation), or stream music to an AirPort Express or compatible third-party device.
    With iOS 4.3 and later, you can also stream video and audio from a website or a third-party app installed on your iOS device if the developer for the app or website has added AirPlay functionality.
    iPhone (3GS or later)
    iPod touch
    (2nd generation or later)
    Computer
    iTunes 10.2 or later.
    Stream videos and music from your iTunes library to an Apple TV (2nd and 3rd generation), or music to an AirPort Express or compatible third-party device.
    Apple TV
    Apple TV software version 5.1 or later.
    Stream music from your Apple TV to another Apple TV (2nd and 3rd generation), to an AirPort Express or compatible third-party device.
    Cheers,
    Allen

  • How to select this field  for the extractor?

    Hi Gurus, I hope you are fine!
    I need to extract the field     PRED_OPPT_GUID   form the Data source  0CRM_SRV_CONTRACT_H inside CRM system.
    If I go inside CRM to:   
    Transaction SBIW -> Settings for BW Adapter -> Maintain DataSource and Enhance BW Adapter Metadata ->
    tipe "0CRM_SRV_CONTRACT_H" and press change buttom -> Mapping TAB
    there I can see the field I need "PRED_OPPT_GUID"  but this is not selected at the "BW Selection" Column , I guess this is the cause why I am not receiving this field from the extractor, Am I right?
    If yes, How can I select this field  for the "BW Selection" Column? (the system does not allow me to click it directly)
    if not, what is the proper procedure if I need to extract this field ? because this is the key field  for  the DSO 
    " Service Orders: Header Data "
    Thanks

    This is what i can see inside the  ROOSFIELD table:
    Filtered by data source = 0CRM_SRV_PROCESS_H
    Comparison with another field:
    BILL_TO_PARTY  (working properly)    columns:        SELECTION = X              NOTEXREL= Y
    PRED_OPPT_GUID (Not working)           columns:        SELECTION = (Empty)    NOTEXREL= Y
    I think that if I try to change the Selection field to X it will cause inconsistencies with the SMOXRELP table am I right ?
    I tried to change using the system and not directly into the tables, but thaere was an inconsitecie between these 2 tables.
    Why is no able this field taking into account that this is the KEY FIELD inside the standard DSO? it has no sense to me.
    What do you think?
    regards.

  • What is the field and Table for "Batch Class" and "Class Type" in QM.

    Hi All,
    What is the field and Table for "Batch Class" and "Class Type" in QM.
    Thanks,

    Hi,
      For batch class the class type value is '023' . This you can find from KLAH table and the fileld for class type is KLART..
    And also all the data related to batch class are found in tables INOB, KLAH,KKSK and for the characeteristics of batch materials you can refer AUSP table.
    In INOB table, for batch class, you need to give 023 in KLART field and  value MCH1 in OBTAB filed.
    Please check this and let me know if this you need any more details?

  • Cannot resize the albums in album view in Itunes 11.  For those of us with large libraries (160gb), this is extremely frustrating.  I want to make the artwork smaller.  This seems to be a serious oversight.

    Cannot resize the albums in album view in Itunes 11.  For those of us with large libraries (160gb), this is extremely frustrating.  I want to make the artwork smaller.  This seems to be a serious oversight.

    I agree.
    It was very useful to reduce everything to small and quickly scan down looking for missing artwork.
    Particularly useful when I only connect to the machine with iTunes via screen sharing, so everything can be a bit slower to scroll through at times.
    In fact, itunes 11 when used purely as a server for Apple TV etc is a downgrade in usability IMO, as they've got rid of some of the useful views that helped me manage my library remotely.

  • The Submitter form cannot be validated if I don't fill the fields for each member of team (3). is it means that a team less than 3 persons cannot participate ??

    The Submitter form cannot be validated if I don't fill the fields for each member of team (3).
    is it means that a team less than 3 persons cannot participate    ??

    A team with less than 3 persons is eligible. One, two and three member teams are all eligible. I will remove the requirement to fill out the information for all three participants.

  • I cannot select the last iPhone backup for a new iPhone restore

    why
    i cannot select the last iPhone backup for a new iPhone restore?

    Hey quarterback45,
    Thanks for the question. This usually occurs when your new iPhone is on a earlier iOS version than that of which the backup was created with:
    iOS: Unable to restore from backup of a newer device
    http://support.apple.com/kb/TS3682
    Thanks,
    Matt M.

  • Where in the legal terms is the field for "agree"?  Downloaded a tv she terms and conditions popped up but cannot find "agree"

    Where in the legal terms is the field for "agree"?  Downloaded a tv she terms and conditions popped up but cannot find "agree"

    Did the terms pop-up or did you click on them in downloads tab in the iTunes app ? If you clicked on it then it's just for info - your TV show should have downloaded into the Videos app.

Maybe you are looking for

  • Report to get invoices country wise

    Dear Gurus, Can anybody help me, is there any transaction or report which gives a report of invoices for a particular country. regards Rama Krishna

  • Single-step deployment article from July/August Oracle Magazine Question

    Hi, As I worked through the article "Single-Step Deployment" on Oracle magazine July/August Issue, I ran into a problem on substep 9 of Step 3 to change the option of P2_MANAGER_ID with LOV. The error I got is LOV query is invalid, a display and a re

  • Error on JCA connection with R/3 (Failure: ConnctorService)

    Hi all, i'm working with <b>SAP EP 6 SP 2</b>. I've developed an custom application that calls an BAPI on R/3 by the JCA connection. the custom component works well in the develop enviroment but it go bad in quality enviroment. when i execute it i've

  • Photoshop CS6 - 'Two computers at same time' question

    Hi guys. I've tried searching for this question before but I couldn't find a definitive answer to it in the threads (maybe that's for a reason!).  Now, clearly the TOS stipulate about using PS on one computer at a time.  I understand that, as otherwi

  • OCP Exam 1Z0-040: Installation Performance

    OCP People, I'm looking at topic areas for the OCP Exam 1Z0-040. I'm curious about this topic: "Installation Performance Enhancements" What should I know about it? Do many Oracle DBAs think that Oracle 8i,9i installation is too slow? Perhaps 10g inst