How to call same form by different performs as below?

Hi,
i want to use a Form get_data by calling Perform get_data twice with two different internal tables as below
perform get_data    tables   it_upload
                            using    tab_name
                            changing it_material. 
it_material has structure as below
types : begin of ty_material,
             serno  type sy-tabix,
             matnr1 type mara-matnr,
             matnr2 type mara-matnr,
             matnr3 type mara-matnr,
            end of ty_material.
perform get_data    tables   it_upload
                            using    tab_name
                            changing it_location.
it_location has structure as below
types : begin of ty_location,
            site1  type mard-werks,
            site2  type mard-werks,
            sloc1  type mard-lgort,
            sloc2  type mard-lgort,
          end of ty_location.
now how to declare Form Get_data
can anyone suggest me how to declare Form Get_data

FORM parameters are normally strongly typed, so if you want to pass different tables in different calls to the same PERFORM, you need to use two internal table parameters in the FORM interface like below
FORM foo  USING /CHANGING itab1 TYPE <table type1>
                          itab2 TYPE <table type2>
ENDFORM
Otherwise you need to use TYPE STANDARD TABLE, in which case you can use a single parameter for both the internal tables but you will also need to FIELD-SYMBOLS, and there should be some indication for you to ASSIGN the field symbol to what internal table type that may come at runtime. This will be a overkill, without much use, when you can achieve what you want by simply using two parameters.

Similar Messages

  • Use the same form with different button turned on in different calls

    Can I use the same form with different buttons turned on in different calls?
    Thanks!

    This is to avoid piracy. What could happen is, people could buy music, and give it away for free online. Usually it is then you buy a complete album off iTunes that it will only be available on one device. It is tied to that account, and the device must be registered to that account to listen to it.

  • How to call a form from report? in 6i

    How to call a Form from Report? In Developer 6i of oracle. Plz tell me tex.

    try this
    declare
       AppID PLS_INTEGER;
    begin
         AppID := DDE.App_Begin('ifrun60 module=myform.fmx userid=scott/tiger@mydb maximize=no', DDE.App_Mode_Maximized);
    exception when others then
          srw.message(1,'Errror');
    end;Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • How to call hr_location_api.create_location for different address style with only those fields that belongs specific to  that address style.

    How to call hr_location_api.create_location for different address style with only those fields that belongs specific to  that address style. It should decide at run time means at run time it will come to know the type of address style and based on that only the fields which belong to address details mapped to calling hr_location_api.create_location.
    Thanks in advance.

    You can create a wrapper package on top of the API (hr_location_api.create_location)
    In the wrapper package you set all the values dynamically based on your requirements(say the style and add_line columns are populated on your conditions) and then you call the API.
    Does that not work ?

  • How to call a form with dabble clicking on a record with one time where

    Hi All,
    How to call a form with dabble clicking on a record with one time where clause. I mean when i dabble click on the current record i want to call another form with details of the
    record with onetime where clause. Can anyone help me in this regard.
    Now i am calling a form with parameter with onetime where but this should avoid.
    Thanks in advance
    Arif

    Hello,
    I mistakenly mark it as solved. There is a problem remain. when i placed the code below it do not execute with the where condition. I mean the condition to execute is not work.
    All records executes. Please correct my code--
    Here the WHEN-BUTTON-PRESSED-trigger on the Edit-Button:
    :GLOBAL.MODE:='EDIT';
    :GLOBAL.REQ_ID:=:PROBLEM_REQUEST.REQ_ID;
    CALL_FORM('REQUEST_ID_PARAM',NO_HIDE,DO_REPLACE,NO_QUERY_ONLY);And also, WHEN-NEW-FORM-INSTANCE-trigger of REQUEST_ID_PARAM:
    DEFAULT_VALUE(NULL, 'GLOBAL.MODE');
    DEFAULT_VALUE(NULL, 'GLOBAL.REQ_ID');
    IF :GLOBAL.MODE='EDIT' THEN
    GO_BLOCK('PROBLEM_REQUEST');
    EXECUTE_QUERY;
    SET_BLOCK_PROPERTY('PROBLEM_REQUEST', INSERT_ALLOWED, PROPERTY_FALSE);
    END IF;Arif

  • How to call the form bean value on jsp withthe help of jstl tag

    hi
    all friends
    i am working in struts & i use jstl tag in jsp. i have one problem rise is how to call the form bean value in jsp page by using jstl tag.
    i now how to retrive the value through jsp:logic
    eg. <logic:empty name="userListForm" property="users">
    NO USER FOUND
    </logic:empty>
    see * userListForm mean formbaen name.
    * users means collection object.
    so how can i write above e.g in jstl

    You use the jstl core:if or core:choose combined with the EL:
    <c:if test="${empty users.userListForm}">
    NO USERS FOUND
    </c:if>I suggest you lookup the jsp expression language (EL) using google, it's very powerful.

  • How to Call Oracle Form From Oracle ADF

    Hi All,
    Version - Oracle Jdeveloper 11.1.1.5
    In Oracle Adf - when i click on Button how to call oracle form?
    Please help....
    Thanks..
    Sk

    And there is a tool called oraFormFaces that has some advanced linking api to access forms etc. Do a google search to find info on this.

  • HOW TO CALL A FORM FROM ANOTHER FORM

    HOW TO CALL A FORM FROM ANOTHER FORM [local machine]

    Balraj wrote:
    HOW TO CALL A FORM FROM ANOTHER FORM [local machine]The way you asked question is this bit of request or order?
    Secondly, you used capital latters which are being treated as Shouting Language. So, always try to switch off the Capslock of your keyboard.
    Thirdly, you are very lazy to serach on forum or google for your problem instead of waiting someone to anwer your question.
    Your should seriously have a look at FAQ.
    http://wikis.sun.com/display/Forums/Forums+FAQ
    Also here.
    http://www.catb.org/~esr/faqs/smart-questions.html
    Please read documentation for the initial questions.
    -Ammad

  • How to call a form without path

    how to call a form without path
    i.e.,
    we are calling a form as
    call_form('D:\casestudy\register');
    but without specifying path how to call a form?

    If you are new to Forms then please have a read through the Oracle Forms documentation that is on this web site - all is explained somewhere.
    This is a good start : http://download-uk.oracle.com/docs/cd/B25016_07//doc/dl/web/B14032_03/toc.htm

  • How to call a form from WEB.SHOW_DOCUMENT 10g  Is this possible?????

    how to call a form from WEB.SHOW_DOCUMENT
    I would like to call a form using the WEB.SHOW_DOCUMENT the idea is from the menu that is attached to the form instead of use call_form use WEB.SHOW_DOCUMENT(...my_newform.fmx)
    Is this possible?????

    Hi ,
    I think yes...but under some circumstances....
    In your formsweb.cfg file you should define a named configuration alias... such as:
    [TEST]
    workingDirectory=C:\TEST_DIR
    form=C:\TEST_DIR\MY_NEWFORM.FMX
    Then , after stopping , starting your OC4J instance..... you call that as (in a button , for example):
    web.show_document('http:<your_server>:<port>/forms/frmservlet?config=[TEST]',_blank);
    I have not tested it.....
    Regards,
    Simon

  • How to Call Same Adaptive RFC across different Backend R/3 Systems

    Hi Everyone,
    I have been troubled for the last 3 or 4 days on how I should develop Web DynPro code to call the same RFC on different backend R/3 systems.  Don't really want to maintain my own Jco connects within a SAP Connector project and I don't really want to import 3 or 4 of the same models.  Can someone please inform what is the best approach?
    Thanks.

    Hi Glen,
    There is one other way of doing this which needs a bit of data maintenance.
    The webdynpro app will connect to one R/3 backend. In the same R/3 create RFC destinations to all others backends where the RFC's needs to be called. Create a table where u maintain for what value which backend system should be called. Add rfc_dest as an import paramter in all the RFCs in the backend system where the webdynpro app is connected and call those systems using RFC destinations.
    For e.g. you have one HR system and multiple FI systems based on Company codes.
    Connect your webdynpro app to the HR system. Create a table in the HR system which will contain data like given below
    CoCode                        RFC Destination
    1000                             RFCDEST1
    2000                             RFCDEST1
    In the RFC's in HR system add both CoCode and RFC Destination as additional input parameters. From the front end u can pass different values and call the same RFC's from different systems.
    Regards
    Prakash

  • Calling same form multiple times

    Hi, i need to call a single form with different table names as parameters depending on conditions.
    for eg here is the approach
    if flag1_is_set
      call form1 multiple times with table1, table2....... as parameters
    "and i can avoid this
    "  form 1 using table 1
    "  form 1 using table 2
    "  form 1 using table 3
    "  form 1 using table 4
    "  form 1 using table 5
    elseif
      flag2_is_set
        form 1 using table 2
    elseif
      flag3_is_set
       form 1 using table 3.
    but i cannot call forms like this. can someone suggest
    an equivalent implementation on how to do this.
    if i dont implement in the above mentioned approach i have to code the same thing with minor changes multiple times
    thanks.
    your help would be appreciated.
    kranthi.

    You might try passing a field symbol (itab) in the tables.
    And assign the filed symbol with your itab as per the condition.
    Check if the program below gives you any idea.
    REPORT  Z_RAM_DYN_TAB_IN_FORM.
    PARAMETERS : P_TAB1 TYPE C.
    DATA: lt_users2 type standard table of usr02.
    DATA: lt_users1 type standard table of usr01.
    FIELD-SYMBOLS: <fs_itab> type standard table.
    SELECT * into table lt_users1 FROM usr01.
    SELECT * into table lt_users2 FROM usr02.
    IF P_TAB1 eq 'X'.
       ASSIGN lt_users1 to <fs_itab>.
    ELSE.
       ASSIGN lt_users2 to <fs_itab>.
    ENDIF.
    PERFORM test_form TABLES <fs_itab>.
    FORM test_form TABLES x_itab .
    FIELD-SYMBOLS: <fs_wa> type any.
    FIELD-SYMBOLS: <fs_field> type any.
      LOOP AT x_itab ASSIGNING <fs_wa>.
        DO 5 times.     "Write first 5 fields of itabs.
          ASSIGN COMPONENT sy-index OF STRUCTURE <fs_wa> to <fs_field>.
          WRITE :  <fs_field>.
        ENDDO.
        WRITE :/.
      ENDLOOP.
    Thanks,
    Ram
    Message was edited by: Ram Manohar Tiwari

  • How to call ISR form in task

    hi friends
      Am working in ISR workflow for address change. I have designed ISR form in SFP t-code. I have designed the workflow for my requirement. How to call the ISR form in my method. I have check other standard workflow in that its using EDITASYCNOROU method with BUS7051. I have CHECKED the code in that it calls transaction iqs22. Since am executing from portal. I cannot use call transaction method. I have even checked in SWFVISU t-code there is no standard task for ISR. ALL the category is available for javawebdynpro,ABAP,BSP. What is the category that ISR falls.
    Regards
    vijay

    Even I'm getting the same error. Im trying to call regular form. the synatx used is XO2CORDCHG_FN:#RESP_KEY="USS_USONT_2_USS US OM ORDER_R" #APP_SHORT_NAME="ONT"
    Please help.
    Thanks.

  • HOW TO CALL A FORM FROM REPORTS?

    How to call a FORM6i form from Oracle Reports6i? Is it at all possible?
    Regards.
    Satyaki De.

    Hi Jakub,
    I don't mean to say that you cannot do what you said in your response above.
    But what I want to say that Oracle does not support forms to be called from reports.
    DDE package is meant for different purpose.
    Dynamic Data Exchange (DDE) is a mechanism by which applications can communicate and exchange data in Windows. DDE client support is added as a procedural extension to Reports Builder. The PL/SQL package for DDE support provides application developers with an Application Programming Interface (API) for accessing DDE functionality from within PL/SQL procedures and triggers.
    Thanks,
    Raj
    http://www.oraclebrains.com

  • How to use same form for Editing info and creating info.

    Hi all,
    Here my aim is to select the user from list and edit the user info. There is one more option to create the new user.
    Currently I am using two separate input forms one for Editing and one more creating new user.
    Can anyone tel me, how to use the same form for both editing and creating.
    Thanks,
    Ramesh Biradar

    Hi Ramesh,
    I'll make some assumptions about how you're going about this, and then give you a possible solution:
    I assume that you have a table with selection on one page. To edit an item, you wish to select it's radio button and click an edit button to take you to another page with the item filled in to edit it. To create a new item, you'd like to click a "new" button and go to the same page.
    If this is correct, here's the basic steps:
    1). Assuming you have both the list and edit pages already created, make sure you have a JSF navigation case defined going from the list page to the edit page. I'll call this navigation case "goToEditPage" for this discussion.
    2). To make the edit button, drag a command button from the component palette and drop it on the af:TableSelectOne (the column in your table containing the radio buttons for selection).
    3). Set the action property on this command button to "goToEditPage".
    4). Now, to make the create button, drag a command button from the component palette somewhere on the page. I like to put mine in a panelButtonBar inside the actions facet of an af:Page component.
    5). Now, for the Action property of this command button, bind it to a method in your page's backing bean. The code will look something like this:
    public String performNew()
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("Create");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty())
          return null;
        return "goToEditPage";
    }Hope this is helpful, Ramesh.
    Regards,
    John

Maybe you are looking for