How to get ALV saved vairant while excuting the program .

Hi all,
The program will display in the ALV format.suppose if i save that it will save in the variants .
The requirement is needs to taht variant in the selection screen.
How do we get that,Could you please help out.
Thanks
Sriman.

Hello,
DO like this.
DATA : g_r_disp_variant TYPE disvariant.
SELECTION-SCREEN BEGIN OF BLOCK variant WITH FRAME TITLE text-003.
PARAMETERS:  p_varian LIKE disvariant-variant DEFAULT '/STANDARD'.
SELECTION-SCREEN END OF BLOCK variant.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_varian.
  PERFORM show_existing_display_variants.
*&      Form  SHOW_EXISTING_DISPLAY_VARIANTS
*       text
*  -->  p1        text
*  <--  p2        text
FORM show_existing_display_variants.
  g_r_disp_variant-report = sy-repid.
  CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
       EXPORTING
            is_variant    = g_r_disp_variant
            i_save        = 'A'
       IMPORTING
            es_variant    = g_r_disp_variant
       EXCEPTIONS
            not_found     = 1
            program_error = 2
            OTHERS        = 3.
  IF sy-subrc = 0.
    p_varian = g_r_disp_variant-variant.
  ENDIF.
ENDFORM.                               " SHOW_EXISTING_DISPLAY_VARIANTS
*form get_output
  g_repid = sy-repid.
*  display variant
  g_r_disp_variant-report = sy-repid.
  IF NOT p_varian IS INITIAL.
    g_r_disp_variant-variant = p_varian.
  ENDIF.
*get_output
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            i_callback_program = g_repid
            i_grid_title       = 'PRICE COMPARISON REPORT:'
            is_layout          = it_layout
            it_fieldcat        = it_fldcat
            is_variant         = g_r_disp_variant
            i_default          = 'X'
            i_save             = 'A'
       TABLES
            t_outtab           = g_t_itab_alv
       EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
Vasanth

Similar Messages

  • How to get total number of times excuted the report

    hi,
    Can you spend for a while.
    Requirement is when the Monthly summary report: When report executed then in the header it has to display how many times times this is executed and data has to display(this completed).
    For example out put is:
    No.of times executed:20   (means this is 20th time this report is running)
    here data has to display(This i completed).
    Thank you,
    Anu.

    Anitha Reddy wrote :
    Requirement is when the Monthly summary report: When report executed then in the header it has to display how many times times this is executed and data has to display(this completed).
    For example out put is:
    No.of times executed:20 (means this is 20th time this report is running)
    here data has to display(This i completed).
    If you completed everything then what is your problem ??

  • How to get ALL validate-errors while insert xml-file into xml_schema_table

    How to get all validate-errors while using insert into xml_schema when having a xml-instance with more then one error inside ?
    Hi,
    I can validate a xml-file by using isSchemaValid() - function to get the validate-status 0 or 1 .
    To get a error-output about the reason I do validate
    the xml-file against xdb-schema, by insert it into schema_table.
    When more than one validate-errors inside the xml-file,
    the exception shows me the first error only.
    How to get all errors at one time ?
    regards
    Norbert
    ... for example like this matter:
    declare
         xmldoc CLOB;
         vStatus varchar
    begin     
    -- ... create xmldoc by using DBMS_XMLGEN ...
    -- validate by using insert ( I do not need insert ;-) )      
         begin
         -- there is the xml_schema in xdb with defaultTable XML_SCHEMA_DEFAULT_TABLE     
         insert into XML_SCHEMA_DEFAULT_TABLE values (xmltype(xmldoc) ) ;
         vStatus := 'XML-Instance is valid ' ;
         exception
         when others then
         -- it's only the first error while parsing the xml-file :     
              vStatus := 'Instance is NOT valid: '||sqlerrm ;
              dbms_output.put_line( vStatus );      
         end ;
    end ;

    If I am not mistaken, the you probably could google this one while using "Steven Feuerstein Validation" or such. I know I have seen a very decent validation / error handling from Steven about this.

  • How to get file from server while click on link

    Hi,
    i created on link and i gave one server path to select file from server but while clickinng on link it no displaying any thing.
    following is the Destination url that i gave for the item.
    /u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/
    please tell me how to get file from server while click on link.

    Ok I got your requirement now.
    If you are getting file names from view attribute then you should not be adding destination URI property for the link.
    Instead you can use OADataBoundValueViewObject API.
    Try below code in your controller processRequest method:
    I am assuming that you are using classic table.
    Also in below example it considers OAMessageStyleText and you can replace it with link item if you want.
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("<table item id>");
    OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
    OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/"+"<vo attr name which stores file name for each row>");
    m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
    Regards,
    Sandeep M.

  • How to get full file path while uploading a file in flex Applications

    How to get full file path while uploading a file in flex applications.
    FileReference Object is giving file name and other details but not the actual path.
    Is there any workaround to to get the file path?.
    Thanks

    Why not ask in the Flex forum; it is more likely that someone over there knows.

  • How to get back music lost while syncing to itunes?

    how to get back music lost while syncing to itunes?

    If the music you lost during the sync process is no longer on the iPod, in your iTunes library, or in a backup elsewhere, I'm afraid you are out of luck.
    You may be able to redownload any lost purchases via iCloud (pending you live in a country where iCloud has gone live).
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    B-rock

  • How to get ALV Display with First column alone in sort

    How to get ALV Display with First column alone in sort

    HI,
    You can build Internal Table and send this to the parameter "IT_SORT".
    eg:
    "the sorting Internal Table structure is as whown below.
    DATA:  t_sort_info type slis_t_sortinfo_alv.
    "Build the Sort Internal Table
      t_sort_info-fieldname = 'CARRID'.
      t_sort_info-subtot = 'X'.
      append t_sort_info.
      t_sort_info-fieldname = 'FLDATE'.
      t_sort_info-subtot = 'X'.
      append t_sort_info.
    Then pass this "IT_SORT_INFO" table to the Function module "Reuse_alv_*". (Note send the body of the Internal table only like "<b>IT_SORT = IT_SORT_INFO[]</b>".
    Here i am making ALV output sorted on CARRID & FLDATE.
    You can specify only the First Column name for sorting.
    Regards,
    Manju
    Message was edited by:
            MANJUNATHA KS

  • How to get latest record on top of the result list

    Hi Gurus,
    How to get latest record on top of the result list when you open the record.
    saved data method in BT120H_CPL of OverView page and result list in ICCMP_INBOX.
    Regards,
    Ravi

    Hi
    Try sort descending by on fileld "changed at ".
    manipulate the sort depends on your requirement
    Regards
    Logu

  • How to get online apps to work with the Verizon DSL modem firewall set at "Medium" level, not "Low?"

    How to get online apps to work with the Verizon DSL modem firewall set at “Medium” level? Xbox 360 Live, FTP, and the Windows sntp Time checker native to Windows XP WON’T WORK unless the Verizon firewall is first reset down to “Low.” Then all works well, but I then risk low firewall protection. Setup: · Westell 6100 DSL modem (Software Version: VER:4.04.03.00 Transceiver Revision: 7.2.3.0 Model Name: C90-610015-06), · D-Link DIR-655 wireless router (Hardware Version: A3, Firmware Version: 1.21), For Xbox 360 Live the “canned” port forwarding rule for provided in Verizon’s drop-down list for the Westell 6100 modem forwards ports 88 and 3074 for both TCP and UDP. This does not meet Microsoft’s forwarding recommendations for Xbox 360 Live stated at http://support.microsoft.com/kb/908874. Instead, for the Verizon modem (Westell) I made a new port forwarding rule to comply with those Microsoft instructions. It forwards ports 53, 80 and 3074 for TCP and ports 53, 88 and 3074 for UDP. These same ports are also forwarded in the D-Link router configuration. For FTP, port 21 is also forwarded for TCP and UDP in both modem and router. But they don’t work until I first cripple the Verizon firewall down to “Low.” How to get them to work with the Verizon firewall up to Medium?

    While I do not know the answer to your question, BUT since you have this modem and another router - you could just follow.
    http://www.dslreports.com/faq/13600
    ^^
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • How to get my macbook to connect to the Apple TV?

    How to get my macbook to connect to the Apple TV in a strange apartment? I am housesitting for someone for a few months. They mentioned that i would be able to use their Apple TV to play stuff from my macbook. I am using their basic wifi in the apt, which works fine on my macbook and iphone, but see no Apple TV icon appearing on macbook screen, nor any connection happening. (nor is there anything connection w my iPhone). What gives? How can I establish a connection?

    See
    http://support.apple.com/kb/ts4215

  • How do i resolve this....the program cant start because MSVC.dll is missing from your computer.ive uninstaled and reinstaled i tunes, still getting this message

    how do i resolve this....the program cant start because MSVC.dll is missing from your computer.ive uninstaled and reinstaled i tunes, still getting this message

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components; this won't normally affect its library, but that should be backed up anyway.
    (99150)

  • I loos my APPLE ID, I have a new one, how can get access to data stored in the old one?

    I loos my APPLE ID, Now I have a new one, how can get access to data stored in the old one?

    Do you have the email & password of the old Apple ID?

  • How to get relationship between two  views in the  reports

    How to get relationship between two  views in the  reports, I am doing a deletion program , it is fully relates to views , how to get relationship between them in the reports

    Hi,
    Please explain your question in detail...what do you want to read ?
    If you want to know about the navigation links between the views then you can use APIs  like
    wdComponentAPI.getComponentInfo().findInWindows("windowName").getViewUsageByID("Name").getNavigationLinks();
    Iterate through the navigationLinkInfo from above collection and can read the other properties .
    I haven't tried the above , but it should work !!!
    Regards,Anilkumar

  • Can anyone explain to how to get rid off restore session on the mozilla firefox it keeps coming up every time i click on mozilla firefox it comes up restore session why is this it is driving me nuts

    can anyone explain to me how to get rid off restore session on the mozilla firefox it keeps coming up every time i click on mozilla firefox it comes up restore session why is this i want to get rid of it it is driving me nuts

    What do you have checked in Firefox Preferences>General?
    Ciao.

  • How to get system temp dir. path on the fly ,system may be XP or Linux ??

    How to get system temp dir. path on the fly ,system may be XP or Linux ??
    please suggest solution

    The default temporary-file directory can be retrieved
    using:
    System.getProperty("java.io.tmpdir")
    Thanks a lot for u r reply this one works !!!!

Maybe you are looking for

  • Japanese Data Set and Get Problem with SQL

    Hi, I am not able to retrieve or set data contain Japanese characters. Formerly our set up was running just fine. But on doing installation on a new machine, things have gone all haywire. I installed Win NT 4.0 Japnese version and SQL 7.0 and later W

  • Report layout changes with  the values in it

    I he a standard report, but i want certain report rows to show up in red when a value of the row is null. I know you have to use different templates, but how or where do i need to put the condition to change report row templates? Thanks

  • Is there any place I can see a full list of what is available in my iCloud after my first full match?

    It'd be really nice if I could log into a website somewhere which would list what's been matched, what's been not matched, but uploaded, and what's been purchased. Seems like the only way is to open up a new install of iTunes and watch iCloud populat

  • Stuck in file transfer mode?

    I recently bought a NOkia 5310 express music phone, and I'm trying to copy some songs onto it. Whenever I try to get it set up to copy the music it says that my phone is "in file transfer mode, and cannot be use with pc suite, quit file transfer mode

  • Any chance of an update on my fault?

    Hi, My fault has been open since the 14th June regarding absolutley terrible ip profile drop of 12mb and triple ping time increases. I have not heard from anyone now for around 3 weeks. Thanks