Very urgent..........how to pass a paramter list containing record group as

hi
can any one help me , i am getting frm-41214 when i pass a paramter list containing record group as data parameter to run_report_object as parameter, calling report from forms 10g, but when i dont pass the parameter list the report runs displaying no data(as it should do), otherwise it dont run and display the frm-41214
zulfiqar

Hi,
Try using a lexical parameter(&parm_1) for a string of values or a bind parameter(:parm_1) for a single value
Thanks,
Kimosabe

Similar Messages

  • URGENT,FRM-41337: Cannot populat the list from record group

    Hi all:
    Can anyone help me in that problem?
    I have a database item in the block as a list item with combo box style and I use this code in WHEN-NEW-RECORD-INSTANCE at the form module level to populate that combo box list:
    DECLARE
         group_id RECORDGROUP := FIND_GROUP('group');
         list_id ITEM := FIND_ITEM('employees.job_id');
         x number;
    BEGIN
    IF NOT ID_NULL (group_id) THEN
              DELETE_GROUP (group_id);
         END IF;
              group_id := CREATE_GROUP_FROM_QUERY ('group','select name,TO_CHAR(id) job from cmn_jobs where job_type_id = 4720 ');
         x := POPULATE_GROUP (group_id);
         POPULATE_LIST (list_id, group_id);
         EXCEPTION
    WHEN NO_DATA_FOUND THEN
    null;
         END;
    That code worked very well and without any problem, but when I change the list item from combo box style to poplist style then the forms give that error:
    FRM-41337: Cannot populat the list from record group
    And an additional null/blanke element appears in the poplist with original element that come from RECORDGROUP.
    So can anyone help me to solve that problem please?

    First, how I can assign a default or initial value DYNAMICALLY to my poplist.Set the default-value to a parameter like :PARAMETER.MYPARAMETER then you can assign the desired default-value to the parameter.
    second, if I have popliste say X for example depend on another poplist say Y ,so when I put the code to populate popliste X on WHEN-LIST-CHANGED on popliste Y and make query then the >forms return FRM-40301 Query caused no records to be retrieved ,but when I have a copy for that code in WHEN-LIST-CHANGED and put it in WHEN-NEW-FORM-INSTANCE at the form >module the form work and returns records, so is it any error or exception in what I did.Can't answer that, you should check :SYSTEM.LAST_QUERY to see why the query does not returnany records.
    At the last, which better to put the code for popliste in PRE-FORM trigger at the form module or in WHEN-NEW-FORM-INSTANCE at the form module.I would use the PRE-FORM-trigger

  • Urgent - How to pass value to Multiline container element in workflow

    Hi,
      I hav a requirement as below...
    1) In a Bus. Object, there is a method with a parameter which is Multiline.
    2) When I execute it directly from Bus. Object, I am able to populate any no. of lines to the multiline parameter & execute it. It is working correctly.
    3) Now I have created a task for the same Method & used it in my workflow.
    4) I want to pass multiline values to the parameter from workflow.
    5) I dont have any internal table being filled in the previous steps. I directly want to assign variables or constants to it.
    How can I do it????
    Thanks,
    Sivagami

    hi sivagami,
    Please help me. I am also facing same type of problem. i am new to workflow. i am using using FM sap_wapi_write_container. to write into the container. but here my problem is i don know wat is the element name to refer to the value. if i give any element naem its taking as separate element & not as the same multiline container. i hope u will be able to assist me since u have worked on the same type of problem.
    If u help i will be highly thankful to u.
    Thanks & Regards
    Nigesh

  • How to pass the values dynamically in record group?

    oracle forms 6i
    Hi to all,
    i am developed a master detail form.in the master level one column is EMP_GRADE.these values like(A1,B1,C1,D1).
    In the detail form one more column is DETAIL.in this DETAIL coloumn i am adding LOV.In the LOV my query Like this
    SELECT DESCRIPTION FROM FND_LOOKUP_VALUES WHERE LOOKUP_TYPE=EMP_GRADE.
    Here IF emp_grade =A1 then LOV shows 10 values
    next IF emp_grade =B1 then LOV shows 10 values,but MY requirmrnt is IF EMP_GRADE is B1 then LOV show the B1 values and A1 Values.total 20 values.
    it is possible or not?
    any one help me..please.
    Reagrds,
    Stevie.
    Edited by: 994418 on 30 May, 2013 4:34 AM

    In 10G and above you could use the CASE-statement.
    In Forms 6i you could use a UNION ALL, maybe like this.
    SELECT DESCRIPTION FROM FND_LOKUP WHERE LOOKUP_TYPE='A1' and :EMPGRADE='A1'
    UNION ALL
    SELECT DESCRIPTION FROM FND_LOKUP WHERE LOOKUP_TYPE IN ('A1' , 'B1') AND :EMPGRADE='B1'

  • Most urgent:::: passing parameter list  to reports containing record groups

    hi
    can any one help me , i am getting frm-41214 when i pass a paramter list containing record group as data parameter to run_report_object as parameter, calling report from forms 10g, but when i dont pass the parameter list the report runs displaying no data(as it should do), otherwise it dont run and display the frm-41214
    zulfiqar

    Hi!
    To suppress Oracle Reports native Parameter Form just add:
    add_parameter( pl_id, 'pARAMform', text_parameter, 'NO' );
    Andrew Velichko
    Brainbench MVP for Oracle Developer 2000 http://www.brainbench.com
    null

  • How to pass data from list to internal table

    Sir,
    Please tell me how to pass data from list display to internal table. Some fields in the list display are input fields .These are added at run time and these added values should be stored in the internal table

    Follow this code sample:
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
        I_CALLBACK_PROGRAM                = W_REPID
        I_CALLBACK_PF_STATUS_SET          = 'PF_STATUS'
        I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
    FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
                            P_SELFLD TYPE SLIS_SELFIELD.
    case p_ucomm.
    when '<Some user Action>'.
      Data ref1 type ref to cl_gui_alv_grid.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    E_GRID = ref1.
    call method ref1->check_changed_data
    * Your internal table will have the data
    endcase.
    ENDFORM.
    Regards,
    Ravi

  • Frm - 41337 - can not populate the list from record group

    Hi
    I have created a form with 4 combo boxes. And i am trying to populate the 4 combo boxes dynamically.
    Here is my table structure.
    BUS_FUNCTION VARCHAR2(500),
    SEQ NUMBER,
    STEP1 VARCHAR2(500),
    STEP2 VARCHAR2(500),
    STEP3 VARCHAR2(500),
    STEP4 VARCHAR2(500),
    KEYSTEP VARCHAR2(4000),
    OBJ_NAME VARCHAR2(500),
    SME VARCHAR2(50)
    In the fist combo box i am retriving bus_function and second seq and third step1.
    i wrote a trigger when_new_form_instance and i am calling a procedure from the trigger.
    here is my procedure code.
    PROCEDURE fp_get_list IS
    l_sql_text VARCHAR2(2000);
    BEGIN
    l_sql_text := 'SELECT bus_function,bus_function FROM TABS_BUS_FUNC';
    lp_populate_list('BUSFUNC.list22','rgcat2',l_sql_text);
    l_sql_text := 'SELECT TO_CHAR(SEQ),TO_CHAR(SEQ) FROM TABS_BUS_FUNC';
    lp_populate_list('BUSFUNC.BUS_FUNC','rgcat',l_sql_text);
    l_sql_text := 'SELECT step1,step1 FROM TABS_BUS_FUNC';
    lp_populate_list('BUSFUNC.list20','rgcat1',l_sql_text);
    END;
    Now the problem is i can able to get the values fro the first two colums. but the third column values are not populating.
    i am getting an error frm - 41337 - can not populate the list from record group.
    PLease help me in this.
    Thanks in advance,
    Raju

    I got answer
    i write a code in when-new-form-instance
    declare
    v_rg_id RECORDGROUP;
    v_return number;
    v_query varchar2(2000);
    outcome number ;
    begin
    v_rg_id := CREATE_GROUP_FROM_QUERY('RG_LIST','select Dname,To_char(Deptno) deptno from dept');
    v_return := POPULATE_GROUP(v_rg_id);
    POPULATE_LIST('emp.deptno', 'RG_LIST');
    end;
    but remember property of list item must be mapping of others value null and initial value null
    if ur problem not solve then tel me email, i ll send u fmb file

  • URGENT : how to pass status & reason field in BAPI_LEAD_CREATEMULTI module

    HI,
    <b>CAN ANYONE TELL ME how to pass status & reason field in BAPI_LEAD_CREATEMULTI module.IT'S VERY URGENT,</b>
    SO PLEASE SEND ME YOUR REPLY AS EARLY AS POSSIBLE,
    TAHNKS IN ADVANCED

    Hi ,
    your config is missing , what is ur TD object ?
    you can cross check in SE75-->Under MARA
    regards
    Prabhu

  • Its very urgent:How to insert data one table to another table

    Hi all,
    i am very new to oaf.
    i have employee_number(per_all_people_f) lov is there.once select the employee number and click on the submit button
    what ever select the employee number it ll move to new_operation_manager in custom table.
    plz help me how to move.
    its very urgent.
    Thanks
    Latha.
    Edited by: Latha on Dec 21, 2011 9:33 PM

    Hi Gyan,
    Sorry, i will not repate.how to close the thread.
    Gyan i have no knowledge on this issue.
    plz help me.and where to mention,data is which table to insert.
    plz send one sample code.
    its very urgent gyan.
    i wrote the am,co codes
    in am:
    public void NewoperationManagerLogic()
    ManagerCustomTableVOImpl vo1=getManagerCustomTableVO1();----> here which vo take
    OADBTransaction oadbt=getOADBTransaction();
    if(!vo1.isPreparedForExecution())
    vo1.executeQuery();
    Row row=vo1.createRow();
    vo1.insertRow(row);
    in Co processrequest:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
    am.invokeMethod("NewoperationManagerLogic");
    in co processform request:
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if(pageContext.getParameter("Submit")!=null)
    ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
    am.getOADBTransaction().commit();
    throw new OAException("Records Saved Sucessfully",OAException.INFORMATION);
    thanks
    latha
    Edited by: Latha on Dec 22, 2011 1:26 AM

  • Its very urgent:how to insert data into database tables

    Hi All,
    I am very new to oaf.
    I have one requirement data insert into database tables.
    here createPG having data that data insert into one custom table.
    but i dont know how to insert data into database tables.
    i wrote the code in am,co as follows.
    in am i wrote the code:
    public void NewoperationManagerLogic()
    ManagerCustomTableVOImpl vo1=getManagerCustomTableVO1();
    OADBTransaction oadbt=getOADBTransaction();
    if(!vo1.isPreparedForExecution())
    vo1.executeQuery();
    Row row=vo1.createRow();
    vo1.insertRow(row);
    in createPG processrequest co:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
    am.NewoperationManagerLogic();
    process form request:
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if(pageContext.getParameter("Submit")!=null)
    ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
    am.getOADBTransaction().commit();
    please help with an example(sample code).
    its very urgent.
    thanks in advance
    Seshu
    Edited by: its urgent on Dec 25, 2011 9:31 PM

    Hi ,
    1.)You must have to create a EO based on custom table and then VO based on this EO eventually to save the values in DB
    2.) the row.setNewRowState(Row.STATUS_INITIALIZED); is used to set the the status of row as inialized ,this is must required.
    3.) When u will create the VO based on EO the viewattributes will be created in VO which will be assigned to the fields to take care the db handling .
    You must go thtough the lab excercise shipped with you Jdeveloper ,there is a example of Create Employee page ,that will solve your number of doubts.
    Thanks
    Pratap

  • Very URGENT -- How to make keyboard print

    This is very urgent. How to make the keyboard print?

    Here is the code. It is supposed to make the keyboard type something.
    This is URGENT.
    public class KeyBoarder
         private int keyPressed;
         public KeyBoarder()
              System.out.println("Welcome to keyboard");
         private void print()
              System.out.println("Keyboarder has printed");
         public static void main(String args[])
              KeyBoarder board = new KeyBoarder();
              board.print();

  • Very Urgent : how to generate continious sequential No. (se 38 + smartform)

    Dear All,
                 Could you plz tell me how to generate continious sequential  No.. Atually i have to print TC No. on the form, but it's not available in the SAP. TC No. should be in sequence i.e for first time say it 's 10, at the second time it should be 11, third time it should be 12 and so on.
    Plz tell me ASAP. It's very urgent.
    Looking forward to your earliest response.
    thanks in Advance.
    Gulrez Alam

    You can create a number range(SNRO) to get the continuous numbers.You can use the FM 'NUMBER_GET_NEXT' to get the next number from number range.

  • Very Urgent : How to retrieve a SAP Script

    Hi Guys it is very urgent...I over wrote a form using the SCC1 transaction....I copied it from the wrong client into my development client...So it overwrote my Script..Is there any way i can retrieve it...

    go to your quality system download your script by using program RSTXSCRP.
    then upload it into your devlopment system.

  • Default method - how to pass value to method container?

    Hello,
    I am dealing with a hyperlink in 'Objects and Attachements' section of the workitem.When i click on the link, the default method of the business object gets called automatically.
    My question is: How to pass values to the default method (i.e. method container) as i don't invoke the method in my workflow explicitly?  The method gets called when we click on the hyperlink.
    Regards,
    Monica.

    Hello Monica,
    a default method doesn't require parameters (and cannot make use of them), as they are designed to be called from various situation, such as the view from a workflow container, the display button within a workitem or the attachment list. So this is part of the system design.
    To make an object dependent of workitem values I usually follow two different design patterns:
    <b>1) Using a flowitem/workitem instance with a special default method</b>
    - Create a subobject from type WORKITEM (if I'm going to use values from the current workflow instance) or subobject from type WORKINGWI (if I'm going to use values from the current dialog workitem).
    - Do not make a general substitution for this new object type
    - If using a ZWORKITEM, create an instance of this object type before the dialog step and then pass this object to the dialog workitem
    - If using ZWORKINGWI, assign the object instance during the data flow to the step.
    - In the properties of the object choose (any one) default method
    - Within the coding you have the reference to the workitem/flowitem as object-key-... and you can further use functions/methods to read the workitem/flowitem container and do whatever has to be done
    <b>2) Retrieving values from the current workitem on-the-fly</b>
    Within the coding of the default method call the function module SWO_QUERY_REQUESTER that returns the instance/id of the current workitem-in-work (with is also set when using the hyperlink from a workitem). If the list is empty, there's no active workitem, otherwise use functions/methods to read the workitem container.
    --> edit: Solution is not release safe, is it aint working with SAP R/3 Enterprise and higher
    Best regards,
       Florin
    Message was edited by:
            Florin Wach

  • How can I display a list of records from a JSP to my Midlet ??

    Hi there !
    I'm new in J2ME. I have been strugling with this problem for weeks now. All I find on the net is some theory and is not helping me much. Here the deal
    I have created a Midlet that shoud display a certain list which is from the remote database. The list comes from a JSP file in the server. When I use the browser I can see the list.
    The problem comes when I have to take the same list and output it in my midlet file. Then finding the selected index of the selecte item of the same list and using it somewhere else.
    I would appreciate it if somone could help me !!
    My head is speaning now !!! If you want me to post my code so one could identidy the proble, I don't mind !! Help please !!

    Here is my Code !!
                 String url = "http://10.2.25.3:8080/CreateAppointment/doctorsList.jsp";
        String dateUrl = "http://10.2.25.3:8080/CreateAppointment/date.jsp";
       String myUsername,myPassword;
       // Custom declaration code starts here
       public CreateAppointment_GUI()
                //Creating a login Form
                loginScreen = new Form("Login");
                //Login form Textfields
                username = new TextField("Username:", null, 200, TextField.ANY);
                password = new TextField("Password:", "Initial text", 200, TextField.ANY|     TextField.PASSWORD);
                loginScreen.append(username);
                loginScreen.append(password);
                //Adding the commands
                loginScreen.addCommand(loginCommand);
                loginScreen.addCommand(cancelCommand);
                loginScreen.setCommandListener(this);
                loginScreen.setItemStateListener(this);
                // Creating my selection list
                String[] selectionList = { "1.Appointments", "2.Add New Patient", "3.Patient Details" };
                listSelectAction = new List("Select Action", List.IMPLICIT, selectionList, images);
                listSelectAction.addCommand(backCommand);
                listSelectAction.addCommand(nextCommand);
                listSelectAction.setCommandListener(this);
             public void startApp() throws MIDletStateChangeException
               display = Display.getDisplay(this);
               display.setCurrent(loginScreen);
            public void pauseApp()
            public void destroyApp(boolean unconditional) throws MIDletStateChangeException
                 notifyDestroyed();
            public void itemStateChanged(Item item)
       void getDoctors(String url) throws IOException {
                    HttpConnection connection = null;
            InputStream is = null;
            OutputStream os = null;
            StringBuffer stringBuffer = new StringBuffer();
            TextBox textBox = null;
            String newStr =null;
            String newStr2=null;
            Vector v = new Vector();
           try {
              connection = (HttpConnection)Connector.open(url);
              connection.setRequestMethod(HttpConnection.POST);
              //connection.setRequestProperty(String key, String value)
              connection.setRequestProperty("IF-Modified-Since","20 Jan 2001 16:19:14 GMT");
              connection.setRequestProperty("User-Agent","Profile/MIDP-2.0 Confirguration/CLDC-1.0");
              connection.setRequestProperty("Content-Language", "en-CA");
              connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
              os = connection.openOutputStream();
              is = connection.openInputStream();
              int ch;
              while ((ch = is.read()) != -1) {
                stringBuffer.append((char) ch);
                System.out.print((char)ch);
                   }//while
              newStr = stringBuffer.toString();
                    newStr2=newStr.trim();
                    int start = 0;
                    position = newStr2.indexOf("%", 0);
                    while ((position = newStr2.indexOf("%",start)) > -1) {
                      String aName = newStr2.substring(start,position);
                      v.addElement(aName); // store the substring
                      start = position + 1; // so the next time we start checking following the space
              String[] theNames = new String[v.size()]; // create an array big enough to store the strings
              v.copyInto(theNames); // Now theNames is a String array with the list of names
               // now we can create a List using this array:
               listDoctors = new List("Select Doctor", List.IMPLICIT, theNames,null);
               listDoctors.addCommand(backCommand);
               listDoctors.addCommand(nextCommand);
               listDoctors.setCommandListener(this);
          } //try
           finally {
               if(is!= null) {
                  is.close();
               } //if
               if(os != null) {
                  os.close();
               }//if
               if(connection != null) {
                  connection.close();
               }//if
            }//final
         display.setCurrent(listDoctors);
        } //invoke
    public void commandAction(Command c, Displayable d)
                     if (c == loginCommand)
                      myUsername = username.getString();
                      myPassword = password.getString();
                         Thread thread = new Thread() {
                               public void run() {
                                   try {
                                      getDoctors(url);
                                      display.setCurrent(listSelectAction);
                                   }// Try
                                   catch (IOException ioe) {
                                      ioe.printStackTrace();
                                   }// catch
                               }// Public void
                         };//Thread
                          thread.start();
                     else if (c == cancelCommand && d == listSelectAction)
                     else if (c == nextCommand && d == listSelectAction)
                        int selectedAction = listSelectAction.getSelectedIndex();
                            Alert displayNewText =
                            new Alert("Selected","Screens are still being developed", null, AlertType.INFO);
                                displayNewText.setTimeout(1000);
                         if (selectedAction == 0)
                             Thread thread = new Thread() {
                               public void run() {
                                   try {
                                      getDoctors(url);
                                      display.setCurrent(listSelectAction);
                                   }// Try
                                   catch (IOException ioe) {
                                      ioe.printStackTrace();
                                   }// catch
                               }// Public void
                         };//Thread
                          thread.start();
                         if (selectedAction == 1)
                               display.setCurrent(displayNewText);
                         if (selectedAction == 2)
                               display.setCurrent(displayNewText);
                     }//Else
                     else if (c == backCommand && d == listDoctors)
                          display.setCurrent(listSelectAction);
                     else if (c == nextCommand && d == listDoctors)
                             Thread thread1 = new Thread() {
                               public void run() {
                                   try {
                                      getDate(dateUrl);
                                      display.setCurrent(listDate);
                                   }// Try
                                   catch (IOException ioe) {
                                      ioe.printStackTrace();
                                   }// catch
                               }// Public void
                         };//Thread
                          thread1.start();
                     else if (c == backCommand && d == listDate)
                          display.setCurrent(listDoctors);
    }That is my midlet !! Now here is the code for my JSP !!
                        <%@ page import="java.sql.*" %>
    <%@page import="java.util.*,java.text.*" %>
    <%
    String name="";
    String id = "";
    String connectionURL = "jdbc:microsoft:sqlserver://10.2.25.223;DatabaseName=NDOH_PAAB";
    Connection connection = null;
    Statement statement = null;
    ResultSet rs = null;
    %>
    <%
    try
                            Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
                    catch (Exception ex)
                            out.println(ex.toString());
                            connection = DriverManager.getConnection(connectionURL,"remotepaab_user","mohwiti2004");
                            statement = connection.createStatement();
                            String mysql ="SELECT * from physicians";
                            //out.println(mysql);
                            rs = statement.executeQuery(mysql);
    %>
    <%
          while (rs.next()) {
                 name= rs.getString("name");
                 id = rs.getString("id");
                 out.print(name + "%");
                 out.print(id + "%");
    %>
    <%
    %>
    <% rs.close(); %>In the JSP the name variable is the one that has my List. The problem is how do I say in my Midlet = display the list contained in name. Or in id. I need to use both of them "name + id". the id I will use to find out which name a user ha selected !! Not sure how !!!
    Any help would be appreciated !! Thanks !!

Maybe you are looking for