Submit with textbox

hi all,
my problem is smthing like this.. say i have a textbox in html and based on the value of that textbox i want to invoke an sql statement.
in the textbox the user types in the part number,i.e the unique identifier in the db.if the user types in a part number to this textbox that is already in the the db then i want to pull all the data from the db to populate the remaining textboxes on the page. the reason for doing this to maintain data integrity as different descriptions for the same partnumber could be entered. i am very unsure about how to do this .do i need to submit the form after entering the partnumber? ,new to jsp.please help.thanks
thanx and regards

Hi -- sorry out to lunch n stuff.. here is some of the code.. will kp sending as time permits...
*****page 1 ***\
a simple form to get the id
<html>
<head>
<title>Get Part ID</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="PartInfo.jsp">
<p>
<input type="text" name="partID">
</p>
<p> </p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
</body>
</html>
///////////// Page 2 ////////////////////
PartInfo.jsp
<%@ page contentType="text/html; charset=" language="java" import="java.sql.*" errorPage="" %>
1. first get the value of the partID from the previous html pg
<% -- these indicate java code embedded within html
Strig partID = request.getParameter("partID"); // get part ID from previous html page to this jsp
%>
2. Then Have all you DB Connections in here...
example
<%
Class.forName("com.mysql.jdbc.Driver").newInstance();
String dataSourceName = "mysql://192.168.1.107/lit?user=xx&password=xxxx";
String dbURL = "jdbc:" + dataSourceName;
Connection con = DriverManager.getConnection(dbURL);
3. execute your query, getRS and save the values in variables...
while(RS.next){
String partName = RS.getString("PartName");
String partType = RS.getString("PartType");
%>
4. then display those variables in the JSP itself...
<p>Part ID = <%= partID %> </p>
<p>Part Name = <%= partName %> </p>
does this help???
--Yasir

Similar Messages

  • Replace Listbox with Textbox

    Hi ,
    I am facing a problem.Kindly reply me soon if anyone has solution to this problem.I have a form in which previously there was listbox.As the listbox has the "label" and "value" property,such property is not available in textbox.Earlier in my prj the form had listbox So the some value was displayed to user ,but in the backend the value of label was saved.In the Cr which i have got I have to replace the listbox with textbox.Also I have to autopopulate the value in the listbox autopopluated based on primary key value.So if we want to replace it with textbox ,how can we get the solution.I know that the list item can be replaced by 2 textbox ,one for diplaying the value of label and another for the value which would be saved in database.I am able to populate the value of label and the data saved in database.However the problem comes when we query the data to see old record. The data is populated but the value of label is not populated as this record is not saved in database.So without saving the information of label in database.How can we achieve the result as we get in listbox.kinly reply soon.
    thanks

    Not very clear about your problem.
    From where were you populating the list item previously?I think
    its a static list item populated at the design time.
    I am trying to reproduce your scenario.If any mistakes please inform..
    I created a table TT
    sql>desc tt;
    Name Null? Type 
    ID     NUMBER 
    C1     VARCHAR2(10) 
    STATUS     VARCHAR2(1) 
    Here status column can take values 'C','O','N' or Null
    implying 'Open','Closed','Not Available','Unknown' respectively.
    Now in the form, Status field is not displayed.Instead,
    created a 'dummy' field as char(15), which is displayed
    Triggers:
    Post-Query(Block-Level TT):
    :dummy := case :status when 'C' then 'Closed'
                             when 'O' then 'Open'
                  when 'N' then 'Not Available'
                                 else 'Unknown' end;
    Pre-Insert     
    :status := case :dummy when 'Closed' then 'C'
               when 'Open' then 'O'
               when 'Not Available' then 'N'
               else null end;
    You can also Validate th item 'dummy' using when-validate-trigger
    if :dummy is not null and :dummy not in ('Closed','Open','Not Available')  then
         message('Invalid Value');
         raise form_trigger_failure;
    end if;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Create Window with Textbox and Button For getting Input Value

    Hi All,
    I have create plugin application but i want to take input from user. Therefore i want to create window with textbox and button.
    please may i get solution...

    Or if that's all you need to do, just use JavaScript or a form.

  • Where can I find a sample of application with textboxs ,buttons and ..

    Hi,
    I'm new to Java and I'd like to know where can I find a sample of application with textbox, buttons and accessing a database (Oracle or MS-Access) something like a commercial application to start my knowledge in Java. I'm a developer and I use Visual Basic with Oracle DB. I have knowledge in C language.
    Thanks.
    Autair

    Hi Lionalx,
    I've tried to follow your tip but I got a page that contains the following message : "This directory contains some helper apps and scripts for setting
    up Microsoft Access, SQL Server, or Sybase databases to use with
    the examples in examples/Table. For details see the online
    documentation in:
    http://java.sun.com/products/jfc/swingdoc-current/db.html". Just it. So I've copied the indicadet address but it's redirect to main page of 'swing'. I was there before.
    Despite of this error, I'm finding some interesting tips in the address that you indicated. OK?
    Thanks.
    If you have something new or tip please write me
    Thanks
    Autair

  • Problem with textboxes in Flash CS5

    Hi, I am currently a Flash CS4 user and am trying Flash CS5 currently to see if it is worth it to pay for the upgrade. I currently have a problem with the use of textboxes in CS5 comparing with the previous version. When I try to change the texts of a text box using the following command in actionscript:
    showlmytext.text = "My string: " +String(somevariable);
    I would get weird misaligned text outputted in my textbox, which exact same code did not cause this problem on Flash CS4.
    Can somebody please tell me what is the problem and how can I fix it?
    Thanks

    Hi Mario,
    I hope you are well. My name is Sandi Langlotz.
    At my job at greenidea.com, here in SF; I am having difficulty with using Hebrew in the trial download of CS5 Flash. Russ Mumford my boss has also contacted you regarding our problem.
    Flash has a new TLF (Text Layout Format tool).  My difficulty has to do with text boxes that are formatted for Right to Left text, with Hebrew selected as the Locale. We are pasting from Microsoft Word.
    I hope  that you may have a suggestion, a referral  or a possible work around for me to try.
    I have tried Adobe Customer Service several times to no avail.
    Problem 1.
    The first sentence below, (in blue) is correct format for Hebrew. Hebrew reads from R to Left.
    When I paste the Hebrew text into the Flash animation, one of two things can happen;
    the punctuation is cut off of the left side completely; or it is pasted in to the Right side of the Text box, (at the wrong end of the sentence). 
    I have tried to click the cursor into the left in order to insert the punctuation mark; this works sometimes but often I am unable to click in to manually correct the problem. I don't understand why it is cutting it off, or why I am sometimes unable to click into the left side and insert the punctuation.
    Problem 2
    In the second paste (the 2nd bold sentence),  .CSO on the left side of the sentence is correct, as is the rest of the sentence.
    When I paste the text  into Flash from Word, Flash puts it in as reversed order. the word CSO. has the punctuation switched to the right (CSO.)  Flash reverses the order of the other characters in the sentence also (like in the 2nd black sentence).
    שולחן נקי הוא שולחן מאובטח.
    שולחן נקי הוא שולחן מאובטח
    מבוסס על רעיון ממגזיןCSO .
    .CSOןיזגממ ןויער לע ססובמ
    Adobe says it supports Right to Left text, but I can find no info on these two buggy problems. Do you have any idea what is wrong?
    Thank you ahead of time for any info or referrals you may suggest.
    Sandi Langlotz
    שולחן נקי הוא שולחן מאובטח.
    שולחן נקי הוא שולחן מאובטח
    מבוסס על רעיון ממגזיןCSO .
    .CSOןיזגממ ןויער לע ססובמ

  • How 'Submit WITH  VIEW in background' can be Done

    HI EXPERTS
    I want to run This code in the background  from a zreport  .Can any body help me ho can i run this in background.
    SUBMIT RSCMPADJ WITH VIEW = TBL_DD02L-TABNAME
    WITH RFC_DEST = RFC_DEST
    WITH SEL = SPACE
    EXPORTING LIST TO MEMORY
    AND RETURN .

    Hello,
    1. Call FM : JOB_OPEN
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
             JOBGROUP         = 'AUTO'
             JOBNAME          = W_JOBNAME
           IMPORTING
             JOBCOUNT         = W_JOBNO
           EXCEPTIONS
             CANT_CREATE_JOB  = 1
             INVALID_JOB_DATA = 2
             JOBNAME_MISSING  = 3
             OTHERS           = 4 .
    2. SUBMIT RSCMPADJ WITH VIEW = TBL_DD02L-TABNAME
    <b>VIA JOB W_JOBNAME NUMBER W_JOBNO</b> WITH RFC_DEST = RFC_DEST
    WITH SEL = SPACE
    EXPORTING LIST TO MEMORY
    AND RETURN .
    3. FM: JOB_CLOSE
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
              JOBCOUNT                    = W_JOBNO
              JOBNAME                     = W_JOBNAME
              STRTIMMED                   = 'X'
         EXCEPTIONS
              CANT_START_IMMEDIATE        = 1
              INVALID_STARTDATE           = 2
              JOBNAME_MISSING             = 3
              JOB_CLOSE_FAILED            = 4
              JOB_NOSTEPS                 = 5
              JOB_NOTEX                   = 6
              LOCK_FAILED                 = 7
              OTHERS                      = 8
    Regards,
    Naimesh

  • How to use in submit with variant

    Dear Freinds
        As per the my requirement from my program i want to send the data to spool and from tehre i want to download as PDF .
      for the standard program i have a variant . I want to use the variant which has been set for the standard program , but when iam using the below code it is calling the selection scren of the standar program and then i have execute that
    standard program then only data going to spool
    i dont want to have the selection and further me executing the standard program , i want the program to send the data directly to spool , i dont want to go to selection screen at all.
    please correct me where i went wrong .
    data :v_linsz LIKE sy-linsz  value '132', " Line size
    v_paart LIKE sy-paart value  'X_65_132'. " Paper Format
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = lv_job_name
      IMPORTING
        jobcount         = lv_job_nr
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    if sy-subrc eq 0.
    *-- Explicitly set line width, and output format so that
    *-- the PDF conversion comes out OK
      mstr_print_parms-linsz = v_linsz.
      mstr_print_parms-paart = v_paart.
    IF mstr_print_parms-pdest = space.
        mstr_print_parms-pdest = 'LOCL'.
      ENDIF.
      SUBMIT  RPCEDTX0
      TO SAP-SPOOL WITHOUT SPOOL DYNPRO
      SPOOL PARAMETERS mstr_print_parms
       VIA SELECTION-SCREEN USING SELECTION-SET 'ZPDF'
      VIA JOB lv_job_name NUMBER lv_job_nr
      AND RETURN.
    IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = lv_job_nr
            jobname              = lv_job_name
            strtimmed            = 'X'
          IMPORTING
            job_was_released     = lv_job_released
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF syst-subrc NE 0.
          MESSAGE i162(00) WITH
          'An error occured while closing the background job.'.
          STOP.
        ENDIF.
      ENDIF.
    endif.
    Please correct me or give me some sample code where it doesnt call thle selections screen and only pass the values and return using the variant .
    regards
    divya

    Hi Divya Kumari,
       If you do not want the selection screen, then remove the VIA selectino screen addition in the submit
    SUBMIT RPCEDTX0
    TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    SPOOL PARAMETERS mstr_print_parms
    USING SELECTION-SET 'ZPDF'
    VIA JOB lv_job_name NUMBER lv_job_nr
    AND RETURN.
    Regards,
    Ravi
    OOPS I was too late..please ignore..
    Edited by: Ravi Kanth Talagana on Apr 23, 2009 1:01 PM

  • Acrobat 9: Error when PDF form submit with file attachment

    Hi all,
    Hope you can provide some help with my PDF form submit issue. I am getting this error "There is no PDDoc associated with this CosDoc." in Acrobat 9 (Reader and Pro) when I try to submit a PDF form with a file attachment field (the file is specified). The same PDF form works fine in Acrobat 7 or 8 (Reader and Pro) with file attachment.
    If no file attachment is specified (user did not select a file) then the PDF form submits fine in acrobat 9. The form data submission format is in FDF. Same problem if I change to XFDF.
    There are no differences in the problem if the PDF form is created in Acrobat 7 or Acrobat 9, the same submit issue exists in Acrobat 9 but not in the older Acrobat versions.
    Is this a known issue and are there any workarounds/solutions?
    Thanks.

    Sounds like a bug to me. Please report it: http://www.adobe.com/support/feature.html
    George

  • Problem with textBox border

    Hi All,
      I am trying to simulate a grid line table with 4 column and as much as row in database. So i had 4 textboxes with border but when doing so i run in to the below problem
    When even one of the 4 TextBox has a bigger content to display the height of that textBox alone increasing leaving the other textBox hanging above.
    Is there a way to increase the height of all the TextBoxes in the Row to the textBox which has the maximum height. Previously i was using IReport where i had such option but in crystal i couldnt find.I dont beleive that if Crystal doesnt have such an option.
    SomeBody please tell me how to do that?
    Thanks,
    Prem

    Try to place the text boxes in a single box by inserting a box and separate them by inserting vertical lines. If the data is in details section then insert one more section below as details b and extend the box height and lines height to details section b and fit the details section b.
    Now the box height will vary according to the text length whch means the section height will also vary accordingly. So the complete box height will be the same for all texts.
    I Hope it helps !
    Raghavendra

  • Submit with internal table

    Hi.
      I have a function module with a internal table. This internal table has 30 fields and i have to it to a program vis SUBMIT, furthemore this program will be executed inside a job. Im trying to pass tha internal table with export and import but it doesn´t go.
      Anybody can help me???
      Thanks.

    Hi Jorge
       Will try to answer basing on what i can understand
    from you query.
       I guess you have an internal table in your FM with
    some data. You are submitting a program within the FM
    and you need the data in the internal table to be used
    in the program.
       If my understanding is right, you can do it via
    EXPORT/IMPORT statements.
       EXPORT <int_tab> TO MEMORY ID 'MID'. --> In FM.
       IMPORT <int_tab> FROM MEMORY ID 'MID". --> In Program
       Note that the internal table declaration should be
    the same in FM and Program like name of the internal
    table, all field names, data type everything should be
    the same.
       Check if you are handling the same way.
    Kind Regards
    Eswar

  • Matrix with textbox.

    Dear colleagues,
    I have a table with a number, date, description  and a text.
    I want a form where I can scroll the records in a matrix (or grid) and then see the text belonging to the highlighted record in a textbox below.
    How can I do this?
    Something with a datasource?
    Can someone help me a little?
    Kind regards,
    John

    Hi
    More samples you can find in SAP SDK Samples and this forum.
    For your example, I used MatrixAndDataSources sample (look COM UI\VB.NET\06.MatrixAndDataSources\2003).
    To have form what do you want need adding of some rows of vb code.
    1) Open project 06.MatrixAndDataSources\2003 and paste this sub
    what create the text field. See comments.
    Private Sub AddMyTextField()
      '// we will use the following object to add items to our form
      Dim oItem As SAPbouiCOM.Item
      '// to have space for our field :)... change Width of the Phone field text box from 163 to 80
      oItem = oForm.Items.Item("txtPhone")
      oItem.Width = 80
      '// Adding a Text Edit item "txtMyField"
      oItem = oForm.Items.Add("txtMyField", SAPbouiCOM.BoFormItemTypes.it_EDIT)
      oItem.Left = 428
      oItem.Width = 80
      oItem.Top = 172
      oItem.Height = 14
      '// Matrix: so we set single row selection mode
      oMatrix.SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Single
    End Sub
    2) At the last row of CreateFormWithMatrix() sub add row with call to our AddMyTextField() sub
    Private Sub CreateFormWithMatrix()
      '// AFTER THIS ROW ...
      AddMatrixToForm()
      ' +++++++++++++++++++++++++++++++++++++
      ' ADD Call to my text field subroutine
      ' +++++++++++++++++++++++++++++++++++++
      Call AddMyTextField()
    End Sub
    3) Add matrix row selection event catching: in the Sub SBO_Application_ItemEvent(...) add this code:
    Private Sub SBO_Application_ItemEvent( _
      ByVal FormUID As String, _
      ByRef pVal As SAPbouiCOM.ItemEvent, _
      ByRef BubbleEvent As Boolean _
    ) Handles SBO_Application.ItemEvent
      ' +++++++++++++++++++++++++++++++++++++++++++++++++
      ' CATCHING SELECT ROW EVENT
      ' +++++++++++++++++++++++++++++++++++++++++++++++++
      If (pVal.FormUID = "UidFrmMatrix") Then
          If ((pVal.ItemUID = "Matrix1") And _
                    (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) And _
                    (pVal.Before_Action = False)) Then
           ' So we get value of CardCode cell (column DSCardCode) in the selected row
           Dim i As Integer = pVal.Row
           Dim oEdit As SAPbouiCOM.EditText
           oEdit = oMatrix.Columns.Item("DSCardCode").Cells.Item(i).Specific
           Dim sValue As String = oEdit.String
           ' So we set value of txtMyField
           oEdit = oForm.Items.Item("txtMyField").Specific
           oEdit.Value = sValue
           ' So we stop catching events
           BubbleEvent = False
          Else
           BubbleEvent = True
          End If
      End If
    End Sub
    Run SAP Client and launch the project.
    Hope it help you.
    Sierdna S.

  • How to do submit with parameter?

    Hi,
    I would like to pass some data from Program A to Program B.
    How do i do a submit statement with parameter from Program A to pass data to Program B.
    How do i grab the data from Program B that was pass by Program A?
    Regards,
    Rayden

    HEllo,
    DO like this.
      SUBMIT  B WITH SO_PROJ IN SO_PROJ
                                 WITH SO_PSP IN SO_PSP
                                 WITH SO_WWSTO IN SO_WWSTO
                                 WITH SO_WWGFG IN SO_WWGFG
                                 WITH SO_ISTAT IN SO_ISTAT
                                 WITH SO_ESTAT IN SO_ESTAT
                                 EXPORTING LIST TO MEMORY
                                 AND RETURN.
    " Ouptut from Report B.
    Import the list from memory and store it in table listobject
      CALL FUNCTION 'LIST_FROM_MEMORY'
           TABLES
                LISTOBJECT = LISTOBJECT
           EXCEPTIONS
                NOT_FOUND  = 1
                OTHERS     = 2.
      IF SY-SUBRC <> 0.
    *    WRITE  'Error in list_from_memory.'.
      ENDIF.
      CALL FUNCTION 'LIST_TO_ASCI'
           TABLES
                LISTASCI           = LT_TXT
                LISTOBJECT         = LISTOBJECT
           EXCEPTIONS
                EMPTY_LIST         = 1
                LIST_INDEX_INVALID = 2
                OTHERS             = 3.
      CHECK SY-SUBRC = 0.
      DATA: LV_LINES LIKE SY-TABIX.
      DESCRIBE TABLE LT_TXT LINES LV_LINES.
      LOOP AT LT_TXT INTO W_TEXTLINE.
        CHECK SY-TABIX > 3.
        CHECK W_TEXTLINE(5) <> 'Keine'.
        CHECK W_TEXTLINE(5) <> '-----'.
        DO 120 TIMES. REPLACE ' |' WITH '|' INTO W_TEXTLINE.  ENDDO.
        "WRITE / w_textline(255).
        PERFORM HANDLE_LINE_ZSTATUS USING W_TEXTLINE.
      ENDLOOP.
    * Free memory
      CALL FUNCTION 'LIST_FREE_MEMORY'.
    Cheers,
    Vasanth

  • Duplicate Submit with one click / IndexOutOfBoundsException

    Hello all,
    When I submit a form to insert data to the database with one button click, the form has been submitted twice. I can see the behavoirs from my debug statements. Sometimes, two records are inserted to database. Sometimes, the "IndexOutOfBoundsException" is throwed. I have downloaded the latest jsf RI. I have tested these many times.
    Any help will be appreciated. Thanks in advance.
    David

    Hi Sergey,
    The javascript:
    function checkPassword(form )
         var password = form["editSelfRegister:loginPassword"].value;
         var confirmedPassword = form["editSelfRegister:confirmedPassword"].value;
         if(password != confirmedPassword)
              alert("Login Password and Password Confirm fields do not match ");
              return false;
         else
              form.submit();
              return true;
    The command:
    <h:commandButton id="saveEditingCommand" value="#{Message.saveEditing}"
    actionListener="#{userBean.saveEditingSelfRegisterUser}" onclick="return checkPassword(this.form);" />
    <h:commandButton id="cancelCommand" value="#{Message.logout}" action="cancel" immediate="true" />
    Even I removed the form.submit(), the form is still submitted twice.
    Thank you much for your help.
    David

  • Doubt in SUBMIT with job

    Hi all,
    I am confused in one scenario while using submit statement..
    In my requirement i have two report programs say "X" and "Y".
    X calls the report Y with some inputs .......and X is scheduled as a job.
    Y calls a standard SAP program with some inputs and that output is what actually needed....
    so my doubt is if i schedule X as job will the outpur from srandard sap program will be available in spool or should i schedule a job for Y also.
    If i need to schedule a job for both x and y shud i use the same job name.
    Please help!!!

    Hi people,
    Thanks for your reply.
    But i checked it is not working .i mean i am not getting the spool output .
    for your reference i will give sample code
    <b>ZCALLMARK</b>
    DATA:  jobname LIKE tbtcjob-jobname VALUE 'hemajob4',
               jobcount LIKE tbtcjob-jobcount VALUE 1,
              start_time LIKE sy-uzeit,
              params LIKE pri_params,
              w_prog(30),
              v_commit TYPE c,
            variant_name(14) type c,
              stringlen type i value 0,
              temp_string(18) type c,
              msg_string(50) type c.
    move 'ZCTE0010_MARK' to w_prog.
    perform open_job using jobname.
    perform submit_job.
    perform job_close.
          Form  open_job
    FORM open_job using jobname.
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                jobname  = jobname
           IMPORTING
                jobcount = jobcount
           EXCEPTIONS
                others   = 8.
      IF sy-subrc NE 0.
        WRITE: /1 'Error Opening Job ', jobname.
      ENDIF.
    ENDFORM.                                                    " open_job
          Form  submit_job
    FORM submit_job.
      SUBMIT (w_prog) TO SAP-SPOOL
                      WITH crun  = 'TEST4000'
                      WITH cdate = '20070701'
                      WITH rb1 = 'X'
                      SPOOL PARAMETERS params
                      WITHOUT SPOOL DYNPRO
                      USER sy-uname VIA JOB jobname NUMBER jobcount
                      AND RETURN.
      if sy-subrc > 4.
         WRITE: /1 'Error Submitting Job ', jobname.
      endif.
    ENDFORM.                    " submit_job
          Form  job_close
    FORM job_close.
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobcount             = jobcount
                jobname              = jobname
                strtimmed            = 'X'  "start immediately
           EXCEPTIONS
                cant_start_immediate = 1.
    <b>ZCTE0010_MARK</b>
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
    PARAMETERS : crun   TYPE kala-kalaid OBLIGATORY,
                 cdate  TYPE kala-kaladat OBLIGATORY.
    PARAMETERS : rb1    RADIOBUTTON GROUP rb USER-COMMAND rbut,
                 rb2    RADIOBUTTON GROUP rb                  .
    SELECTION-SCREEN END OF BLOCK b1.
    SUBMIT saprck23
                      USING SELECTION-SET 'SAP&15'
                      WITH p_buper = '10'
                      WITH p_gjahr = '2007'
                      WITH kaladat = cdate
                      WITH kalaid  = crun
                      WITH p_ckvo  = 'X'
                      WITH p_test  = ' '
                      WITH p_listau = 'X'
                      WITH p_batch = ' '.
    Please refer this and tell me where i am going wrong!!!

  • Call program using submit with variant that changing value

    Hi All,
    I need to call a report with variant and abstract the data back to my current program.
    so far,
    i use following method
    SUBMIT RFITEMAR USING SELECTION-SET 'XXX'
           EXPORTING LIST TO MEMORY
           AND RETURN.
    DATA list_tab TYPE TABLE OF abaplist.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = list_tab
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
      DATA: L_ABAPLIST LIKE ABAPLIST OCCURS 0.
      DATA: BEGIN OF L_ASCITAB OCCURS 0, 
                LINE(2048),
              END OF L_ASCITAB.
      CALL FUNCTION 'LIST_TO_ASCI'
           EXPORTING
                LIST_INDEX         = -1
           TABLES
                LISTASCI           = L_ASCITAB
                LISTOBJECT         = list_tab
           EXCEPTIONS
                EMPTY_LIST         = 1
                LIST_INDEX_INVALID = 2
                OTHERS             = 3.
    However, the problem is that i need to get some value from variant 'XXX' and keep changing it.
    I have try function module "RS_VARIANT_VALUES_TECH_DATA" to get the variant details.
    But, it just doesn't get me back all the details of the variants.
    Are there any way i could read the variants in detail? i even try to read LRAW data from table vari. but there are no function module to convert the LRAW to either char or STRING.
    Thanks.
    Edited by: simplekx on Jun 20, 2011 4:43 PM

    You can use the FM "RS_CHANGE_CREATED_VARIANT" to change the variant values for already created variant and the FM "RS_VARIANT_CONTENTS" to get the variant values. Instead of changing the variant values and then passing to the Submit, you can directly pass the values to the Submit through..WITH SELECTION-TABLE seltab or ... WITH p IN sel variant of the Submit.

Maybe you are looking for

  • Accounting Document not Cleared using BAPI_ACC_DOCUMENT_POST

    Dear Experts, I am Using BAPI_ACC_DOCUMENT_POST to post the GL'S , Accounting document is getting created successfully . My Doubt is whether this bapi will clear the Accounting document automatically or we have to use any other function module to cle

  • Internet Explorer 7 - Trouble loading iWeb 08 Pages

    Is anyone else having trouble with iWeb 08 pages not loading properly when viewed in Internet Explorer 7? Everything loads fine on a Mac (Firefox 2.0) and even on a PC using Firefox but when viewing the site from IE7 it seems like pages containing ph

  • Automatic resizing of controls on block diagram

    Hi, I have control as strict type def and many instances (on block diagram) of this control in several VIs. When I add new element in this control all instances resizes to maximum size and that corrupt layout on block diagram because all structures r

  • Series 40 j2me Application(Please Reply me)

    Hi. I am Jignesh i am developing one series 40 j2me application. i want know will it work on all the series 40 mobile device.? i am developing that application MIDP2.0 with file connection API.!! Please let me know as soon as possible Thanx

  • Movement type 647 does not currently support serial numbers  management

    we can't do "shipment start/PGI for DOWN shipment 1178184 DN# 40309339. Error message " Movement type 647 does not currently support serial numbers  management" see also attachment Error is like that Stop : Save Shipment   Stop : Shipment 0001178184