How  to get  response from such a  function

How  to get  response from such a  function (in MODULE USER_COMMAND_0010 INPUT I get "ODGOVOR" 'X'
FUNCTION Z_SEENKRAT.
""Local Interface:
*"  EXPORTING
*"     REFERENCE(ODGOVOR) TYPE  MSEG-KZEAR
DATA ok_code LIKE sy-ucomm.
DATA: test like mseg-kzear.
BREAK-POINT.
call screen 10.
test = ODGOVOR.
ENDFUNCTION.
*&      Module  CLEAR_OK_CODE  OUTPUT
      text
MODULE clear_ok_code OUTPUT.
  CLEAR ok_code.
ENDMODULE.                 " CLEAR_OK_CODE  OUTPUT
*&      Module  USER_COMMAND_0010  INPUT
      text
MODULE USER_COMMAND_0010 INPUT.
DATA odgovor LIKE mseg-KZEAR.
CASE ok_code.
    WHEN 'DA'.
    ODGOVOR = 'X'.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0010  INPUT

Hi,
You need to declare the ODGOVOR variable in the TOP include, then you will get the value
Regards
Sudheer

Similar Messages

  • How to get response from an asynchronous BPEL process in Java

    I'm experimenting with BPEL and doesn't seem to be able to get response from an asynchronous BPEL process. Here's the deal:
    I have a BPEL process that takes a string as input, and gives another string as output. This is a asyncronous process.
    I want to initiate this BPEL process as a web service so I generate a Webservice Proxy in JDeveloper 10g (10.1.3.0.4). The function to call the process is now called "initiate" and takes three arguments: the input string, a "org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType replyTo" and a
    "org.xmlsoap.schemas.ws._2003._03.addressing.AttributedURI messageID".
    HTTP-Analyzer shows that invoking the BPEL process with initiate("somestring", null, null) results in sending a SOAP message to the BPEL process, which returns a "202 Accepted". How do I get the response from the process? My intuition tells me that I have to use that second argument, that EnpointReferenceType thing. How do I use that?
    Another question: If a asynchronous BPEL process does not exists (so the endpoint does not exist) the Java proxy does not throw an error when runned. It does not even sends a message. It exits with status 0! (This happens for example when deploying a new version of a process and when the "old" version is undeployed). Calling a non-existing synchronous BPEL process, the Java proxy DOES throw an error.

    Clemens,
    That all sounds logical. But somehow it is still a mystery for me ... Somehow I don't see what should be done.
    To call the async BPEL process I have the following procedure:
    initiate(String input, org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType replyTo, org.xmlsoap.schemas.ws._2003._03.addressing.AttributedURI messageID)
    The first argument is the input for my BPEL process. The second is the address to a webservice that should handle the callback, right? The third is a messageID (makes sense, but why of the type AttributedURI?).
    Here lies my problem. It is not clear to me how these EndpointReferenceType & AttributedURI work. I can't find anything on the net about it. The AXIS examples as where mentioned earlier use other types (namely the "org.xmlsoap.schemas.ws.addressing.MessageID" and "org.xmlsoap.schemas.ws.addressing.ReplyTo") which are completely different.
    What I did so far:
    - I created an webservice proxy that listens on the onResult endpoint of the BPEL process.
    - I created an webservice proxy that calls the BPEL process through the initiate procedure, but it is not completely clear to me how to construct the EndPointreferenceType replyTo, and the MessageID. I did something like this:
    EndpointReferenceType replyTo = new EndpointReferenceType();
    // callback service running on local machine
    // This URI class is the java.net's version
    URI replyToURI = new URI("http://vaccinatie:8988/syncro-callback-context-root/stringconcatCallbackBindingPort");
    // This AttributedURI is the org.xmlsoap.schemas.ws._2003._03.addressing's version
    AttributedURI address = new AttributedURI();
    // the only public methos that made sense to me:
    address.set_value(replyToURI);
    replyTo.setAddress(address);
    // call the BPEL process
    myPort.initiate("test123", replyTo, address);
    But the above doesn't work (largely because I don't know what I'm doing here prob.:-) ) It does send the "test123" message, and the BPEL process does process it, but I don't seem to get the callback right.
    I hope this makes my problems somewhat clearer. I hope someone can help me, because I'm just a beginner in this whole "web service area" and seems to do something terribly wrong here, because it should be very simple. Thx.

  • How to get response from financial department

    How do I get someone in financial to review an account that has bad information in it ? Someone at Verizon has mistakenly used ACH (Bank) information and entered it as debit card information. When they tried to post to it, of course it failed. As a result I am now on COD cash only for the duration of my contract. No person in their financial division or in the regular customer service can seem to correct this. Any suggestions ?

    Update - I began a complaint with the BBB.
    I also called Verizon again as suggested, and asked for a supervisor again after explaining the situation. For the first time I spoke with someone who not only understood the problem but fixed it by changing the status of my account from cash only to auto payment.
    I received a call from an 'Executive correspondent' at Verizon regarding my complaint to the BBB. I related the entire story to her, after which she apologized and assured me she would look into why the original person I spoke with in financial services was unwilling to help, and that the assistant manager at the local store was unable to get help either. I implied that their customer service left a lot to be desired in its present form and, I agreed with her that some investigating needed to be done.
    I also asked why Verizon was unable to verify billing information before the actual transaction, as is done by many other corporations - Paypal being one. They will do a small (between .01 and .15) transfer then transfer it back. She informed me that Verizon had made a corporate decision not to do this as it would 'confuse' their customers. I disagree - their current system puts the entire responsibility for any errors on their customer. She confirmed that I had provided the correct information initially and had no explanation for how things turned out as they did.

  • How to get LAST_VALUE from an Analytic Function within a report?

    My analytical report has following sql:
    SELECT....
    DENSE_RANK() OVER (PARTITION BY pco.appropriation ORDER BY pco.appropriation,
    pco.fiscal_year ASC NULLS LAST) "Duration Years",
    SUM(pco.quantity) OVER (PARTITION BY sms.data_source ORDER BY
    sms.data_source, cst.display_nm RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT
    ROW) "Quantity Cum",
    FROM ........
    I have a request to calculate the percentage value by dividing MAX or LASTVALUE of these two functions at current row level:_
    %DENSE_RANK = LAST_VALUE of ? DENSE_RANK() OVER (PARTITION BY pco.appropriation ORDER BY pco.appropriation,
    pco.fiscal_year ASC NULLS LAST) "Duration Years"
    / (divide by)
    DENSE_RANK() OVER (PARTITION BY pco.appropriation ORDER BY pco.appropriation,
    pco.fiscal_year ASC NULLS LAST) "Duration Years"
    %SUM = LAST_VALUE of ? SUM(pco.quantity) OVER (PARTITION BY sms.data_source ORDER BY
    sms.data_source, cst.display_nm RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT
    ROW) "Quantity Cum",
    / (divide by)
    SUM(pco.quantity) OVER (PARTITION BY sms.data_source ORDER BY
    sms.data_source, cst.display_nm RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT
    ROW) "Quantity Cum"
    Example of report output:
    DENSE RANK DENSE RANK % SUM SUM %
    1 10% 10 10%
    2 20% 20 20%
    3 100% 30 100%
    1 10% 10 10%
    2 20% 20 20%
    I appreciate your help to implement LAST_VALUE function for this case. Many thanks in advance.
    Rob.
    Edited by: user10455955 on Dec 17, 2008 9:25 AM

    Hi Rod,
    Thank you for replying. My intentions are:
    1. to get last value of DENSE_RANK(), and divide by fisrt until last DENSE_RANK() value within defined partition.
    Example: I have DENSE_RANK() from 1 to 7, and want to divide last value (7) by 1, 2,... so on until 7, so last value 7 always renders 100%
    2. to get last value of cumulative total, and divide fisrt until and last cumulative total value within defined partition
    Example: I have 3 values 1, 2, 3. Fisrt cumulative total is 1 , second cumulative is 3 (1+2) , third cumulative is 6 (1+2+3). I want to divide last cumulative total 6 by 1, then 2, then 3.
    Thanks again.
    Rob.
    Edited by: user10455955 on Dec 22, 2008 9:16 AM
    Edited by: user10455955 on Dec 22, 2008 9:18 AM

  • How to get structure from Idoc using function module?

    Hi all,
    I am looking for a function module in order to get the structure of a message type used for iDoc. The aim is to get the data element from the different fields in order to check authority if the data element is BUKRS.
    Thanks for your help!
    David

    Hi David,
    You can use the FM "IDOC_TYPE_COMPLETE_READ" which will get you the complete details of the IDOC type along with data elements referred for each fields in the segments.
    The aim is to get the data element from the different fields in order to check authority if the data element is BUKRS.
    Not sure if i understood the above requirement, if you could provide more info on the requirement, i guess you might get better a better solution from the forum. As there are other data elements with different names for company code (just look up *BUKRS* in SE11 under Data Elements to see what i mean), not sure if you can cover it all.
    Regards,
    Chen

  • How to get response from a servlet which depends on cookies?

    guys,
    i have a servlet which behaves differently based on the presence of a cookie or not. If cookie A is present in the machine it shows the the home page and if not it shows the login page.
    now i want to get the home page HTML content from a program without using the browser. i am aware this can be done by using java.net.URL but how do i simulate the cookie given that i know that's the cookie name and value it expects?
    Unfortunately i cannot paste the servlet code as it is a servlet of a product and i don't have the source code for it.
    Thanks
    S

    I believe you use URLConnection.setRequestProperty(), with the key being "Cookie".

  • How to get response from ActionableEmail

    Hi Helping hands,
    I have created HumanTask which is able to send actionable emails with links like (APPROVE,REJECT) & worklist application.
    If I act on the task through worklist I'm getting the response to my BPEL process.
    If I do the same by clicking the APPROVE link in the email, it opens a new email window without TO address but it contains subject and body as
    NID:iBeS8jSTsA7vOx+ULF3+dJ7/e1fbklcDLkGHlkj38emd71NnzMgQMN89C0RxaPzu2PPgelhp+hvQAhRwUYMWJw==:NID
    Comments [[ ]]
    I want to get the response of the task action in the BPEL process.
    Looking forward for your help.
    Regards
    VIki

    Hi,
    You need to declare the ODGOVOR variable in the TOP include, then you will get the value
    Regards
    Sudheer

  • How to get BOOLEAN from STORED FUNCTION

    We are calling legacy PLSQL stored procedures and functions via named queries. This has worked fine so far, but there are some functions which return the type 'BOOLEAN'. e.g.
    FUNCTION some_function( some_argument IN NUMBER) RETURN BOOLEAN;
    Where the return type is BOOLEAN calling the named query fails with
    Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00382: expression is of wrong type
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Error Code: 6550
    A couple of threads have hinted that what we are trying to do is not possible:
    How to get BOOLEAN from STORED PROCEDURES
    Re: Creating Named Query: from OracleCallableStatement
    This would possibly be due to 'restriction in the OCI layer'. Can anyone help? Is there really now way to call a valid PLSQL stored function via a named query when the return type is BOOLEAN?
    thanks

    I can't comment on possible issues you might have with the driver, but if it can be done in JDBC, it should be possible in TopLink.
    TopLink has the StoredFunctionCall which extends the StoredProcedureCall but adds an unnamed ouput parameter in the first spot of its parameter list. You will need to get the databasefield and set its type to BOOLEAN ie:
      DatabaseField returnField = (DatabaseField)yourStoredFunctionCall.getParameters().firstElement();
            returnField.setName(name);
            returnField.setSqlType(Type.BOOLEAN);Be sure not to use the setType() method, as I believe TopLink will try to use the Type.BIT when a boolean class is used as the classtype.
    Best Regards,
    Chris

  • How to get acknowlgmnt from EFT (debt card swap) machine from swing app.

    Hi,
    Please some 1 let me know how to get acknowlegdement from EFT ( debit card Swap) machine once it is connected to the computer.
    I have a code which seems to have no errors ut it I am not sure whether the EFT machine will be able to send or recieve the data once the car is swaped. because i dont know what is the response of the EFT machine when connected to the computer though a java swing class.
    I know it will be quite tidious job for you to go through my program but this is all i can do...or atleast give me a link where i can refer to such case.......I am using eclipe Ide....and have searched alot on google too......

    Vish_1x1 wrote:
    Hi,
    Please some 1 let me know how to get acknowlegdement from EFT ( debit card Swap) machine once it is connected to the computer.What do you mean by "acknowledgement"? You realise it needs some sort of authorising host in order to authorise, right?
    I have a code which seems to have no errors ut it I am not sure whether the EFT machine will be able to send or recieve the data once the car is swaped. because i dont know what is the response of the EFT machine when connected to the computer though a java swing class.Mumbo-jumbo
    I know it will be quite tidious job for you to go through my program but this is all i can do...or atleast give me a link where i can refer to such case.......I am using eclipe Ide....and have searched alot on google too......Where did you get this "EFT machine" (whatever that is)? Do you mean a card reader? An EMV terminal? A PDQ? What? Where did it come from? Start there. If you need to get this thing working, you must be part of an enterprise, which has access to resources such as hardware vendor support, merchant banking services and EFT software vendors. If you're not, then you might as well abandon all hope of using this machine to take cards on your own, because you can't. End of story
    And, no, nothing to do with Java

  • How to get info from a layer which is  applied  with styles  ?

    How to get info from a  layer  ?  such  as   (  apply  style  or  not , which  effect  have  applied  on  it  etc..)
    I  really  can't  solve  it , Who can hlep me..  By the way , I 'am  using  CS version.  

    xtools/xlib/Styles.js has a set of functions for working with layer styles. I do not know if it works with CS. I wrote it several years ago for either CS or CS2. If this doesn't work, then nothing will. The script retrieves a layer's style by saving it to disk then parsing the file for the desired ActionDescriptor.
    There is a function at the bottom of the file that tests the Styles.js API.
    Styles.test = function() {  var doc = app.activeDocument;
      var layer0 = doc.artLayers[0];
      var gdesc = Styles.getLayerStyleDescriptor(doc, layer0);
      if (!gdesc) {
        alert("There is no layer style associated with the layer");
        return;
    //   this will set the layer style to another layer.
    //   var layer1 = doc.artLayers[1];
    //   Styles.setLayerStyleDescriptor(doc, layer1, gdesc);
      if (!gdesc.hasKey(cTID('FrFX'))) {  // look for a stroke effect
        return;
      var frfx = gdesc.getObjectValue(cTID('FrFX'));
      if (!frfx.hasKey(cTID('Clr '))) {   // look for the color
        return;
      var clr = frfx.getObjectValue(cTID('Clr '));
      // we should really check that the objectType is RGBC
      var r = clr.getDouble(cTID('Rd  '));
      var g = clr.getDouble(cTID('Grn '));
      var b = clr.getDouble(cTID('Bl  '));
      if (r == 0 && g == 0xFF && b == 0xFF) {
        return;
      clr.putDouble(cTID('Rd  '), 0);
      clr.putDouble(cTID('Grn '), 0xFF);
      clr.putDouble(cTID('Bl  '), 0xFF);
      frfx.putObject(cTID('Clr '), cTID('RGBC'), clr);
      gdesc.putObject(cTID('FrFX'), cTID('FrFX'), frfx);
      Styles.setLayerStyleDescriptor(doc, layer0, gdesc);

  • How to get sysnr value in a Function Module

    Hi all,
    I need to get the sysnr(system number) value of the R/3 system. I execute a RFC function module and need to get the value of sysnr of the system it executes in as a return parameter. Can somebody tell me how to get this value in the function module and return it.
    Thanks and Regards,
    Pratik

    Hello Pratik
    The system number has to be defined in the RFC destination. Thus, select on your local system (where you call the RFC function module) the corresponding RFC destination from table <b>RFCDES</b>. In field RFCDES-RFCOPTIONS you will find a string like this:
    H=<ip address>,S=21,R=N, ...
    S=system number
    Regards
      Uwe

  • How to get value from list item

    Hi all,
    How to get value from list item?
    I have a problem with the List Item object
    in the Oracle forms.
    How can I retrieve the selected item from
    a list ?
    I didn't find any function like 'list.GET_
    SELECTED_ITEM()'...
    thanks
    Bala

    Hello,
    You get the value as for any other Forms item:
    :value := :block.list_tem ;Francois

  • Not getting Response from RFC

    Hi,
        I am doing RFC to File. I could generate the FILE successfully. But I am not getting Response from RFC. I am getting empty payload. I am doing with out BPM. I did succesfully File-RFC-File. but here RFC is the sender. I have some doubts  in defining Interface mapping and Message Mapping. Is this a Syscronous scenario by default ?
    If I want to get the resonse of RFC to a file. How many Receivers and Senders do i need to create?
    Regards,
    Varun
    Edited by: Varun on Sep 9, 2008 1:00 PM

    hi,
    Map Rfc.response to the File; hence rfc sender adapter and file receiver adapter..one sender n 1 receiver.Remember:
      1. In the report that makes the call to XI , make sure that you use call RFC in a background task.
      2. Make sure you use Commit Work at the end of the report.
    Follow:
    Send RFC to SAP XI – Asynchronous
    Also pls visit
    Re: RFC to FILE
    for the same scenario.
    Thanks,
    Durga
    Edited by: NagaDurga Nannapaneni on Sep 9, 2008 10:55 AM

  • How to get answers from forum

    Hi,
    Just wondering, how to get answer from forum.  Some time, for simple question, I don't see anybody replying. 
    Is there any other platform we get define answer or is there any support who can connect to our system suggest resolution?
    Thanks,
    -Anand

    anand_gp wrote:
    Just wondering, how to get answer from forum.  Some time, for simple question, I don't see anybody replying.
    If it's really a simple question, then most people probably think the poster can get the answer from the documentation, or by searching the forum for previous answers.
    However, most of the time, it's not that the question actually is simple. It's usually a question that is being asked simplistically, making it nearly impossible to answer (or often even understand). To get an effective response to a question, it needs to be the right question, asked in the right way.
    Describe the the problem/requirement (not the attempted solutions) in detail:
    How to ask questions
    Re: 2. How do I ask a question on the forums?
    Include as much relevant information with the question as possible, starting with:
    APEX version
    DB version, edition and host OS
    Web server architecture (EPG, OHS or APEX listener), server platform, and host OS
    Browser(s)/version(s) used
    UI/Theme
    Templates
    Region type (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. To get a detailed answer then it's appropriate for the questioner to take on a significant part of the effort by reproducing the problem on apex.oracle.com before asking for assistance with specific issues, which can then be seen at first hand in a real APEX environment.

  • How to Get Millisec from Sysdate

    Hello all
    How to get millisec from sysdate.
    Pls let me know da query ..

    You can't get milliseconds from SYSDATE. In 9i and upwards you can get them from a timestamp, whether it be from the built-in functions SYSTIMESTAMP and LOCALTIMESTAMP or a timestamp column/variable of your own.
    Unfortunately, Oracle only supplies the means to extract seconds, but fortunately, this includes the millilseconds, which are easy enough to get to as the following demonstrates:-
    SQL> select extract(second from localtimestamp) from dual;
    EXTRACT(SECONDFROMLOCALTIMESTAMP)
                   42.765535
    SQL> select mod(extract(second from systimestamp),1) from dual;
    MOD(EXTRACT(SECONDFROMSYSTIMESTAMP),1)
                          .181223Regards
    Adrian

Maybe you are looking for

  • Automati-payment

    in automatic payment programme we can use the house banks:- as like this:- SBI                   ICICI                   HSBC                   CITI BANK  MY REQUIREMENT IS THE I HAVE ONLY PAYMENT FOR THE HSBC is it possible or not if possible how (g

  • How to Trace the Changes in Database

    I Need a Script file for Database changes in day to day action. For Example, Whiche user in which table in which action at what time what changes made in Database. Plz reply ASAP.

  • Tree view applet

    hi there i would like to desgin a tree applet that goes into my web page. When someone clicks on one of the children (a file) i would like that file to open in another frame in my web page. Could anyone help me? I am not the greatest programmer in th

  • Server socket needs to sends images to applet

    Dear expert programmers I've got a simple socket server ruuning on my machine which accepts a connection from an applet on an arbitrary port. The problem I have is that it needs to "CONSTANTLY" take screenshots of the desktop and send them to the app

  • 1T external HD and my macbook OSX 10.4.11

    I believe that I have been backing up my HD to an external HD INCORRECTLY. Now that I have given it some thought and research and now that I have a 1T external HD I'd like to do it right. However, I have 89G of music plus a few previous system backup