Creating radio buttons and text box in the screen

Hi Guys,
Need help asap. I am writing a report and I have to create text box for user to input GL account numbers for two types of customer. I have to make these fields required and take the data back from the screen and write it in a file. The second thing that I have to do is to make radio buttons for the user to select whether he wants the file written on the application server or the presentation server. and process the report accordingly. Now can somebody please given some code and tell me how I should do this. Both the things have to be done for the same report. Please help.
Thanks,
Minal

Hi,
TABLES: likp,
        lips.
TYPES: Begin of ty_likp,
       vbeln like likp-vbeln,
     end of ty_likp.
TYPES: Begin of ty_lips,
       vbeln like lips-vbeln,
       posnr like lips-posnr,
     end of ty_lips.
DATA:  i_likp TYPE STANDARD TABLE OF ty_likp,
       i_lips TYPE STANDARD TABLE OF ty_lips,
       w_lips TYPE ty_lips,
       w_likp TYPE ty_likp.
SELECTION-SCREEN BEGIN OF BLOCK b_0 WITH FRAME TITLE text-001.
SELECT-OPTIONS:  s_delno FOR likp-vbeln,
                 s_type  FOR likp-lfart,
                 s_ship  FOR likp-vstel,
                 s_date  FOR likp-erdat.
SELECTION-SCREEN END OF BLOCK b_0.
SELECT vbeln
         FROM likp INTO TABLE i_likp
         WHERE vbeln IN s_delno
         AND   lfart IN s_type
         AND   vstel IN s_ship
         AND   erdat IN s_date.
  IF sy-subrc <> 0.
    MESSAGE i000 WITH text-002.
    " No valid deliveries for the selection parameters entered.
    STOP.
  ENDIF.
  IF NOT i_likp[] IS INITIAL.
    SELECT vbeln
           posnr
           FROM lips INTO TABLE i_lips
           FOR ALL ENTRIES IN i_likp
           WHERE vbeln = i_likp-vbeln.
  ENDIF.
format color 1 on intensified on.
  WRITE: /01(46) 'Following are the Hanging Deliveries/Invoices:'.
format color off intensified off.
skip.
format color 1 on.
  WRITE:  SY-ULINE(27).
  WRITE: /1       SY-VLINE,
          3(12)    'Document No.',
          16      SY-VLINE,
          17(8)  'Item No.',
          27      SY-VLINE.
write:/1 sy-ULINE(27).
format color off.
  sort i_lips by vbeln posnr.
  LOOP AT i_lips INTO w_lips.
      Read table i_likp into w_likp with key
                        vbeln = w_lips-vbeln
                        posnn = w_lips-posnr.
      if sy-subrc <> 0.
      format color 2 on.
         WRITE: /1   sy-vline,
                3(12)  w_lips-vbeln,
                16  sy-vline,
                17(8)  w_lips-posnr,
                27  sy-vline.
        write:/1 sy-uline(27).
        format color off.
        clear w_lips.
      endif.
      ENDLOOP.
Try this one with ur own example.
Thanks & Regards,
Judith.

Similar Messages

  • Radio Button and combo box in Pdf Report.

    Hi,
    I have to make a PDF report with text box,radio buttons and combo boxes.
    The data in the text box will populate from the data base table.
    Similarly the radion button will enable the particular radio button from  a set of available radion buttons as per the value from the database.
    Same with combo boxes.
    The report putput should come in PDF.
    Thanks

    Hi,
    The report sud be pdf output with details like name of person showing in textbox ,then there will be list of radio buttons out of which particular radio button will be checked  as per the option for that particular person in the database.same with combox with for example A,B,C option from the look up is coming but it will be showing the option as per the name of person.We can take the name of person as the primary key.
    The Problem with input controls is that they can be used to filter the report as radio buttons and combo box but they can't be sown in the report itself.

  • Captivate 8, knowledge check radio buttons and check boxes not diplaying correctly in HTML5

    Hello. I am working in Cp 8 on a pc (Win 7, 64-bit) and publishing in HTML5, SCORM 2004, 3rd ed. My issue is with knowledge checks. In preview they look fine, but when published, the radio buttons and check boxes are oversized and do not appear as they should. Additionally, the rollover highlight that covers the distracters is skewed and does not cover all the text in cases of long answer choices. When published as a SWF, there are no issues but project requirements are for HTML5 output only. Help?

    Create an XML Schema (XSD) and define that as the default form schema. The form data will conforms to the order of fields defined in the XML schema.
    Hope that helps.
    Nith

  • Radio Button and Check Box

    I am looking for a way to implement a column domain as a radio button (e.g. Yes or No). So far I have only seen JHeadstart generate a list box. I cannot find any reference to radio buttons in the User Guide. Is it possible to generate a radio button?

    Jan,
    I looked into this post-gen action, but am not able to insert a radio group and buttons.
    In a simple emp-dept application I am trying to create radio buttons in empTablePage.uix for the extra emp_class column I added to the emp table. The UIX components palette only gives me the option to insert a radio set. I can only get the option for radio group when I change the application structure to JSP.
    BTW: Jdev 9.0.5.2

  • Creating radio button and make it ennable

    Hello All ,
    Please help me out in creating radio button and make it ennable in web dynpro in java application .
    If Possible please send the sample code as well.
    Thanks
    jyothi.

    Hi Venkat,
    The default value needs to be set manually as John has suggested. To be more precise, if the context node is "RadioButtonValues" and the context attribute is 'RadioBtnVal', then in wdDoInit() method, include the following:
    wdContext.currentRadioButtonValuesElement.setRadioBtnVal("Male");
    Regards,
    Pavithra

  • Step by step process to add Radio Buttons and Check boxes in a view

    Hi,
    Could somone give me the steo by step process for adding the Radio Buttons and Check boxes in a view.
    Regards
    Hrudaya Raju

    https://www.sdn.sap.com/irj/sdn/articles-topic?rid=/webcontent/uuid/7082f9fc-070d-2a10-88a2-a82b12cea93c
    https://www.sdn.sap.com/irj/sdn/webdynpro-elearning
    https://help.sap.com/javadocs/NW04S/current/wd/index.html
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDCheckBox.html
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDCheckBoxGroup.html
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDRadioButtonGroupByIndex.html
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDRadioButtonGroupByKey.html
    Armin

  • Option ( Radio button  or check box)  on selection - screen , to go to CNR2

    <b>Subject - Option ( Radio button  or check box)  on selection - screen  , to go to Tcode CNR2</b>
    Hi all,
          I have developed  a report   , which  has  a  selection screen  with  one select-option ,  where i enter employee number     and  two radio buttons   ,  one is for all workcentres  and  other one   for active workcentre.   so when i enter  employee number  and  choose  either of the radio button  i wil get the  output  properly.  the output   displays ,  employee no,  employee name ,  work centre  and project  of that employee .   an employee may have  many workcentres   and   a corresponding project  for that work centre.
    Now the  Problem is  ,  from the same   report  i need to add  a option  on the selection -screen ,  ( plz  tell me whether to use  radio button  or check box   and if it is radio button    should  i  use it seperately  or  group it  in the above two buttons.) .
    so that when user selects  the  option   , the control should  go to  transaction code CNR2,  from where  i  can enter workcentre  and   in the next screen i have  HR assigntment tab , after choosing that it will dsplay persons   linked to the workcentre  and there is a delete icon  , from where i can delete the person.
    The only thing is  now to move / Navigate to the screen   or  go to transaction code CNR2   from  the report  or  from the selection screen.
    Your valuable Inputs are awaited, PLz  do lemme know 
    Thanks  in advance ,
    regards,
    Shuja

    Shuja,
    A radio button nor a checkbox should be used for navigation.  I would suggest a COMMAND BUTTON. 
    Something like this:
    Report ZZZZZZ.
    TABLES: sscrfields.
    SELECTION-SCREEN BEGIN OF BLOCK ONE WITH FRAME TITLE TEXT-001.
    selection-screen: PUSHBUTTON /10(20) but1 USER-COMMAND cli1.
    SELECTION-SCREEN END OF BLOCK ONE.
    initialization.
      but1 = 'Button Text Goes Here'.
    AT SELECTION-SCREEN.
      CASE sscrfields.
        WHEN 'CLI1'.
          call transaction 'CNR2'.
    start-of-selection.
    Your code here

  • Generating buttons and listboxes dynamically on the screen

    Hi people!!
    There's a way to generate buttons and listboxes dynamically on the screen????
    Tks in advance
    Gabriel

    hi check this..
    Dynamic drop down list box

  • Adobe Captivate - Multiple Choice Quiz Question - Radio Button and Text Alignment

    I have created a quiz with multiple choice questions.
    No matter what I do I cannot align the radio button and the text for the choices (see below).
    I would like to align the center of the radio button with the center of the letter A) and B).
    I have tried every option that I can think of in the Properties options.
    Please let me know if anyone has a solution for this.
    Thank you

    Thanks for the reply.
    Previously I tried several different combinations of fonts and font sizes, but didn't see any change.
    Does anyone else know of anything else that could effect this situation?

  • Help with cfinput radio button and text fields

    I have a series of radio buttons that allow a user to select
    monetary values but I also want them to be able to define an amount
    if they choose so. I was planning on doing this by providing a
    radio button with the value of other and then using a text field to
    allow the user to enter the monetary value. The problem with this
    is that they might enter a user defined monetary value but forget
    to set the radio button to "other".
    I was hoping that I could set the "other" text input field to
    read only until the point that the user selects the "other" radio
    button. Is there a way to do this using onSelect or another method.
    Or is there a better way to approach this problem? Thanks for any
    help or advice in advance.

    Hi,
    You could call a js function which will select the radio
    button "other " when the user types something in(there are various
    events on cfinput). This way the user will not have to worry about
    selecting the radio button and your requirement will be satisfied.
    Hope this Helps.
    Thanks,
    Bhakti

  • Brand New iPad 3 has a jiggly screen and black boxes across the screen in different apps

    My mother purchased a brand new iPad 3 about 1 week ago.  The screen has begun to shake while she is in the apps.  (This is not the shaking that icons do on when you hold an app down so you can rearrange.)  When this happens the screen will go blank when her hand is near it and reappear when she moves it away.  Also, in some apps, I have experienced this in the App Store and Facebook, black boxes cover the screen so that you cannot see what is behind them.
    We have tried shutting it down completely, but that doesn't seem to be a fix.
    I have been searching for others with this problem and haven't found any.  Help would be appreciated.  Given the sporadic nature (but often enough to be a bother), I'm hesitant to go to the Genius Bar for fear it wouldn't do it then. 

    I've had the same problem with Big Black squares covering the screen. And a few times the screen has split vertical in the middle and pushed everything in the on half a little down, making it very difficult to read text as the lines was cut in half.
    I first experienced it in Mail, and then in Safari. I noticed that it is only covering content, not the App bar and When I scrolled down, the boxes were staying On the spot On the page. I figure it must be a software problem as it moves alting with the rest of the content, so I tried uenig Chrome instead, but yesterday the same ting happened.
    I have tryed to take a screen dump, but it gets completely black
    Its not warm When the problem occours.
    Anyone with a solution?

  • There is a text box on the screen.  How do I get rid of it?

    I have a black text box on my screen.  How do I get rid of it?

    I'm not quite sure what it is you're seeing, but if it's a Terminal window (click on the window and see if you see the "Terminal" menu at the very top left of the screen) you can close it just like any other application - go to the Terminal menu and click "Quit Terminal".
    If that's not it, it's possible you're seeing a Voiceover border - go to System Preferences, Universal Access, click Voiceover and turn it off if it's on.
    Matt

  • Creation of radio buttons and check boxes

    Hi
    This  is ravi
    Please help me to write the following program-
    &#9632;        Design a selection screen having 5 check boxes and five radio-buttons
    &#9632;        Each check box and radio button be given a number starting with one to five
    &#9632;        Depending on which checkbox and radio button is selected output that number
    For example if I have selected check box one and radio button two then the output should be-
    check box number 1
    radio button number 2

    Hi,
    Check the following code:
    SELECTION-SCREEN: BEGIN OF BLOCK BLK WITH FRAME TITLE TEXT-001.
    parameters: chk1 as checkbox,
                chk2 as checkbox,
                chk3 as checkbox,
                chk4 as checkbox,
                chk5 as checkbox,
                rad1 radiobutton group grp1,
                rad2 radiobutton group grp1,
                rad3 radiobutton group grp1,
                rad4 radiobutton group grp1,
                rad5 radiobutton group grp1.
    selection-screen: end of block blk.
    start-of-selection.
    if chk1 = 'X'.
      write:/ 'You selected first checkbox'.
    elseif chk2 = 'X'.
      write:/ 'You selected second checkbox'.
    elseif chk3 = 'X'.
      write:/ 'You selected third checkbox'.
    elseif chk4 = 'X'.
      write:/ 'You selected fourth checkbox'.
    elseif chk5 = 'X'.
      write:/ 'You selected fifth checkbox'.
    endif.
    if rad1 = 'X'.
      write:/ 'You selected first radiobutton'.
    elseif rad2 = 'X'.
      write:/ 'You selected second radiobutton'.
    elseif rad3 = 'X'.
      write:/ 'You selected third radiobutton'.
    elseif rad4 = 'X'.
      write:/ 'You selected fourth radiobutton'.
    elseif rad5 = 'X'.
      write:/ 'You selected fifth radiobutton'.
    endif.
    Regards,
    Bhaskar

  • BB 9860 torch wont unlock pressing button and when it does the screen just keeps flickering

    Hiya, i wonder if this is a common problem or its just my phone
    I recently bought a BB torch 9860, it was working fine but now when the screen locks, when i press the unlock button on the top of the phone it does nothing and just says "Screen is locked, press the lock button to unlock" and all the screen does is lights up then goes off in like a flickering manner
    obviously it shouldnt do this
    When i take out the battery and put it back in the screen loads fine as normal (no flicker) but once its back on the home screen i just get this annoying lock problem and a flickering screen
    Any help or information would be appreciated
    Thanks dwain

    Yes, it's normal behavior for the Voiceover function.
    It's designed for the visually impaired.  If it helps, try using your iPhone with your eyes closed.  With the first tap, VO begins to read what is on the screen. When you hear the item that you want to select, tap the screen (anywhere) a second time. 

  • System dialog? black text box in the screen?

    How do I close this program, it was opened by accident. it's a black text box that is telling me everything I type, point or click on....it's REALLY annoying!

    System Preferences -> Universal Access -> Seeing tab -> turn Voiceover off

Maybe you are looking for

  • Help please with access code to get into restrictions to delete apps.

    I have an iPad 2. I recently upgraded to 7.0.4.  The new system requires me to go to settings/general/restrictions to delete any apps I do not wish to keep.  This worked fine at first, after the first system upgrade to 7.0. After the last update, 7.0

  • ITunes Has Stopped Working on program start

    Recently, whenever I open iTunes, I'm greeted with an app crash and window prompt of "iTunes has stopped working". Problem signature:   Problem Event Name:    APPCRASH   Application Name:    iTunes.exe   Application Version:    12.1.1.4   Application

  • Sharing files between macs

    Okay so here is my problem. I have a MacBook Pro 13" running snow leopard and I am trying to connect it to an iMac running 10.5 leopard. When I click on my iMac's name in finder and try to connect to it it keeps giving me a "Connection Failed" dialog

  • Netting in IS oil Module

    Hi, I need to understand what is Financial Based netting and Movement based netting. and also the pros and cons of each. Regards Raghavendra

  • P67A-GD65 (B3 ) & Windows 7 64Bit Boot Issue

    Hi, I feel the need to revisit this old forum post as I do not believe it has been fully resolved: https://forum-en.msi.com/index.php?topic=156082.0 In summary the issue is "Most times the machine boots and performs flawlessly for hours, but often it