Srw.message. Afterpform issue

Having trouble w/ srw.message.
I want to give the user the ability to:
1) leave all the parameters at default ALL
or
2)the ability to choose any group.
or
3)If they choose a class they must choose a group as well.
if they dont i want a message to pop up and say 'Must select corresponding group...'
or
4)same thing goes for subclass (the user must select both a group and class or a msg pops up 'Must select group and class')
Each Group number and group name is distinct
The same class number and class names can belong to different groups
Subclass numbers can belong to multiple subclass names
group#......class#....subclass#....subname
1111--------12---------1-----------hello
1123--------12---------1-----------hello
1111--------23---------2-----------goodbye
1143--------77---------3-----------night
2324--------77---------1-----------hello
Afterpform:
if :P_grp not like '%ALL%' then
     :p_where := :p_where || ' and g.group = ' || :p_grp;
end if;
if :P_class not like '%ALL%' then
     :p_where := :p_where || ' and c.class = ' || :p_class;
end if;
if :P_subc not like '%ALL%' then
     :p_where := :p_where || ' and s.subclass = ' || :p_subc;
end if;
Parameters LOVs:
Datatype: Character
Inital Value: ALL
:p_grp
select ' ALL', 'All Groups
from dual
union
select group,to_char(group)||' - '||group_name
from grp
order by 1
:p_class
select ' ALL', 'All Classes'
from dual
union
select class, to_char(class)||' - '||class_name
from class
order by 1
:p_subc
select ' ALL', 'All subclasses'
from dual
union
select subclass, to_char(subclass)||' - '||subclass_name
from sub
order by 1

Why is this called "Having trouble w/ srw.message"? I don't see it at all in your code.

Similar Messages

  • WHAT ALL MESSAGE'S ISSUED WHILE CREATING PO

    Sir,
    ply let me know after saving the po i want to know what all messages were issued while creating the po.
    Like "warning" or "information" message
    where  can i see this
    regards
    amey

    Hi,
    PAth- Spro-MM-Purchasing-Environment Data-Define Attributes of System Messages...
    Here are few message type:
    Contract has different purchasing organization &     W
    Validity period of contract does not start until &     W
    Validity period of contract expired on &     W
    Target value of contract & exceeded by & &     W
    Net price for item & taken from conditions     W
    Purchase requisition & item & already deleted     W
    Scheduled quantity & & greater than target quantity & &     W
    Quantity smaller than invoiced quantity &     W
    Target quantity exceeded by  & &     W
    Not possible to determine a consumption account     W
    Release date lies in the past     W
    Base unit of measure & adopted from material master record
    Release date: next workday is &     W
    Contract target value & reached     W
    Please only use plants with company code &
    Order unit copied from material master record     W
    Hope it helps.
    Utsav..

  • Duplicate Message ID issue in case of Multi mapping (without BPM)

    Hi Experts,
    I am doing one sample Example for my requirement of converting the single source message data into the multiple Target messages.
    for example, when sender system is sending the 5 sale order details into a single message in PI then my Inbound proxy class of ECC R/3 receiver system must get this sale orders separately, that means inbound proxy class method must be triggered separately for 5 sale orders from sender system. for achieving this, I have used the Multi mapping concept in ESR (without BPM).
    This scenario is in Asynchronous mode.
    The below screen shots give the details on what I have configures so far.
    IN ESR
    IN ID
    IN SXMB_MONI of PI
    IN SXMB_MONI of ECC R/3 Receiver system (Error in Processing)
    due to this error, inbound Proxy class method is not being triggered for the single Sale order details as well,
    please let me know how to tackle this duplicate message ID issue when we have multiple payloads to process in a single message.
    please also let me know if is there any other workaround to fulfil this requirement.
    Thank you,
    Regards,
    Jagesh

    Hi Nunu,
    Check the below blog for restrictions.
    Multi-Mapping without BPM - Yes, it’s possible!
    Restrictions
    Messages that result from the split in a mapping-based message split are sent using one AE. So only adapters running on the AE are supported. In particular, this means that target IDOC message splits are not supported since the IDOC adapter is not part of the AE.
    Regards,
    Praveen.

  • DISPLAY ONLY CUSTOM MESSAGE WITH SRW.MESSAGE

    Hi.I created a report with Report Builder 9i.I also created two form parameters of type date.I put inside the validation trigger in the property inspector the following plsql code.
    function FROM_DATEValidTrigger return boolean is
    v_date VARCHAR2(12);
    date1 date;
    begin
    v_date := :from_date;
    date1:=TO_DATE(v_date, 'DD/MM/YYYY');
    return (TRUE);
    EXCEPTION
    WHEN OTHERS THEN
    SRW.MESSAGE(546,'My Message');
    return (FALSE);
    end;
    This code works fine.Supose the user input wrong data for example 29/02/2003 displays an alert message
    with my custom message.But after this displays an another message from the Report Builder like this:
    Rep-0546:Invalid parameter input.
    My question is .Is it possible display only my custom message with the SRW.MESSAGE built in procedure?
    Thanks in advance Panagiotis.

    Hi,
    I am using this function in my Validation process to display Error when user gives null input
    function DEPT_IDValidTrigger return boolean is
    begin
         -- Check for Null Value here
         if(:DEPT_ID is null) then
         raise SRW.NULL_ARGUMENTS;
         else
    return true;
    end if;
         Exception
              -- Exception For Null Value
    when SRW.NULL_ARGUMENTS then
         srw.message(100, 'Please Enter Dept ID');
    raise srw.program_abort;
    end function ___ ;
    Function is correct but the error message i am getting at the client side is as follows ::
    "*MSG-00100: Please enter Dept IDREP-1419: 'dept_idvalidtrigger': PL/SQL program aborted.* "
    It seems it is adding some system level error.
    but i want only my custom message to be displayed on the client side ::
    *"Please Enter Dept ID"*
    Is this Possible in Oracle 6i.

  • Conditional Logging in Reports with SRW.MESSAGE

    Hi
    We use concurrent programs to run reports in Oracle Applications.
    There is a lot of code already written, which uses the following logging statements in the RDFs.
    srw.message(100,'<message>');
    For some reports the log being generated is large.
    So can we somehow disable the logging on need basis without code change?
    Can we enable or disable the log messages based on some profile values?
    Thanks for any help.
    Regards
    Sameer

    One way of achieving this is to copy the code into the other cells format trigger sections or into the frame that is your 'row'. If you let the program generate the code for your conditional formatting then you can just copy and paste it into the format trigger.
    Such as:
    function F_exampleFormatTrigger return boolean is
    begin
    -- Automatically Generated from Report Builder.
    if (:sum > '1')
    then
    srw.set_foreground_fill_color('red');
    srw.set_fill_pattern('solid');
    end if;
    return (TRUE);
    end;
    Let me know if you need additional help.
    Edited by: DOUBLE U on Apr 18, 2011 8:28 AM

  • Errors Message while issuing the material in MB1A i.e unrestricted material

    Hi Expert,
    I want know the Message while issuing the material in MB1A we are getting the error unrestricted material, so what is the reason of error.(i.e there is no stock available or any other give me the reply as soon as possible)
    Regards,
    Ram Rathode

    You are not clear. What is the error message that you get?

  • Where can we see the SRW.MESSAGE

    Hi
    I am new to Oracle Reports. I have a report developed in EBS and it has SRW.MESSAGE statements. After the report is run where can I see the log of these messages. Can some help.
    Thanks

    Hello rajesh as you told that the cost esimate is deleted.
    Then there is no way to see the cost estimate.
    You canonly see the cost esimate in CK40N or in CK13N but you can not see the itemiaxation of that material for ehich we create the cost estimate.
    Hope it will clear you
    IF this informetion is usefull for you please assign some points
    Regards
    Ravi

  • SRW.MESSAGE(msg_number NUMBER, msg_text CHAR);

    Hi ,
    how to display the value of the variable in a report using the above function..?
    Regards,
    Abdetu..

    Hello dsegard
    Thanks for ur reply:
    SRW.MESSAGE ( 100 , 'Variable P_TEST value = ' || :P_TEST);.i want to return a variable value from a select statment in a formula not from a parameter or main query select..
    Regards,
    Abdetu..

  • Srw.message

    Oracle Reports builder 10g
    I have an lov that is dependent upon the lov above it. If the user picks a choice in the second lov that does not correspond the report will crash. I want to add a message that says 'Incorrect lov for parameter XYZ'. How do i do this in the after parameter form.

    Something like this in your after-parameter-form might be all you need.
    IF <CHOICE IS NOT VALID> THEN
       SRW.MESSAGE(1,'Incorrect lov for parameter XYZ');
       RETURN (FALSE);
    END IF;Hope this helps.
    p.s. you would have to supply the logic for the <CHOICE IS NOT VALID> criteria
    Edited by: jl1997 on Mar 15, 2011 9:30 AM

  • Messages were issued when costs were calculated (see log)

    Hi,
    When I am creating the production order ( T Code: co08 , MTO scenarios  and with reference to sale  order ) but i am getting these error messge.Error when calculating costs see log like:
    Messages were issued when costs were calculated (see log)
    Message no. CK262
    and also iam not getting planned cost .in the production order i saw log worning message like
    Object was not costed
    Message no. CK060
    Diagnosis
    The system could not find any entries that are relevant to costing.
    System Response
    The system did not cost the object.
    Procedure
    Check whether the following objects should be flagged as relevant to costing:
    o     Items in the BOM
    Display BOM
    o     Operations in the routing
    o     Control key in the routing
    1. Look at the message log.
    2. Check whether a quantity was specified in the confirmation.
    pls give me clarification ASAP
    Regards
    SAPCO

    Hi Hisapgaru,
    The error on product costing can be cause by several message which can be caused by poor master data maintenance. It does not mean, the error are found on every message line, you have to analyze the material number that involve in the message using the information provided by log message (procedure).
    To analyze product costing in a comprehensive way is by using CK11N. By this t-code you can display the product cost result from 3 pespective: Cost element, costed BOM or cost component.
    You can event check the product costing parameter from this CK11N/CK13N(display product costing). Without doing analysa to product costing, you cannot point out what cause the problem.
    Solve the problem from product cost planning side first, then after calculation free of error, you can go back to production order activity.
    Best regards,
    Irhasni

  • Alerts after SRW.MESSAGE

    Hi all,
    I need help to solve this problem.
    I am using a trigger After_parameter_form, where I have pl/sql code to validate some parameters.
    If the parameter value is incorret I'm using SRW.MESSAGE procedure to show a message to the user.
    Well, the problem is after show my message, the reports runtime show its message REP:0771 - After Form Trigger Failed <ok> <help>.
    Question. Can I hide the runtime's message ?
    Thanks
    Marcio

    Propably you can use
    "raise SRW.PROGRAM_ABORT;" , which terminates the report.This may help you try this.

  • SOLAR01 - assign message to issue

    In SOLAR01, I would want to assign message to issue, however we could not do so, as when we list the message to be assigned, none could be found.
    Strangely, this can be done from transaction SOLUTION_MANAGER > Issue Management > Issues.
    Anyone encountered this before ?

    Hi,
    Since your current stack level is unknown, perhaps this note maybe of interest to you, 1162628
    Cheers,
    SH

  • LiveCache - LC10 message - Index issue

    hi,
    LiveCache - LC10, - Problem Analysis ->Performance -> Database Analyser -> bottleneck report
    The message read as follows:
    LiveCache- Bottle-neck messages:
    2 tables contain > 1.000.000 records but only 20.000 rows will be sampled for statistics.
    Table SAPR3./SAPAPO/ORDKEY contains 8247892 rows(205921 pages), sample rows 20000
    Table SAPR3./SAPAPO/STOCKANC contains 1319385 rows(25413 pages), sample rows 20000
    Looks this would affect the processing and the delay may be an issue for CIF queue processing.
    Wondering, if sampling could be increased ? is there any oss note available to do this.  This index is implemented using BADI
    Any input on this issue is appreciated.
    Thanks,
    RajS

    Please check the following notes regarding changing the sample of the statistics run:
    Note 808060 - Changing the estimated values for Update Statistics
    Note 927882 - FAQ: SAP MaxDB Update Statistics
    Kind regards,
    Mark

  • Dependent Message Choice Issue, Please Help.

    Hi All,
    I am new to OAF.
    I am desiging  dependent message choice where there are 4 message choice boxes
    I have written the code but the issue i Am facing is when i select a value from the first Mesage Choice , processFormRequest Method is not called.If I click on any lob in the page , then only processFormRequest() is called and value is populated in the second drop down.
    So I need to call processFormRequest() after a value is selected in Message Choice..
    Pleas help

    Hi,
    Follow the steps in this link. In this they have used MessageTextInput. You do the firePartialAction in MessageChoice.
    https://blogs.oracle.com/prajkumar/entry/partial_page_rendering_in_oaf
    Then write the following code in processFormRequest and modify as per your requirement.
    if ("update".equals(pageContext.getParameter(EVENT_PARAM)))  //update is the event name of the MessageChoice item
    if (pageContext.getParameter("ApplicationChoice") != null)
    ownerName1 = pageContext.getParameter("ApplicationChoice");
    System.out.println("Application value :" + ownerName1);
    Serializable ownernameParam[] = { ownerName1 };
    am1.invokeMethod("setQueueName", ownernameParam);
    System.out.println("After calling the queueName function");
    //Code in AM
    public void setQueueName(String queuename)
    SeaSoaQMsgidNameVOImpl vo1 = getSeaSoaQMsgidNameVO1();
    vo1.setWhereClause("OWNER = :1");
    vo1.setWhereClauseParam(0,queuename);
    vo1.executeQuery();
    I hope this will help you..
    Thanks and Regards,
    Myvizhi

  • IOS 8.1 Photos and/or Messages cursor issue

    I select a photo within the Photos app on my iPhone 5s or my iPad2
    Then click the little 'share arrow' and choose Messages app as the sharing method
    The photo selected does show up in the Messages 'message composition' window
    However the cursor, instead of being to the right of "To:" shows up to the left of "To:".  Happens every time.
    Submitted to Apple as a bug however I am open to ideas to fix the issue.

    I just replied on a similar thread. I also have this issue. When I either compose a new message or text a photo, my cursor is to the left of the "To:" field, but types in the appropriate area and sends without problems. It doesn't seem to affect texting capabilities, but it is annoying that the cursor is not perfectly aligned after the "To:" field.
    I tried quitting the text application by swiping out of range, and resetting my device but to no avail. I called Apple Support and am expecting a call back from them in a few hours, when it is more convenient for me to have them try to isolate the problem.
    It appears that others are having the same issue. It seems that whenever a new software update is downloaded, more problems or problems where there were none occur.

Maybe you are looking for

  • I am trying to instal CS5 onto my new computer. My other one was stolen. Serial number doesn't work.

    I am trying to instal CS5 onto my new computer. My other one was stolen. Serial number doesn't work.

  • JSF 1.2 in Weblogic 10

    Hi JSF 1.2 is bundled with weblogic 10 and out of interest I tried to use it to see if it was suitable for our new development. The application works with both JSF-RI1.1 and myfaces 1.1, so I was hoping to see if 1.2 would bring any benefits.        

  • Canon es970 camcorder won't eject.

    My camera is about 15 years old. I have a tape in it as part of a project to convert from 8mm to digital. Now the camera won't eject my tape. Help! I have the plates off so I can see the housing of the tape/cassette area but I'm not finding the 'magi

  • Another exec query?

    Hi ! I would like to know why the following code doesn't work, whereas from commandline it works fine! mport java.io.*; /****Start***/ public class RunExec      public RunExec(){      try{      Process proc = Runtime.getRuntime().exec("grep STATUS /v

  • Subtitles won't disappear.

    Happens on every movie with any subtitles. Have to stop movie then resume play to clear, until next subtitle appears and must be done again. Is there a setting that needs to be changed? Problem started about 3-4 months ago.