Not Getting Proper output in simple Report

This is my code.Here iam getting the OBJCT values starting with Y but Not with Z.
Tables:TOBJ.
SELECT-OPTIONS:S_BNAME FOR TOBJ-BNAME.
RANGES:S_OBJCT FOR TOBJ-OBJCT.
DATA:BEGIN OF T_TOBJ Occurs 0,
     OBJCT LIKE TOBJ-OBJCT,
     BNAME LIKE TOBJ-BNAME,
     END OF T_TOBJ.
INITIALIZATION.
  S_OBJCT-SIGN = 'I'.
  S_OBJCT-OPTION = 'BT'.
  S_OBJCT-LOW = 'Y%'.
  S_OBJCT-HIGH = 'Z%'.
  APPEND S_OBJCT.
START-OF-SELECTION.
SELECT OBJCT BNAME FROM TOBJ INTO TABLE T_TOBJ WHERE BNAME IN S_BNAME
AND OBJCT NOT IN S_OBJCT .
LOOP AT T_TOBJ.
WRITE:/ T_TOBJ-OBJCT.
ENDLOOP.

Hi,
try changing ur code like dis,
Tables:TOBJ.
SELECT-OPTIONS:S_BNAME FOR TOBJ-BNAME.
DATA:BEGIN OF T_TOBJ Occurs 0,
OBJCT LIKE TOBJ-OBJCT,
BNAME LIKE TOBJ-BNAME,
END OF T_TOBJ.
START-OF-SELECTION.
SELECT OBJCT BNAME FROM TOBJ INTO TABLE T_TOBJ WHERE BNAME IN S_BNAME
AND ( OBJCT  like 'Z%' or OBJCT  like 'Y%' ).
LOOP AT T_TOBJ.
WRITE:/ T_TOBJ-OBJCT.
ENDLOOP.
Cheers,
Will.

Similar Messages

  • I'm not getting proper output as per the Program

    Hi Experts,
             As i'm executing my ALV report regarding Customer Invoice on Production client I'm not getting proper output as per the program but when i execute the same report on Development client i'm getting proper output.
          Can anybody tell me how can i resolve this problem on production client? 
          Actually i've updated my report on my old report but still i'm getting old output of my report on production client, Program is showing updated code but at execution i'm getting old output.

    FORM Z_CREATE_FIELD_CATALOG.
    I_FCAT-FIELDNAME = 'BUKRS'.
      I_FCAT-HOTSPOT   = 'X'.
      I_FCAT-OUTPUTLEN = '00006'.
      I_FCAT-SELTEXT_L = 'Comp.Code'.
      I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
    I_FCAT-FIELDNAME = 'BELNR'.
    I_FCAT-HOTSPOT   = 'X'.
    I_FCAT-OUTPUTLEN = '000013'.
      I_FCAT-SELTEXT_L = 'Document No'.
      I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
    I_FCAT-FIELDNAME = 'KUNNR'.
    I_FCAT-HOTSPOT   = 'X'.
    I_FCAT-OUTPUTLEN = '000013'.
      I_FCAT-SELTEXT_L = 'Customer Code'.
      I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
      I_FCAT-FIELDNAME = 'NAME'.
    I_FCAT-HOTSPOT   = 'X'.
      I_FCAT-OUTPUTLEN = '000015'.
      I_FCAT-SELTEXT_L = 'Customer Name'.
      I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
    I_FCAT-FIELDNAME = 'GJAHR'.
    I_FCAT-HOTSPOT   = 'X'.
      I_FCAT-OUTPUTLEN = '000005'.
      I_FCAT-SELTEXT_L = 'Fscl.Yr'.
      I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
      I_FCAT-FIELDNAME = 'KOSTL'.
    I_FCAT-HOTSPOT   = 'X'.
      I_FCAT-OUTPUTLEN = '000008'.
      I_FCAT-SELTEXT_L = 'Cost Center'.
      I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
      I_FCAT-FIELDNAME = 'XBLNR'.
    I_FCAT-HOTSPOT   = 'X'.
    I_FCAT-OUTPUTLEN = '000016'.
      I_FCAT-SELTEXT_L = 'Invoice No'.
    I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
       I_FCAT-FIELDNAME = 'SGTXT'.
    I_FCAT-HOTSPOT   = 'X'.
      I_FCAT-OUTPUTLEN = '000015'.
      I_FCAT-SELTEXT_L = 'Item Text'.
    I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
      I_FCAT-FIELDNAME = 'BUDAT'.
    I_FCAT-OUTPUTLEN = '000015'.
      I_FCAT-SELTEXT_L = 'Posting Date'.
    I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
      I_FCAT-FIELDNAME = 'MWSKZ'.
    I_FCAT-HOTSPOT   = 'X'.
    I_FCAT-OUTPUTLEN = '0000010'.
      I_FCAT-SELTEXT_L = 'Tax Code'.
    I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
      I_FCAT-FIELDNAME = 'TAXTXT'.
    I_FCAT-HOTSPOT   = 'X'.
      I_FCAT-OUTPUTLEN = '0000015'.
      I_FCAT-SELTEXT_L = 'Tax Description'.
    I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
    I_FCAT-FIELDNAME = 'HKONT'.
    I_FCAT-HOTSPOT   = 'X'.
    I_FCAT-OUTPUTLEN = '000013'.
      I_FCAT-SELTEXT_L = 'G/L Account'.
    I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
      I_FCAT-FIELDNAME = 'WRBTR'.
    I_FCAT-OUTPUTLEN = '000018'.
      I_FCAT-SELTEXT_L = 'Net Amount'.
       I_FCAT-cfieldname    = 'PSWSL'.
      I_FCAT-DO_SUM = 'X'.
      I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
    I_FCAT-FIELDNAME = 'HKONT2'.
    I_FCAT-HOTSPOT   = 'X'.
    I_FCAT-OUTPUTLEN = '000013'.
      I_FCAT-SELTEXT_L = 'Tax G/L No.'.
    I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
      I_FCAT-FIELDNAME = 'WRBTR2'.
    I_FCAT-OUTPUTLEN = '000018'.
      I_FCAT-SELTEXT_L = 'Tax Amount'.
       I_FCAT-cfieldname    = 'PSWSL'.
      I_FCAT-DO_SUM = 'X'.
      I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
    I_FCAT-FIELDNAME = 'HKONT1'.
    I_FCAT-HOTSPOT   = 'X'.
    I_FCAT-OUTPUTLEN = '000013'.
      I_FCAT-SELTEXT_L = 'Freight G/L No'.
    I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
      I_FCAT-FIELDNAME = 'WRBTR1'.
    I_FCAT-OUTPUTLEN = '000018'.
      I_FCAT-SELTEXT_L = 'Freight Amount'.
       I_FCAT-cfieldname    = 'PSWSL'.
      I_FCAT-DO_SUM = 'X'.
      I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
      I_FCAT-FIELDNAME = 'GROSS'.
    I_FCAT-OUTPUTLEN = '000018'.
      I_FCAT-SELTEXT_L = 'Gross Amount'.
      I_FCAT-DO_SUM = 'X'.
       I_FCAT-cfieldname    = 'PSWSL'.
      I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
      I_FCAT-FIELDNAME = 'PSWSL'.
    I_FCAT-OUTPUTLEN = '000018'.
    I_FCAT-OUTPUTLEN = '000004'.
      I_FCAT-SELTEXT_L = 'Curr.'.
      I_FCAT-DO_SUM = 'X'.
      I_FCAT-FIX_COLUMN = 'X'.
      APPEND I_FCAT.
      CLEAR  I_FCAT.
    LS_SORT-UP = 'X'.
      LS_SORT-FIELDNAME = 'BELNR'.
        APPEND LS_SORT TO I_SORT.
        CLEAR LS_SORT.
    LAYOUT-ZEBRA = 'X'.
    ENDFORM.

  • Not getting proper output in .rtf format

    Hi all i m getting this output when running request with an rtf template.o am working with XML publisher 4.5 and have developed template in microsoft word.
    Here is the output
    %PDF-1.4
    5 0 obj
    <<
    /Type /Page
    /Parent 3 0 R
    /Resources 4 0 R
    /Contents 6 0 R
    /MediaBox[ 0 0 612.0 792.0 ]
    /CropBox[ 0 0 612.0 792.0 ]
    /Rotate 0
    >>
    endobj
    6 0 obj
    << /Length 155 /Filter /FlateDecode >>
    stream
    x¿m¿!¿¿¿w`<¿¿¿VO¿¿¿¿<Ù¿¿¿¿¿ ¿04)¿¿¿j¿¿Z¿¿¿¿!¿I¿*¿¿PB¿¿¿¿b{¿¿*¿¿¿¿¿¿¿¿-¿¿ü¿¿C¿&T¿¿ndstream
    endobj
    1 0 obj
    <<
    /Type /Catalog
    /Pages 3 0 R
    >>
    endobj
    2 0 obj
    <<
    /Type /Info
    /Producer (Oracle XML Publisher 4.5.0)
    >>
    endobj
    3 0 obj
    <<
    /Type /Pages
    /Kids [
    5 0 R
    /Count 1
    >>
    endobj
    4 0 obj
    <<
    /ProcSet [ /PDF /Text ]
    /Font <<
    /F0 7 0 R
    >>
    >>
    endobj
    7 0 obj
    <<
    /Type /Font
    /Subtype /Type1
    /BaseFont /Helvetica
    /Encoding /WinAnsiEncoding
    >>
    endobj
    8 0 obj
    [ 5 0 R /XYZ 84.6 604.4 null ]
    endobj
    xref
    0 9
    0000000000 65535 n
    0000000401 00000 n
    0000000456 00000 n
    0000000534 00000 n
    0000000602 00000 n
    0000000010 00000 n
    0000000168 00000 n
    0000000678 00000 n
    0000000783 00000 n
    trailer
    <<
    /Size 9
    /Root 1 0 R
    /Info 2 0 R
    /ID [<974c380ea692f8fdbdad4b9206bce756><974c380ea692f8fdbdad4b9206bce756>]
    >>
    startxref
    832
    %%EOF
    any idea
    naveen

    Your issue has nothing to do with upgrading to 5.0, it is a post script printer issue. That output that is printing to your printer is caused because PASTA is not setup correctly. You should be able to query Metalink for PASTA and get the proper setup steps.
    Brett

  • Report 2.5 not getting proper output

    the problem with the report is like this
    if i input the value in forms 4.5 for amount is 2,272,359.52USD the output is perfect in changing the format to words.it shows two million two hundred seventytwo thousand three hundred and fiftynine dollars and fiftytwo cents only.
    BUT when i input a value like 2,580,608.89 the output in words is showing an error like twomillion five hundred eighty thousand (sixty)the error) and eightynine cents only.
    the correct figure is six hundred and eight
    the query is select to_char(to_date(trunc(value,'j'),'jsp')) from system.dual;
    instead of showing six hundred and eight it is showing sixty.
    let me know about this at the earliest.
    null

    Hi,
    try changing ur code like dis,
    Tables:TOBJ.
    SELECT-OPTIONS:S_BNAME FOR TOBJ-BNAME.
    DATA:BEGIN OF T_TOBJ Occurs 0,
    OBJCT LIKE TOBJ-OBJCT,
    BNAME LIKE TOBJ-BNAME,
    END OF T_TOBJ.
    START-OF-SELECTION.
    SELECT OBJCT BNAME FROM TOBJ INTO TABLE T_TOBJ WHERE BNAME IN S_BNAME
    AND ( OBJCT  like 'Z%' or OBJCT  like 'Y%' ).
    LOOP AT T_TOBJ.
    WRITE:/ T_TOBJ-OBJCT.
    ENDLOOP.
    Cheers,
    Will.

  • Lost newly purchased Iphone5, Reported complain in police station but not getting proper responce. Can apple help me out for this?

    Lost newly purchased Iphone5, Reported complain in police station but not getting proper responce. Can apple help me out for this?

    Oh, don't worry. I know exactly. I'm a retired law enforcement officer after 30 years. I didn't mean for them to allow you to use the Internet, I meant for them to assign an officer to try and track the device for the victim. Again, that would require the victim to provide their Apple ID and password, which most would not want to provide.
    Pinging the phone as you mention is only when there is probable cause and that is done through the carrier.
    I'm glad to see someone also understand that a stolen cell phone is not as important to law enforcement as it is to the victim. It is unfortunate as smartphones get more expensive. Hopefully as iOS 7 makes it debut later this year, the work Apple has done will have some impact on smartphone theft. Other manufactures and carriers are starting to improve here in the states. It never was something carriers worryed about with blacklisting. This is where they were a step ahead in Europe.

  • Not getting proper payment advice

    Hi,
    When we are runing F110, we are not getting proper payment advice.
    Vendor getting information on payment advice total of amount paid no invoice details are printing, if vendor having less than 4 line items in payment run.
    If vendor having more than 4 line items in payment run vendor getting correct details.
    In this every time we have to inform vendor what invoices paid if vendor having less than 4 invoices.
    Can anyone help us to resolve this and get correct details of payment advice.
    Thanks,
    Sridhar

    Hello Sridhar,
    Please check the Payment Advice output control settings for the particular Payment Method and Company Code in FBZP.
    I assume that your current configuration reflects "Payment Advice after 4 lines"...which needs to be de-activated and change the setting to "Always Pyt Adv."
    Reward if this resolves your problem.
    With Regards
    Vijay Gajavalli

  • "could not get an output file for the document (error RWI 00314)"

    Hi
    We are getting the following error when running the Webi Reports "could not get an output file for the document (error RWI 00314)". The issue seems to be related to Tomcat Memory Heap size, our Tomcat Java heap Size is 1024MB. We were able to resolve  the issue by restarting the Tomcat. We cannot restart the Tomcat in Prod if this is happening frequently.
    Can some one please suggest  any other solution other than restarting the Tomcat frequently, our platform is BOBJ XI 3.1 SP3 with FP 3.1 our Wndows OS is 32 Bit.
    Thank's for your help

    Hi Sreeram,
    Earlier i also faced same kind of problem.
    To solve this kind of problems you need to shutdown the server.
    second thing is when patches missed that time also you will get this kind of problem.
    check j2ee connection is it properly working or not?
    Regards,
    samar reddy.

  • HT4910 i save my photos to camera roll. then back up but can't see it on icloud. why? we just lost 300 photos on my other iphone because we do not get proper help. that's why i need to learn now.

    i save my photos to camera roll. then back up but can't see it on icloud. why? we just lost 300 photos on my other iphone because we do not get proper help. that's why i need to learn now.

    You can't view your back up files at icloud.com.
    You can't view your camera roll and you can't view your Photo Stream files at icloud.com.
    The icloud back up plan allows you to "restore" your iOS device from the files you backed up at icloud.com.

  • How to get the output of the report in pdf format

    how to get the output of the report in pdf format?
    Thanks in advance,
    madan.

    Refer these links
    http://www.sap-img.com/bc037.htm
    http://www.members.tripod.com/abap4/Save_Report_Output_to_a_PDF_File.html
    CONVERT_ABAPSPOOLJOB_2_PDF FM convert abap spool output to PDF

  • Cosuming web service using consumer proxy - not getting the output

    Hello All,
    I am not getting the consumer proxy output structue filled though the web service is successfully executed. I did the following steps.
    1. Created a webservice form RFC BAPISDORDER_GETDETAILEDLIST
    2. Created a consumer proxy for the above created WSDL document.
    3. Tested the service by executing the proxy directly by feeding the input in the XML (sales document and partner view). it is working fine
    4. Created a program to access the consumer proxy by passing the input(same input as per XML). I am not getting the output in the proxy output structure ( but I can see the RFC is successfully executed and having the right values in the debugging mode).
    Is this the issue is due to the date fields (XML cannot consider a blank date )?
    Please note: the partner output table parameter in the bapi (output I am looking for ) is not having any date fields.
    Please help me to sort out this issue.
    Thanks,
    Gopi

    Hi Gopi,
    From your description, I assume you used the SE37 transaction's menu option Utilities -> More Utilities -> Create Web Service -> From the Function Module, to expose the BAPI concerned as a Web Service.
    If this is the case, then it is possible that you are falling foul of your SAP User ID not having the necessary Remote Function Call authorization to execute the BAPI.
    A prerequisite for successfully calling an RFC-enabled Function Module (which is what a BAPI is) is that the User ID used to call the function module must have the required RFC authorization (Authorization Object S_RFC).  For example, when calling function module BAPI_CUSTOMER_GET_ROOT, if the User ID lacks the requisite authorization in the target system, the following error message will be received by the Consuming application:
        User <User ID> has no RFC authorization for function group V02HBAPI.
    Notice, as you can see from the above message, RFC execution authorization is implemented at the Function Group level, not at the Function Module level.  In othere words, granting a user the authorization to a function group (authorization object S_RFC) enables the user to execute all RFC-enabled function modules contained within that function group.
    I am guessing the BAPI works for you in debug mode because you are not calling the BAPI remotely.
    Let me know if this helps.
    Best Regards,
    Andy.

  • Not getting any output when running the Webservice through Xacute

    hai all,
    I am using a transaction as web service to be called in another transaction in the same server. I can see the output of the web service in the tracer, when I execute it in the BLS. But if I run the same transaction via xacute query I am not getting any output. I had read in one of the threads that reference document has to be assigned. I tried doing that also, but no luck. Can somebody pls. throw some light on how to use reference document & whether it is required in my case?
    Thanks,
    vidhya

    Hai Rick,
                    thanks for the hint i have used document and row actions now iam gettting output through xacute...
    thanks,
    vidhya.

  • Why do we not get logging output for the clients?

    Q: Why do we not get logging output like #show log all | include <client mac address> for the wireless clients?
    A: When the clients connected to Bridge mode SSID, Firewall hits and logging does not work.  
    This is one of the limitations with bridge mode.  

    logical. fair. I can understand the confusion in policy  as another fine cloud service - DropBox - has a different model for increases in free storage amounts for one account = evangelism. As many policies as there are services probably.
    cya 'round o' kilted one
    CCC

  • HT5484 Hi, I am using "Avenir Heavy" font in my iOS 6 app but when I run it on iOS5 the label on which I am placing Avenir fonts changes lot and I am not getting proper look n feel. How can I solve this issue ?

    Hi, I am using "Avenir Heavy" font in my iOS 6 app but when I run it on iOS5 the label on which I am placing Avenir fonts changes lot and I am not getting proper look n feel. How can I solve this issue ?

    Post your question on the Developer forums:  http://devforums.apple..com

  • I am not getting proper guidelines from apple regarding the querry

    I am not getting proper guidelines from apple regarding the querry, really iPhone is headache for me as I am unable to use the same from last 10 days

    If you would like help from here, you'll have to say what the problem is.  "Unable to use" and "not getting proper guidelines... regarding the query" tells nothing about your problem other than your phone isn't working.
    Also, judging by your other post where you are looking for an alternative to the iPhone, do you want a non-Apple phone or do you want your problem fixed.  No sense having people waste their time helping you fix this one if are going to get another phone.

  • I am not getting any output from the speakers of the ipad. However the sound is ok if i use headphones. Can anyone help?

    I am not getting any output from the speakers of the ipad. However the sound is ok if i use headphones. Can anyone help?

    1. Check the Side Switch
    http://i1224.photobucket.com/albums/ee374/Diavonex/00bf6eae.jpg
    2. Double-click the Home button and swipe to the right and check volume control
    http://i1224.photobucket.com/albums/ee374/Diavonex/ea5b842d.jpg
    3. Settings>Notification>Game Center>Sound>ON
    http://i1224.photobucket.com/albums/ee374/Diavonex/67a15edf.jpg

Maybe you are looking for

  • Mail: smart mailbox contents disappears/search doesn't work & fix is only temporary

    Since installing Mavericks (including the Mail update), the contents of my Smart Mailboxes disappears (the Mailboxes themselves are listed, there's just no content) and my ability to get results from Search within Mail disappears.  I have done a lot

  • Need help in Group by query

    Hi All, I am using Oracle 11 g. I have a query which is giving output as SELECT o.campgn_no , m.lang , COUNT(1) FROM tg_main m, sp_offer o WHERE m.offer_id = o.offer_id AND o.campgn_no IN (SELECT campgn_no FROM sp_campgn_cntrl WHERE product_code = 'O

  • Unable to have field in selection screen of Infopackage

    Hello Gurus, I have a small problem, I am unable to bring on field in selection screen in Infopackage, even thou the object is ticket in DataSources selection option, I have noted that the object is of type DEC is it something to do with, Or is their

  • Rookie OC'er - Help appreciated

    Hello, everyone! Let me say how incredibly excited I am to have found this forum - experts with the x58 series are tough to find!  First time poster, be gentle... As I stated above, I'm a novice OCer in need of some love. I recently built an i7 920 r

  • How To: Dynamically display value

    Hi, I have created a employee details form (all fields in this form not bounded with database). I want to display employee name based on employee code (Employee code field is a popup Lov (select ename,empno from emp)). Please help me ! With Regards S