Fumnction Module with Input Parameter

Hello all,
               I have a Popup window in which a message displays with a value and Yes or No Option. if No is clicked  i have to Display a list of data, if its Yes is clicked  i have to get a value as a Parameter in pop up window (i,e User should enter the value ). Is there any FM to get this. This is an ALV Report.
YES       NO
if YES
    ENTER THE VALUE : ______________
else.
   Display
Points will be Rewarded.
Thanking you in advance.
Regards,
Nagulan

Hi Nagulan,
Yes there is a function module by name  'C14A_POPUP_SAVE_WITH_CANCEL' which displays a pop up as per your requirement.
I had a similar requirement in my project.This is the code that I used.You can refer to it and write your own code.
In this code a function module is called to display the popup.The popup contains three options-Yes,No and Cancel.When selecting Yes,The details present in the input fields will be saved in the Ztables.If NO is selected in the popup,then the transaction will be exited.
In the function module,answer holds the user command.
e_answer needs to be created by user.The statement for it is :
DATA :e_answer type c.  
In the function module as you can see, J indicates Yes and N indicates No.J and N are predefined for Yes and No respectively.
In the PAI module of that Screen,you need to write this code
CASE SY-UCOMM.
when SAVE.
CALL FUNCTION 'C14A_POPUP_SAVE_WITH_CANCEL'
IMPORTING
e_answer = answer.
IF answer = 'N'.
***Leaving the transaction****
LEAVE TRANSACTION.
ELSEIF answer = 'J'.
***The right side of the equation is the name of the input field in the screen.The left hand side of the ****equation is the field name in the ZTable ztm09_ekpo.**
ztm09_ekpo-ebeln = ztm09_ekko-ebeln. "ztm09_ekko is the name of the Z Table.
MODIFY ztm09_ekpo.
endcase.
Hope this will help you.
Revert for any querries.
Regards,
Kashyap Ivaturi

Similar Messages

  • BAM Report with input parameter

    Hi,
    How to design a report with input parameter? BAM ADC contains data about different clients.
    I have to design a report which iterates over these clients and display one client info at a time.
    Thanks
    Samatha

    Instructions in User guide on how to create surface prompts
    http://www.oracle.com/technology/products/integration/bam/index.html> 11g Documentation> User guide
    http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10230/prompts_parameters.htm#CHDEEACD
    Also look at call center -->Reassign cases sample under demos in BAM 11g.

  • Regarding" Material PO text " with input parameter is PR requisition

    Hi Experts,
    I need to develop a ALV report in which the input parameter is PR requisition, Requisition date, Plant ,Purchase Group, Purchase organization
    And I needed to get its corresponding u201Cmaterial PO Textu201D.
    I am using the function module READ_TEXT with
    goto me53n( purchase requisition) -
    > text----->item_text->doubleclick->goto->header
    id = 'B04'.
    tname = '100000166000010'.
    tdobject = 'EBAN'.
    How do i display all the text in alv against the PR requisition, Requisition date, Plant ,Purchase Group, Purchase organization, PR item number  PO number , Po date , PO item number
    thanx.
    Moderator message: please open only one thread per issue.
    Edited by: Thomas Zloch on Jan 17, 2012 10:42 PM

    lets say item text is 8-10 lines, you want to display that as well in the output? how much the user have to scroll for 10 PRs  just think..
    rather give them the report output without the item text and give them a hotspot. once they click hotspot, show them a popup  for item text

  • How to create a Mapping with Input Parameter?

    Hi,
    I have a target table where the primary key column should be loaded with an Input parameter value. How can we implement this? Let me know if any examples are available?
    Regards
    Kishan

    Use a map input operator in your mapping. In the outgroup add an attribute, mapp the attribute with the column and then you can start the mapping with an extra input parameter.
    Bye
    Detlef

  • Starting/Openeing a  Workbook empty or with Input Parameter

    Hi,
    how to configure BW / BEX / a workbook  to start a workbook always empty or with the input parameter dialogue ?
    ThanXs
    Martin

    Sorry Martin, on the purge side of things....
    It depends on whether you are using BW 3.,5 or BI 7.
    If you are on 3.5 on the Tools menu there is an option to Delete Query Results.
    If you are on BI 7:00 then the link tell you all:
    SAP entertainment: Migration of 3.x objects to BI 7.0
    - Delete query results.. para.

  • Multible MBO's with input parameter's how to pass them?

    Hello gurus i'm currently working on native app that based on BAPI MBO's and each MBO takes input parameter and return some values
    at the first MBO i made the input parameter is personalization key but after adding a second MBO and make the same to the second MBO when i generated the code and passing the PK values only for the first MBO i got an error
    any help on how to pass input parameters for native app that based on BAPI for multiple MBO and i will not pass all the parameters at the same time depend on the screen that i'm in i will call MBO
    thanks in advance

    Steps to do a sync from MBO is given below (android native app):
    Create MBO and PK.
    Map MBO load parameter with PK.
    Create Second MBO and another PK (or use existing PK if the input parameter of first MBO is same as second MBO).
    Map Second MBO load parameter with second PK.
    Sample native code (android):
    //Assing Values to PK
    PersonalizationParameters param = CustomersDB.getPersonalizationParameters();
              param.setPK_CustomerInput("1001");
              param.save();
              CustomersDB.subscribe();
    //Make a blocking synchronize call to Unwired Server to pull in all MBO data
              CustomersDB.synchronize();
    //Finall is the query generated by SUP to get the data from the table Customers.
    //Customers is the MBO name in SUP and table name in Device DB
    Customers.findAll()
    Give the steps you performed with relevant screen shots to help you further.
    More info, Developing SAP Android Mobile app from scratch - Part 4
    Midhun VP

  • Dynamic Imagelink Component - Calling Impl method with input parameter

    Hi All,
    I have requirement where Imagelinks are created dynamically on the pageload. Generated the components and the components are displayed on the jspx.
    Now when I click the image link, a method in AMImpl should invoke and this method takes some input parameters.
    I am able to call the method successfully in AMimpl with the help of below code. But I could not understand how to pass the input parameters to that method.
                               RichCommandImageLink lockimageLink =
                                new RichCommandImageLink();
                            lockimageLink.setIcon("icon.png");
                            lockimageLink.setId("icon" + index);                   
                            MethodExpression me =
                                JSFUtils.getMethodExpression("#{bindings." +
                                                             "MyMethodName" +
                                                             ".execute}");
                            lockimageLink.addActionListener(new MethodExpressionActionListener(me));
      public static MethodExpression getMethodExpression(String name) { 
       Class [] argtypes = new Class[1]; 
       argtypes[0] = ActionEvent.class; 
       FacesContext facesCtx = FacesContext.getCurrentInstance(); 
       Application app = facesCtx.getApplication(); 
       ExpressionFactory elFactory = app.getExpressionFactory(); 
       ELContext elContext = facesCtx.getELContext(); 
       return elFactory.createMethodExpression(elContext,name,null,argtypes); 
      } Can some one please suggest how to pass input parameters to the Impl method.
    Jdeveloper Version : 11.1.1.4.0
    Thanks,
    Morgan.
    Edited by: 900114 on May 12, 2012 11:23 PM

    You can use the below method to call an AMImpl method. You can pass parameters as well to the AMImpl method.
    DCBindingContainer bindings = getDCBindingContainer();
    OperationBinding ob = bc.getOperationBinding("MyMethodName");
    Map m = ob.getParamsMap();
    ob.put("paramName", "paramValue"); paramName is the parameter in AMImpl and paramValue is the value to be passed.
    ob.execute();
    Where getDCBindingContainer() is:
    public DCBindingContainer getDCBindingContainer() {
    ExpressionFactory exprFactory;
    ELContext elContext;
    ValueExpression valueExpression;
    DCBindingContainer dcBindingContainer;
    FacesContext facesContext = FacesContext.getCurrentInstance();
    exprFactory = facesContext.getApplication().getExpressionFactory();
    elContext = facesContext.getELContext();
    valueExpression =
    exprFactory.createValueExpression(elContext, "#{bindings}",
    Object.class);
    dcBindingContainer =
    (DCBindingContainer)valueExpression.getValue(elContext);
    return dcBindingContainer;
    Hope this helps
    Edited by: umesh.agarwal on May 13, 2012 12:10 AM
    Edited by: umesh.agarwal on May 13, 2012 12:10 AM

  • Search Help With Input Parameter in WebDynpro ABAP

    Hello all,
    I have been facing a problem regarding a search help I wanted to attach to an input field on my UI. The search help expects an import parameter and offers four output parameters. What I did was to create a context node based on a ddic structure. The structure has one attribute for each of the five parameters. I defined the search help for all context attributes except the importing one where I deactivated the search help. The search help is available on one of the input fields on the view and bound to one of the attributes in the context. The other context attributes are not bound to anything. The names as well as the data types are the same in the search help as well as in the ddic structure, bound to the context node.
    During WDDOINIT, I am setting the "import" context attribute. The problem is that the table with the search help parameters is empty when the search help exit is entered. Do you have any idea what I have to do in order to provide the import value to the search help?
    Thanks in advance and best regards
    Simeon

    Hi,
    By context node, do u mean that u made a drop down with values in ddic structure ,
    rather than that u can use FM 'VRM_SET_VALUES' this would be simpler if that makes sense for ur requirement.
    pls revert if any comments on it.
    regards,
    Dinesh.

  • OSB XSLT trasformations with input parameter

    Hi,
    how can I pass input parameters at XSLT trasformation in Assign activity?
    Thk
    L.

    Hi checked these links, but I didn't solve my problems :-(.
    I have this xslt resource:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
    <xsl:template match="/">
         <xsl:param name="in_stringSearch"/>
         <fields>
              <xsl:for-each select="//*[starts-with(text(),$in_stringSearch)]">
                   <field>
                        <xsl:for-each select="ancestor-or-self::*">
                             <xsl:text>/</xsl:text>
                                  <xsl:value-of select="$in_stringSearch"/>
                             </xsl:for-each>
                   </field>
              </xsl:for-each>
         </fields>
    </xsl:template>
    </xsl:stylesheet
    I created an assign activity, in the expression field I selected xslt resource and linked above xslt resource, my question is, how I can pass 'in_stringSearch' to xslt from assign?
    Thk
    L.
    Edited by: user8874385 on 7-gen-2011 4.12
    Edited by: user8874385 on 7-gen-2011 4.13

  • How to create Function Module with TABLE parameter (for internal table)

    Hi Guys,
    I am trying to create a function module by using TABLE parameter. I have to pass an internal table to this function module for processing.
    But it saying : TABLES parameters are obsolete!
    And I am not going further.
    Please suggest any work arround.
    Thanks

    Hi,
    create a table type in SE11..
    Then use that in your function module importing/exporting/changing parameter for passing internal tables..
    Thanks,
    Naren

  • ADF View with input parameter?

    I've a table with three column:
    company id, company name, revenue
    Another table:
    employee id, employee name, company id (foreign key in company table)
    Now I've to display list of employees in 1 company (based on logged in user). How shall I achieve this in ADF using BCs?
    A very standard requirement it seems... A tutorial would be good if someone can point me to that?
    Thanks.

    Create 2 EO for the 2 tables. Create VO on top of them. You can then create a View Criteria on the EMPVO which has the condition companyId = :bCompanyId (where bCompanyId is the bind variable defined and the values is passed from UI).
    http://jobinesh.blogspot.com/2010/10/how-to-set-bind-variable-values-at.html

  • Pass Input Parameter With Blank To SSIS Get Strange Result

    Hi! I stuck for a while when executing SSIS from stored procedure with input parameter. My input value is not consistent with output one. If I pass value with blank , SSIS seems gets second part. For example , if I pass "CALL FROM SP", SSIS get
    "FROM" only. 
    I use Execute SQL Task to store input parameter. Here is the SSIS snapshot.
    And here is the sp snippet
    DECLARE @Path VARCHAR(200),
    @Cmd VARCHAR(4000),
    @ReturnCode INT,
    @QUERY_STRING VARCHAR(70),
    @BATCH_NO VARCHAR(14)
    SELECT @Path = 'xxxxxx'
    SELECT @QUERY_STRING = 'CALL FROM SP'
    --BatchNo = YYYYMMDDHHMMSS
    SELECT @BATCH_NO = CONVERT(VARCHAR(10),GETDATE(),112) + REPLACE(CONVERT(VARCHAR(8),GETDATE(),108),':','')
    SELECT @Cmd = 'DTexec /FILE "' + @Path + 'Package1.dtsx" /MAXCONCURRENT 1 /CHECKPOINTING OFF /REPORTING EW ' + '/Decrypt ALCM '
    + ' /SET \Package.Variables[User::BATCH_NO].Properties[Value];' + @BATCH_NO
    + ' /SET \Package.Variables[User::QUERY_STRING].Properties[Value];' + @QUERY_STRING
    My test are
      input parameter
     write to TESTTB correctly ? 
    any error?  
     execute SSIS in design mode
     CALL FROM SSIS
     YES
     execute SSIS by sp
     CALL FROM SP
     NO
     Option "FROM" is not valid.
     execute SSIS by sp
     CALL_FROM_SP
     YES
    Anyone could give me some hint ? 
    Thank you so much!!

    Hi Nick,
    It occurs because an argument of the DTExec commands must be enclosed in quotation marks if it contains a space. From the dtexe (SSIS Tool): Syntax Rules section of the
    dtexec Utility (SSIS Tool) document, we can see:
    All options must start with a slash (/) or a minus sign (-). The options that are shown here start with a slash (/), but the minus sign (-) can be substituted.
    An argument must be enclosed in quotation marks if it contains a space. If the argument is not enclosed in quotation marks, the argument cannot contain white space.
    Doubled quotation marks within quoted strings represent escaped single quotation marks.
    Options and arguments are not case-sensitive, except for passwords.
    So, you need to make the value of the variable @QUERY_STRING within double quotes in the value of the variable @Cmd or remove the space within the @QUERY_STRING value.
    Regards,
    Mike Yin
    TechNet Community Support

  • How to Receive soap input parameter value in BPEL

    Hi
    Please provide the solution to receive the input parameter value from a soap call i.e. . invoking a BPEL process from a PL/SQL client and with input parameter value.
    Following Xpath expression does not work ,if a value is passed from SOAP input parameter
    bpws:getVariableData('receiveInput_process_InputVariable','payload',/client:Test_ExternalcallProcessRequest/client:input).
    This works fine only if avalue is passed from 'client' partnerlink(from console).
    Please do the needful.

    Hi
    Thank you for your response
    sample PL/SQL code to call a BPEL process along with some input parameter
    req P_A2a_Call_Bpelprocess.request;
    resp P_A2a_Call_Bpelprocess.response;
    inputvar VARCHAR2(100) := ' START PROCESS';
    ls_method VARCHAR2(25) := 'process';
    ls_namespace VARCHAR2(100) := 'xmlns="http://xmlns.oracle.com/Helloworld"';
    ls_url     VARCHAR2(254) := 'http://nooslux036t.gl.2wglobal.com:7777/orabpel/A2A/Helloworld/1.0';
    BEGIN
    req := P_A2a_Call_Bpelprocess.new_request(ls_method, ls_namespace);
    P_A2a_Call_Bpelprocess.add_parameter(req, 'input', 'xsd:string', inputvar);
    resp := P_A2a_Call_Bpelprocess.invoke(req, ls_url,ls_method);
    The input value is 'START PROCESS' and Can I get this value from Xpath experssion usiing bpws:getVariableData or any other function? .Please let me know.
    sample Xpath expression to get 'client' partnerlink data.
    bpws:getVariableData('receiveInput_process_InputVariable','payload',/client:Test_ExternalcallProcessRequest/client:input).
    Thanks in advance

  • How to expose odata service for input parameter based procedure.

    i have created one procedure in my schema.
    CREATE PROCEDURE TEST
    (in id varchar) AS
    BEGIN
    SELECT * FROM "table" WHERE "ID" = :id;
    END;
    and i am able to call the procedure from console.
    CALL "schema"."TEST"('1')
    my question is how to expose this procedure as odata service.
    is there any way to do it. ???

    hello Avinash. this is where i stuck in my code. i dont know how to wrap procedure in calculation view..
    My procedure code is below.
    create procedure "Get_User_for_Project"(in PROJECT_ID VARCHAR(255), out OUTPUT_TABLE "schema"."test_table")
    language SQLSCRIPT sql security definer  as
    BEGIN
    truncate table "schema"."test_table";
    OUTPUT_TABLE = SELECT "ID", "FIRST_NAME", "LAST_NAME" FROM "schema"."U_USER" WHERE "ID" IN (SELECT "USER_ID" FROM "schema"."U_USER_PROJECT" WHERE "PROJECT_ID" = :PROJECT_ID);
    END;
    my procedure is working fine. i just need help to wrap in calculation view with input parameter.

  • Calling Stored Procedure with a DATE input parameter

    Hi. A question about Date input parameters when calling a stored procedure...
    I have a procedure that takes a DATE parameter as input. I would like that DATE value to include a Time element.
    My Application Module method takes an input parameter as java.util.Date (myParamDate) - which will preserve a time element(?).
    However when I create the CallableStatement, I'm trying to set the parameter using setDate like this (for param 5):
                st = getDBTransaction().createCallableStatement("begin cs_my_pck.request_values(?,?,?,?,?,?,?,?); end;", 0);           
                Connection myConn = st.getConnection();
                ArrayDescriptor myArrDesc  =  ArrayDescriptor.createDescriptor("CS_FIELD_TABT", myConn);
                Array sqlParamNameArray = new oracle.sql.ARRAY(myArrDesc, myConn, paramNames.toArray());
                Array sqlParamValueArray = new oracle.sql.ARRAY(myArrDesc, myConn, paramValues.toArray());
                Array sqlFilterNameArray = new oracle.sql.ARRAY(myArrDesc,myConn,filterNames.toArray());
                st.setString(1, repType);
                st.setObject(2, sqlParamNameArray);
                st.setObject(3,sqlParamValueArray);
                st.setObject(4,sqlFilterNameArray);
                java.sql.Date myRepDate = new java.sql.Date(myParamDate.getTime());
                st.setDate(5,myRepDate);
                System.out.println("Report Date = " + myRepDate.toString());
                st.setString(6,repUser);
                st.setString(7,repAttach);
                // set out param
                st.registerOutParameter(8, Types.NUMERIC);
                st.execute();I understand java.sql.Date does NOT include a Time element. But setDate() accepts only a java.sql.Date so my procedure parameter ends up with a zero time element.
    How do I call this procedure retaining the Time element?
    Thanks.

    It includes time element, if you want more precision go with timestamp.
    http://docs.oracle.com/javase/6/docs/api/java/sql/Date.html

Maybe you are looking for

  • Hard drive failure (why can't I start up with boot disk)?

    Running OS 10.4.6. I was getting flashing question mark at startup. Tried starting with Disk Warrior holding down "C" key. Got Apple logo, but then screen frooze with horizontal lines across screen. Rebooted, held mouse to eject disk. Tried TechTool

  • How to use stored procedure with many return results and variable with perl

    Hi everybody, i´m writtting now a Perl programm, wich use a oracle stored procedure with more than 1 result and 1 variable(I have to return 2 variable fpr each result). I don´t now how I can get it.I already search the web but I didn´t find. My examp

  • How to get the body of a particular formatted SMS in iPhone programatically

    Hi all, I am looking for an API or any other way through which I can read an SMS from iPhone INBOX. Actually I am trying to develop an application that will read particular tagged SMS's from the iPhone INBOX and display to the user when he runs the a

  • Anonymous PL SQL block runs in 2 minutes but runs for 4 hours in Applicatio

    We are facing an issue with a custom code. When we run the custom code as anonymous pl/sql block , it completes in 2 minutes. But when we run the same from Oracle Application as a concurrent program, it runs for more than 4 hours. There is absolute n

  • C#-SYSDBA to mounted standby DB

    I am developing an application that will monitor all of my physical standby databases archive apply services. To do so I will need to login as SYSDBA. When I try C# strSQL= select a.thread#, max(r.sequence#)-max(a.sequence#) as Difference,max(a.seque