PO is getting created but showing error is address with status of IDoc - 51

Hi Experts,
I am using IDoc type  - PORDCR103
Process code - copy of  IDOC_INPUT_PORDCR1 (Function Module)
After processing through WE19 it is generating an IDoc number with status - 51 showing error in Address , But it is creating a PO.
My requirement is In status -51 It should not create PO.
Inside IDOC_INPUT_PORDCR1 a Bapi  'BAPI_PO_CREATE1' is used for creating PO. Here In RETURN parameter of BAPI a Row is comming with Message type - E.  Some other messages are also there of type 'S' and 'W'.
After processing ,  PO is getting created with staus - 51.
Please help me .
Thanks
Susanta
Edited by: Susanta22 on Oct 11, 2011 12:29 PM

Hi,
in ur code ur filling the idoc data rcord, control record ryt ..before u append data to idoc data , u r also validating and u might be doing in loop for appening the idoc data.
if there is any error in idoc then it won't distribute the data, it will be in error status only..u can only see the data in WE02. Then u can also change the data in WE02 and redistirbute it via BD87.
if u have any conerns let me know
Regards,
Nagaraj

Similar Messages

  • I just received my i phone 4,inserted Amayim with 4G plan,but showing noservice and bar with emergency calls only screen.Also when i down loaded i tunes to my laptop (windows7) there is an error(9808) message saying i tunes store not supported completely.

    i just received my i phone 4,inserted Amayim with 4G plan,but showing noservice and bar with emergency calls only screen.Also when i down loaded i tunes to my laptop (windows7) there is an error(9808) message saying i tunes store not supported completely.

    first of all the iphone 4 is not a 4G phone
    second it sounds like your iphone could be locked to another operator then the sim you have inserted

  • I have attempted to update my software over 10 times but I get a network connection error. Anyone with the same problem? Got it on the wireless and wired network.

    I have attempted to update my software over 10 times but I get a network connection error. Anyone with the same problem? Got it on the wireless and wired network.

    Disable all Firewalls & Anti-Virus software...try again.

  • Hello I am having all of a sudden with my Face Tiime on MacBook Pro. I can't get it to verify my email address with I have always used. For some reason it had me log back in and now won't verify.It's always worked. No one can reach me. It goes straig

    Hello I am having all of a sudden with my Face Tiime on MacBook Pro. I can't get it to verify my email address with I have always used. For some reason it had me log back in and now won't verify.It's always worked. No one can reach me. It goes straight to my phone instead of my MacBook Pro. Help!!

    Any error message?

  • Is it possible to create in R/3 the invoices with status u0091parkedu0092?

    Hi ppl.
    We are working in EBP with extended classic scenario.
    We want to create invoices in EBP, but we want to create all invoice documents via EDI with status ‘parked’ in R/3.
    We read note 501524 (EDI: Generally parking incoming invoices). The note describes all that we want to do, but the problem is that the Function exit ‘EXIT_SAPLMRMH_014’ does not work for ‘BBPIV’ message type and the ‘IDOC_INPUT_BBP_IV’ function module.
    Is it possible to create in R/3 the invoices with status ‘parked’ for all incoming invoices created in EBP?
    Thanks and regards.

    Raul,
            Did you find a solution for this.
    We want to do the same here.
    thanks
    Sanjay

  • Measuring data mess! Meas.doc gets created,but doesn't update plan!

    Hi colleagues,
    During testing I have encountered weird problem..
    The measuring data, which I fill while TECO for work order stopped being consistent with measurement document list and maintenance plan counter reading in particular..
    So, when i enter measuring data when TECO, the measurement document gets greated (with number!), however it is NOT visible in IK17 and if i go to IK11, it shows the old counter reading (before I entered new data when TECO)..
    What is more, the counter reading field in IP10 DOES NOT get updated as well!!
    Do you have any idea, why that can happen?!
    Thanks in advance

    yes, when i create via IK11 it gets updated and it's visible in IK17 etc.
    while when create meas doc when doing TECO, even though the actual doc is created (with number, e.g. 617), when I go after that to ik11, it would show me prior value (last doc  616) and it wouldn't let me enter new value, issuing first warning message  "1subsequent doc was created"  and then error message "Counter reading in doc. 618 larger than in subsequent doc. 617".. the only way to see meas doc 617 is in IW32 via extras/doc for order/meas doc or via IK12. It is not visible with IK17..
    it's so weird...

  • File to idoc adapter   :IDOC IS POSTED IN XI but showing error EDI partner

    Hi ,
    my interface is working fine but issue is that in Recver R3 system idoc is in errors status 56 (EDI partner profile not available.
    I already define business system which is used to send data from XI.
    My Business system name is testBsys1 for sender XI service.
    In R3 i have created logical system testBsys1
    and in we20 already created partner profile testBsys1
    and also maintain in bound parameter.
    please suggest me where is i am doing mistake.

    Hi Mohit,
    How is the control record of the posted Idoc made in PI? Check the Control Record of The IDoc that is posted in R3, it is not having correct information.
    IF you are not making the control records in PI  mapping, then in the receiver IDoc, keep apply control records from payload as checked.
    Regards
    Suraj

  • TRIED THis CODE for TO FIND THE FIBONACCI USING THREAD ,BUT SHOWING ERROR FOR FOLLOWING CODE  fib = fib(k+1);

    showing following error in line 34
    error: cannot find symbol
    fib = fib(k+1);
           ^
      symbol:   method fib(int)
      location: class FibN
    1 error
    import java.util.*;
    class AsynchFunctionTest
    public static void main(String[]args)
    Scanner in = new Scanner(System.in);
    System.out.print("enter value for n");
    int n = in.nextInt();
    FibN t = new FibN(n);
    t.start();
    try
      t.join();
    catch(InterruptedException e){}
    System.out.println("Fib("+n+") = "+ t.getResult());
    class FibN extends Thread
    private int n;
      private long result;
    public FibN(int nn)
      n = nn;
      public void run()
    long fib = 1;
    int k = 0;
    while(k < n){
    fib = fib(k+1);
    k++;
    result = fib;
    public long getResult()
    return result;

    rinojoseph wrote:
    sorry for that this is the error i getting for that code
    error: cannot find symbol   line 34
    fib = fib(k+1);
           ^
      symbol:   method fib(int)
      location: class FibN
    1 error
    Process completed.
    sorry
    Hmm - well you declared 'fib' like this:
    >
    long fib = 1;
    >
    So how do you expect to call a 'long' as if it were a function?

  • Trans.log file showing  'ERROR = CONNECT failed with sql error 12541'

    Dear All
    We have upgraded our datatabse from Oracle 9.2.0.8 to Oracel 10.2.0.4 on our ECC 5.0 IS-AFS SAP system. When we check version from SQL, it's showing 10.2.0.4. That means database is successfully upgraded. Now, when we login through our <SID>adm user and checking R3trans -d, it is showing
    'This is R3trans version 6.13 (release 640 - 07.01.08 - 14:25:00).
    unicode enabled version
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'V
    AP'"
    R3trans finished (0012).'
    In the trans.log file it is showing,
    4 ETW000 R3trans version 6.13 (release 640 - 07.01.08 - 14:25:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 22.06.2009 - 11:56:40
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Mon Jun 22 11:56:40 2009                             110  0.000
    110
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    27  0.000
    137
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                             62  0.000
    199
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/VAP/SYS/exe/run/dboraslib.o' ...
    4 ETW000                                                                              77  0.000
    276
    4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/VAP/SYS/exe/run/dboraslib.o), hdl
    0
    4 ETW000                                                                            8142  0.008
    418
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/VAP/SYS/exe/run/dboraslib.o' loaded
    4 ETW000                                                                              43  0.008
    461
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/VAP/SYS/exe/r
    un/dboraslib.o
    4 ETW000                                                                              61  0.008
    522
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/VAP/SYS/exe/run/dboraslib.o' is "640.00",
    patchlevel (0.276)
    4 ETW000                                                                             421  0.008
    943
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/VAP/SYS/exe/
    run/dboraslib.o
    4 ETW000                                                                              46  0.008
    989
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/VAP/SYS/exe
    /run/dboraslib.o
    4 ETW000                                                                              75  0.009
    064
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              48  0.009
    112
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm =
    YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              53  0.009
    165
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         55  0.009
    220
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              53  0.009
    273
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm =
    YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              49  0.009
    322
    4 ETW000  [dev trc     ,00000]  Got ORACLE_HOME=/oracle/VAP/102_64 from environment
    4 ETW000                                                                             521  0.009
    843
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         84  0.009
    927
    4 ETW000  [dev trc     ,00000]  got NLS_LANG='AMERICAN_AMERICA.UTF8' from environment
    4 ETW000                                                                              65  0.009
    992
    4 ETW000  [dev trc     ,00000]  Client NLS settings: AMERICAN_AMERICA.UTF8          2033  0.012
    025
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPVAP's password           49  0.012
    074
    4 ETW000  [dev trc     ,00000]  Connecting as /@VAP on connection 0 (nls_hdl 0) ... (dbsl 640 1
    80309)
    4 ETW000                                                                              57  0.012
    131
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C
          EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              49  0.012
    180
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1
    0x1113a4400 0x1113b6b00 0x1113b63b8
    4 ETW000                                                                              58  0.012
    238
    4 ETW000  [dev trc     ,00000]  Allocating service context handle for con_hdl=0       48  0.012
    286
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      42  0.012
    328
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server VAP (con_hdl=0,svchp=0x1113b97d8,srvhp=0
    x1113b99f8)
    4 ETW000                                                                              95  0.012
    423
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12541
    4 ETW000                                                                            4556  0.016
    979
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error 12541.
    4 ETW000                                                                              59  0.017
    038
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 12541        39  0.017
    077
    4 ETW000  [dev trc     ,00000]  Try to connect with default password                 184  0.017
    261
    4 ETW000  [dev trc     ,00000]  Connecting as SAPVAP/<pwd>@VAP on connection 0 (nls_hdl 0) ...
    (dbsl 640 180309)
    4 ETW000                                                                              46  0.017
    307
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C
          EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              48  0.017
    355
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1
    0x1113a4400 0x1113b6b00 0x1113b63b8
    4 ETW000                                                                              48  0.017
    403
    4 ETW000  [dev trc     ,00000]  server_detach(con_hdl=0,stale=0,svrhp=0x1113b99f8)
    4 ETW000                                                                              54  0.017
    457
    4 ETW000  [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=0x1113b97d8,srvhp=0x1
    113b99f8)
    4 ETW000                                                                              54  0.017
    511
    4 ETW000  [dev trc     ,00000]  Deallocating server context handle 0x1113b99f8        42  0.017
    553
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      33  0.017
    586
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server VAP (con_hdl=0,svchp=0x1113b97d8,srvhp=0
    x1113b99f8)
    4 ETW000                                                                              54  0.017
    640
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12541
    4 ETW000                                                                            2547  0.020
    187
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error 12541.
    4 ETW000                                                                              45  0.020
    232
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 12541        28  0.020
    260
    4 ETW000  [dblink      ,00428]  ***LOG BY2=>sql error 12541  performing CON [dblink#3 @ 428]
    4 ETW000                                                                             220  0.020
    480
    4 ETW000  [dblink      ,00428]  ***LOG BY0=>ORA-12541: TNS:no listener [dblink#3 @ 428]
    4 ETW000                                                                              42  0.020
    522
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'V
    AP'"
    Checked the listener service. It is already started and status is OK. Please help.
    Regards
    Shashank Shekhar

    Hi
    Yes, I am trying it with orasid user also. There in trans.log file it is showing:
    '4 ETW000 R3trans version 6.13 (release 640 - 07.01.08 - 14:25:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 22.06.2009 - 15:54:42
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Mon Jun 22 15:54:42 2009                             109  0.000
    109
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    27  0.000
    136
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                             61  0.000
    197
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/VAP/SYS/exe/run/dboraslib.o' ...
    4 ETW000                                                                              79  0.000
    276
    4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/VAP/SYS/exe/run/dboraslib.o), hdl
    0
    4 ETW000                                                                            8174  0.008
    450
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/VAP/SYS/exe/run/dboraslib.o' loaded
    4 ETW000                                                                              43  0.008
    493
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/VAP/SYS/exe/r
    un/dboraslib.o
    4 ETW000                                                                              61  0.008
    554
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/VAP/SYS/exe/run/dboraslib.o' is "640.00",
    patchlevel (0.276)
    4 ETW000                                                                             430  0.008
    984
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/VAP/SYS/exe/
    run/dboraslib.o
    4 ETW000                                                                              46  0.009
    030
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/VAP/SYS/exe
    /run/dboraslib.o
    4 ETW000                                                                              76  0.009
    106
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              48  0.009
    154
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm =
    YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              53  0.009
    207
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         57  0.009
    264
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              54  0.009
    318
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm =
    YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              49  0.009
    367
    4 ETW000  [dev trc     ,00000]  Got ORACLE_HOME=/oracle/VAP/102_64 from environment
    4 ETW000                                                                             526  0.009
    893
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         84  0.009
    977
    4 ETW000  [dev trc     ,00000]  got NLS_LANG='AMERICAN_AMERICA.UTF8' from environment
    4 ETW000                                                                              64  0.010
    041
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIEnvCreate(mode=16384)' failed: rc = -
    1
    4 ETW000                                                                            1464  0.011
    505
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code -1           40  0.011
    545
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIErrorGet' failed: rc = -2
    4 ETW000                                                                              58  0.011
    603
    4 ETW000  [dblink      ,00428]  ***LOG BY2=>sql error -1     performing CON [dblink#3 @ 428]
    4 ETW000                                                                              74  0.011
    677
    4 ETW000  [dblink      ,00428]  ***LOG BY0=>Cannot get Oracle error text. [dblink#3 @ 428]
    4 ETW000                                                                              55  0.011
    732
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'V
    AP'"
    Someone suggested 'The solution is to download the new oracle client dll into the kernel'. Can anyone tell from where i can get the client dll for the kernel.
    Regards
    Shashank Shekhar

  • Mac OS 10.10.2 is installed and can open documents on my new Mac Air but an error message occurs with I try to attach a PDF to emails.  Any thoughts?  Apple was unable to help.

    Mac OS 10.10.2 is installed and can open documents on my new Mac Air but an error message occurs when trying to attach a PDF to emails.  Apple was not able to fix.  Any thoughts?

    The message says:
    Please wait
    If this message is not eventually replaced by the proper contents of your document, your PDF viewer may not be able to display this type of document. 
    Then it goes on to suggest an Reader upgrade, which I already did. 

  • When trying to create sitecollection showing a blank screen with text ACK

    When i am trying to create a site collection i am ending up with a blank site with text ACK.Please can any1 help me in fixing this issue.

    Hi,
    According to your post, my understanding is that it show a blank site with text ACK when you create a site collection.
    To narrow down the issue scope, I recommend that you can try to test the following things.
      1.  Create some new different types site collections in this web application to check if this issue is occurred on the only site collection in this web application.
      2.  Create a new site collection in another web application to check if this issue is occurred on the only web application.
      3.  Create a new web application, create a new site collection in this new web application to test if it works.
    If the issue persists, please check the ULS log file to find more information about this issue.
    For SharePoint 2013, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS.
    Best Regards,
    Yumi Fu

  • 9930 Syncs with Outlook 2010 but shows no email address fields

    Hi
    Our company just switched from Exchange 2007 to Exchange 2010. When we did this, our Exchange contacts did not synch correctly. It synced the phone numbers but not the email addresses. Has anyone experienced this before?
    Any help would be greatly appreciated.
    Thanks!

    How odd!  Since you're dealing with Exchange, check with your IT department first.  Sounds like this has afected multiple people in your company.
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • Recovered Photos album automatically created, but no error messages.

    Previously when I opened iPhoto, I received a message (or rather 2 {I believe} duplicate messages) about importing recovered photos. I clicked OK and it created a Recovered Photos album, but its contents were empty. I deleted this album by putting it into iPhoto's Trash. When I reopened iPhoto, I received the message again, but this time it created a "Recovered Photos 2" album.
    I quit iPhoto and deleted the Import folder from my iPhoto Library. Now I don't get any messages, but the Recovered Photos (not Recovered Photos 2) album is still there. If I trash it and restart iPhoto, the it is automatically created again.
    How can I stop iPhoto from automatically creating the Recovered Photos album? I'm not receiving any error messages or messages whatsoever.

    Addendum to all about this question - I am trying to import my original CDs - hangs and does nothing at first track. Trashed the .plist, no help. Reinstalled fresh copy of iTunes - helped - FOR ONE DISK. After that, same problem.

  • Why does the installer keep getting stuck but no error messages appear in the log?

    So as of I think recently, I've been having problems installing things. I'm using installer version 2.1.
    I found myself having to re-install a driver for my tablet awhile ago, and every time I tried to install it the installer got stuck in the 90%s somewhere. However, no error window popped up and when i went to look at the log, it didn't show any errors.
    I again encountered this same installing problem today when I went to install a newer slightly updated version of Java which would work on os x 10.4 and the installer got stuck at 99% again showing no errors.
    Help? I have no idea what the problem could be, I believe it's way beyond me.

    Hello, took me awhile to find this out, but...
    Get the combo update for Intel-based Macs...
    http://www.apple.com/support/downloads/macosx10411comboupdateintel.html
    Safe Boot, (holding Shift key down at bootup), & use Disk Utility from there to Repair Permissions, reapply the Combo Update.
    Repair Permissions afterwords, reboot.

  • Workbook works fine in discoverer plus but shows error in discoverer viewer

    Hi,
    I have some issues with the parameter of a report.
    one of the parameters is
    mgr_id (eg: 1,2,3) -- from database table.
    manager names are not available in the database but they are known to users like
    1 - david
    2 - alan chris
    3 - peter
    so the requirement is
    (i) the input parameter wud be entered as 1 or 2 or 3 or null ( or in multiple combination or all).
    But the report shud have parameters in the header of the report.
    for eg: if the input parameter is mgr_id = '1' then the report shud have manager name: 'david' in the header.
    if the input is mgr_id = '1',' 2', '3' then on the report header, it shud display as manager name: 'david','alan chris','peter'
    (ii) the default value of mgr_id shud be 'ALL'. if the user enters mgr_id as 'ALL' then it shud take all the values of mgr_id and pull all the values of mgr_id (like 1,2,3)
    and the report header shud display as department name: 'ALL'
    i have developed a custom query where i used,
    select dept_id, decode(mgr.mgr_id,'1','david','2','alan chris','3','peter') as mgr_name, ..... etc.
    in discoverer admin,
    I have created LOVs (item classes) for mgr_name.
    after that going to properties of mgr_name, i have selected mgr_id as indexed item.
    and in the report i have created parameter dept based on mgr_name and selected the option -- allow to select both indexes and values.
    and in the default value i mentioned 'ALL'.
    after that i changed the condition as
    ((mgr_name = :manager name) OR (mgr_name LIKE DECODE(:manager name,'ALL','%')))
    and in the header, i used &department name --- then it displays correctly.
    but the problem is ---
    the report works fine in plus. the problem is only when parameter value is 'ALL'
    when i run the report from discoverer viewer for the very first time (after logging in), the report works fine with correct data.
    but when i run the same report second time with parameter value 'ALL', it gives an error ---
    Invalid value "''" for parameter "department name"
    i dont understand, why it works for first time and doesn't afterwards. If i logout and login again, it works fine in viewer.
    am i doing anything wrong in conditions or declaring the parameters?
    I came to know that, the very first time, when we enter 'ALL' it is taking '%' but when we run for the second time, it is taking NULL. since NULL isn't there in mgr_id or mgr_name, it is throwing that error.
    How do i fix this error?
    Thanks

    Hi Puppethead,
    I have tried with your suggestions.
    the following condition -- did not work
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(:manager name, 'ALL', '%', NULL)))
    but for the other condition ---
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(nvl(:manager name, 'ALL'), 'ALL', '%', NULL)))
    is wrong because, :manager name cud be null, when it is null, it takes 'ALL' i.e. '%' which shud not be the case.
    if the user enters null, it has to display records with null only but with the above condition it takes '%'
    The main issue which i dont understand is, the report works fine for the first time. for the second time, the report takes null values . why is it taking null values for the second time.
    Thanks

Maybe you are looking for

  • Informix conversion issue

    When using the Migration Workbench, I walk through all of the wizard screens till I get to the finish screen. Hit finish, it starts to execute then returns the following error: Failed to Load Source Model. Cannot reference an external database withou

  • RG23C Update Problem

    Dear all when  register extract for RG23C Part-1, display two line items instead of one, The following process is followed for capital goods 1. Purchase order for capital good  me21n 2. Good receipt Migo (Capturing excise duty) 3. J2I5 & J2I6 pls hel

  • Hlp files

    i have created a program having his window, his menubar and so on.. now i have to make it open a hlp file, pressing a button on the menubar! how i can do it?? please help me, i can't manage finding how to, and i must do it or never pass an exam :_( t

  • You can't open the application System Preferences because it may be damaged or incomplete.

    You can't open the application System Preferences because it may be damaged or incomplete. say this and same on mac store when i press app

  • Skype Crashing When Trying to Receive or Share Scr...

    My skype has been crashing often and almost everytime I try to share screens or my friends try to share screens with me. Below is what I found in Windows Event Viewer, and the File included is my DirectX Diagnostics result.  Faulting application name