Returning Zero if not exists

Hi All:
I need some help in returning 0 value i have two queries which will display values like this
query1
project_name , object_name , count(major)
xxxx xxx 2
query2
project_name , object_name , count(minor)
in the first query i have xxxx project returning 2 as count but i dont find this project and object name here in query2 but i need to return 0 if there is not existing
SELECT
PRO.PROJECT_NAME "Project_Name",
POBJ.NAME "Object_Name",
COUNT(RCMT.RCL_CATEGORY) "Count_Major" // simalarly for minor
FROM PROJECTS PRO,
PROJECT_OBJECTS POBJ,
RCL.TASK_STATUS RTS,
RCL.TASK RTAS,
RCL.REVIEW_ITEMS RI,
RCL.RCL_COMMENTS RCMT
WHERE PRO.ID = POBJ.PRO_ID AND
RTS.PRO_ID = PRO.ID AND
RTS.PRO_OBJ_ID = POBJ.ID AND
RTAS.ID = RTS.TASK_ID AND
RTS.ID = RI.TS_ID AND
RI.TS_ID = RCMT.RI_ID AND
upper(RCMT.RCL_CATEGORY) LIKE upper('Major') AND
RTAS.NAME IN ('Incoming Doc- Review', 'Design', 'Build - Review' , 'Test - Review',
'Test', 'Installation' )
GROUP BY
PRO.PROJECT_NAME,
POBJ.NAME
right now wht i am doing is i have created two separate views from there i am checking the join condiiton if project and object names are same will return else it will not
even though it is not existing in either one of them it must return 0 can we do it
if possible please suggest
thanks
sudhir

Is this what you are looking at?
SELECT PRO.PROJECT_NAME "Project_Name",
       POBJ.NAME "Object_Name",
       sum(decode(upper(RCMT.RCL_CATEGORY) , 'MAJOR', 1, 0)) "Count_Major", /* Query is changed here */
       sum(decode(upper(RCMT.RCL_CATEGORY) , 'MINOR', 1, 0)) "Count_Minor"
FROM PROJECTS PRO,
     PROJECT_OBJECTS POBJ,
     RCL.TASK_STATUS RTS,
     RCL.TASK RTAS,
     RCL.REVIEW_ITEMS RI,
     RCL.RCL_COMMENTS RCMT
WHERE PRO.ID = POBJ.PRO_ID
AND  RTS.PRO_ID = PRO.ID
AND RTS.PRO_OBJ_ID = POBJ.ID
AND RTAS.ID = RTS.TASK_ID
AND RTS.ID = RI.TS_ID
AND RI.TS_ID = RCMT.RI_ID
/*AND upper(RCMT.RCL_CATEGORY) LIKE upper('Major') */ " Remove this line "
AND RTAS.NAME IN ('Incoming Doc- Review', 'Design', 'Build - Review' , 'Test - Review', 'Test', 'Installation' )
GROUP BY PRO.PROJECT_NAME,
         POBJ.NAMECheers
Sarma.

Similar Messages

  • Returning Zero if not exist

    Hi All:
    I need some help in returning 0 value i have two queries which will display values like this
    query1
    project_name , object_name , count(major)
    xxxx xxx 2
    query2
    project_name , object_name , count(minor)
    in the first query i have xxxx project returning 2 as count but i dont find this project and object name here in query2 but i need to return 0 if there is not existing
    SELECT
    PRO.PROJECT_NAME "Project_Name",
    POBJ.NAME "Object_Name",
    COUNT(RCMT.RCL_CATEGORY) "Count_Major" // simalarly for minor
    FROM PROJECTS PRO,
    PROJECT_OBJECTS POBJ,
    RCL.TASK_STATUS RTS,
    RCL.TASK RTAS,
    RCL.REVIEW_ITEMS RI,
    RCL.RCL_COMMENTS RCMT
    WHERE PRO.ID = POBJ.PRO_ID AND
    RTS.PRO_ID = PRO.ID AND
    RTS.PRO_OBJ_ID = POBJ.ID AND
    RTAS.ID = RTS.TASK_ID AND
    RTS.ID = RI.TS_ID AND
    RI.TS_ID = RCMT.RI_ID AND
    upper(RCMT.RCL_CATEGORY) LIKE upper('Major') AND
    RTAS.NAME IN ('Incoming Doc- Review', 'Design', 'Build - Review' , 'Test - Review',
    'Test', 'Installation' )
    GROUP BY
    PRO.PROJECT_NAME,
    POBJ.NAME
    right now wht i am doing is i have created two separate views from there i am checking the join condiiton if project and object names are same will return else it will not
    even though it is not existing in either one of them it must return 0 can we do it
    if possible please suggest
    thanks
    sudhir

    You need to post this in the SQL forum as this is not APEX related. The SQL will be to just left join the views you have created.
    Phil

  • Verity cfsearch returns "collection does not exist" error - when collection does exist

    I have created a collection using the Coldfusion
    Administrator - and it shows up fine when displaying all the
    collections. I also populated the collection using the
    <cfindex> function - using a SQL query - and that appeared to
    work fine. It put 117 entries into the collection - and this also
    shows up in the Coldfusion Administrator collections window.
    The problem is, when I try to search the collection with the
    <cfsearch> tag, it returns an error stating "The collection
    you specified does not exists or is not registered with the
    ColdFusion Search Service."
    I can see the collection I'm trying to search exists. Is
    there anything else I need to do to get the <cfsearch>
    function to find the collection? I've tried repairing the
    collection, optimizing the collection, even deleting it and
    recreating it - nothing seems to work. I specify the
    fully-qualified path to the collection in my cfsearch, so that
    shouldn't be the problem.
    Is there some other command or function I need to run?
    Thanks!!! Pamela

    quote:
    I specify the fully-qualified path to the collection in my
    cfsearch
    Not sure if that is the problem. The path exists in the
    CFAdmin. You sould refer to the collection name in the cfsearch
    tag.
    See attached code, you can do a cfdump to see what results
    are being returned.

  • Wut 118 application server file abc.prn does not exist or is of zero length

    dear members,
    I am printing a character mode report which gives the following error:
    "wut 118 application server file c:\abc.prn does not exist or is of zero length"
    my code on when-button-pressed is here:
              declare
                   repid REPORT_OBJECT;
                   v_rep VARCHAR2(200);
                   rep_status VARCHAR2(50);
                   report_name varchar2(100);
                   v_path varchar2(200);
                   rep_server varchar2(50);
              BEGIN
                   select parameter into rep_server from mis where parameter_type = 'REPORT_SERVER';
                   report_name := 'C:\TEMP\abc.prn';
                   repid := find_report_object('reports');
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,:global.report_path||'abc123.rdf');
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,:global.report_path||'dflt.prt');
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,report_name);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,REP_SERVER);
    PF_FGOWGPNO='||:FG_DISPATCH_M.FGOWGPNO||' PF_FISCAL_YEAR='||:FG_DISPATCH_M.XFISCAL_YEAR||:FG_DISPATCH_M.XFISCAL_YEAR||' P_USERNAME='||:DUMMY.USER);
    PF_FGOWGPNO='||:FG_DISPATCH_M.FGOWGPNO||' PF_FISCAL_YEAR='||:FG_DISPATCH_M.XFISCAL_YEAR);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no PF_FGOWGPNO='||:FG_WH_INTERCHANGE.FG_TRANSIT_ID||' PF_FISCAL_YEAR='||:FG_WH_INTERCHANGE.XFISCAL_YEAR||' PRINT_IT='||:DUMMY.PRINT_IT);
                   v_rep := RUN_REPORT_OBJECT(repid);
                   rep_status := REPORT_OBJECT_STATUS(v_rep);
                   WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
                        rep_status := report_object_status(v_rep);
                   END LOOP;
                   IF rep_status = 'FINISHED' THEN
                        --WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repsrv10g','_blank');
                        NULL;
                   ELSE
                        message('Error when running report');
                   END IF;
                   exception
                        when others then
                        message(sqlerrm);
                        raise form_trigger_failure;
                   END;
                   declare
                        a boolean;
                   begin
                        a := webutil_file_transfer.as_to_client('c:\temp\abc.prn','c:\temp\abc.prn');
                   end;               
                   begin
                        client_host('cmd start /c type c:\temp\abc.prn > prn');
                   exception
                        when others then null;
                   end;Regards:

    Disregard my last. I see what you are doing. You are using file transfer to move the file to the local machine. It was confusing because the paths are the same.
    I would suggest adding a SYNCHRONIZE after the file transfer and before the attempt to print. It might even be a good idea to add some error handling code to verify that the file has been copied and can be found. This will allow you to better deal with situations where the file doesn't get written for some reason. WebUtil offers some functions to check for file existence and size.
    Also, if you are using Java 7U21, this may cause some issues with your CLIENT_HOST call.

  • S_ALR_87011774 returns the message u0093Program 9PSM does not exist

    Hi Dear Gurus,
    I have been given a   task to add a t-code to a role and i did that but when the user execute the transaction
    the transaction S_ALR_87011774 returns the message “Program 9PSM does not exist.
    how to fix it.
    i did run the SU53 report and it says
    activity : 03
    co trasaction  rks
    and these two are maintained in the object.
    please help me how to resolve this issue.
    Kind Regards,
    vamsi,

    as far as I can tell, it is not actually the program that does not exist, but the report group.
    when changes have been made to the layout, it is sometimes necessary to regenerate them.  this can be done through GR52.
    I'm curious to know what the SU53 will display for the user who's executing the transaction, because I don't find a reason to assume this is related to authorizations?
    for more info on report groups, have a look [over here|http://help.sap.com/saphelp_47x200/helpdata/en/5b/d2308343c611d182b30000e829fbfe/frameset.htm|sap help]
    it may have something to do with logging on in a different language than the report was setup to be displayed in?
    If reports are to be available in several languages,
    you must define the languages concerned in Customizing.
    For more information, see the Implementation Guide (IMG)
    for Special Purpose Ledger under Information System ->
    Define Report Writer Languages.
    Edited by: Dimitri van Heumen on Feb 21, 2008 11:36 AM (messing up the layout...)

  • Basic NOT EXISTS query not returning any results

    DB Version: 10gR2
    One of our tables in the test schema is having less number of columns than the PROD shema.
    To determine which are missing columns in this table in Test schema i did the following.
    -----In Test Schema
    CREATE TABLE XYZ2
    (COL1 NUMBER);        ----------only one column
    SQL > CREATE TABLE tables_test_list AS SELECT TABLE_NAME,COLUMN_NAME FROM USER_TAB_COLS;
    Table created.--- In the prod schema
    SQL> CREATE TABLE XYZ2
      2  (COL1 NUMBER,
      3  COL2 NUMBER       ----------- same table name with an extra column
      4  );
    Table createdAnd from the PROD schema i execute the following SQL to determine what are the columns that are missing in the TEST schema
    select column_name from User_Tab_Cols  outer
    where table_name='XYZ2'
    and not exists (select 1 from TEST_SCHEMA.tables_test_list inner where outer.TABLE_NAME=inner.TABLE_NAME )But the above query is not returning any results. Any idea why?

    Actually, the example from the link I posted earlier:
    [email protected]> (
      2  select 'IN T1, NOT T2', column_name,data_type,data_length
      3    from user_tab_columns
      4   where table_name = 'T1'
      5  MINUS
      6  select 'IN T1, NOT T2', column_name,data_type,data_length
      7    from user_tab_columns
      8   where table_name = 'T2'
      9  )
    10  UNION ALL
    11  (
    12  select 'IN T2, NOT T1', column_name,data_type,data_length
    13    from user_tab_columns
    14   where table_name = 'T2'
    15  MINUS
    16  select 'IN T2, NOT T1', column_name,data_type,data_length
    17    from user_tab_columns
    18   where table_name = 'T1'
    19  )
    20  /

  • Cluvfy returns Path "/tmp/" does not exist and cannot be created on nodes

    Hi,
    I'm installing Oracle RAC for SAP in AIX 5L.
    After run Pre-check for cluster services setup it returns the next message:
    Path "/tmp/" does not exist and cannot be created on nodes
    This meessage is happening after Checking node reachability and Checking user equivalence phases.
    This is my complete log:
    pr_bd01/oramedia/clusterware/Disk1/cluvfy/> ./runcluvfy.sh stage -pre crsinst -n pr_bd01,pr_bd02
    Performing pre-checks for cluster services setup
    Checking node reachability...
    Node reachability check passed from node "pr_bd01".
    Checking user equivalence...
    User equivalence check passed for user "oracle".
    ERROR:
    Path "/tmp/" does not exist and cannot be created on nodes:
    pr_bd01
    Verification will proceed with nodes:
    pr_bd02
    Pre-check for cluster services setup was unsuccessful on all the nodes.
    The /tmp is a shared filesystem and oracle user can write and read it
    Oracle user id is the same in both nodes
    Group dba id is the same in both nodes
    Group oinstall id is the same in both nodes
    The primary group for Oracle user is oinstall
    Where can my problem be ?
    Thank you
    Edited by: user8114467 on 27/02/2009 07:17 AM

    Hi,
    Even if this is not resolved from above stuff then do the following
    [oracle@node1] ssh node1 date
    [oracle@node2] ssh node2 date
    Note that it is doing the ssh to itself rather than the remaining node(s). Usually people do forget to do atleast once the ssh to itself.
    Talok Khatri

  • Messaging Server 4.1: Received mail is not returned to the sender if the receiving local account does not exist.

    I have found that received mail is not returned to the sender if the receiving
    local account does not exist. This problem occurs even if I use Console to
    enable the Return message to sender option under the error handling methods.
    In addition, I have used the configutil
    to confirm that I have set the value
    for Unknown account action to "13," which corresponds to the settings "Return
    message to sender," "Notify the postmaster via email," and "Log the error in
    the log file." Yet, in this situation, an error message is being sent to
    postmaster, but not to the sender, and the error is not being recorded in the
    log file.
    <P>
    Do the following steps:<BR>
    <P>
    <OL>
    <LI>From Console, open the appropriate Messaging Server.
    <LI>Click the Configuration tab.
    <LI>Open the Services folder.
    <LI>Select SMTP.
    <LI>Click the System tab.
    </OL>
    <P>
    Check the "Domain handled by this server exclusively" field to make sure that
    your mail domain is listed. If your mail domain is not listed, then Messaging
    Server will assume that there is another mail server that is handling the
    domain listed and will forward requests to this server.
    <P>
    For more information, please see the document <I>Messaging Server
    Administrator's Guide</I>, Chapter 3, Configuring SMTP Services at <BR>
    http://docs.iplanet.com/docs/manuals/messaging/nms41/ag/smtp.htm#1010371

    On Thu, 12 Dec 2013 16:16:02 +0000, lpphiggp wrote:
    > I'm seeing this XTCOM error occur all over our /var/log/messages for one
    > server, running SLES11sp2 / OES11/sp1;
    >
    > I don't really know what this is even for. We don't use NetStorage or
    > iPrint even, this server only does basic NCP file serving, DHCP, and
    > hosts a GroupWise PO.
    > Is this anything to be concerned about?
    If this:
    http://www.linuxquestions.org/questi...entication-vs-
    edirectory-825043/
    is to be believed, it seems to indicate that your NAM configuration on
    this server is not valid. I'm not seeing this message here on the OES
    servers I looked at, and NAM is working correctly here.
    David Gersic dgersic_@_niu.edu
    Knowledge Partner http://forums.netiq.com
    Please post questions in the forums. No support provided via email.
    If you find this post helpful, please click on the star below.

  • SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT returns ORA-13199 SRID does not exist

    Hi everyone,
    I'm facing with this error while I was trying to list wrong spatial data (11.0.2.0.3 RAC (AIX))
    Select   *
    From     table
    Where    SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT (GEOMETRY,0.001)! ='TRUE'
    It returns :
    ORA-13199: SRID does not exists
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_CS", line 5328
    ORA-06512: at "MDSYS.SDO_GEOM", line 483
    ORA-06512: at "MDSYS.SDO_GEOM", line 560
    ORA-06512: at line 1
    Is there anyone who faced with this kind of issue or any idea ?
    Thanks in advance
    Regards

    There is no such SRID 2000303. However, this one sure looks like it does the same thing. Replace all the SRID values with 2320 and you should be set.
    SQL> select *
      2  from MDSYS.SDO_COORD_REF_SYSTEM
      3  where srid = 2320;
          SRID COORD_REF_SYS_NAME                                                              COORD_REF_SYS_KIND
    COORD_SYS_ID  DATUM_ID GEOG_CRS_DATUM_ID SOURCE_GEOG_SRID PROJECTION_CONV_ID CMPD_HORIZ_SRID CMPD_VERT_SRID
    INFORMATION_SOURCE
    DATA_SOURCE                              IS_LE LEGACY_CODE
    LEGACY_WKTEXT
    LEGACY_CS_BOUNDS(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    IS_VA SUPPO
          2320 ED50 / TM30                                                                      PROJECTED
            4530                        6230            4230              16370
    General Command of Mapping via EuroGeographics; http://crs.ifag.de/
    EPSG                                    FALSE
    TRUE  TRUE

  • How to update zero to a column value when record does not exist in table but should display the column value when it exists in table?

    Hello Everyone,
    How to update zero to a column value when record does not exist in table  but should display the column value when it exists in table
    Regards
    Regards Gautam S

    As per my understanding...
    You Would like to see this 
    Code:
    SELECT COALESCE(Salary,0) from Employee;
    Regards
    Shivaprasad S
    Please mark as answer if helpful
    Shiv

  • Azure Rest API PUT Block Blob Returns "The specified resource does not exist" CORS

    I am trying to upload a file to Azure Blob storage. For some reason when I try to put a new block blob on in the storage it tells me the resource does not exist. I am sure it is something silly I am missing.
    According to the documentation:
    The Put Blob operation creates a new block blob or page blob, or updates the content of an existing block blob. Updating an existing block blob overwrites any existing metadata on the blob. Partial updates are not supported with Put Blob; the content of the
    existing blob is overwritten with the content of the new blob. To perform a partial update of the content of a block blob, use the Put Block List (REST API) operation.
    CORS is setup and that seems okay.
    When I do a preflight and get this:
    Request URL:https://<account>.blob.core.windows.net/test/image.png
    Request Method:OPTIONS
    Status Code:200 OK
    Request Headers
    OPTIONS /test/image.png HTTP/1.1
    Host: <account>.blob.core.windows.net
    Connection: keep-alive
    Cache-Control: no-cache
    Pragma: no-cache
    Access-Control-Request-Method: PUT
    Origin: http://www.<site>.com
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
    Access-Control-Request-Headers: accept, content-type
    Accept: */*
    Referer: http://www.<site>.com/azure/
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-US,en;q=0.8
    Response Headers
    HTTP/1.1 200 OK
    Transfer-Encoding: chunked
    Server: Blob Service Version 1.0 Microsoft-HTTPAPI/2.0
    x-ms-request-id: 0d372e95-1524-460a-ab9c-7973d42a7070
    Access-Control-Allow-Origin: http://www.<site>.com
    Access-Control-Allow-Methods: PUT
    Access-Control-Allow-Headers: accept, content-type
    Access-Control-Max-Age: 36000
    Access-Control-Allow-Credentials: true
    Date: Thu, 27 Feb 2014 22:43:52 GMT
    But when I make the PUT request these are the results.
    Request URL:https://<account>.blob.core.windows.net/test/image.png
    Request Method:PUT
    Status Code:404 The specified resource does not exist.
    Request Headers
    PUT /test/image.png HTTP/1.1
    Host: <account>.blob.core.windows.net
    Connection: keep-alive
    Content-Length: 22787
    Cache-Control: no-cache
    Pragma: no-cache
    x-ms-blob-content-dis; filename = "image.png"
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
    Content-Type: image/png
    x-ms-blob-type: BlockBlob
    Accept: application/json, text/plain, */*
    x-ms-version: 2013-08-15
    Origin: http://www.<site>.com
    x-ms-date: Thu, 27 Feb 2014 23:19:19 GMT
    Referer: http://www.<site>.com/azure/
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-US,en;q=0.8
    Response Headers
    HTTP/1.1 404 The specified resource does not exist.
    Content-Length: 223
    Content-Type: application/xml
    Server: Blob Service Version 1.0 Microsoft-HTTPAPI/2.0
    x-ms-request-id: d5a60c8b-356a-44ff-93af-0ea720b5591f
    x-ms-version: 2013-08-15
    Access-Control-Expose-Headers: x-ms-request-id,Server
    Access-Control-Allow-Origin: http://www.<site>.com
    Access-Control-Allow-Credentials: true
    Date: Thu, 27 Feb 2014 23:22:42 GMT

    Your request must be authenticated to be able to upload a blob. Please see our
    Windows Azure Storage: Introducing CORS blog post for more information on using Shared Access Signatures with CORS.

  • Backup report function returns: ORA-00942: table or view does not exist

    Hello All,
    I recently switched over from control file RMAN to recovery catalog. I logged into the 11g database control, executed a full backup and all went well. However, I just noticed that after I click on 'Backup Report' in database control (enterprise manager) I get the following error message: " java.sql.SQLException: ORA-00942: table or view does not exist"
    I was able to view backup reports prior to switching over to recover catalog. What am I missing or what is missing, sort to speak?
    Thanks all !
    -Ron

    Thanks for the reply Werner. I did try it as 'SYS' but no luck. Strange...This was a new enterprise manager - DB control and the backup reprt function was working prior to using the recover catalog. Anthing in the recovery catalog database that may be missing?
    Rob..

  • Simple NOT EXIST but returns wrong values

    I have been doing this for a couple of month and this makes sense to me but I get the wrong answer.
    T1 contains 1 to 10
    U2 contains 1 to 5
    SELECT T1a.num
    FROM T1 T1a
    WHERE NOT EXISTS
    (select T2b.num
    from T1 T1b, U2
    WHERE T1b.num = U2.num
    GROUP BY T1a.num
    I expect to get 6 to 10,
    but am getting NO ROWS SELECTED.
    Ideas more than welcome

    You are trying to :-
    1. Use table T1 twice which is not needed
    2. In the inner sub-query, you are using column T2b.num
    alias 'T2b' is not defined, in which case you should be
    getting SQL Error
    (select T2b.num
    ERROR at line 4:
    ORA-00904: invalid column name
    Try This,
    1 SELECT T1a.num
    2 FROM T1 T1a
    3 WHERE NOT EXISTS
    4 (select Null
    5 from U2
    6 WHERE U2.num = T1a.num
    7 )
    8* GROUP BY T1a.num
    Test Db>/
    NUM
    6
    7
    8
    9
    10

  • Cancel (reverse) Return Order, PGR not possible due to storage bin in 904

    Hi gurus hope someone can explain in detail with transaction what am I missing since I'm MM guy and dont know very well SD transactions but here's my scenario,
    There is a return order with a delivery (1110500002), then PGI (651), this drive me to process a Tansfer Req to move it from 904 to 010 storage type, and then do the billing, up to here the process is going well.
    The problem comes when trying to reverse the above described process, I start with reverse the bill sith VF11 and then try to cancel the PGI ( PGR) with VL09 but system says "Storage bin 001  904  1110500002  does not exist (Check your entry)"
    This is why I'm trying to fix the issue as MM guy, but I don't know why the error comes, this bins in 904 should be dynamic and create temporaly the bin 1110500002 which is the delivery that was created when the first return order was created.
    I dont know if this error is related to MM movement types or to some config at the delivery type, o maybe the process we are following is not the correct for this because in transaction OMLR for IM 651 there is WM 651 but for 652 IM it's WM counter part is the general GI 255 mvt type so
    Just to mention what I think that need to happen for the reverse of the return process is to cancel the bill then cancel the delivery and at this point negative stock should come into 904 bin 1110500002 and the creation of a TR to move from 010 to 904 after doing this TO then stock in 904 will be zero.
    Please advise on how this process should happen.
    Regards.

    Hi TQ,
    Thanks for your reply, but I didn't understand what you mean with compare material master, compare it with what? And also I am not really sure that this could be the problem because I have this issue only when reversing the return, this means when I do the return the stock actually goes to 904 1110500002 so this means that the material has mantained correctly WM views in the material master.
    Can you elaborate more in detail how you solved your error few months ago?
    Thanks and regards

  • Bapi_Goodsmvt_Create: Material does not exist or is not activated....

    Hi all,
    I'm using .Net connector to execute BAPI from my program and I'm able to login but always get the same message when I try to execute the material transfer: <b>Material xxx does not exist or is not activated</b>.
    I'm not sure it has anything to do with the permission of my account because this is the first time our SAP admin create a "Communication" type user and we really don't know what kind of permission is good enough for BAPI_GOODSMVT_CREATE. Plus the error message does not show any thing about permission.... And same message returned if I use the dialog user.
    If I use transaction MB1B to do the transfer (with the same material) then things are ok.
    Any ideas are appreciated,
    Eric
    Message was edited by:
            Eric Nguyen

    The only thing I can think of is that when calling from .net,  you are passing the material number without its internal format.  The material number field in R/3 is an 18 character field.  If the material number is numeric, the materail number is then padded with zeros on the left.  Example, for material 12345, the internal format is 000000000000012345.  If the BAPI in question is not fomatting the material internally in the BAPI, then it must be passed this way.  CHeck how you are passing, if it is numeric and not zero filled left,  then you must write some .net code to do so.
    Regards,
    Rich Heilman

Maybe you are looking for

  • Please help me fix this problem!

    I am having trouble getting games to load. I keep getting an error message telling me i need to install flash player. and i have tried doing that, i have even tried uninstalling it and re installing it again, but nothing seems to work and i keep gett

  • Stacked bar chart with custom x axis labels

    Is there a way to build this simple chart in labview that I did in Excel?  I need to have many x axis labels and there could be from 5 to 100 of them depending on the data set.  Attachments: Excel.JPG ‏33 KB

  • Snow Leopard distroyed Norton! Help!

    Um... My Norton won't work now that I have upgraded to Snow Leopard. It kept telling me that it was Error 10, I think? Now it isn't giving me the message anymore but the Auto File Scan is still not functioning. The only problem I found was that Snow

  • How do you load Compiz before Gnome Session?

    I'd like for Compiz to load entirely before the Gnome 3 Desktop panels slide in. Is there a way to control in what order things load in Xorg or something?

  • Need help in ALE configuaration !

    Please send me an example of how to create an ALE configuaration with in one client !