Hi I Need Perfect Out Put For This Clasical Report Plz

REPORT  YSALES_REPORT_SATISH no standard page heading
                            line-size 400
                            line-count 40(5).
TABLES
Tables : vbak,      "Sales Document Header Level1
         vbap,      "Sales Document Header level1
         kna1.      " General data in customer Master
Internal Tabel For T_VBAP.
DATA     : Begin of t_vbap occurs 0,
           matnr like vbap-matnr,
           posnr like vbap-posnr,
           vbeln like vbap-vbeln,
           arktx like vbap-arktx,
           kwmeng like vbap-kwmeng,
           cmkua like vbap-cmkua,
           end of t_vbap.
Internal Tabel For T_TAB.
DATA   :  Begin of t_tab occurs 0,
          kunnr like vbak-kunnr,
          vbeln like vbak-vbeln,
          audat like vbak-audat,
          netwr like vbak-netwr,
          vkorg like vbak-vkorg,
          name1 like KNA1-name1,
          land1 like KNA1-land1,
          end of t_tab.
Internal Tabel For T_FINAL.
DATA   :  Begin of t_final occurs 0,
          kunnr like vbak-kunnr,
          vbeln like vbak-vbeln,
          audat like vbak-audat,
          netwr like vbak-netwr,
          vkorg like vbak-vkorg,
          matnr like vbap-matnr,
          posnr like vbap-posnr,
          arktx like vbap-arktx,
          kwmeng like vbap-kwmeng,
          cmkua like vbap-cmkua,
          name1 like KNA1-name1,
          ladn1 like KNA1-land1,
          end of t_final.
*SELECTION SCREEN
selection-screen begin of block b1 with frame title text-b03.
parameters         :  P_kunnr like vbak-kunnr.
select-options     :  S_vbeln for vbak-vbeln,
                      S_audat for vbak-audat.
SELECTION-SCREEN  END OF BLOCK B1.
*START-OF-SELECTION.
start-of-selection.
  select matnr posnr vbeln arktx kwmeng cmkua from vbap
                               into table t_vbap
                               where vbeln in S_vbeln .
  select single kunnr vbeln audat netwr vkorg from vbak
                               into t_tab
                               where vbeln in S_vbeln.
  select single name1 land1 from kna1
                     into (t_tab-name1,t_tab-land1)
                     where kunnr = p_kunnr.
end-of-selection.
Loop At T_VBAP.
  loop at t_vbap.
    read table t_tab with key vbeln = t_vbap-vbeln.
   MOVE-CORRESPONDING  ITAB_VBAK to ITAB_FINAL.
    move :
           t_tab-vbeln to t_final-vbeln,
           t_tab-kunnr to t_final-kunnr,
           t_tab-audat to t_final-audat,
           t_tab-vkorg to t_final-vkorg,
           t_tab-netwr to t_final-netwr.
          t_tab-name1 to t_final-name1,
      t_tab-land1 to  t_final-land1.
   append  t_final.
    clear  t_final.
  endloop.
Loop At t_final.
  loop at t_final.
    write : /1 sy-vline, 2 t_final-vbeln color 4,
             20 sy-vline, 21 t_final-posnr color 5,
             40 sy-vline, 41 t_final-matnr color 2,
             60 sy-vline, 61 t_final-arktx color 1,
             80 sy-vline, 81 t_final-kwmeng color 7,
             100 sy-vline, 101 t_final-cmkua color 3,
             120 sy-vline, 121 t_final-kunnr color 6,
             140 sy-vline, 141 t_final-audat color 2,
             160 sy-vline, 161 t_final-netwr color 6,
             180 sy-vline, 181 t_final-vkorg color 1,
             210 sy-vline, 211 t_final-name1 color 7,
             230 sy-vline, 231 t_final-ladn1 color 5,
             250 sy-vline.
  endloop.
  uline /1(250).
*TOP-OF-PAGE
top-of-page.
  uline /50(24).
  write : /50 sy-vline , 52 'SALES ORDER DETAILS' COLOR 6,
                         74 SY-VLINE.
  ULINE /50(24).
  ULINE /1(250).
  write : /1 SY-VLINE, 2  'SALES DOC NO',
                20 SY-VLINE, 21  'SALES DOC ITEM',
                40  SY-VLINE,41 'MATERIAL NO',
                60 SY-VLINE, 61  'SHORT SALES TEXT',
                80 SY-VLINE, 81  'CUMM ORDER SALES',
               100 SY-VLINE, 101 'REQ DEVL DATE',
               120 SY-VLINE, 121 'CUSTOMER NO',
               140 SY-VLINE, 141 'DOC DATE' ,
               160 SY-VLINE, 161 'NET VALUE SALES',
               180 SY-VLINE, 181 'SALES ORG',
               210 SY-VLINE, 211 'CUSTOMER NAME',
               230 SY-VLINE, 231 'CUSTOMER CONTY' ,
               250 SY-VLINE.
  ULINE /1(250).

Hi
Check the sy-subrc value after each select statement.
if sy-subrc = 0.
Proceed.....
else.
message E398(00) with 'No Data found'.
endif.
Thank-You.
regards
vinsee

Similar Messages

  • Configration of Email out put for Billing document

    Hi Gurus,
    I need step by step configration document for email and print out put for multipal sold or payers. it will be a great help if you provide this document .
    Thanks & regards
    Srinivas

    Hi kiran lahari
    As you have maintained many key combinations in your access sequence and as you are telling you have checked exclusion indicator.
    My suggestion is maintain the key combination Sales Organization/Billing Type or billing type  and assign this in the last step and don't check the exclusive indicator. As system picks the last key combination only.
    Now maintain condition record VV31 for any of the these key combination of the above two and check system will give the output.
    if you have copied the standard RD00 output into ZD00 output change in the output procedure the output type to ZD00 from RD00. and assign it to the billing document type
    Regards
    Srinath

  • I have an Intel iMac running OSX 10.6.8. I would like to use Final Cut Pro 10.1. I know I need OSX 10.9 for this. Can I run both 10.6.8 and 10.9 on the iMac ? I do not want to convert completely to 10.9 because of my existing software. Thanks for any help

    I have an Intel iMac running OSX 10.6.8. I would like to use Final Cut Pro 10.1. I know I need OSX 10.9 for this. Can I run both 10.6.8 and 10.9 on the iMac ? I do not want to convert completely to 10.9 because of my existing software. Thanks for any help

    It would depend on how old your IMac is, how mush memory you have, it it can be upgraded by OWC, etc. I have a 2006 Macbook Pro and would NOT put Mavericks on it or espeacially FCP 10.1.1 on it because the most memory it can have is 4 GB. You need at least 8 GB to work with Final Cut Pro 10.1.1. IMHO.
      I would try to find a copy of Final Cut Express perhaps.
      Does this answer your question?

  • Need pl/sql stmnts. for this simple logic

    Hi,
    I need PL/SQL program for this simple logic i am doing mistake somewhere unbale to trace
    out ..
    select * from GSR03_PO_DTL;
    PO_NUM
    L53177000 -- > no changes reqd (only one entry with new format)
    L00041677 --> to be updated to L41677000(only one entry with OLD format)
    L43677000 -- > no change reqd (exists one row with new format and old format like below)
    L00043677 -- > to be deleted this is old format (and new format like above already exists)
    EX:
    L00012345 --- old format
    L12345000 --- new format
    Hope question is clear. I written the following program.
    update is working fine but delete is not working.
    Please help.
    Thanks in Advance
    Devender
    declare
    Cursor c_test is
    (select po_num from GSR03_PO_DTL);
    BEGIN
    FOR r_test in c_Test
    LOOP
    dbms_output.put_line (r_test.po_num);
    IF ('L'||substr(r_test.po_num,5,5)) = ('L'||substr(r_test.po_num,2,5)) then
         dbms_output.put_line ('delete stmnt');
    END IF;     
    EXIT WHEN c_test%NOTFOUND;
    END LOOP;
    FOR r_test in c_Test
    LOOP
    IF r_test.po_num like 'L000%' then
    IF ('L'||substr(r_test.po_num,5,5)) is not NULL then
         update GSR03_PO_DTL set PO_NUM = 'L'||substr(po_num,5,5)||'000'
         where po_num like 'L000%' ;
         dbms_output.put_line ('update stmnt');
    END IF;     
    END IF;
    END LOOP;
    END;
    *********************

    No need for PL/SQL, man.
    SQL> SELECT po_no FROM po1
      2  /
    PO_NO
    L53177000
    L00041677
    L43677000
    L00043677
    SQL> UPDATE po1 y
      2  SET    y.po_no = 'L'||substr(y.po_no,5,5)||'000'
      3  WHERE  y.po_no LIKE 'L000%'
      4  AND    NOT EXISTS ( SELECT null FROM po1 x
      5                      WHERE x.po_no =  'L'||substr(y.po_no,5,5)||'000')
      6  /
    1 row updated.
    SQL> DELETE FROM po1 y
      2  WHERE  y.po_no LIKE 'L000%'
      3  AND    EXISTS ( SELECT null FROM po1 x
      4                  WHERE x.po_no =  'L'||substr(y.po_no,5,5)||'000')
      5  /
    1 row deleted.
    SQL> SELECT po_no FROM po1
      2  /
    PO_NO
    L53177000
    L41677000
    L43677000
    SQL> Cheers, APC

  • A wallet needs to be configured for this instance of Application Express

    hi
    I m very new to APEX. I could create web service client with wsdl. But when service is on https i get message
    "a wallet needs to be configured for this instance of Application Express".
    I have created wallet using OWM (10.2.0.1.0) at location c:\del_sometime
    Using admin i configured APEX instance settings wallet as
    Wallet Path = file:c:\del_sometime
    And checked in database too
    SQL> ALTER SESSION SET CURRENT_SCHEMA = APEX_030200;
    Session altered.
    SQL> SELECT
    2 APEX_INSTANCE_ADMIN.GET_PARAMETER('WALLET_PATH')
    3 from dual;
    APEX_INSTANCE_ADMIN.GET_PARAMETER('WALLET_PATH')
    file:c:\del_sometime
    Any idea whats wrong? I am following steps from http://download.oracle.com/docs/cd/E14373_01/admin.32/e13371/adm_wrkspc.htm#BABFBJEA

    also whe I try following i keep getting error failure to open file. I am on XP and file is present with proper permissions.
    SQL> SELECT utl_http.request('https://support.oracle.com/',null,'file:c:\del_sometime\') from dual;
    SELECT utl_http.request('https://support.oracle.com/',null,'file:c:\del_sometime\') from dual
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1577
    ORA-28759: failure to open file
    ORA-06512: at line 1

  • HT4972 i am trying to download some apps onto my iphone 3gs and it keeps saying i need to update it for this but ive trying and there is no update option on the phone or through itunes, it keeps saying its up to date, can anyone help please?

    i am trying to download some apps onto my iphone 3gs and it keeps saying i need to update it for this but ive trying and there is no update option on the phone or through itunes, it keeps saying its up to date, can anyone help please?

    Would this matter then? can you not update the 3g to the lastest software?

  • If i were to get this computer would i need a new network for this or what accessories  would i need?

    If i were to get this computer would i need a new network for this or what accessories  would i need?

    If you have WiFI which is not something extremely specific, and I believe it is not - you are fine with network, just go and buy you a computer and enjoy.

  • Need a Syatem variable for Executing the report by RFC.

    Hi Experts,
    Need a Syatem variable for Executing the report by RFC.
    what i mean to say is,i can execure the report directly ...then no issues.
    But if i execute the Report by RFC ,then i should put a condition with system variable...
    Please suggest me ,how can put a condition when i am executing the report through RFC.
    Thanks
    Babu

    Hello Friend,
    what I understood that you want to put some extra condition if that report is getting called from RFC...
    you can use the system variable SY-CPROG....it will hold the value of the report when it is geeting executing directly...
    but when it is getting executed therough RFC...it will hold that RFC name...
    Thanks
    Krish

  • My ipod touch was stolen and I need the serial number for the police report how can i recover it

    my ipod touch was stolen and i need the serial number for the police report how can i get that

    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • Downloading the report out put for wchich split conatiner is used

    hi friends i used split container for my report out put .here iam displaying two alvs in the two parts of the conainer.
    i put some heading on the container in one box, is it possible to download all the out put into one excel file.

    Hi sudheer ,
    There is no standart functionality for this. You need to code for your custom excel output.

  • Mail out put for BA00

    Hi.,
            I want a mail to get triggered to the customers personal mail id when raised an order and out put is issued,I gave mail id in sold to party.And t here is external send routine also in BA00,even though i couldnt process that
    Gurus please help me
    Thanks & Regards
    Narayana
    Message was edited by:
            manam narayana

    Use the following method
    Defining Output Devices for Printing Using E-Mail
    To print using e-mail, you must specify an output device in the print window that has been specially set up for this print method. You can create the output device through the device definition.
    This definition creates an output device that sends the print data as an attachment to an e-mail. You can then open and print the print data with the appropriate program.
    ·        The access method M must be available in the device definition (transaction SPAD -> Output Devices -> Change -> Output device -> Create/Create Using Template -> HostSpoolAccMethod -> Host Spool Access Method).
    If the access method M is not available, you must first run report RSPO0075 in transaction SE38, to activate the access method. It will then be available to you in transaction SPAD.
    To do this, enter the name of the report in the Program field in transaction SE38, and choose  Execute. Select the option Add Access Method, and choose the access method M as the access method to be added.
    ·        In principle, you can use any device type that can be used in the device definition. However, you must ensure that a suitable printer or display program is available on the target system.
    For e-mail printing with device type pdf1, there must be a PDF display program available, such as Adobe Acrobat Reader, so that you can open and print the attached PDF file as required.
    Procedure
    If you want to create a device definition for printing using e-mail, follow the procedure below:
           1.      Call transaction SPAD, and choose Output Devices.
           2.      If you are not in change mode, switch to this mode by choosing Change.
           3.      You can now do the following:
    ¡        You can create a new device definition by choosing Output Device -> Create.
    ¡        You can use an existing device definition as a template.
    To do this, click the entry for the output device that is to be used as a template, and choose Output Device -> Create Using Template.
           4.      Specify the name of the output device and fill out the mandatory fields of the individual tab pages as follows:
    Tab Page
    Field
    Entry
    Additional Information
    Device Attributes
    Device Type
    (recommended) pdf1
    You can use any device type as long as an appropriate printer or viewer is available on the target host.
    Spool server
    depends on system
    Select a spool server (application server with a spool work process) from the list.
    Device Class  standard printer
    Host Spool
    Access Method
    Host Spool Access Method (operating system spooler)
    M (for mail)
    E-Mail Address
    The recipient of the e-mail is determined in three steps.
    a.      The system first checks whether the user has already entered an e-mail address in the print window that appears after the user triggers the print function. If this is the case, the system sends the e-mail to this address.
    If the user in the print window selects an output device with access method M for printing using e-mail (and for releases up to SAP Web AS 620, then chooses enter), a field appears, in which the user can enter an e-mail address if required. The length of this mail address is restricted to 50 characters.
                                b.      If no e-mail address is specified, the e-mail is sent to the address that is specified in the device definition.
    The length of this e-mail address is also restricted to 50 characters.
                                c.      If there is neither an e-mail address specified in the print window, nor in the device definition, the mail is sent to the mail address from the user profile (transaction SU01). By default, the creator of the mail is entered here.
    This function was originally developed to replace the frontend printing function that was missing up to SAP Basis 4.6 for the SAP GUI for HTML. The user should be able to send the print file to himself or herself by e-mail and to print it.
           5.      Save your entries.
    The message text of the e-mail is defined by default, however, you can change it, as described at the send of SAP Note 311037.
    For more information about printing using e-mail, see SAP Note 513352 in the SAP Service Marketplace.
    Result
    You can use the output device defined for access method M to print using e-mail. If you choose a print function such as , you can specify this output device in the following print window.

  • Need inputs from u for this scenario?

    Hi all,
    I have one scenario I need all inputs from u all.
    My scenario is like this.
    I will get data from online transactions I need to collect all the day transaction into one folder and upload them into SAP system at one particular time.
    Which are the best adapters for this scenario.
    If I have standard IDOC I will go with IDOC adapter at receiver side if not proxy.
    But collecting all the data into one folder and schedule the process at particular time.
    How to do this and what are the adapter I can use.
    Thanks and Regards,
    Phani Kumar.

    Hi,
    I hope for online transactions and for tracking it and saving you can write a java script where you can prepare a XML file to get all transactions for particular order and always append it to the end of that xml file. At end of the day you will have a complete transaction list in the XML you are creating. You can use the file name as you desired but i will prefer datewise name.after the completion of that Transaction recording step, put it in some In folder from where your XI system willo take input.
    Now this is file to Idoc scenario or whatever you want to use to post data to SAP Systems. The sechdule this scenario to run in the night or your desired time. After processing the XML file put that file\ to some other complete folder , not to get it again.
    For collection of transactions you can also use databases. Then you scenario will be JDBC to IDOC or the thing you want to post data in SAP system.
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : reward pints if helpful

  • Print out put for miro and incomming excise invoice(j1iex)

    Hi guru's
    my client need print out for miro and incoming excise invoice.Plz help me in configuring them.
    thanks
    with regards

    hi,
    Do check the NACE transaction...
    Message schema is nothing but a program which will come into action whenever there will any need of output...
    So, check your message schema...Define the output type as per your requirement...
    Condition table consist of all those Fields which will be taken into consideration, whenever you trigger the message output...and those fields will be taken into consideration for the req. output...
    Access seq. will provide you the scequence in which the fields are be read and perform an output...
    At last printer determination is main, by which you'll print output...
    hope it helps..
    Regards
    Rahul.

  • How to find out the userid  is ddic,  how to find out thepassword for this.

    hi
      i am mohan. We user-id is DDIC. we forgot the password for this user id. how to find out the password for this. we find the table for this usr02. but it is hexa decimal code. how to find that code

    hi
      check these threads
    Re: Check SAP username and password.
    Re: Validation of user name, pwd  in ZXUSRU01 exit
    if helpful, reward
    Sathish. R

  • I upgraded to lion when it first came out but today i tried to open my photoshop cs2 and its telling me the powerpc applications are no longer supported is there any fix out there for this

    i upgraded to lion when it first came out but today i tried to open my photoshop cs2 and its telling me the powerpc applications are no longer supported is there any fix out there for this

    Lion is Not compatible with PPC (Power PC) based software, such as your older version of PhotoShop.  Your choices are you can either upgrade to the newer version of PhotoShop, or you can backup your data and apps, erase your harddrive and reinstall Snow Leopard.
    Hope this helps

Maybe you are looking for

  • Vendor assignment for multiple line tiems

    All, We are with SRM 5.0, Classic Scenario. I have created SC with 2 line items and given different vendors for two line items of the same SC. It should generate two POs for this, right ? Bt, only one Purchase Req. and PO is created and showing in R/

  • Regarding ALE and IDOC's

    anybody send me quick explanation of ALE configuration and IDOC'S with detailed explanation of each and every step...... i tried a lot but i didn't get that material........... good material will be rewarded with maximum points.......... plz don't gi

  • Populate Serial Number from SO to forms

    Hi Gurus Need yr expertise.. I have maintained serial number in Sales Order (Extras --> Technical Objects).. I have a requirement to print the serial number in forms.. How do I do that? I have checked the serial number and it is in structure (RIWOL-S

  • Using Windows Media Player to burn CDs

    I use Acoustica to create music files from my audio tapes. Then I burn these files to a CD. Sometimes the files will be listed with the file time, and sometimes without. When there is no time, Media Player says it can't burn that file because it can'

  • HP Compaq Pavilion DV2130US Windows 7 32 Bit audio Driver

    I cannot find the HP Compaq® Pavilion DV2130US Windows® 7 32 Bit audio Driver. This unit also comes with a small remote that I assumes runs on blue tooth. This also does not work. Are they linked together.