Value has to be entered for an optional parameter for WS

Hi,
I have created a webservice from a PL/SQL package using the below tutorial.
http://st-curriculum.oracle.com/obe/jdev/obe1013jdev/10131/wsfromplsqlpackage/devwsfrom%20plsql.htm
I wrote my package to get the user status from fnd_user table. The package/procedure cannot get simpler than this. There are 2 input parameters (optional) and 1 output parameter. I am able to call this pkg-proc from SQL Plus and everything works fine. I can pass either of the 2 input parameters and the procedure returns the correct information depending upon what is passed. However when I exposed this as a web service, and if I do not pass the user id parameter, I get "Caught exception while handling request: deserialization error: java.lang.NumberFormatException: For input string: """ error. I tried nillable="true" and minOccurs="0" for user id but still it seems the web service is forcing me to enter the value for user id parameter. The other way works i.e. if user name is left blank.
If I change the data type for the 1st parameter (p_user_id) to varchar2, then the WS returns proper info. Seems like nillable="true" works for string (varchar2) datatype but not for integer or number.
Any help will be truly appreciated. Thanks.
CREATE OR REPLACE package xxcc_ws is
  procedure Get_User_Status (
     p_user_id                      IN  INTEGER  DEFAULT 0
    ,p_user_name                    IN  VARCHAR2 DEFAULT NULL
    ,p_ret_msg                      OUT VARCHAR2
END xxcc_ws;
CREATE OR REPLACE package body xxcc_ws is
  procedure Get_User_Status (
     p_user_id                      IN  INTEGER  DEFAULT 0
    ,p_user_name                    IN  VARCHAR2 DEFAULT NULL
    ,p_ret_msg                      OUT VARCHAR2
  ) is
    lr_fu_rec       apps.fnd_user%ROWTYPE;
  begin
    select *
    into   lr_fu_rec
    from   apps.fnd_user
    where  user_id = nvl(p_user_id, user_id)
    and    user_name = nvl(p_user_name, user_name);
    -- warn if the person is end dated
    if lr_fu_rec.end_date is not null then
      p_ret_msg       := 'WARNING:Person is end dated as of '||to_char(lr_fu_rec.end_date,'mm/dd/yyyy');
    else
      p_ret_msg       := 'SUCCESS:'||lr_fu_rec.employee_id||':'||lr_fu_rec.email_address;
    end if;
    return;
  exception
    when others then
      p_ret_msg      := 'ERROR:'||sqlerrm;
      return;
  end Get_User_Status;
END xxcc_ws;
/Edited by: user13163442 on Nov 8, 2010 8:29 AM

Hi
I have tried pl/sql package via SOA gateway and it worked.

Similar Messages

  • Error while deleting the confirmation- Reason has to be entered for 102

    Hi,
    When i try to delete the confirmation for Goods, an error -"A reason has to be entered for movement type 102" is occuring. I have maintained the reason for rejection in the document tab at the line item level while deleting the confirmation.The reason for movement field is mandatory in R/3 system for movement type 102. I have maintained this reason for rejection that has maintained in the R/3 system in the SRM config and able to select that during deletion of confirmation, but still i am getting this error. Please suggest.
    Regards
    GGL

    sorry for the very late reply..
    Note 1345896 - Error due to reason for movement when deleting the GR in EBP
    When we try to delete a goods confirmation with the Reason for Rejection text in SRM, we get the error "A reason has to be entered for movement type 102" (M7 325) thrown from the backend R/3 system.
    Other terms
    M7 325, RREJ, Reason for Rejection, MOVE_REAS, c_subtype_ca, LBBP_CFF60, FORM mapping_gr_for_backend.
    Reason and Prerequisites
    This is caused by a program error
    it helps aothers too

  • HUMO-A reason has to be entered for movement type 344

    Hi All,
    We currently have the system configured to enter a 'reason for movement' for movement type 344 and this field is marked as required in the movement type configuration. We have configures the transactions allowed for the movement type and HUMO is one of them.
    When I try to post the same HU using the path 'Edit-> Change HU Posting-> Other Postings->Process-> Transfer posting unrestriced to blocked', it prompts me for a 'Reason for Movt' and allows me to post it to a blocked stock.
    However, when we try to post an HU to blocked to stock using the path in HU monitor 'Edit-> Change HU Posting->In Blocked Stock', the system gives an error 'A reason has to be entered for movement type 344'. Please note, it does not even prompt me to enter a reason for the movement.
    Is there a configuration node to have the above error corrected? Or is there any SAP note which could help us solve the problem? We are aware of the SAP note 1679167 for transaction VLMOVE but not sure the same would actually correct the issue for HUMO. Any help in this regard is appreciated.

    Hello Biswajit,
    unfortunately, as far as I can see in source
    SAPLHUMO                 
    / LHUMOF04
    FORM                     
    / TRANSFER_POSTING_HU
    during debugging, there is no GUI code to ask user for a reason. So it's a lack of functionality.
    I think you can add this by an implicit enhancement around FORM transfer_posting_hu asking user e.g. with function module call POPUP_GET_VALUES_DB_CHECKED.
    But transfering the entered reason down to the MM posting seems also not so easy because reason field "GRUND" may not visible in that callstack level.
    Hope that helps you along
    Best regards,
    Matthias

  • How to tell if column value has changed for use in workflow actions

    Hello,
    I am using Sharepoint 2010 and for one of my Lists, I am using a general list workflow.  What I need to be able to do is determine if a column value has change (say an "Assigned To" field) because I only want to take some action if that particular
    value has changed.  I want to be able to have a workflow action that would be something like:
    If Current Item: Assigned To not equals [OLD VALUE]
    I have found some web searches that talk about creating a duplicate list or duplicate (but hidden) column but that doesn't seem to be the way to go.  I have document versioning set but don't if that can be used to help with this.  One possible
    thought (although I haven't tried it to see if it works) is to create local variables and have the values in the variables be the "old value".  Just not sure if there is a best practices for doing this.
    Thanks for any thoughts - Peter

    Helen,
    Not sure I fully understand your goal.  We don't use "tasks" at all but if you are looking to have your workflow check certain valus and be able to send email messages to people based on whatever, then you can certainly do that (as long as your Sharepoint
    has the email setup.  We do this for alot of workflow tasks.
    So, in the workflow you can have a blanket statement like what I previously listed:
    if Current Item:hiddenStatus  not equals Current Item:Status
        .... do something
    or you can do something like:
    if Current Item:hiddenStatus equals "In-Progress"
        .... do something
    Else if Current Item:hiddenStatus  equals "Completed"
        .... do something
    or combine the two and do nested "if" statements.  Then you add an email statement wherever you need it like:
    if Current Item:hiddenStatus  equals "Completed"
       then email "these users"
    To add the email part, just type in "email" on the line where you want to add a statment.  There is only one option to choose from.  That will display the line "then email these users".   The "these users" will be a link.  When you
    click it you will get a popup to add the email info.  We typically will send the email to a user (or users) that are already listed in one of the PeoplePicker fields.  On the email form, you can type in your own text, designate that a value is based
    on a column value (like our PeoplePicker), designate that a value is based on a workflow variable, add a link to the current item, etc.  To get to these options you will click the button to the right of the fields or use the "Add or Change Lookup" button
    in the bottom-left for the text area.  There is alot you can set in the mail.
    Does this help answer your question?
    - Peter

  • The iPad says disabled connect to iTunes. When connected it says please enter passcode. There is no places for me to enter a passcode. This has been like this for many DAYS...not hours. HELP!

    The iPad says disabled connect to iTunes. When connected to iTunes it says please enter passcode. There is no places for me to enter a passcode. This has been like this for many DAYS...not hours. HELP!

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Value not found in allowed list of options for field...

    Hi,
    I'm using RIDC on UCM 11g in order to checkin contents.
    UCM hosts different projects.
    I've the following problem: if somebody (from a different project) insert a new Information Field (e.g. xAnnoPubblicazione) of type Integer - Option List - Select List Validated and it does not make a default value for this field, when I perform checkin using RIDC, it fails with the error:
    "oracle.stellent.ridc.protocol.ServiceException: Content item 'UCMRE010132' was not successfully checked in. Value not found in allowed list of options for field 'xAnnoPubblicazione'.
    How can I solve this issue? what's the recommended way?
    Thank you very much.
    Best regards,
    S.

    In the database language, you have created a NON NULL column and you are trying to insert a record with NULL value to the column. Of course, it cannot work.
    There are three options:
    - do not declare the field as NON NULL (that is, you option list has to contain 'blank' as a possible value)
    - provide the value on insert
    - provide the default value

  • Value to be entered for Version type while populating metadata into Plannin

    Hi
    I have extracted the version dimension from my outline.
    Now i need to push it into Planning 11. I have reversed the planning dimension 7 using the version dimension to push value.
    After extract, the version type comes under UDA as "Standard bottom up, Public". I split the string into 2 columns as version type & other as UDA.
    I mapped the version type column at source to version type (in planning) at target.
    On executing the interface, it generated the following error log:
    Final Version,Version,,Never Share,,,,Public,Standard Bottom Up,~,Cannot load dimension member, error message is: java.lang.IllegalArgumentException: Invalid value for field Version Type: Standard Bottom Up.
    REV 1,Version,,Never Share,,Release 1,,Public,Standard Bottom Up,~,Cannot load dimension member, error message is: java.lang.IllegalArgumentException: Invalid value for field Version Type: Standard Bottom Up
    What value should be entered for version type??
    Moreover if there is any doc/pdf which provide details about the different values that can go into Planning dimensions, please share.
    Thanks in advance
    Edited by: user8628169 on Jan 18, 2010 4:40 PM

    Hi,
    The value should be "Bottom Up" or "Target", have a read here for the properties
    Ok?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Messages has replaced all my text with a load of letter A's in boxes. What is that all about. When I type a new one it is fine until I hit enter then the same thing applies. Has anyone a fix for this?

    Messages has replaced all my text with a load of letter A's in boxes. What is that all about. When I type a new one it is fine until I hit enter then the same thing applies. Has anyone a fix for this?
    Picture below, many thanks for your help.
    Jason

    Back up all data before proceeding.
    Launch the Font Book application and validate all fonts. You must select the fonts in order to validate them. See the built-in help and this support article for instructions. If Font Book finds any issues, resolve them.
    Start up in safe mode to rebuild the font caches. Restart as usual and test.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t start in safe mode. In that case, ask for instructions.
    If you still have problems, then from the Font Book menu bar, select
              File ▹ Restore Standard Fonts...
    You'll be prompted to confirm, and then to enter your administrator login password.
    Also note that if you deactivate or remove any built-in fonts, for instance by using a third-party font manager, the system may become unstable.

  • My time capsule says it only has 473.24 gb for my back up of 534gb.  the only back up I can access when I enter the time machine was yesterdays so what has happened?

    my time capsule says it only has 473.24 gb for my back up of 534gb.  the only back up I can access when I enter the time machine was yesterdays so any idea what is happening? I have the latest irmware update.
    Marmimag

    There is an issue with latest Lion update.. it is killing TM.
    https://discussions.apple.com/message/19858557#19858557
    Otherwise check via the airport utility if there is something else using space on the hard disk.

  • How enter the values in to table when create entries option is not working

    hi everyone,
         can u please tell me How enter the values in to table when create entries option is not working.
    it's urgent.
    thanking u all

    Hi Shree,
    how many entries u want to insert ,,
    is it a ztable or custom table ..
    just tell me ur clear requirement ..
    clarify the same ..
    if no options avaliable then if its less entries or some value u can do it through debugging ..
    if its bulk entries then u can write a program ..
    just let me know ..
    regards,
    VIjay

  • A value must be entered for ---- Error

    Hi,
    I have a create page with many "required" items. After entering value for a few items, if I click on date picker to enter value for a date item, it raises "A value must be enter for " error for all "required" items that don't have any value yet.
    How to disable the form validation when we click on Date LOV/picker? Any help would be greatly appreciated.
    Thanks.

    Hi,
    some more information on the problem ....
    I have a "fireAction" defined behind the item. The "submit" associated with the event fires the validation. If I remove the event, I dont get the error.
    Is there any way to avoid it?
    Thanks

  • DIM-00035 You have entered and invlaid option for the -EDIT command

    Hi Experts,
    I am creating oracle instance using oradim utility. I am using oracle 9.2 on windows 2003 server.
    I have installed oracle 9.2 and created ORCL database as part of installation. Now I have deleted ORCL database using DBCA. Now I try to create a new DB instance.
    I ran the below command:
    c:\>oradim -NEW -SID <sidname> -SRVC OracleService<SID> -INITPWD <password> -pfile <pfilepath>
    I am getting the below error:
    DIM-00035 You have entered and invlaid option for the -EDIT command
    Please help me why I am getting this error even though I am creating new service.
    Thanks.

    The definition for INITPWD is:
    -INTPWD password is the password for the new instance. This is the password for the user logged in with SYSDBA privileges. Option -INTPWD is not required. If you do not specify it, then operating system authentication is used, and no password is required.
    The passwords for SYS and SYSTEM are created later - when the database itself is created. Nevertheless the error message is strange, there is no -EDIT option in the command. Moreover -NEW and -EDIT are mutually exclusive.
    Werner

  • I just bought the cretive cloud. For 20 euros per month, and when I dowloaded Illustrator it tells me that the trial has expired and gives me the option to buy. Why?

    I just bought the creative cloud. For 20 euros per month, and when I downloaded Illustrator it tells me that the trial has expired and gives me the option to buy. Why?

    Hi Florencia33,
    Please check if you are signed into the Creative cloud with the correct email ID under which you have subscribed.
    Please refer to the steps as mentioned in the help document:
    Sign out, Sign in | Creative Cloud Desktop app
    Regards,
    Sheena

  • All default routing value has to be changed, while changed the work center in production order

    Dear friends,
    our client they want to change the work center in production order.according to production version work center also they are changed.so while change the WC,all the default value has be changed as per routing what we maintained in routing.At present we have to enter the manually change the W.C as well as set up time and operation time enter manually.Any other option to do the automatically capture value from routing while change in Work center in production order.pl help me on this.
    Thanks&Regards
    Sabhapathy R

    Hi Rahul,
    Thanks for reply. I am maintained in diff value  maintained routing , Ex :First routing i have  work center 'X' value maintained as a setup time in 15 Min's and operation time 10 Min's
    second work center 'Y' I have maintained as set up time 10 Min's and operation time 30 Min's,
    Now I want to change the work center in production order as a 'Y' so whatever value maintained in routing , it has to be changed automatically (10 min's and 30 Min's), but system will not change only old value only picked (15Min's AND 10 Min's).
    Now I think you get to know what the client requirement, kindly do the need full.
    Regards,
    Sabhapathy R

  • How to pass value to select-option parameter using SET PARAMETER Command

    Hi,
        Am passing values to selection-screen fields in report RV13A004 ( used in VK11, VK12 and VK13). using below statement but material number is select-option in this report. am able to pass  MATERIAL FROM using SET PARAMETER ID, can i know how to pass values MATERIAL TO range in select-options fields using SET PARAMETER Command ??
    Passing values to parameter id
    set parameter id 'VKS' field kschl.
    set parameter id 'VKO' field vkorg.
    set parameter id 'VTW' field vtweg.
    set parameter id 'KDA' field erdat.
    set parameter id 'MAT' field matnr_from.
    Change condition price.
    call transaction 'VK12' and skip first screen.
    Thanks in advance.
    Regards,
    Balamurugan.

    Hi,
    instead of using set parameters and dden call transaction use this..........
    submit RV13A004  WITH SELECTION-TABLE rspar
    Effect
    If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
    SELNAME (length 8),
    KIND (length 1),
    SIGN (length 1),
    OPTION (length 2),
    LOW (length 45),
    HIGH (length 45).
    To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
    SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
    KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
    SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
    If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
    The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
    Notes
    In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.
    When entering values, you must ensure that these are entered in the internal format of the ABAP values, and not in the output format of the screen display.
    Cheers
    Will.

Maybe you are looking for

  • How to set UOO(bea_unitoforder) property within BPEL Adapter property

    Hi, In oracle documentation JMS message payload field values can be used as correlation properties. Correlation property aliases are used to define from which payload field the correlation property value is taken. I need to set the correlation proper

  • Sign in document forms??

    Where are the sign in document forms?

  • Getting build

    I'm getting build for stuff I did not buy

  • Trouble with SyBase driver in WebLogic 5.1 SP 7

    Dear all, I modify weblogic.properties to set up DataSource connects to SyBase DB (I use JConnect 5.0 driver). Everything is OK. But I got ClassCastException when I try to cast from ResultSet to SybResultSet. Do you know that bug? Anyone can help me?

  • Unable to get Linksys smart wifi to work...I NEED HELP!

    I am unable to benefit from the additional tools from Smart Wifi for EA3500. I have the the account, the password, but when I login it says you need to associate your router with your system...I've tried myrouter.local, linksyssmartwifi, enter the pa