Possible to mark and unmark every line of the list (ALV

Hi Experts,
I would like to develop stock compensation report for a client my requirement as below.
It must be possible to mark and unmark every line of the list (ALV). On top of the list a button (Create Sales Document) is needed. Pressing this button starts the creation of the sales documents for every line of the list which is marked. The button is only active when the simulation flag is initial!
Since this is a working list it must be possible to double-click on each line and see the line item details. The line item details should be shown as a ALV list as well. The list contains the following fields:
u2022     Sold-to (VBPA-KUNNR u2013 VBPA-PARVW = u2018AGu2019)
u2022     Name of sold-to (VBPA- ADRNR u2013 VBPA-PARVW = u2018AGu2019  ADRC-NAME1)
u2022     Ship-to (VBPA-KUNNR u2013 VBPA-PARVW = u2018WEu2019)
u2022     Name of ship-to (VBPA- ADRNR u2013 VBPA-PARVW = u2018WEu2019  ADRC-NAME1)
u2022     Material number (VBRP-MATNR)
u2022     Material description (VBRP-ARKTX)
u2022     Old Price List (determination see above)
u2022     New Price List (determination see above)
u2022     Compensation Value List (determination see above)
u2022     Compensation Quantity List (determination see above)
u2022     New Compensation Quantity List (determination see above)
After pressing the creation button a sales document for every marked line is created. When this is finished a log is issued for every line. The log shows the following information:
u2022     Sold-to (VBPA-KUNNR u2013 VBPA-PARVW = u2018AGu2019)
u2022     Name of sold-to (VBPA- ADRNR u2013 VBPA-PARVW = u2018AGu2019  ADRC-NAME1)
u2022     Ship-to (VBPA-KUNNR u2013 VBPA-PARVW = u2018WEu2019)
u2022     Name of ship-to (VBPA- ADRNR u2013 VBPA-PARVW = u2018WEu2019  ADRC-NAME1)
u2022     Sales document number or error message if no document is created
How to create check boxes for eachline in the ALV output for mark or unmark purpsoe and how to create create sales document button in the output and how to create the sales order process . please help me out.
Moderator message: more "spec dumping", please work yourself first on your requirement.
Edited by: Thomas Zloch on Mar 29, 2011 4:32 PM

hi
i have a code for drop down list use this
this code is for selection-screen deop-down list yu can add this same code in ALV
REPORT  ZCHETANA_PRAC10                         .
Type-pools: VRM.
data: name type vrm_id,
      list_month type vrm_values,
      list_year type vrm_values,
      value type vrm_value.
selection-screen: begin of block b with frame.
parameter: p_year(10) type c as listbox visible length 10,
           p_month(10) type c as listbox visible length 10.
selection-screen: end of block b.
at selection-screen output.
value-key = 'JAN'.
value-text = 'JAN'.
append value to list_month.
value-key = 'FEB'.
value-text = 'FEB'.
append value to list_month.
value-key = 'MAR'.
value-text = 'MAR'.
append value to list_month.
value-key = 'APR'.
value-text = 'APR'.
append value to list_month.
value-key = '1998'.
value-text = '1998'.
append value to list_year.
value-key = '1999'.
value-text = '1999'.
append value to list_year.
value-key = '2000'.
value-text = '2000'.
append value to list_year.
CALL FUNCTION 'VRM_SET_VALUES'
  EXPORTING
    ID                    = 'P_MONTH'
    VALUES                = list_month
EXCEPTIONS
  ID_ILLEGAL_NAME       = 1
  OTHERS                = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'VRM_SET_VALUES'
  EXPORTING
    ID                    = 'P_YEAR'
    VALUES                = list_year
EXCEPTIONS
  ID_ILLEGAL_NAME       = 1
  OTHERS                = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
start-of-selection.
write:/ p_year,
       p_month.

Similar Messages

  • Mark and unmark every line of the list in alv

    Hi experts please help me for the following requirement.
    The report must issue a list with the following fields:
    u2022     Sold-to (VBPA-KUNNR u2013 VBPA-PARVW = u2018AGu2019)
    u2022     Name of sold-to (VBPA- ADRNR u2013 VBPA-PARVW = u2018AGu2019  ADRC-NAME1)
    u2022     Ship-to (VBPA-KUNNR u2013 VBPA-PARVW = u2018WEu2019)
    u2022     Name of ship-to (VBPA- ADRNR u2013 VBPA-PARVW = u2018WEu2019  ADRC-NAME1)
    u2022     Total compensation Value per customer (sold-to) and ship-to
    It must be possible to mark and unmark every line of the list (ALV). On top of the list a button (Create Sales Document) is needed. Pressing this button starts the creation of the sales documents for every line of the list which is marked. The button is only active when the simulation flag is initial!
    Since this is a working list it must be possible to double-click on each line and see the line item details. The line item details should be shown as a ALV list as well.
    Please help me how to put to check box or column for selection the particular line in the output . how to put the button create slaes document button and also how to process when Pressing  button starts the creation of the sales documents for every line of the list which is marked.
    please help me out for the requirement.
    Moderator message: "spec dumping", please work yourself first on your requirement.
    Edited by: Thomas Zloch on Mar 29, 2011 4:29 PM

    Hi Have you used.
    The  totals_text(60) type c,       " text for 1st col. in total line from type group slis.
    It is alvailable in  begin of slis_layout_alv_spec1,
    Try it out.

  • How can we read some bytes from every line of the file

    How can we read some bytes from the every line of the file moving on to the next line
    without using the read line

    Actualiy readLine() takes more execution time
    for reading a part of line if we can do so without
    readLine() we can save some time...Well, if you knew, beforehand, the length of each line, you could use RandomAccessFile and its seek method, but, since you don't, you would have to read the rest of the line character-by-character, checking to see if it is a newline, in order to place the "cursor" at the beginning of the next line in order to read the next few characters you want.
    So, as you can see, you will need to read the entire line anyway (and if you do it yourself you also have to do the checking yourself considering all three possible end-of-line sequences), so you just as well use readLine().
    Some people may suggest Scanner and it's nextLine() method, but that also needs to read the rest of line (as evidenced by the fact that it returns it), so that is no different than the readLine() (or read it yourself) solution.

  • My iPad has not been dropped or damaged at all. The screen is grey fuzzy and has coloured lines down the middle. iPad 3 also.

    My iPad has not been dropped or damaged at all. The screen is grey fuzzy and has coloured lines down the middle. iPad 3 also.

    Basics from the manual are restart, reset, restore.
    Try all of these.
    If these fail, then:
    iOS: Unable to update or restore

  • Preview displays pdfs with distorted colours and thin white line on the border

    Preview Version 7.0 (826.4) on 10.9.5 displays pdfs with cmyk images in it in distorted colours and thin white line on the border of the page despite in the original .indd file the image runs into bleed. The display errors aren't present in acrobat reader 10.1.12 or acrobat pro 9.3.4. Any idea? Thanks

    You can use one of these extensions to set a default font size and page zoom on web pages:
    * Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    * NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • I have attempted to install iTunes multiple times but to no avail. I have installed every file, and followed every instruction on the support pages. I click download, and it takes me directly to the "Thank You for Downloading" page without doing anything.

    I have attempted to install iTunes multiple times but to no avail. I have installed every file, and followed every instruction on the support pages. I click download, and it takes me directly to the "Thank You for Downloading" page without doing anything. I am running it on FireFox, and I have tried with Internet Explorer, neither have worked. I have been trying to do this for weeks now, and I am getting majorly frustrated. Please, help.

    Perhaps try downloading and saving a copy of the installer to a different PC. (If you're on a 32-bit Windows system, try to download on a different 32-bit Windows system.) Copy the iTunesSetup.exe installer to an external hard-drive, or a large-enough thumb drive or burn it to a CD-R. Carry the installer back to your PC, copy the installer to your hard drive. (Don't run the install from the ExHD, thumb or CD-R.) Start the install by doubleclicking the iTunesSetup.exe file.

  • I'm finding that songs that I have imported to Itunes are suddenly showing with "Exclamation" marks and Itunes tells me that the original file cannot be found.  When I tell it to locate the file, it can't do it.

       I'm finding that songs that I have imported into Itunes and played before are suddenly showing an"Exclamation" mark and Itunes tells me that the original file cannot be found.  When I tell it to locate the file, it can't do it.  I went to the Itunes help for locating files, but that still won't do it.  It seems that somehow they are getting deleted, but not by me that I know of.
    Can anyone help me?

    Maybe you rename it. Somehow the path to the songs have changed if not deleted.
    In Finder go to "Macintosh/Users/username/music/iTunes/iTunes Media/Music" that's where all your songs located so if those songs are not there you get an exclamation mark. You can delete those entries in iTunes and re-import again.

  • My iphone 3g hang when i lock it and just shows white and red verticle lines on the screen . . please help me out

    my iphone 3g hang when i lock it and just shows white and red verticle lines on the screen . . please help me out

    Try resetting > 
    Hold the On/Off Sleep/Wake button and the Home button down at the same time for at least ten seconds, until the Apple logo appears.
    If that doesn't help, try restoring >  Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

  • I buy the apple ipod from Channel Island Jersey UK and is dont find in the list of country to register for apple store. What i can do?

    i buy the apple ipod from Channel Island Jersey UK and is dont find in the list of country to register for apple store and i chose UK but my address biling for bank is in Jersey Uk. What i can do? wen i put the post code from jersey is tell that" Your post code does not mactch the country you selected for the Itunes store"

    I also just bought macbook pro completely legally and officialy.
    You can't officially buy an Apple product as far as Apple is concerned, in the Ukraine if Apple says that there are no Apple Authorized venders in the Ukraine.
    Here (in Ukraine) are official Apple's service centers, as like as in Belarus and Russia.
    According to Apple there are no Apple Authorized Serve Providers in the Ukraine.
    http://support.apple.com/kb/HT1434
    And why should I care about those kinda "support lists"?
    Because those lists are the official Apple statement of the state of affairs in your country. If you country is not on the list then Apple has no legal or official obligation to you or any products that you have managed to buy in the Ukraine.
    this is, for example, official distributor of Apple products in Ukraine.
    Not as far as Apple's statement on the issue is concerned.
    I bought legal macbook and have right for legal support, and that's all.
    Yes, if you get the product to a country with officially and legally Apple Authorized Service providers. There are none in the Ukraine.

  • I have made a playlist on my iPod touch 4th generation for some friends' wedding and I want to play the list in the order I wrote it. It keeps shuffling though, so how do I play it in track order?

    I have made a playlist on my iPod touch 4th generation for some friends' wedding and I want to play the list in the order I wrote it. It keeps shuffling though, so how do I play it in track order

    In iTunes, before you sync the playlist, you can right click on the playlist and select the option that says "Copy Play Order" that will preserve list in the order you have them.
    Though this page is outdated, I believe it still applies:http://support.apple.com/kb/ta27500
    Hope this helps!

  • [Nokia 5700] Marking and unmarking messages: stran...

    Cheers,
    When I press the # just ONCE, and I scroll down using the joystick the phone marks every message I come across. When I press the # key again, it UNmarks every message I come across.
    Holding down the # key and scrolling down does not do a thing...
    I've already tried a factory reset and a hard reset but to no avail. I am running the latest firmware V03.83.1 dated 22-06-07.
    I'm absolutely sure it didn't behave like this earlier. I can't remember when exactly I updated the firmware so I can't tell whether it is a bug in the new firmware.
    Does this sound familiar to anyone?
    Many thanks for your help,
    Jeroen

    soft reset *#7370#
    Backup data first.
    Previous Phones: 6600, 7610, 6230, 6230i, 1100, 1112, N70, N73, N95, N95 8GB, 5800XM, 5230, C5, iPhone 3GS, SE Xperia X10, N900, N8, SE Xperia Arc
    Current Phones: Nokia N9, iPhone 4

  • I've created a Photoshop PDF and all the text is editbale after passing through indesign to add crop marks and bleeds - one line now isn't editable, what's causing this

    I've created a Photoshop PDF and all the text is editable in the resulting PDF.
    The PDF created by Photoshop is completely editable, all text! I put it through indesign so I could add crop marks and reduce the pdf file size and now all the text is editable except one line!
    I've not used any faux styles or effects...what could be causing this?
    Thanks!

    I've created a Photoshop PDF and all the text is editable in the resulting PDF.
    The PDF created by Photoshop is completely editable, all text! I put it through indesign so I could add crop marks and reduce the pdf file size and now all the text is editable except one line!
    I've not used any faux styles or effects...what could be causing this?
    Thanks!

  • How can I do the same as Windows Explorer with datemodified:11/6/2013 .. 11/13/2013 showing only changed files with path in tree and NOT every folder along the way as Finder seems to do by default? Thanks!

    I'm an Apple newbie.
    I'd like to be able to list each file in the "Desktop" tree (ie; on the desktop, or in any folder on the desktop, etc.), along with its path, that has been modified since a certain date.
    When I use Finder to do a similar search, I get tons of output including every folder in the path to the modified file, etc. Although I can view the path to the individual files in the output, I can't for example, order the output by path, etc.  Very difficult to sort through. I'd love to have output like the example above - just the filename and path for each changed file.  Possible?  Thanks in advance!
    Wayne

    The file structure is a little complex. I will use inbox as an example.
    Inbox (a large file with no file extension)
    Inbox.msf ( An index of inbox with tags etc. Can be deleted with only loss of tags)
    Inbox.sdb (a folder, indicating that the folder within Thunderbird has a sub folder.
    POP mail is stored in
    Appdata/Roaming/Thunderbird/Profiles/*.default/Mail/[Server name]/
    Local folder is stored in
    Appdata/Roaming/Thunderbird/Profiles/*.default/Mail/Local Folders/
    As long as you do not overwrite, you can copy and paste whole folder trees into local folders (stuff on your old computer under a mail account is best relocated to local folder and then sorted as necessary afterwards.
    Note that you should delete foldertree.json after making those sorts of copies (it forces a full refresh of the folder tree, no cache) and under no circumstances copy data with Thunderbird running. It can irrevocably corrupt things

  • A Friend Was Working On My Mac Pro And Now Every File On The Computer Shows

    A friend was using the Mac Pro to look at a disc, and he said he went into Terminal. Now, every file on the computer shows. He hasn't gotten back to me, and it's a little annoying, seeing ALL the faded envelopes with minus signs, and extra files. I hope this makes sense. I know he went into Terminal, and it had something to do with Finder and show all, or something. Any help is appreciated.

    Open the Script Editor in the /Applications/AppleScript/ folder and run the following:
    do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
    Click on the Finder in the Dock with the Control and Option keys held down and choose Relaunch. Some third-party utility software will also do this.
    (52543)

  • HT2506 every time i open an image or PDF file using preview the mac take a long time to load and opens every single file the usually opens with PDF at the same time after a noticeable delay i would like to know why and i would like to know how i can avoid

    every time i try to oppen a file like an image or a PDF it oppens by default using oreview built in appliction
    occasionally this is accompanied by a long delay after wich the preview oppens every file in the downloads  folder and i can navigate through them with ease
    i would like to know why the application has this elay i really want to avoid it
    because every tome i want to oppen an image there is a risk it would take a minnute or two

    In the finder right click on the iPhoto library and show package contents, find the folder named import (or importing) and drag it to the desk top. Do NOT make any other changes of any sort. Launch iPhoto and you will Be fine. Open the import(ing) folder and if there are any photos in it you need import them to iPhoto then trash the imoort(ing) folder.
    LN

Maybe you are looking for

  • Hide Scatter Plot Grid

    Hello. How do you hide the grid in a scatter plot? I think there must be a simple way of doing this but I just can't find it. Thanks,

  • Quick Info for Parameter fields in report

    Hi Group, I have a z report which has two parameters in the selection screen. I want the functionality of quick info available whenever the user moves his mouse to the parameter field. Is it possible. I tried enabling the properties field in transact

  • Trig etc functions on fractions?

    Fraction.java with trig methods? I've been playing with geospatial stuff for a while now, and I've been striking a lot of problems with the inherent inaccuracies of floating point number representations, especially in complex-calculated values. Here'

  • Windows itunes to Mac itunes.

    I have all my itunes material on a lacie external harddrive. All the songs were originally on a windows computer. Can I just plug in the external when I get my Mac? Do I need to do anything special? Thanks, Levi

  • AES encryption works in J2SS but not in J2ME

    Hi all, Im trying to create an AES Shared secret to encrypt and decrypt a message in J2ME. Ive already tried this code in J2SS and it works fine but when i try to use the exact same code in J2ME it doesnt work. I get the following error : java.securi