How to pass Tables through program line.

Hi All,
I have requirment in smart forms.
I need to execute smartforms in form itself. means no chance to run with driver program.
So i created program line which where write our logic for internal table. My question is how to pass created internal table from program line. i need to display the internal table data using loop.
Thanks,
Subbu

Hi,
Try this :
code
REPORT report2.
DATA: text TYPE c LENGTH 10,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
[/code]
Reward points if found helpful.....
Cheers,
Chandra Sekhar.

Similar Messages

  • How to pass table data to brf plus application through abap program

    Dear All,
    i have a question related to BRF Plus management through abap program.
    In brf plus application end, Field1,field2,field3 these 3 are importing parameters.
                                           Table1->structure1->field4,field5 this is the table,with in one structure is there and 2 fields.
    in my abap program, i am getting values of fields let us take field1,field2,field3,field4,field5.
    And my question is
    1) How to pass fields to BRF Plus application from abap program.
    2)How to pass Table data to BRF Plus application from abap program.
    3)How to pass Structure data to BRF Plus application from abap program.
    4)How to get the result data from BRF Plus application to my abap program.
    And finally , how to run FDT_TEMPLATE_FUNCTION_PROCESS.
    How do i get the code automatically when calling the function in brf plus application.
    Regards
    venkata.

    Hi Prabhu,
    Since it is a Custom Fm i cant see it in my system.
    Look if u want to bring data in internal table then there could be two ways::
    1) your FM should contain itab in CHANGING option , so that u can have internal table of same type and pass through FM,
    2) read values one by one and append to internal table.
    Thanks
    Rohit G

  • How to Pass table-structure-fields data to BRF PLUS Application

    Dear Eperts,
    i have a question related to BRF Plus management through abap program.
    In brf plus application end, Field1,field2,field3 these 3 are importing parameters.
                                           Table1->structure1->field4,field5 this is the table,with in one structure is there and 2 fields.
    in my abap program, i am getting values of fields let us take field1,field2,field3,field4,field5.
    And my question is
    1) How to pass fields to BRF Plus application from abap program.
    2)How to pass Table data to BRF Plus application from abap program.
    3)How to pass Structure data to BRF Plus application from abap program.
    4)How to get the result data from BRF Plus application to my abap program.
    And finally , how to run FDT_TEMPLATE_FUNCTION_PROCESS.
    How do i get the code automatically when calling the function in brf plus application.
    Regards
    venkata.

    Hi Venkat,
            As said by Jocelyn Dart, you need to go through BRF+ tutorials.
    -->You can see a on of the tutorial from the below link
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/50879cee-f9b5-2e10-039e-b2d6c4b10e6b

  • How to pass table data into below code for alv

    hi
    i want to pass table data into alvgrid
    i dont know how to pass table data.
    here instead of passing ABC into internal table
    i want to pass table data .
    please help me
    ialv-test1 = 'ABC'.
    form get_data.
    ialv-test1 = 'ABC'.
    ialv-test2 = 'DEF'.
    append ialv.
    ialv-test1 = 'GHI'.
    ialv-test2 = 'JKL'.
    append ialv.
    ialv-test1 = '123'.
    ialv-test2 = '456'.
    append ialv.
    endform
    thanks in advanced.

    Have a look at below links. It gives you sample code of alv grid.
    http://sap.niraj.tripod.com/id64.html
    http://www.sap-img.com/abap/sample-programs-on-alv-grid.htm
    Have a look at below links for SAP Help.
    http://help.sap.com/saphelp_nw04/helpdata/en/8d/e994374c9cd355e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/12/904f42d5f811d2b469006094192fe3/content.htm
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • How to use SUBROUTINE in ' PROGRAMMING LINES'code of a smartform

    Hi all,
    i used a subroutine (PERFORM statement ) in 'Programming Line' node of a smartform .
    Then i put the 'FORM ENDFORM ' in 'SUBROUTINES' node of GLOBAL data.
    In Programming line i used
       PERFORM READ_TEXT using p_id p_lan p_obj.
    In SUBROUTINE node of GLOBAL data, i used
    FORM READ_TEXT using p_id p_lan p_obj.
    ENDFORM.
    While executing, my control is going to FORM ENDFORM  & i can see the data in the
    table T_TDLINE while my control is inside the FORM ENDFORM.
    When it comes back to my Programming NODE, there is no data in T_TDLINE table.
    can anyone tell me how & where to define this table T_TDLINE so that i can get the data
    in in my coding lines after PERFORM statement.
    ur Idea is highly appreciated. correct answers will be rewarded.
    Thanks
    pabitra

    1. Define a table in the Global Definiation > GLOBAL data:
    T_TDLINE TYPE TTTEXT.
    2. PERFORM READ_TEXT tables T_TDLINE using p_id p_lan p_obj.
    3. FORM READ_TEXT table IT_TDLINE type TTTEXT
    using p_id p_lan p_obj.
    ENDFORM.
    Now, you will be able access your data in T_TDLINE.
    Regards,
    Naimesh Patel

  • How to pass table data to RFC?

    I have scenario below:
    Z_RFC_SalesOrderEntry_Input
    |-----> I_T_Area
                |--> PNo
                |---> Quantity
    |-----> E_T_Area
    |-----> Output
    How to set Table parameter Pno and Qiantity to I_T Area of RFC in web dynpro through coding.....

    Hi Pradeep,
    Try This.
    try
                    Z_RFC_SalesOrderEntry_Input z_RFC_SalesOrderEntry_Input = new Z_RFC_SalesOrderEntry_Input();
                             int size = wdContext.nodeText().size();
                             for (int i = 0; i < size;i++)
                        Z<Put the structure name for I_T_Area> itArea= new <Put the structure name for I_T_Area>();
                        itArea.setPNo(wdContext.nodeText().getTextElementAt(i).getPNo());
                        itArea.setQuantity(wdContext.nodeText().getTextElementAt(i).getQuantity);
                        z_RFC_SalesOrderEntry_Input.addI_TArea(itArea);
                    wdContext.nodeZ_RFC_SalesOrderEntry_Input().bind(z_RFC_SalesOrderEntry_Input);
                    wdContext.currentZ_RFC_SalesOrderEntry_InputElement().modelObject().execute();
                    wdContext.nodeOutput().invalidate();
    catch(Exception e)
    Assuming Text value node is bound to your View. Put the model class name properly.
    How to pass multiple selected values of a table to RFC
    Regards,
    Mithu

  • How to pass  table contents to Workflow?

    hi all,
    my workflow accepts a table as input. when i execute the Workflow from SWUS i can enter the table contents.
    Now how to pass these <b>table contents to workflow through Function module</b>
    say the table has 3 columns and 5 rows.
    regards.
    Subba

    very Helpful answer.
    i referred to the below link.
    <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/e4b130453d11d189430000e829fbbd/frameset.htm">http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/e4b130453d11d189430000e829fbbd/frameset.htm</a>
    my workflow input container is a tableas below:
    table: ZEMPLOYEE
    Empid    empname     empaddress
    <b>0001     john        texas
    0002     jay         india
    0003     hassan      karachi</b>
    so how to declare the container and pass these values to the container through function module. Also what is object type and object key, i have not defined any object type and object key. just a direct table contents to be imported into Workflow.
    regards,
    Subba

  • How to pass table type variable into function from SQL*PLUS ?

    How to pass a table type variable from sql*plus prompt into a function ?
    Thanx in advance.

    Krishna,
    Do you mean like this?SQL> DECLARE
      2      TYPE t_tbl IS TABLE OF VARCHAR2(20);
      3      l_sample_tbl           t_tbl;
      4
      5      FUNCTION print_contents ( p_tbl IN t_tbl )
      6      RETURN VARCHAR2
      7      IS
      8          l_string            VARCHAR2(1000);
      9      BEGIN
    10          FOR i IN 1..p_tbl.COUNT LOOP
    11              IF (i = 1) THEN
    12                  l_string := p_tbl(i);
    13              ELSE
    14                  l_string := l_string || ', ' || p_tbl(i);
    15              END IF;
    16          END LOOP;
    17          RETURN (l_string);
    18      END print_contents;
    19
    20  BEGIN
    21      l_sample_tbl := t_tbl();
    22      l_sample_tbl.EXTEND;
    23      l_sample_tbl(1) := 'one';
    24      l_sample_tbl.EXTEND;
    25      l_sample_tbl(2) := 'two';
    26      l_sample_tbl.EXTEND;
    27      l_sample_tbl(3) := 'three';
    28      l_sample_tbl.EXTEND;
    29      l_sample_tbl(4) := 'four';
    30      l_sample_tbl.EXTEND;
    31      l_sample_tbl(5) := 'five';
    32      DBMS_OUTPUT.PUT_LINE(print_contents(l_sample_tbl));
    33  END;
    34  /
    one, two, three, four, five
    PL/SQL procedure successfully completed.
    SQL> HTH,
    T.

  • How to pass tables data from SAP script to the routine.

    Hi,
    I have standard program RPCTEAL0_01 which calls a SAP script form(Custom) to print the form.
    Now I have to add some additional functionality to change the values in the form. Since it is custom form I can add ROUTINE and then pass the values to the custom program to modify the variables.
    My concern here, I would like to pass the tables like RT,CRT to the custom program via form.
    Is this possible?  RT and CRT filled by standard progam.
    Regarsd
    Eswar
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jan 20, 2009 9:06 AM

    Hi, The suggested option is not working.
    Actually I am using the below code in SCRIPT
    /:   PERFORM CAL_2008 IN PROGRAM ZHR_TEST1
    /:   USING &PER_NO&
    /:   CHANGING &W12&
    /:   ENDPERFORM
    and calling form in ZHR_TEST1. But this will pass only variables. Now my requirement is to pass tables also.

  • How to pass tables in Guided Procedures from VC

    Hi experts!
    I'am working in a workflow scenario, more precisely an approve-reject workflow scenario.
    I've defined all the start and the end points belonging to the respective iviews (I mean the sender and the approver iviews), following the  [Modeling Visual Composer iViews for Guided Procedures|http://help.sap.com/saphelp_nw70/helpdata/en/44/429bbd709914bce10000000a155369/frameset.htm]
    and everything works ok if I pass input fields, data fields, or boolean fields.
    But I need to pass tables (In fact, I need to pass MORE THAN ONE table)....  Is that possible?
    How do I make it?
    Any help will be apprecieated and point-rewarded.
    Thanks in advance
    Best Regards,
    Marcelo
    P.S. I'm working on EP7 VC SP15

    Hi,
    If you'll create 2 iViews:
    1. Table connected to end point (all the fields are mapped and table selection mode is multiple)
    2. Table connected to start point with same fields.
    and create GP process for it, you'll find that selecting all the fields and passing them will result with all the selected fields appear in the 2nd iView.
    But, i don't know if you can pass the entire table automatically (without the user selecting all the records).
    Hope I helped,
    Shay

  • How to pass arraylist through URL ?

    Hi,
    Can we pass arraylist through URL using params.put ?
    If so then how to access each value?..because pageContext.getParameter with return string...
    Any other method can we use ?
    Thanks

    You should store in on the session or transaction depending on the scope.

  • How to pass arguments from command-line to Point(x,y)

    Hi guys, I'm a beginner. i'm trying to figure this out 'how to pass the arguments from command-line to Point(x,y)'. See below is the code that i have written. But it appears eror. Is there anyone can help me to figure this out?
    class day5FourDPoint {
    int a = 0;
    int b = 0;
    int c = 0;
    int d = 0;
    day5FourDPoint rect(Point AB, Point CD) {
    a = AB.x;
    b = AB.y;
    c = CD.x;
    d = CD.y;
    return this;
    void printout() {
    System.out.println("Four Dimension : " + a + b + c + d);
    public static void main(String[] arguments) {
    day5FourDPoint FD = new day5FourDPoint();
    FD.rect(arguments);
    if (arguments.length > 1 & arguments.length < 4) {
    for (int i=0; i < arguments.length; i++) {
    FD=Integer.parseInt(arguments);
    FD.printout();
    }

    I don't use VBS so this is just a guess based on what I have read in this forum. I think when you are passing an 'array' to javascript it needs to be a variant data type. My guess your arguments are not making it to the javascript because it it the wrong data type.

  • How to create WWWBinaryFileAsset through programming

    Hi, Could anybody provide me steps to create WWWBinaryFileAsset through programming.
    I followed below steps but i am getting error,
    MutableRepository pubRepository = getPublishingRepository();
    // pub repository is pointing to /atg/epub/file/SecuredPublishingFileRepository
    wwwBinaryFileAsset = pubRepository.createItem(filesProperties.getWwwBinaryFileAssetItemDescriptorName());
         if (wwwBinaryFileAsset != null) {
         wwwBinaryFileAsset.setPropertyValue(filesProperties.getFilenamePropertyName(), imageName);
         wwwBinaryFileAsset.setPropertyValue(filesProperties.getParentFolderPropertyName(), parentFolder);
         wwwBinaryFileAsset.setPropertyValue("content", new File("D:\\media\\images\\hmc\\Penguins.jpg"));
         pubRepository.addItem(wwwBinaryFileAsset);
    Thanks,
    Raj

    Hi,
    I am able to create project and adding binary file asset to the project with code as i copy/pasted in this query, after creation, also i am able to see the asset in BCC editor as well.
    I can say asset looks like as it was created in BCC editor, means there are nodifferences in assest properties which created through programming from asset created in BCC editor.
    I am not sure what i am missing. But only the problem is, i am getting the error when deploying project from BCC, error stack trace is,
    /atg/epub/DeploymentServer 14000002:Production:atg.deployment.adapter.DistributedDeploymentAdapter.pollTillDataApplied(DistributedDeploymentAdapter.java:2588) Polling Until Data Appplied
    /atg/deployment/DeploymentManager Starting deployment with id: 14000002
    /atg/deployment/DeploymentManager Executing deployment in LOCAL mode
    /atg/deployment/DeploymentManager item = fileMarker:mark7800001 cause = java.lang.IllegalArgumentException: Negative initial size: -1
    /atg/deployment/DeploymentManager at java.io.ByteArrayOutputStream.<init>(ByteArrayOutputStream.java:57)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileDeploymentCommandImpl.getUncompressedInputStream(FileDeploymentCommandImpl.java:398)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileDeploymentCommandImpl.getInputStream(FileDeploymentCommandImpl.java:470)
    /atg/deployment/DeploymentManager at atg.deployment.file.DeploymentProtocolImpl.sendFileDeploymentCommand(DeploymentProtocolImpl.java:913)
    /atg/deployment/DeploymentManager at atg.deployment.file.DeploymentProtocolImpl.sendCommand(DeploymentProtocolImpl.java:179)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileWorkerThread.runCommand(FileWorkerThread.java:716)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileWorkerThread.processMarkerForAddUpdatePhase(FileWorkerThread.java:441)
    /atg/deployment/DeploymentManager at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:521)
    /atg/deployment/DeploymentManager at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:300)
    /atg/deployment/DeploymentManager message = Deployment Failed time = Wed Jun 20 09:12:50 IST 2012 atg.deployment.DeploymentFailure@93d841 java.lang.IllegalArgumentException: Negative initial size: -1
    /atg/deployment/DeploymentManager at java.io.ByteArrayOutputStream.<init>(ByteArrayOutputStream.java:57)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileDeploymentCommandImpl.getUncompressedInputStream(FileDeploymentCommandImpl.java:398)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileDeploymentCommandImpl.getInputStream(FileDeploymentCommandImpl.java:470)
    /atg/deployment/DeploymentManager at atg.deployment.file.DeploymentProtocolImpl.sendFileDeploymentCommand(DeploymentProtocolImpl.java:913)
    /atg/deployment/DeploymentManager at atg.deployment.file.DeploymentProtocolImpl.sendCommand(DeploymentProtocolImpl.java:179)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileWorkerThread.runCommand(FileWorkerThread.java:716)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileWorkerThread.processMarkerForAddUpdatePhase(FileWorkerThread.java:441)
    /atg/deployment/DeploymentManager at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:521)
    /atg/deployment/DeploymentManager at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:300)
    /atg/deployment/DeploymentManager
    /atg/deployment/DeploymentManager Unexpected error occurred. DeploymentWorkerThread terminated prematurely. atg.deployment.DistributedDeploymentException: Exceeded allowable error count (0)
    /atg/deployment/DeploymentManager at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:626)
    /atg/deployment/DeploymentManager at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:300)
    Thanks.
    Edited by: 938890 on Jun 19, 2012 9:09 PM

  • How to pass parameter through URL to bounded task flow with page fragment

    I want to pass parameter to Bounded Task Flow With Page Fragment trough URL
    as I start this taks flow with router and according to this Param I will rout the user.
    I added input param to taks flow named direction and make the task flow called URL invoke url-invoke-allowed
      <input-parameter-definition id="__41">
          <name id="__42">direction</name>
          <value>#{pageFlowScope.direction}</value>
          <class>java.lang.String</class>
        </input-parameter-definition>but I don't know how to add this to the JSPX that I will add the bounded task flow Inside.
    and How to pass this from URL

    Hi,
    url-invoke-allowed is only required if the task flow itself is directly accessible from a browser (which is not the case at all if the task flow uses page fragments). To pass input parameters to a task flow that is embedded in a region and that has input parameters, you define the input parameters on the taskFlow Id that is created in the PageDef file of the containing page. To learn ADF task flows, have a look at the videos below. They also contain a sample for passing parameters to a region
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/taskflow-overview-p1/taskflow-overview-p1.html
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/taskflow-overview-p2/taskflow-overview-p2.html
    Frank

  • How  To Remove Tables Through SDK Code(Using MetaDataObject)

    Hi Experts,
    I am with a problem in my sdk code.As follows,I added a table with no object  into the database through the sdk code using OUsertablesMd object.Now My Query is i want to delete the same table through my code.I am using oUserTablesMD.Remove()
    Method.It's throwing an error message.If any one culd send the sample of removing sap tables through dk code would be helpful
    Help Would be appreciated!!
    Thanking You,
    Vijay Kumar

    Hi,
    try this one
    Dim rsd As SAPbobsCOM.Recordset
            rsd = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            rsd.DoQuery("SELECT T0.[TableName] FROM OUTB T0")
            Dim sTableID As String
            Do Until rsd.EoF
                sTableID = rsd.Fields.Item("TableName").Value.ToString.Trim
                Dim oTables As SAPbobsCOM.UserTablesMD
                oTables = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
                If oTables.GetByKey(sTableID) = True Then
                    oTables.Remove()
                End If
                oTables = Nothing
                rsd.MoveNext()
            Loop
    Regards,
    Siva

Maybe you are looking for

  • One line item in po from multiple line items of Purchase Requisition

    Can we merge multiple line items for same item from different different purchase requisition into a single line item in Purchase Order ? For example, say department A and B made two different purchase requisition for 1 number of computer system. Now

  • Error in BAM active studioOnly an adminstrator can impersonate another user

    Hi I have installed Oracle BAM on XP and tried to create a simple report using BAM Active studio. I have selected an object from sample folder ('Employees') and selected a simple report layout.I have done all the necessory steps mentioned in Develope

  • Adding months to a date

    I`m setting up ranges for searching a database. I plan to use a combobox for choosing 'year', 'month', 'week' as ranges from a given date. I have one datefield for the start date, and want another one to reflect the date of the range limit. In other

  • Calling web service slow in wls81sp6

    Hi, I call a .Net secure (https) web service in my ejb. It returns in couple seconds in wls81sp4. But since I upgraded to wls81sp6, every time it takes more than 1 minute to return. That's quite surprise. What's changed? How can I get the performance

  • How to Implement HTTP Request Status Code Processing

    I actually have two questions. First, I wondering how to add multiple status code processing to an http request. Secondly, I was wondering how to go about using alternate http requests to different servers in case the primary server is down. What kin