Read Selcet Options using DYNP_VALUES_READ

Hi friends,
   I have declared a Select option with no intervals, Multiple values can be entered
   I am trying to Read the Select options using DYNP_VALUES_READ in  AT ...ON HELP REQUEST for another field on selection screen
  I am able to read only one value of the  selection option using the above FM, Any inputs on how to read the multiple values
Thanks
Chandra

P681634 wrote:
Hi friends,
   I have declared a Select option with no intervals, Multiple values can be entered
   I am trying to Read the Select options using DYNP_VALUES_READ in  AT ...ON HELP REQUEST for another field on selection screen
  I am able to read only one value of the  selection option using the above FM, Any inputs on how to read the multiple values
Thanks
Chandra
      FORM VARIANTEN_AUSWAHL                                        *
      Auswahl einer ALV Variante für die Liste (F4)                 *
-->  pvari  : Variantenname                                        *
FORM varianten_auswahl CHANGING p_vari LIKE disvariant-variant.
**commented by ajay_05/13/2008
DATA: x_exit(1)  TYPE c,
       x_variant  LIKE disvariant,
       x_variant2 LIKE disvariant.
  DATA: fieldvalues TYPE dynpread OCCURS 1 WITH HEADER LINE,
        crepid      like sy-repid,
        summb       LIKE fieldvalues-fieldvalue.
  crepid = sy-repid.
Feld SUMMB vom Dynpro einlesen.
(Da der PAI noch nicht durchlaufen ist!)
  CLEAR fieldvalues.
  REFRESH fieldvalues.
  MOVE: 'SUMMB' TO fieldvalues-fieldname.
  APPEND fieldvalues.
  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname               = crepid
      dynumb               = '1000'
    TABLES
      dynpfields           = fieldvalues
    EXCEPTIONS
      INVALID_ABAPWORKAREA = 1
      INVALID_DYNPROFIELD  = 2
      INVALID_DYNPRONAME   = 3
      INVALID_DYNPRONUMMER = 4
      INVALID_REQUEST      = 5
      NO_FIELDDESCRIPTION  = 6
      INVALID_PARAMETER    = 7
      UNDEFIND_ERROR       = 8
      DOUBLE_CONVERSION    = 9
      STEPL_NOT_FOUND      = 10
      OTHERS               = 11.
  if sy-subrc = 0.
    READ TABLE fieldvalues INDEX 1.
    summb = fieldvalues-fieldvalue.
  else.
    clear summb.
  endif.
Aktueller Reportname
  x_variant-report  = sy-repid.
...       Variantenname
  x_variant-variant = p_vari.
Anzeigevarianten für (Nicht)Summenbericht unterschiedlich!
  IF summb = 'X'.
    x_variant-handle = 'SUMX'.
  ELSE.
    x_variant-handle = ''.
  ENDIF.
  CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
    EXPORTING
      is_variant = x_variant
      i_save     = 'A'
    IMPORTING
      e_exit     = x_exit
      es_variant = x_variant2
    EXCEPTIONS
      not_found  = 2.
  IF sy-subrc = 2.
  Keine Varianten für den Report vorhanden
    MESSAGE ID sy-msgid TYPE 'S'      NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ELSE.
    IF x_exit = space.
    Augewählten Variantennamen übernehmen
      p_vari = x_variant2-variant.
    ENDIF.
  ENDIF.
ENDFORM.                    "varianten_auswahl
Edited by: Ajay kumar on May 11, 2009 8:03 AM
Edited by: Ajay kumar on May 11, 2009 8:04 AM

Similar Messages

  • Check if in Word document (Word 2013) advanced option "Use fonts that are stored on the printer" is set

    Is it possible in a VBA macro to check whether an opened word document has the advanced option "Use fonts that are stored on the Printer" is set.
    I have a word macro that opens and processes thousands of word documents.  The processing needs to be different based on whether this option is set or not.
    Thanks,
    Harry Spier
    Harry Spier

    Hi Harry,
    I'm afraid that we're not able to retrieve this option value. The Advanced Options are actually stored as application level. Some of the options can be accessed with the Word.Application.Options property. But there're also many options that are not
    exposed in the Word Object Model. As you can see in this figure, there's no property corresponding to "Use fonts that are stored on the printer":
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Asynchronous read & write by using Asynchronous api provided in nio-java 7

    HI,
    I am trying to write a small program to implement **asynchronous read & write by using Asynchronous api provided in nio in java 1.7** in windows machine.
    i tried the following code to write a small string to a file asynchronously.file is getting created but the contents are not dispalying.
         static long startTime = System.currentTimeMillis();
         static long endTime;
         static long execTime;
         public static void main(String[] args) {
              String path = "C:\\AsynchWrite.txt";
              Path file = Paths.get(path);
              final AsynchronousFileChannel channel;
              long pos = 1;
              try {
                   OpenOption[] options = { StandardOpenOption.CREATE,
                             StandardOpenOption.WRITE, StandardOpenOption.SYNC };
                   channel = AsynchronousFileChannel.open(file, options);
                   ByteBuffer buffer = ByteBuffer.allocate(1000);
                   String writeThis = "Testing by writing a line";
                   byte[] src = writeThis.getBytes();
                   buffer.put(src);
                   channel.write(buffer, pos, null,
                             new CompletionHandler<Integer, Object>() {
                                  @Override
                                  public void completed(Integer result, Object attachment) {
                                       System.out.println("completed successfully");
                                       System.out.println("start time :" + startTime);
                                       endTime = System.currentTimeMillis();
                                       System.out.println("end time : " + endTime);
                                       execTime = endTime - startTime;
                                       System.out.println("Execution Time :" + execTime);
                                       System.out.println("Execution Time(ms) :"
                                                 + execTime);
                                       try {
                                            channel.force(true);
                                            channel.close();
                                       } catch (IOException e) {
                                            // TODO Auto-generated catch block
                                            e.printStackTrace();
                                  @Override
                                  public void failed(Throwable exc, Object attachment) {
                                       // TODO Auto-generated method stub
                                       System.out.println("failed!!");
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         }Please help me out
    Thanks in advance,
    Ravi

    It looks like you are missing buffer.flip() after your put as otherwise the buffer position will be at 25 (not 0 as you expect).

  • Dynamic select-options using parameter

    Hi experts,
    It the user selects one value from dropdown list, it should generate one select-option using that name. Is it possible?
    for example, (pls see my code).
    If user selects 'Malek' from parameter, <b>and press 'ENTER'</b>
    <b>select-option should display with that name</b> like
    Malek      malek-low  malek-high
    And if user selects some other like 'Amran'. It should generate(and append)
    Malek      malek-low  malek-high
    amran      amran-low amran-high
    and so on....
    report c.
    data: t_return like ddshretval occurs 0 with header line.
    data: begin of t_names occurs 0,
           name like usr01-bname,
          end of t_names.
    parameters : i_inspec like usr01-bname.
    at selection-screen on value-request for i_inspec.
      perform get_names.
    form get_names.
      t_names-name = 'Malek'.
      append t_names.
      t_names-name = 'Amran'.
      append t_names.
      t_names-name = 'Ow CC'.
      append t_names.
      t_names-name = 'titbit'.
      append t_names.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          retfield    = 'T_NAMES-NAME'
          dynpprog    = sy-cprog
          dynpnr      = sy-dynnr
          dynprofield = 'I_INSPEC'
          value_org   = 'S'
        tables
          value_tab   = t_names.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno with
        sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      read table t_return index   1.
    endform.                    "GET_NAMES
    Reward guaranteed,
    thanks
    kaki

    Use At selection-screen output,use screen internal table..
    User Dynamic Selection
    at selection-screen output.
      select single * from t000md.
      loop at screen.
        case screen-group1.
          when 'REL'.
            if not  p_old is initial.
              screen-input = '0'.
              screen-required = '0'.
              screen-invisible = '1'.
            endif.
            modify screen.
          when 'BEL'.
            if not p_new is initial.
              screen-input = '0'.
              screen-required = '0'.
              screen-invisible = '1'.
            endif.
            modify screen.
          when 'ARB'.
            if  p_new is initial.
              screen-input = '0'.
              screen-required = '0'.
              screen-invisible = '1'.
            endif.
            modify screen.
          when 'MTA'.
            if  p_new is initial.
              screen-input = '0'.
              screen-required = '0'.
              screen-invisible = '1'.
            endif.
            modify screen.
        endcase.
      endloop.

  • HT3625 I have a 2012 macBook Pro 13" and the option "Use audio port for" does not appear at all in the sound menu. why is this? im running  mountain Lion 10.8.2

    I have a 2012 macBook Pro 13" and the option "Use audio port for" does not appear at all in the sound menu. why is this? im running  mountain Lion 10.8.2

    Because line-in has been removed.
    It does allow for an Apple headset with mic., but I don't know if it would work with third-party ones.
    You'll need to use a Griffin iMic or similar to use line-in via a USB port.
    The same goes for the 15" retina, the newest MBA and the new iMac (whenever it finally arrives).

  • After attempt to install windows 7 via boot camp onto Mac mini, my screen reads "no bootable devise--insert boot devise and press any key.  However, disk still in reader, and not using a Mac keyboard

    After attempt to install windows 7 via boot camp onto Mac mini, my screen reads "no bootable devise--insert boot devise and press any key.  However, disk still in reader, and not using a Mac keyboard

    Reboot your Mac, as soon as you hear the chime press the option/alt key and hold it until the boot manager appears, select OSX to boot from.

  • PM Scripts: how to get into "Document setup" - "Compose to printer"option using PageMaker scripts?

    Hi
    I wonder if there is any way to set appropriate printer in "Document setup" -> "Compose to printer" option using PageMaker scripts.
    Going through the PageMaker Script Guide I couldn't find such functionality.
    I will appreciate your help
    /Joanna

    This is what you need: http://www.amazon.com/Pagemaker-Scripting-Guide-Desktop-Automation/dp/tech-data/1568303181
    If the script is not in that book, then it doesn't exist.
    There used to be PDF version, but I can't find it.

  • I am trying to drag and drop one page of a .pdf into another .pdf in Acrobat Reader.  I used to be able to drag and drop from one .pdf to another.

    I am trying to drag and drop one page of a .pdf into another .pdf in Acrobat Reader.  I used to be able to drag and drop from one .pdf to another.

    If you could drag and drop pages before, it wasn't in Reader. You no doubt had Adobe Acrobat (Pro or Standard) which shouldn't be confused with Adobe Acrobat Reader. They recently added Acrobat to the name of Adobe Reader so the confusion about which product you had and/or have is understandable.

  • How to read pdf files using java.io package classes

    Dear All,
    I have a certain requirement that i should read and write PDF files at runtime. With normal java file IO reading is not working. Can any one suggest me how to proceed probably with sample code block
    Thanks in advance.

    hi I also have the pbm. to read pdf file using JAVA
    can any body help meWhy is it so difficult to read the thread you posted in? They say: java.io is pointless, use iText. So why don't you?
    or also I want to read a binary encoded data into
    ascii,
    can anybody give me a hint how to do it.Depends on what you mean with "binary encoding". ASCII's binary encoding, too, basically.

  • How can I read a form using session in javaServerlet?(thanks)

    How can I read a form using session in javaServerlet?(thanks)

    you can not. You get the form entries through the request object.

  • Reading XML file using BAPI and then uploading that xml file data into SAP

    I am getting a xml file from Java server. I need to take
    data from this file using BAPI and need to upload into SAP using SAP.
    Please tell me how to read XML files using BAPI's.

    <b>SDIXML_DATA_TO_DOM</b> Convert SAP data (elementary/structured/table types) into DOM (XML
    <b>SDIXML_DOM_TO_XML</b>  Convert DOM (XML) into string of bytes that can be downloaded to PC or application server
    <b>SDIXML_DOM_TO_SCREEN</b> Display DOM (XML)
    <b>SDIXML_DOM_TO_DATA</b>
    data: it_table like t001 occurs 0.
    data: l_dom      TYPE REF TO IF_IXML_ELEMENT,
          m_document TYPE REF TO IF_IXML_DOCUMENT,
          g_ixml     TYPE REF TO IF_IXML,
          w_string   TYPE XSTRING,
          w_size     TYPE I,
          w_result   TYPE I,
          w_line     TYPE STRING,
          it_xml     TYPE DCXMLLINES,
          s_xml      like line of it_xml,
          w_rc       like sy-subrc.
    start-of-selection.
      select * from t001 into table it_table.
    end-of-selection.
    initialize iXML-Framework          ****
      write: / 'initialiazing iXML:'.
      class cl_ixml definition load.
      g_ixml = cl_ixml=>create( ).
      check not g_ixml is initial.
      write: 'ok'.
    create DOM from SAP data           ****
      write: / 'creating iXML doc:'.
      m_document = g_ixml->create_document( ).
      check not m_document is initial.
      write: 'ok'.
      write: / 'converting DATA TO DOM 1:'.
      CALL FUNCTION 'SDIXML_DATA_TO_DOM'
        EXPORTING
          NAME               = 'IT_TABLE'
          DATAOBJECT         = it_table[]
        IMPORTING
          DATA_AS_DOM        = l_dom
        CHANGING
          DOCUMENT           = m_document
        EXCEPTIONS
          ILLEGAL_NAME       = 1
          OTHERS             = 2.
      if sy-subrc = 0.  write  'ok'.
      else.             write: 'Err =', sy-subrc.
      endif.
      check not l_dom is initial.
      write: / 'appending DOM to iXML doc:'.
      w_rc = m_document->append_child( new_child = l_dom ).
      if w_rc is initial.  write  'ok'.
      else.                write: 'Err =', w_rc.
      endif.
    visualize iXML (DOM)               ****
      write: / 'displaying DOM:'.
      CALL FUNCTION 'SDIXML_DOM_TO_SCREEN'
        EXPORTING
          DOCUMENT          = m_document
        EXCEPTIONS
          NO_DOCUMENT       = 1
          OTHERS            = 2.
      if sy-subrc = 0.  write  'ok'.
      else.             write: 'Err =', sy-subrc.
      endif.
    convert DOM to XML doc (table)     ****
      write: / 'converting DOM TO XML:'.
      CALL FUNCTION 'SDIXML_DOM_TO_XML'
        EXPORTING
          DOCUMENT            = m_document
        PRETTY_PRINT        = ' '
        IMPORTING
          XML_AS_STRING       = w_string
          SIZE                = w_size
        TABLES
          XML_AS_TABLE        = it_xml
        EXCEPTIONS
          NO_DOCUMENT         = 1
          OTHERS              = 2.
      if sy-subrc = 0.   write  'ok'.
      else.              write: 'Err =', sy-subrc.
      endif.
      write: / 'XML as string of size:', w_size, / w_string.
      describe table it_xml lines w_result.
      write: / 'XML as table of', w_result, 'lines:'..
      loop at it_xml into s_xml.
        write s_xml.
      endloop.
      write: / 'end of processing'.
    end of code
    Hope this will be useful.
    regards
    vinod

  • Reading XML file using BAPI  I must use adapters .

    Reading XML file using BAPI and then uploading that xml file data into SAP using BDC.
    I cant take file on to my Application server I am getting the file dynamically from other file server and I need to use BAPis to read data from XML file.please tell me what should be my Import,Export and Tables parameterrs should be.
    Thanks

    Hi,
    Import, export and table parameters for BAPI is required, without that BAPI will not able to collect the data from XML. What you need to do is write a Zprogram and collect the data, store that data in internal table and call the BAPI by passing required parameters.
    Different Scanarios:
    1) Before calling a BAPI write some other program which collects the data from XML and create a UNIX file. Try to get the data from UNIX FILE
    2) If you see the XML tags, data will be in side that tags, try to get the data from XML tags and store that data in one SAP table. You can use the BAPI by fetching the data from table
    3)Create a table and store the data in the table. Use the table in SAP to extract the data.
    BAPI won't work without any parameters, you have to pass some parameters then the BAPI will return some values.
    Hope i am clear.
    Thanks&Regards,
    -Suresh Revuru

  • Why do I get an error message when I try to sync my IPAD with ITunes? Message reads Cannot be used because Apple Mobile Device Service has not been started.

    Why do I get an error message when I try to sync my IPAD with ITunes? Message reads Cannot be used because Apple Mobile Device Service has not been started.

    AMDS for Windows
    http://support.apple.com/kb/TS1567

  • How to tell what version of Acrobat or Reader was last used to save a PDF

    How can I tell what version of Acrobat or Reader was last used to save a PDF file? My users are using fillable forms from grants.gov. We want them to use Adobe Reader 8.1.3 to fill these forms, but some accidentally use the Pro version of Acrobat. They need this to make PDFs from Word & other apps, but Pro will corrupt the fillable forms.
    When I open a saved form in Reader 8.1.3 and click File > Properties it says Acrobat 7.x even though I know it was saved with 8.1.3.
    Is there a way to know which version number and type (Reader or Pro) last saved a PDF?

    But it won't tell you what was used last. It just gives the original information.
    It also won't differentiate between Pro and Standard and of course won't mention Reader at all.

  • How to read HTML files using UTL_FILE

    Hello Friends,
    How to read HTML files using UTL_FILE package ? According
    to Oracle documentation UTL_FILE can read or write OS Text Files.
    Thanx in advance..
    Adi

    HI Hareesh,
    i have gone through that blog.
    i tried it...but i am getting mapping error  no receiver determination fond because there are so  many excel files.
    my data is available on sharedString.xml but also it is in not same order.
    i have no clue how to handle this part form the blog.
    "This way our mapping will receive all data from the sheet in an XML format. The only thing that's left is to create an XSD file from the XML file we received in order to be able to use it in the mapping and as our Service Interface and we can proceed with mapping. As you can see from the sheet.xml files all the data is placed with column name and row number so it's not that difficult to map it to an table type format using the Message Mapping only (no java, abap mapping required)."

Maybe you are looking for

  • PSE 6 Opening JPEG & TIFF in Camera Raw using Adobe Bridge

    Hi there,           I just purchase PSE 6 for mac. This comes with Adobe Bridge CS3. I have purchase a tutorial book as I am brand new to Photoshop. I have become stuck at chapter 1 !!!!!! I am trying to open a JPEG image using Camera Raw within Brid

  • IPhone 3GS stopped showing up in iTunes 11.1.3 Mac OS X 10.7.5

    My iPhone 3GS non longer shows up as a device in iTunes 11.1.3 on my Mac OS X 10.7.5 machine. The only warning was that the last time it was connected I got a message that it could not backup the device. I was still able to sync. Ever since then I ha

  • [mappings] send_orig_access

    Hi everyone, i need to setup my mapping table in order to deny access to any ip address configured in dispatcher for every sender that is on local domain. If i set the rule for a specific local domain as follow it works fine, but i can't build a dyna

  • Adding a PoE Switch to existing Network

    Hello, Currently we have a Linksys RV016 router with 3 Linksys SRW224G 24-Port Managed Switch. Can I add a PoE switch to my existing setup without any problems or I can only add none PoE switches? If I can add a PoE switch is there a specific configu

  • Centering Web Pages in Created In Photoshop CS3

    Hello, When I make a web page in Photoshop CS3, I can't figure out how to create it in HTML where the page is center justified rather than right justified. How can I do this?