How to read the contents of Input Field created via Screen Painter?

Hi All,
I have a module program / dialog program, on my second screen, I created an input/outbox field via screen painter of course,
now in my PAI, how can I read the contents of the input/outbox field?
Let's say the name of my input/outbox field is: P_WEKRS.  Note: Get Parameter and Set Parameter is ticked.
PROCESS AFTER INPUT.
  LOOP WITH CONTROL TC_DATA.
    MODULE MODIFY_DATA.
  ENDLOOP.
I want to get the value of the input/outbox field before my loop in table control?  I thought that it will work like normal parameter in non-dialog programs.
Any helpful inputs will be appreciated/rewarded.
Thanks.
Jaime

Hi, Jaime
Do the following Change in you Follow Logic
PROCESS AFTER INPUT.
MODULE read_or_change_value. " Add this
LOOP WITH CONTROL TC_DATA.
  MODULE MODIFY_DATA.
ENDLOOP.
Add the Bellow Module code in you Driver Program.
MODULE read_or_change_value.
DATA: P_WEKRS like " the Field on Screen. Must be the same name as on SCREEN. and Type must be same too.
" Here you will find the Value in that Variable or if you will change the Value here you will find it change on Screen
END MODULE.
Please Reply if any Issue..
Best Regards,
Faisal

Similar Messages

  • How to read the content of a text file (by character)?

    Guys,
    Good day!
    I'm back just need again your help. Is there anyone knows how to read the content of a text file not by line but by character.
    Please help me. Thank you so much in advance.
    Jojo

    http://java.sun.com/javase/6/docs/api/index.html
    package java.io
    InputStream.read(): int
    Reads the next byte of data from the input stream.
    Implementation:
    InputStreamReader
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specified charset. The charset that it uses may be specified by name or may be given explicitly, or the platform's default charset may be accepted.

  • How to read the content in one node of XML in Java? Pls help

    My dear brothers,
    I am a newbie of XML, I have a exercise which is creating a Tree View from XML file. But the trouble is I do not know how to read the content in one node of XML file. I decide to use the algorithm as following:
    1. Create a GUI form which gives the ability for user to choose a XML file (ok)
    2. Load XML and return the file (ok)
    3. Read the file from node to node to create the node in Tree View (?!)
    Please help me, and if you are enough kind, please give me an small example to easy understand. Thanks in advance.
    Hoang Yen Binh

    I hope this one helps you.
         <ABC Type="ProductBased" ProdName="One" Location="India">
              <CEO>Raj</CEO>
              <Finance>Vikram</Finance>
              <HR>Karthik</HR>
              <Technical>Satish</Technical>
         </ABC>
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Attr;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Node;
    import org.w3c.dom.DOMException;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import java.io.File;
    import java.io.IOException;
    public class XmlReading {
         Document doc;
         Element element;
         public static void main(String[] args) throws Exception{
              XmlReading xr = new XmlReading();
              xr.getXmlParser(args);
         public void getXmlParser(String[] args) {
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   if(args.length != 1) {
                        System.err.println("Argument Required");
              try {
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   doc = builder.parse(new File(args[0]));
              }catch(ParserConfigurationException e1) {
              }catch(SAXException e2) {
              }catch(IOException e3) {
              getAttributes();
         public void getAttributes() {
              // Retrive the entire Document from the Dom Tree
              element = doc.getDocumentElement();
    //          System.out.println(element);
              NamedNodeMap attrs = element.getAttributes();
              // Get number of attributes in the element
         int numAttrs = attrs.getLength();
         // Process each attribute
              for (int i=0; i<numAttrs; i++) {
                   Node node = attrs.item(i);
                   // Get attribute name and value
                   String attrName = node.getNodeName();
                   String attrValue = node.getNodeValue();
                   System.out.println(attrName + ": " + attrValue);
              String s1 = element.getTagName();
              System.out.println(s1);
              // To get all the elements in a DOM Tree
              NodeList nl1 = element.getElementsByTagName("*");
              int i2 = nl1.getLength();
              System.out.println(i2);
              for(int i=0; i<i2; i++) {
                   System.out.println(nl1.item(i) + "\n");
    }

  • How to read the contents of attached files

    Hi,
    I am designing a Form using LiveCycle Designer 8.0
    Scenario:
    User can attach the file through "Attachments" facility provided on Adobe  Reader.
    The requirement is to attach 3 documents and post it to SAP system using Web services.
    I am using the following code(which i got from this forum only) to find the number of files user has attached.
    d = event.target.dataObjects;
    n =  d.length;
    xfa.host.messageBox("Number  of Attachments: "+n);
    //Displaying  the names of the Attached files
    for( i =  0; i < n; i++ )
    xfa.host.messageBox("Name  of the file: "+d[i].name);
    My problem: is how to read the contents of the attached files so that I post it to SAP using Web services
    Thanks in advance!!
    Taha Ahmed

    In order to read the content of the Redo Log files, you should use Logminer Utility
    Please refer to the documentation for more information:
    [Using LogMiner to Analyze Redo Log Files|http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/logminer.htm#SUTIL019]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Help me...How to read the content if "Transfer-Encoding:chunked" is used?

    I am doing a project for internet control using Java,PHP and MySql.All sites should go through the proxy server only.If the HTTP header contains Content-Length,am getting the content length as below:
    public class HTTPResponseReader extends HTTPMessageReader
        String statusCode;
        public HTTPResponseReader(InputStream istream) throws IOException,                     NoSuchElementException
      BufferedInputStream distream = new BufferedInputStream(istream);
      retrieveHeader(distream);
      StringTokenizer st =  new StringTokenizer(new String(HTTPMessageReader.toArray(header)));
      versionProtocol = st.nextToken();
      statusCode = st.nextToken();
      String s;
      while (st.hasMoreTokens())
            s = st.nextToken();
            if (s.equals("Transfer-Encoding:"))
           transferEncoding = new String(st.nextToken());
         if (s.equals("Content-Length:"))
           contentLength = Integer.parseInt(st.nextToken());
         if (s.equals("Connection:"))
          connection = new String(st.nextToken());
          if (connection.equals("keep-alive")) mustCloseConnection = false;
       retrieveBody(distream);     
    }After getting the Content-Length,i used read method to read the content upto that content length.Then i concatenated the HTTP header and body and the requested site was opened.But some sites dont have Content-Length.Instead of that,Transfer-Encoding is used.I got the HTTP Response header as "Transfer-Encoding:chunked" for some sites.If this encoding is used how to get the length of the message body and how to read the content.
    Can anybody help me.
    Thanks in advance...
    Message was edited by:
    VeeraLakshmi

    Why don't you use HttpUrlConnection class to retrieve data from HTTP server? This class already supports chunked encoding...
    If you want to do anything by yourself then you need to read HTTP RFC and find all required information. Well in two words you may reject advanced encoding by specifying HTTP 1.0 in your request or download chunked answer manually. Read RFC anyway :)

  • Help on how to read the content of an XML file from the payload

    I have a receiver channel / mail adapter, that sends e-mails with a XML attachment.
    I’m trying to write a Bean, that should make it possible to rename the attached XML file dynamically.
    In the Bean I want to read the content of the attached XML file, it could be the “order number”.
    The filename should then be “Order number”.XML.
    <u><i>Can anyone help me with how to read the content of the XML file from the payload.</i></u>
    <i><b>Frank</b></i>

    hi,
    check this: http://jakarta.apache.org/poi/

  • How to read the content of ms-word file use pure java???

    how to read the content of ms-word file use pure java???

    hi,
    check this: http://jakarta.apache.org/poi/

  • How to  adjust the text in input field

    Hi Expert,
    New in VC development. Can someone guide how to adjust the text in input field? Because of  long text length it  is not displaying fully in visual composer iView so user are not able to see the entire text in input fields

    HI Kundan,
    I assume that you have already tried different options perent in Label Postion for the field.
    If none of these options meet your requirement then you can try the following workaround:
    In the display properties, select label position as no label.
    In the form view add a new UI Control for Plain Text or HTML text and change its Label to "Material Number".
    Now place this new UI Control in before your actual Input field such that it appears as the field label.
    Hope this helps.
    Regards,
    Rk

  • How to restrict the length of input field

    Hi,
    How to restrict the length of input field. That is we should not be able to enter more thatn 10 charecters.
    Regards,
    H.V.Swathi

    Hi swathi,
    For this you have to create a simple data type. No need of writing a code.
    Go to Dictionaries -> Local Dictionary -> Data Type - > Simple Type - > Right click and "Create Simple Type".
    Here you should create a Simple type with String as built-in Type. Here you will also see the Length Constraints option.
    Set the value of maximum length and minimum length. In your case set the value of maximum length to 10. At runtime this will not allow the user to enter more than 10 characters.
    Now create an attribute and bind it to this newly created simple type. Bind the value of the input field with this particular attribute.
    Regards
    Manohar

  • How to read the contents of XML file from my java code

    All,
    I created an rtf report for one of my EBS reports. Now I want to email this report to several people. Using Tim's blog I implemented the email part. I am sending emails to myself based on the USERID logic.
    However I want to email to different people other then me. My email addresses are in the XML file.
    From the java program which sends the email, how can I read the fields from XML file. If any one has done this, Please point me to the right examples.
    Please let me know if there are any exmaples/BLOG's which explain how to do this(basically read the contents of XML file in the Java program).
    Thank You,
    Padma

    Ike,
    Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
    Please help me.
    Thank you for your posting.
    Padma.

  • How to read the contents of the Uploaded file ?

    hi @,
    I have used the File upload and Download UI elements as per the tutorial available. Now my requirement is to read the contents of the file and transfer it to the Backend system.
    How can I achieve the desired fucntionality.
    Thanks in advance,
    Regards,
    Amit

    try this code to store image file in back end system.
    IWDResource res=wdContext.currentMyDataElement().getPictureres();
              InputStream in=res.read(false);
              ByteArrayOutputStream bout=new ByteArrayOutputStream();
              int length;
              byte[] part=new byte[10*1024];
              while((length=in.read(part))!=-1)
              bout.write(part,0,length);
              in.close();
    pstmt.setBytes(8,bout.toByteArray());
    If it is other than image file like word or text then try this in action
    IWDResource resource = wdContext.currentResElement().getResorce(); // your existing handle to the upload resource type
                try {
                   InputStream stream = resource.read(true);
                   byte b[]= new byte[1000];
                   stream.read(b);
                   String str = new String(b);
                   int i=str.length();
                   wdContext.currentContextElement().setOut(str);
                   wdContext.currentContextElement().setSize(i);
                   wdContext.currentResElement().setResourceurl(
                        wdContext.currentResElement().getResorce().getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal()));
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    The in back end field where u store the file should be byte array.
    Regards,
    H.V.Swathi

  • How to Read the content of E-mail Body data

    Hi All,
    I am creating an E-mail webdynpro application, In that i want to read the content of body part. what will be the type of that TEXTEDIT field?
    and how can i read the content ?? is there any method or function module for that ???
    Thanks.

    Hi,
    There is standard WDA available on sending Emails. It is RPLM_MP_SENDEMAIL_COMP.
    See the code in this WD application and get the relevant logic for your functionality.
    I hope this will solve your problem.
    Thanks,
    Chandra

  • How to read value of OVS Input field on pressinf of F4

    In my case I have to read value from context node as I am skipping the phase 1 of  on OVS PHASE MODEL
    but not sure how to read the value from context element
    METHOD on_ovs .
      DATA: lo_nd TYPE REF TO if_wd_context_node,
            lo_el TYPE REF TO if_wd_context_element,
            lo_el_parent TYPE REF TO if_wd_context_element.
      lo_el = wdevent->get_context_element( name = 'OVS_CONTEXT_ELEMENT' ).
      lo_el_parent = lo_el->get_node( )->get_parent_element( ).
      DATA: criteria TYPE string.
      DATA text TYPE string.
      lo_el->get_attribute( EXPORTING name = 'ATTR_TEXT' IMPORTING value = text ).
      DATA: ls_search_input  TYPE cl_grac_feeder_role_search=>lty_stru_input,
            lt_select_list   TYPE STANDARD TABLE OF cl_grac_feeder_role_search=>lty_stru_list,
            ls_text          TYPE wdr_name_value,
            lt_label_texts   TYPE wdr_name_value_list,
            lt_column_texts  TYPE wdr_name_value_list,
            lv_window_title  TYPE string,
            lv_table_header  TYPE string.
      FIELD-SYMBOLS: <ls_query_params> TYPE cl_grac_feeder_role_search=>lty_stru_input,
                     <ls_selection>    TYPE cl_grac_feeder_role_search=>lty_stru_list.
      CASE ovs_callback_object->phase_indicator.
        WHEN if_wd_ovs=>co_phase_0.  "configuration phase, may be omitted
      in this phase you have the possibility to define the texts,
      if you do not want to use the defaults (DDIC-texts)
         lt_label_texts =  wd_this->get_ovs_label_texts( criteria ).
         lt_column_texts = wd_this->get_ovs_column_texts( criteria ).
         lv_window_title = wd_this->get_ovs_window_title( criteria ).
         lv_table_header = wd_this->get_ovs_table_header( criteria ).
         lv_window_title = wd_assist->get_text( `003` ).
         lv_table_header = wd_assist->get_text( `004` ).
          CASE text.
            WHEN 'SYSTEM'.
              ls_text-name = `CONNECTORID`.
              ls_text-value = `System`.
              INSERT ls_text INTO TABLE lt_label_texts.
              lv_window_title = ls_text-value.
              lv_table_header = ls_text-value.
              lt_column_texts = lt_label_texts.
            when 'PERMISSION' .
              return.
            when 'ACTION'.
              RETURN.
          ENDCASE.
          ovs_callback_object->set_configuration(
                    label_texts  = lt_label_texts
                    column_texts = lt_column_texts
                    window_title = lv_window_title
                    table_header = lv_table_header ).
        WHEN if_wd_ovs=>co_phase_1.  "set search structure and defaults
      In this phase you can set the structure and default values
      of the search structure. If this phase is omitted, the search
      fields will not be displayed, but the selection table is
      displayed directly.
      Read values of the original context (not necessary, but you
      may set these as the defaults). A reference to the context
      element is available in the callback object.
         ovs_callback_object->context_element->get_static_attributes(
             IMPORTING static_attributes = ls_search_input ).
        pass the values to the OVS component
         ovs_callback_object->set_input_structure(
             input = ls_search_input ).
          CASE text.
            WHEN 'SYSTEM'.
          DATA: l_conn TYPE grac_s_grfncgrpconlk.
              ovs_callback_object->set_input_structure( EXPORTING input = l_conn ).
          ENDCASE.
        WHEN if_wd_ovs=>co_phase_2.
      If phase 1 is implemented, use the field input for the
      selection of the table.
      If phase 1 is omitted, use values from your own context.
         IF ovs_callback_object->query_parameters IS NOT BOUND.
    TODO exception handling
         ENDIF.
         ASSIGN ovs_callback_object->query_parameters->*
                                 TO <ls_query_params>.
         IF NOT <ls_query_params> IS ASSIGNED.
    TODO exception handling
         ENDIF.
        call business logic for a table of possible values
        lt_select_list = ???
         DATA: l_data TYPE grac_t_bproc.
         DATA: ls_data TYPE REF TO data.
         DATA: l_stru TYPE REF TO cl_abap_tabledescr.
         l_stru ?= cl_abap_tabledescr=>describe_by_name( 'GRAC_T_BPROC' ).
         CREATE DATA ls_data TYPE HANDLE l_stru.
         wd_this->get_ovs_selection_list( EXPORTING iv_criteria = criteria IMPORTING rt_list = l_data ).
         "ASSIGN l_data->* to <lt_list>.
         ovs_callback_object->set_output_table( output = l_data ).
          "ovs_callback_object->set_output_table( output = lt_select_list ).
          FIELD-SYMBOLS: <fs_query_params> TYPE cl_grac_feeder_role_search=>lty_stru_input1,
          <fs_selection>    TYPE cl_grac_feeder_role_search=>lty_stru_list.
          DATA lv_connector_grp TYPE grfn_connectorgrp.
          IF ovs_callback_object->query_parameters IS NOT BOUND.
    TODO exception handling
          ENDIF.
          ASSIGN ovs_callback_object->query_parameters->*
          TO <fs_query_params>.
          IF NOT <fs_query_params> IS ASSIGNED.
    TODO exception handling
          ELSE.
            lv_connector_grp =  <fs_query_params>-field1.
          ENDIF.
         IF lv_connector_grp IS INITIAL.
           lv_connector_grp = '*'.
         ENDIF.
          CASE text.
            WHEN 'SYSTEM'.
              DATA: lt_system_list TYPE grac_t_grfncgrpconlk.
              FIELD-SYMBOLS: <ls_system> LIKE LINE OF lt_system_list.
              cl_grfn_cci_ts_configuration=>get_group_connectors(
                EXPORTING
                  iv_connector_grp    = lv_connector_grp
                 iv_no_authority_chk = ABAP_FALSE
                IMPORTING
                  rt_connectors       = lt_system_list
              ovs_callback_object->set_output_table( output = lt_system_list ).
              WHEN 'ACTION'.
                data lt_action_output TYPE TABLE OF cl_grac_feeder_role_search=>t_action_list.
                ovs_callback_object->set_output_table( output = lt_action_output ).
              WHEN 'PERMISSION'.
                DATA: lt_perm TYPE TABLE OF cl_grac_feeder_role_search=>t_permission_list.
          ovs_callback_object->set_output_table( OUTPUT = lt_perm ).
          ENDCASE.
        WHEN if_wd_ovs=>co_phase_3.
          FIELD-SYMBOLS <system> TYPE grac_s_grfncgrpconlk.
          CASE text.
            WHEN 'SYSTEM'.
              ASSIGN ovs_callback_object->selection->* TO <system>.
              IF <system> IS ASSIGNED.
                ovs_callback_object->context_element->set_attribute(
                name  = 'INPUT1_SYSTEM'
                value = <system>-connector ).
                wd_this->mv_connectorid = <system>-connector.
              ENDIF.
          ENDCASE.
      ENDCASE.
    ENDMETHOD.

    Hi,
    It depends how you are setting your parameter also as there are different types of parameters in portal. The best is to use the page level parameters..
    Please read the developers gide Section 8.3 for more details....
    The link is :-
    http://download-east.oracle.com/docs/cd/B14099_19/portal.1014/b14135/pdg_pdk_plsql.htm#CHDGAHCF
    Guneet

  • How to read the content of  "Transfer-Encoding: chunked" header

    Can anybody tell me how to get or read the value of transfer encoding.
    I got the HTTP Response header as "Transfer-Encoding: chunked".But i can't get the chunk size or the chunked data.
    Without getting those details i cant read the content of the site.If Content-Length is in the HTTP header,i can read upto that length.But in this Transfer-Encoding case,i cant know any other details except the value "chunked".So suggest me to read the content of the site using Transfer-Encoding.
    Message was edited by:
    VeeraLakshmi

    I used HTTPURLConnection also.If i use that am getting the values in request headers only and not in Response headers.So i cant read the content.
    Then i went through RFC 2616.There i can only understand about chunked transfer encoding.Still i cant get any idea to know the chunk-size and the chunked data of the transfer encoding.Because i am getting the HTTP Header Response as "Transfer-Encoding: chunked".Below that am not getting the size and data.If i know the size or data,i can proceed by converting the hex into bytes and i can read.

  • How to read the content of a blob col along with other cols as pipe delimit

    Hi,
    I would like to read the blob content along with the other columns . Assume table TAB1 has columns Response_log, Empcode and Ename. Here Response_log col is a blob data type, and the content of the blob is an xml file.Now i would like to read the content of the xml file of response_log column along with Empcode and Ename as pipe delimited . or else the best option would be to write to a text file with name extract.txt with the data being pipe delimited .
    create  table tab1(
    response_log blob,
    empcode  number,
    ename  varchar2(50 byte)
    )Sample code goes something like the one below .
    select xmltype( response_log, nls_charset_id( 'char_cs' ) ).getclobval() || '|' || empcode || '|' || ename
    from tab1 Can I have any other alternate way for this.
    Please advice

    Just Now one example is given in HOW TO WRITE ,SAVE A FILE IN BLOB COLUMN

Maybe you are looking for

  • Usb 3.0 hard drive doesn't work

    i boot my laptop with ubuntu ,the usb3.0 hard drive could be recognized by usb3.0 port without external power, but archlinux cannot. the write speed is 43.7 MB/s in ubuntu. it seems like that this is only usb2.0 speed. can archlinux use usb3.0 as usb

  • How to call other execs from java application

    What is the best way to make a call to execute an external executable written in another language (i.e. c++ or ada95) from within a java application?

  • HT1449 Moving iTunes media folder

    I've copied my media folder from one NAS drive to another. I've moved my library file. I've set the new location of the media file in Preferences. I've consolidated the library. iTunes still insists in looking at the old location, though. Any ideas?

  • Hardcore exception stacktrace related to long message in JDialog

    Hi, Here's the code for my showDialog method:     void showDialog(String title, String messageContent) {         String output = "<font face=\"Arial, sans-serif, Helvetica, Geneva\">" + messageContent;         //output = output.substring(0, 254); Wor

  • BlazeDS Service creation

    Hi, Which class does BlazeDS use to create the remote service object? e.g: I say to the BlazeDS the destination. (e.g = "helloWorldService"). So, where this destination is turned into a concrete class?