How to manage optional output parameters in an object method ?

Hi Abapers,
I've a little coding point to clarify in object programming :
I've defined an output method parameter as optional.
I want to prevent execution error with the following test :
IF et_my_ouput_paramer IS REQUESTED.
   APPEND LINES OF lt_my_data_found TO et_my_ouput_paramer . "*(or other value affectation, no matter)
ENDIF.
When activating the code, I obtain the following error :
"IS REQUESTED" is allowed only with function parameters. This means
that it is allowed only within the relevant function module and not
with pure incoming parameters.
Effectively, I usely use "IS REQUESTED" for module-function... What's the correct syntax in object method ?
Thanks in advance.

OK, guys, it was a very tricky and basic error...
Sorry for this topic, I mistake in declaring type of my parameters.
Keep programming Quietly !
Have a nice day.

Similar Messages

  • How to view multiple output parameters from web services

    I have used the Labview tool to create a .NET assembly from a WSDL file.
    In the WSDL file the service has been defined to return 2 output parameters.
    In Labview, when I invoke the method for this service the first output parameter ends up as the return value of the method.  I can create an indicator for this and it gets updated properly when I run the VIS to use the web service..  The indicator is an integer value but recognizes the type defined within the WSDL file. 
    The second output parameter shows up as an output value.  When I right click on it and create an indicator for it I get a .NET icon on the front panel rather than an integer value. 
    How can I view the value for this second output parameter after running the web service?
    Is there a difference in how multiple output parameters handled in newer versions of Labview (I am using verison 7.1)?

    scrooge wrote:
    You can try this link .
    the link is dead... or i dont have access..

  • How to allow multiple output parameters in a user-defined service operation???

    I have creating a self-defined service operation “LDAPAddUser” to connect to LDAP server to create user accounts. I want to get 2 output parameters after executing the operation. One is the result (Boolean data type) and one is the error message (String data type). However, since Java only support one return value in a method, it seems that only one output parameter can be returned. May I have the suggestion so that multiple parameters can be supported in this case? Here is the extracted code
    In Java program,
    public Boolean addUser(String url, String aName)
    In file "component.xml",
         <operation name="addUser" method="addUser" orchestrateable="true" anonymous-access="true">
      <hint>Add a new user</hint>
         <input-parameter name="url" type="java.lang.String" required="true" title="LDAP URL">
         </input-parameter>
              <input-parameter name="aName" type="java.lang.String" required="true" title="Admin Login Name">
         </input-parameter>
              <output-parameter name="Result" title="Result" type="java.lang.Boolean">
              </output-parameter>
    Besides the boolean return value, I want to get another return value (string data type). Any suggestion ?

    I've returned multiple values to LiveCycle by using a complex object as an intermediatory.
    For example if I need to return two strings (firstName and lastName), I'll first build a single class (name) with two string attributes (private String firstName; private String LastName) and add getters and setters to my "name" class for each.  My service class method will return an object of type "name".
    for example  public name mymethod(String GUID, String username, String password).......
    Then in the component.xml you can return the two strings as long as you use the binding type "Bean":
    <output-parameter name="firstName" title="First Name" binding-type="Bean" property="firstName">
                        </output-parameter>
    <output-parameter name="lastName" title="Last Name" binding-type="Bean" property="lastName">
                         </output-parameter>

  • How to manage different supply parameters for the same item based on demand quantity?

    We are using unconstrained ASCP.  We have some products that can be produced in a 'small' machine or can be produced in a large tank.  If ASCP has created a planned order for a quantity less than 1000 it will be made on the small machine with the supply quantity = demand quantity.  For example, we have a demand of 250, we will make exactly 250 on the small machine.  But if the demand quantity is greater than 1000 we will make the supply in the tank with a fixed order quantity of 1590.  Financially it will cost us less to do this and scrap the difference because the small machine is very expensive to run compared to the tank.
    The challenge is, say we need 1200.  ASCP generates a planned order for 1200 and all the dependent demands support 1200.  Now we want to make 1590 and we are short of materials.  This assumes we have set the item with no supply parameters.  On the other hand, if we set a fixed order quantity of 1590 but only need 100 then we we have to scrap the materials for the balance due to a short shelf life.
    Any ideas how to set a supply quantity using different parameters based on the demand quantity?
    Mark Madal

    Hi Mark,
    I personally don’t see any standard solution for this requirement especially with an unconstrained plan.
    However, if it is feasible, you can try below solution with a 'constrained plan with decision rules enabled' and check if it works,
    1.   1. Define two different items – Item A and Item B
    2.   2. Item A uses small machine in its routing and can have any demand that is below 999. So, Max order quantity = 999.
    3.   3. Item B uses Large Tank in its routing and is a substitute of item A. Also, fixed order quantity = 1590.
    4.   4. Define component substitution relationship between A and B. A and B will have identical BOM.
    In a constrained  plan with decision rules enabled, optimization logic will ensure that planned orders are generated for Item A whenever there is demand below 999. And for Item A, supply will always be equal to demand quantity. When the demand is more than 999, optimization engine will select substitute item B and will generated fixed supply of 1590 for it.
    Check if this satisfies your requirement.
    Regards,
    Durgesh P
    (Please mark this post helpful or correct, if answered)

  • How to view SYS_REFCURSOR output parameters in TOAD

    Hi Team,
    Here is my procedure which was compiled succesfully...
    procedure SLA_FAILURE_PR_SR(
    startdate_i IN DATE,
    enddate_i IN DATE,
    pacifictimezone_i IN VARCHAR2,
    extranet_user_i IN VARCHAR2,
    severity_i IN NUMBER,
    reportRC_o out sys_refcursor
    IS
    BEGIN
    logpkg.info ('Begin ramOpsReportSummaryPkg.SLA_FAILURE_PR_SR');
    open reportRC_o for
    SELECT
    customer "Client",
    case_id_ "Case ID",
    to_char(aradmin.datepkg.unixTimeToDate(create_time, 'PST', 'Y'),'MM-DD-YYYY HH12:MI:SS PM') "Created",
    to_char(aradmin.datepkg.unixTimeToDate(resolved_time, 'PST', 'Y'),'MM-DD-YYYY HH12:MI:SS PM') "Resolved",
    total_downtime__min_ "Down Time",
    assigned_to_group_ || ' ' || ASSIGNED_TO_INDIVIDUAL_ "Group Assigned",
    reason_for_missed_sla "Reason For Miss",
    assigned_to_group_ "Group That Missed",
    internal_mgmt_summary "Ops Mgmt summary",
    follow_up_proactive_actions "Follow-Up Proactive Actions"
    FROM aradmin.hpd_helpdesk
    WHERE
    create_time >= datepkg.dateToUnixTime(TO_DATE(startdate_i,'YYYY-MM-DD'),pacifictimezone_i)
    AND create_time < datepkg.dateToUnixTime(TO_DATE(enddate_i,'YYYY-MM-DD')+7,pacifictimezone_i)
    AND extranet_user=extranet_user_i
    AND severity = severity_i
    AND (MET_RESOLUTION_SLA_=0 or MET_CONTACT_SLA_=0);
    logpkg.info ('END ramOpsReportSummaryPkg.SLA_FAILURE_PR_SR');
    END SLA_FAILURE_PR_SR;
    --The query inside cursor is fetching results. but i couldnt get the results when i executed whole procedure.
    -- Can anyone help on this and give me the procedure how to execute it in toad. I am using oracle 10g and Toad 9.6 versions.

    In Toad type:
    BEGIN
        SLA_FAILURE_PR_SR(
                          DATE '02-01-2013', -- substitute with proper start date
                          DATE '02-18-2013', -- substitute with proper end date
                          'put pacifictimezone_i value',
                          'put extranet_user_i value',
                          1, -- substitute with proper severity
                          :ref_cur
    END;
    /Click on Execute/Compile Statement (green triangle). Variables dialog will pop-up. Choose variable type - cursor and direction out. Cursor content will be displayed in Data Grid pane (click on it to see results).
    SY.

  • How to see option bellow Troubleshooter for Conversion Objects menu

    Hi,
    How can I use this procedure if i dont see nothing below "Troubleshooter for Conversion Objects" menu.
    Procedure
    Access the troubleshooter "Troubleshooter for Conversion Objects" which is assigned to the activity "Start Data Transfer". You could either
    use the Auto-Determination-Modus. All objects which need to be generated again will be determined and regenerated. Please note that the auto-determination-mode might also find other objects which need to be regenerated because settings were changed
    use the Force Redefinition Mode and enter all objects for which you changed the reading type
    Affter regenerating the objects you could continue with the data selection and data transfer.

    It appears that you have some inconsistencies in the customizing. Try to upgrade to the latest SP of TDMS. If that doesnt help create an OSS message to SAP.

  • How to create optional parameters in discoverer 10.1.2

    I am new to discoverer, Can any one tell me how to create optional parameters in Discoverer desktop edition in 10.1.2
    I looked at the following thread which says optional parameters can be created in 10.1.2 but doesn't tell how tro create it
    How to create optional parameters in Discoverer
    Thanks in Advance

    Hi.
    In the thread you quoted Michael Armstrong-Smith says that optional parameters can be created in Plus but not in Desktop and that's true.
    So your question "how to create optional parameters in Discoverer desktop" is already answered in that thread.
    Assume that it is a typo and you wanted to ask how to create optional parameters in Plus.
    Then the answer is simple: Just uncheck the "Require users to enter a value" checkbox when creating new parameter.
    Regards Jakub

  • How to call a (catalog) stored procedure directly in a xsodata file with in/output parameters

    I am new to XS but i managed to enable a table through xsodata:
    service namespace "sap.hana.democontent.epm" { 
      "AA465342"."TMP_HENK" as "TMP_HENK"; 
    But now i am looking for code that can call a stored procedure that has 2 input- and 3 output parameters.... who can help me out with this?

    Hi Vivek, thanks for the quick response!
    I already found that blog, but it does not completely answer my question. i am struggling to get my content procedure working. call the R (catalog) stored procedure:
    the code
    /********* Begin Procedure Script ************/
    BEGIN
        call "AA465342"."MO_PP_SENTIMENT"(SP_IN,SP_OUT) with overview;
    END;
    /********* End Procedure Script ************/
    where it goes wrong:
    : Only table variable is allowed in input parameter in a nested call
    I have defined SP_IN and SP_OUT....
    Can someone give me a clue what i have to change?

  • Output parameters or how to return more than one value

    My RMI server retrieves a list of Strings from the database. I need to return a status code int and an array of Strings to the RMI client. Does anybody have any ideas on how to do this. The only way I have come up with is to return an array of Strings using the first array position as the status code. But this is very ugly. There doesn't seem to be any way to have output parameters. I can use "output parameters" with code that lies in the same app by using wrapper classes or arrays but this does not really apply to a client and server running on different machines. Any ideas?

    Well, my general reaction is that you don't need a status code. (You can instead throw an exception if the status is anything but "OK".)
    However, on the assumption that you really DO need the status, then some alternatives are
    o Return an object that has a status code and an array as member variables.
    o In the call, pass in an object that the server can fill in with the array of strings. have the function return the status code.

  • How to create a selection option or parameters in a subarea of the screen

    Hi Experts,
        My program have a screen 1001 and it is splited into two parts: the first is a Subarea for selection option, and the last is a table control. Now I want to create some selection option and parameters in the first subarea just like we do in screen 1000. Do we have any convenient way to do that?
    Thanks in advance
    Joe

    Hi Joe,
    Yes ,it can be done like below code:
    TABLES : mara.
    SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_matnr FOR mara-matnr,
                    s_matkl FOR mara-matkl,
                    s_mtart FOR mara-mtart.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 1001.
    DATA: number(4) TYPE n VALUE '1001'.
    START-OF-SELECTION.
      CALL SCREEN 100.
    in screen flow logic .write below statements.
    first declare the subscreen area  'AREA' in screen.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    CALL SUBSCREEN area INCLUDING sy-repid number.
    PROCESS AFTER INPUT.
    CALL SUBSCREEN area.
    MODULE USER_COMMAND_0100.
    Reward if useful,
    Regards,
    Talwinder

  • How to convert select-options into parameters

    hi Abapers,
    i have an urgent requirement, iwant to know how to convert select-options into parameters
    on selection screen,is it possible to do.

    TABLES: spfli.
    SELECTION-SCREEN BEGIN OF BLOCK test.
    SELECT-OPTIONS:
                  s_carrid FOR spfli-carrid NO INTERVALS NO-EXTENSION.
    SELECTION-SCREEN END OF BLOCK test.
    Greetings,
    Blag.

  • How to access the power management option?

    I cannot find the power management option in my general settings??? how to find it???

    Hmm... have you searched the app store?  I don't recall ever seeing such an app, but it might be out there.  With the sandboxing that goes on, such an app may be impossible to write, but who knows...

  • I don't have a Bookmarks Manager option in my Bookmarks dropdown, how do I access it?

    I'm using Firefox 4.0 and don't see a Bookmark Manager option when I use the Bookmarks drop down. How do I access it? I want to transfer my bookmarks to a new computer and would like to use the export/import functionality.

    It's called '''Show All Bookmarks''' in 4.o+ versions of Firefox.

  • How to reduce number of output parameters in case of determination engine API

    Hi
    We are using determination engine API to integrate with the third party (OBRM) . In that case all the base/top/intermediate attributes have been sent in xml as output.
    Is there any way to filter out the output parameters as I don't want to send all attributes in output XML.
    Thanks and Regards
    Vandana

    There are the following possible copies of an object that can be made in TopLink.
    - Session cache - copy of object stored in the Session cache, this instance is considered read-only and can be shared. In the case of a shared cache, this copy exists in the ServerSession cache, in the case of an isolated cache, this copy exists in the ClientSession cache.
    This copy can be created whenever a query is executed against a ClientSession, or non-isolated UnitOfWork. To avoid this copy for an update operation, you can query in a UnitOfWork, and set your descriptor's unitOfWorkCacheIsolationLevel to ISOLATE_CACHE_ALWAYS (added in 10.1.3).
    This copy can be created after a inserted object is committed as well. ISOLATE_CACHE_ALWAYS will also avoid this.
    - UnitOfWork working copy. Instance of the object that is modified in the UnitOfWork. This instance must exist as at least one instance is required, unless UpdateAll / DeleteAll / SQL queries are used.
    - UnitOfWork backup copy. This copy is used to track changes to the object. This copy can be avoided if attribute change tracking is used (added in 10.1.3, weaving added in 11g).
    So, it is possible to only have a single copy.
    You can also use a DatabaseSession which only maintains a single copy. You can use Insert and UpdateObjectQuery's, these will update everything and not give you the benefit of change tracking nor a shared cache, but may be useful in batch transactions such as yours.
    -- James : http://www.eclipselink.org

  • How to use Abap Editor(SE38) Test Plan Management Option

    Hi,
    I am trying to use the Test Plan Management option in Abap Editor.
    I could not find any articles/forum postings about it.
    Please guide me on the same.

    hi,,
    go through the below link for help.
    http://help.sap.com/saphelp_erp2005vp/helpdata/EN/06/27185efc5211d1bcfd080009b4534c/frameset.htm
    regards,
    bhavana

Maybe you are looking for

  • Need help with parallel process in background; not able to call FM in bgnd

    Hello,   I am trying since 2 days to solve the issue of parallel process in background without using FPP. For which I want to call function module of class method in new task but to be processed by background process and not dialog. I searched so man

  • Safari silently quits when clicking on a link

    Safari on my mac has developed a tendency to quit abruptly - no "unexpectedly quit" message comes up, it just quits - when clicking on a link. This is not specific to one particular type of link, though it seems to happen more often when the link is

  • Adobe Illustrator CS5 crashes on launch

    Hi - I, like so many others, am having problems running Illustrator since upgrading to Yosemite. At first, the problem seemed isolated to fonts - some of my fonts appeared with angle brackets around them, seemingly indictating that the files were mis

  • Aluminium cable causes slow speed what's Open Reac...

    Hi  I have had Infinity for 12 months and have had speeds issues since day 1. I now have dropped to 6MB down and have never exceeded .5MB up (not a typo 1/2 of 1 MB up) The problem is due to Aluminium cable between my house and the FTC. BT wont repla

  • Problem using SUM BY

    I need to count the number of jobs by year and nature of the job. I need to calculate also the number only by year (to calculate, later, the percentage). To do this, I tried to use the SUM BY statement: SUM("- Misure"."Numero Lavori" by "- Inizio Lav