Read layout in background

I have a report, which has "Layout" and "Export file path" fields on selection screen. I need to export the report to CSV file in the format of dynamical layout while executing on background.
In this case:
1. How do I read the structure of layout before ALV dispaly.
2. How do I chang the internal table dynamically according to layout structure.
Kindly suggest.

Hi ,
You can use Function Module  'REUSE_ALV_VARIANT_DEFAULT_GET' to get the variant name.
Please check the code --
  CONSTANTS:
  lc_a TYPE char1 VALUE 'A'.
  MOVE sy-repid TO fs_variant-report.
  CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
    EXPORTING
      i_save        = lc_a
    CHANGING
      cs_variant    = fs_variant
    EXCEPTIONS
      wrong_input   = 1
      not_found     = 2
      program_error = 3
      OTHERS        = 4.
  IF sy-subrc IS INITIAL.
    p_varian = fs_variant-variant.
  ELSE.
    p_varian = space.
  ENDIF.                               " IF sy-subrc IS INITIAL.
Thanks and Regards
Pinaki

Similar Messages

  • Need help with Page Layout and Background Scaling

    hello, everyone.
    I am in the process of designing a new website for myself,
    and while I was researching nicely designed pages to use as
    inspiration, I stumbled upon this site:
    http://www.jeffsarmiento.com/
    obviously, the design is very impressive, but it also
    incorporates a lot of web mechanics that I have been trying to
    figure out, so I will use this page as an example.
    one thing I need help with is backgrounds. as you can see in
    the posted website, the creator used a seamlessly tiled paper
    texture to display the bulk of his content on. also make not of the
    pattern that is located to the left of the paper texture. how do I
    create seamless backgrounds like this that will scale to fit any
    amount of content or any resolution? I can't imagine that the guy
    that made that site created a new size background every time he
    made an update, so there has to be an easier way.
    the second thing that I am having trouble with is general
    site layout. I have read that most sites used series of invisible
    tables to organize there content, but when I open the source of
    this page in dreamweaver, he was using something different. div
    tags? should I be using these? who do I use them? are there any
    general layout tips that someone could pass on to me? perhaps a
    link to a good tutorial?
    please help me. i am very confused.
    thanks so much.

    IMO not a good site to emulate. To wit:
    Top background image:
    http://www.jeffsarmiento.com/images/bg-top.jpg;
    745px
    x 350px 137K
    Main background image:
    http://www.jeffsarmiento.com/images/bg-tile.jpg;
    745px x 950px 130K
    Total page size: 454K (Check here:
    www.websiteoptimization.com)
    Website usability experts routinely recommend a maximum page
    size of ~80K
    Check out the We We Scale @ www.FutureNowInc.com/wewe/ where
    they suggest,
    "You speak about yourself approximately 0,003 times as often
    as you speak
    about your customers. Might that have an impact on your
    effectiveness?"
    That is 100% consistent with the #1 Web Design mistake:
    "Believing people
    care about you and your web site." or to phrase more
    expansively, "Our site
    tries to tell you how wonderful we are as a company, but not
    how we're going
    to solve your problems."
    www.sitepoint.com has some excellent books on making a
    website actually
    attractive and usable at the same time.
    Walt
    "beWILLdered_" <[email protected]> wrote in
    message
    news:[email protected]...
    > hello, everyone.
    > I am in the process of designing a new website for
    myself, and while I was
    > researching nicely designed pages to use as inspiration,
    I stumbled upon
    > this
    > site:
    >
    http://www.jeffsarmiento.com/
    > obviously, the design is very impressive, but it also
    incorporates a lot
    > of
    > web mechanics that I have been trying to figure out, so
    I will use this
    > page as
    > an example.
    > one thing I need help with is backgrounds. as you can
    see in the posted
    > website, the creator used a seamlessly tiled paper
    texture to display the
    > bulk
    > of his content on. also make not of the pattern that is
    located to the
    > left of
    > the paper texture. how do I create seamless backgrounds
    like this that
    > will
    > scale to fit any amount of content or any resolution? I
    can't imagine that
    > the
    > guy that made that site created a new size background
    every time he made
    > an
    > update, so there has to be an easier way.
    > the second thing that I am having trouble with is
    general site layout. I
    > have
    > read that most sites used series of invisible tables to
    organize there
    > content,
    > but when I open the source of this page in dreamweaver,
    he was using
    > something
    > different. div tags? should I be using these? who do I
    use them? are there
    > any
    > general layout tips that someone could pass on to me?
    perhaps a link to a
    > good
    > tutorial?
    > please help me. i am very confused.
    >
    > thanks so much.
    >

  • Card Layout and Background Images

    Hello,
    I have an application that uses CardLayout to switch through different layouts. Each layout has a background image. The problem is that since I implemented a CardLayout system, the image has been shifted down about 8 pixels, revealing a grey bar. I have tried setting opacities of my JPanels, but that does not seem to work. What do I need to do to fix this?
    Thanks you.

    Here is a screenshot of the problem:
    http://www.areath.com/images/screen1.bmp
    You can see that just below the title bar, there is a grey bar. Before implementing the CardLayout, the placeholder image fit in the frame perfectly. Now, the image and the components on top of it have been shifted down.

  • Using a report layout in background mode

    Is is possible to apply a saved report layout like you apply to the alv grid to a csv file run in background mode?

    Hi Cynthia ,
    I can figure out one way :
    SUBMIT ZREPORT TO SAP-SPOOL LAYOUT 'ZLAYOUT'
    VIA SELECTION-SCREEN
    DESTINATION 'locl'
    KEEP IN SPOOL 'X'
    IMMEDIATELY 'X'
    WITHOUT SPOOL DYNPRO
    AND RETURN.
    This will return the report in your layout to the spool and can be downloaded as well.
    Thanks
    Naresh

  • How to export PDF in Adobe Reader with changed background

    Hey Folks,
    I change background and text color by going to Preferences -> Accesebility and when I save the file with changed background it is still the old background. How to I save/export this PDF to have changed background?
    Thanks a lot!
    Krioni

    Adobe Acrobat.  A bit expensive just to change the document background...

  • Adobe Reader 9.0 background color

    I just downloaded Adobe Reader 9.0. The default background color is black. How can I change that to a different color? I'm not talking about the background color when in "full screen" mode; I just mean when the reader is open and no document is open, or when a document is open but not in full screen mode.

    Believe it or not, the single reason why I'm staying with Adobe Reader 8 and do not upgrade to Adobe Reader 9 is too dark background of the main application window (not the full-screen mode, since that color is adjustable). In Reader 8, the color was gray, and in Reader 9, the color is dark gray which results in too high contrast compared to the usually white document background.
    Is there a way to change this color, even if editing a registry key is needed?

  • Change grey background color of acrobat reader application (not background color of page)

    My new laptop has a very reflective screen. Especially dark background colors make me see the windows behind me (and people passing by). When using a white (lighter) background this problem does not occur.
    When reading all day texts with acrobat reader, there is alot of "distraction" because outside the page there is a dark grey area with reflections and moving images. Maximizing the text to 400% so everything is white is not a comfortable option.
    Is it possible to change this background somehow, preferrably to white, or light grey? If there is not a standard option, would it be possible to change some settings in the windows registry?

    Unfortunately no, it's not possible. However, you can simply resize the window so that the underlying desktop color is visible...

  • Reader 9 - Application background color

    Just installed A R 9 - the background to the application is black. I know I can change that when the display is in Full Screen mode, but can it be changed for Normal view? Why black??

    I have solution for this problem that I have to use:
    1) Run maximized application with desired background color (i use empty file opened in GVim with light gray background color)
    2) Enable in Reader Reading mode (ctrl+h) and Resize width of Adobe Reader window to the width of the document when you see just a strip of Adobe-stupid black background
    Or you can use different viewer for pdf files (that is probably even better solution)

  • PDF reader not displaying background on my computer.

    My problem is I am trying to open a .pdf on my computer, but the blue background does not show up. If i open it on my mobile or another computer, it works fine. So the problem seems to be with my computer only. I am using windows 7 and adobe reader XI Version 11.0.10.32, I have tried to repair and reinstall the adobe program, but the problem still persists. I have tried to open the same pdf file with another pdf viewer and everything is fine. so the problem seems to be only with adobe on my pc. Can you please help to fix this issue?
    If i have not posted this question in the correct place, please let me know where i should post it.
    PS: I would like to send snapshot explaining the problem, but i dont know how to attach it here.
    thanks a alot.
    Regards,
    Demi

    I am having exactly the same problem.
    i've tried swapping the Background to be a watermark instead but still having the same thing. Most browsers show it, but Chrome on windows and Safari on Yosemite don't show it.
    Is there a fix for this? Its pretty crucial as its on my resume that I need to be sending out this week to find more work!

  • Help with css 3 column layout with background

    So I'm really not much of a web designer and usually deal in
    print but a friend wanted help with her site so I'm taking a crash
    course in css. so I was wondering if anyone a little more web savvy
    than I can spot why my sites background Is sliding around.
    this is the site as it
    stands
    this is the
    main css i found a site to generate the codes to get around browser
    specific glitches
    what
    I see in Safari
    what
    i see in firefox
    what
    background should look like
    any help would be greatly appreciated thanks

    Peter Llamas posted in macromedia.dreamweaver:
    > So I'm really not much of a web designer and usually
    deal in print
    > but a friend wanted help with her site so I'm taking a
    crash
    > course in css. so I was wondering if anyone a little
    more web
    > savvy than I can spot why my sites background Is sliding
    around.
    >
    http://whiskeylemonade.x10hosting.com
    I have no idea what you mean by "sliding around", but could
    it have
    something to do with your missing old_break.css file?
    http://whiskeylemonade.x10hosting.com/css/old_break.css
    HTTP/1.x 404 Not Found
    Mark A. Boyd
    Keep-On-Learnin' :)

  • I want to stylise a finder window on a CD-ROM... that is, when a CD data disc I've created is inserted into the Mac and double-clicked, the finder window has the layout and background I've chosen. Is there any Apple software which will do this?

    I've created a CD-ROM which essentially has a website on it.
    I've added an autorun for PC users (assuming those guys still exist) which launches "index.html". So no worries there.
    For Mac users, as autolaunch isn't an option (correct me if I'm wrong?), I want to control the look and layout of the Finder window which opens when the disc is inserted and the CD icon is double-clicked. What's the best Apple software to use to do this?
    Thanks in advance.

    Nice to hear your story.

  • RM07DOCS Layout for background execution

    Hi,
    I'm executing  RM07DOCS, in foreground execution, the layout can either be graphical(detailed) or List(overview list of mat docs). In background execution, the only display available is the graphical(detailed list of Matdocs).
    Is there a way to setup the program to output in list (overview list of mat docs) view in background execution?
    please advise if this can be done and how can it be done.
    thanks,
    NC

    Dear expert
         this link might be help you
    http://www.****************/Tutorials/ALV/ALVLayout/Variant.htm
    http://help.sap.com/saphelp_470/helpdata/en/6b/2f13439c9f11d194da00a0c930328a/content.htm
    Regards
      Ajeesh.s

  • Change Layout For Background Report

    Hi,
    I have a report that when executed in background - the light in frontground report running is shown as number. I want to change number into light when executed in nackground. Can somebody help? when we r running the report in background - we want some other processing based on field values.
    Please Help......
    Thanks,
    Sheel

    if you are talking about Trafic  lighs then it is not possible , but you can interpretate the values from the back ground output.
    OXO " < yellow light
    OOX "< Green Light
    XOO  "<Red light

  • Reading a GOS document in background

    I need to be able to find then read a generic object service attachment (wORD document)and pass the binary content to the method document->add_attachment.  The key is I need to be able to do it in background.  Functions such as DSVAS_DOC_WS_UPLOAD_50 and DSVAS_DOC_UPLOAD_50 work fine but they use front end services.  Does anyone have a sample about how to find a generic object attachment then actually read it in background.
    Thanks!

    Christina,
    I am looking into this as well. I want to read a GOS attachment (Word Document) and print it in background. You have not received any replies yet, have you made any progress on your own?
    Regards,
    Bob

  • Report layout - ME2N - Automatic background job

    HI all
    We are using the above report for Pending PO-RElease ie., dynamic selection - release indicator "B"  thru automatic background programme schedueld thru SM36 (after setting the variant) for the relevant/concerned users.
    The issue is, the report layout be default standard sap layout is taking, actually i have saved layout as PO no & date, but always, whenever background job is run, default sap report is taken in HTML.
    request kindly help how i can ensure my our report layout for backgrounds jobs thru ME2N or is there any other report which can give the pending PO-Release report for my requirement.
    thanks in advance
    regards
    srihari

    I am doing same as suggested by you for all other reports, but i am not successful with ME2N, because after having your own default layout, but for background it is default taking sap report. even i have tried to delete the sap - std report format but not allowed.
    if any one knows how to change the sap-default std report layout then also it's okay for us, as default report as 15 columns whereas we need only max 5 columns in report layout
    thanx in advance
    regards
    srihari

Maybe you are looking for