How to display the message along with a value using BBP_CHECK_BADI

Hi Gurus,
I need to display a message dynamically when the user create's a shopping cart. I am using Check_badi for this. i.e., I need to display the buyer number and amount left for him dynamically. I am storing both of them in variables and don't know how to display the messages laong with some message " the amount left for <XXXXXX> is <$$$$$$$$>". Can you help me out.
Thanks,
Neelima

Hi,
you can use the function module 'BBP_PD_MSG_ADD'. This is the function module normally used for the displaying the error messages in SRM.
See wether you can use already available error messages , use the transaction SE91 , and the message class being BBP_PD

Similar Messages

  • How to display the Message Pool Messages in CE 7.2

    Hi Experts,
    Please let me know how to display the Message Pool Messages in CE 7.2.
    I have tried with reportContextAttributeMessage, but it is deprecated in CE 7.2.
    Please do the needful.Its Urgent.
    Thanks & Regards,
    SatheshKumar R

    Hi Sathesh,
    Do the following steps:
    1.) After creating a component, under it you will see Message Pools. Double click and open it.
    2).Click "Add Message" and add a new message. (Give a message key, type of message (either warning, error etc ) and message text).
    3). Save the metadata.
    4). Raise this message where all you want by using following code(For example, on click of a button) :
          IWDMessageManager msgnr = wdThis.wdGetAPI().getComponent().getMessageManager();
          msgnr.reportMessage(IMessage<component name>.<message>,null,true);
    For example, I have a component name TestAppComp and under message pool I have message called message1, then use lik this:
            IWDMessageManager msgnr = wdThis.wdGetAPI().getComponent().getMessageManager();
            msgnr.reportMessage(IMessageTestAppComp.MESSAGE1,null,true);
    Reply me if you any doubt.
    Regards,
    Jithin

  • How to display the selection screen with icons as well as with text element

    How to display the selection screen with icons as well as with texts (written in text elements) for PlantDate, OrderType,WareHouse..

    Report zex33.
    type-pools: icon.
    selection-screen begin of line.
    selection-screen comment 1(20) text_001.
    parameters: p_werks type marc-werks.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_002.
    parameters: p_whouse(10).
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_003.
    parameters: p_auart like vbak-auart.
    selection-screen end of line.
    initialization.
      write ICON_PLANT  as icon to text_001.
    concatenate text_001 text-001 into text_001 separated by space.
      write ICON_WAREHOUSE  as icon to text_002.
    concatenate text_002 text-002 into text_002 separated by space.
      write ICON_ORDER  as icon to text_003.
    concatenate text_003 text-003 into text_003 separated by space.

  • How to display the data of CJ2C(T-CODE) using web dynpro abap

    Hi all:
        How to display the data of CJ2C(T-CODE) using web dynpro abap.
        CJ2C used to display a Gantt Chart.
        Thanks.

    Hi,
    Create a Value attribute (resource) of type Resource, bind it with the property of File Upload UI element.
    On action place the code and Deploy the application
    byte[] bytes = new byte[ 1024];
    FileOutputStream out = new FileOutputStream( new File( <path in server>));
    InputStream in = resource.read( true);
    int len;
    while( ( len = in.read( bytes)) > 0)
         out.write( bytes, 0, len);
    in.close();
    out.close();
    Regards
         Vinod V

  • How to display the fields in ALV Output without using Field catalog?

    How to display the fields in ALV Output without using Field catalog?
    Could you pls tell me the coding?
    Akshitha.

    Hi,
    u mean without building field catalog. is it? I that case, we can use the FM REUSE_ALV_FIELDCATALOG_MERGE.
    data: itab type table of mara.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = itab
    CHANGING
    ct_fieldcat = lt_fieldcat[]
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    *Pass that field catalog into the fillowing FM
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_grid_title            = 'REPORTING'
                is_layout              = gt_layout
                it_fieldcat             = lt_fieldcat[]
           tables
                t_outtab                = itab.

  • How to read the 'Input help with fixed values' of domain .

    How to read the 'Input help with fixed values' of domain .
    The domain has a Value range i want to read those values .
    Are these values stored in any table ?
    Plz help me i need it ver badly...
    Thanks in Advance...

    Hi Chandra Shekhar,
    To read the 'Input help with fixed values' of domain , you can use the function module : HR_P_GET_FIXED_VALUE_TEXT.
    iIf you enter the domain name, you will find the fixed values entered in the domain.
    These values are stored in a table DD07L(DD zero 7 L). Here the values are stored based on domain name.
    See if it works for you.
    Award points if its helpful.
    Regards,
    Bhanu

  • How to display the detailed navigation with the Search Results

    Hello Gurus,
    I was able to display the search results in the same frame rather than opening the new window and getting it displayed. Now when the search results are displayed, my detailed navigation and portal favorites etc.. all the iviews are automatically suppressed.
    Please help me displaying the search results with Navigation Panel.
    Regards
    V.

    Hi Vaibhav,
    What do you mean by suppressed?
    Is it gone, or just closed?
    If it is just closed, you can try 2 things:
    1. Check if the property "Initial State of Navigation Panel" of the page has any influence.
    2. There is a javascript method that opens it.
    You can see it by importing the file '<b>com.sap.portal.layouts.framework.par.bak</b>'.
    Navigate to
    System Administration -> Support -> Support Desk -> Portal Runtime -> Browse deployment
    then the folder
    ROOT/WEB-INF/deployment/pcd
    and press download.
    Import from par to Developer Studio, and check the javascript files under dist/PORTAL-INF for a function called something like 'expandTray'.
    Hope that helps,
    Yoav.

  • How to scale the content along with child elements?

    By default I need my application size to be compatible with 1280x800 resolution; and if the application is viewed at a bigger resolution, only the background needs to be stretched, therefore I have to hardcode canvas size and set background in percentage. Till now it is alright, but when the application is viewed at a smaller resolution or with window size scaled down, the application content should also scale along.
    So, any clues on scaling down the content [along with child contents]? mind you, it has background images so must be scaled with proper aspect ratio.
    Thanks for any help.
    Siraj Khan
    [email protected]

    Thank you for the tip... this solves my problem partially. Now I am working on to scale the inner content of canvas --- on resize. Since there are elements like buttons and images, i can not define them in percentage, so i need to first check what exactly is the percentage of reduced canvas, and then accordingly i'll have to apply that percent on the inner elements. Any other better idea? as i see this only as a work around, not a proper solution.
    Anyway thanks again for the help.
    -Siraj

  • How to display the image which in KM folder using url iview

    Hi Friends
    How to display the image, which is under KM folder structur using the url iview.
    i trying using url iview url as  \document\testfolder\abc.jpg as url for the iview.
    but its now working .. so please help me how to slove this problem
    If is not the correct way then please suggest me best way to achive this.
    Thanks
    Mukesh

    Hi Mukesh,
    I think this may work,
    1, Create a HTML Layout.
        You can put your image wherever  u want with HTML Codes.
        Check this, [Article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3915a890-0201-0010-4981-ad7b18146f81] & [Help|http://help.sap.com/saphelp_nw04/helpdata/en/cc/00c93e9b2c3d67e10000000a114084/frameset.htm]
        With this, u can use the standard KM commands also.
    2, U need to use KM Navigation iView for this rather than KM Doc iView.
    3, In the Nav iView, u can use &rndLayoutSet=nameOfUrHTMLLayout to force the view with this new layout.
    Regards
    BP

  • How do I select a date column and display the millesecond along with it.

    I am trying to select a date column from database and want to
    display millesecond with it. How do I do this. I am aware of
    the "alter session set NLS_DATE_FORMAT = 'MM/DD/YY HH:MI:SS'"
    command. However, I do not know how to display this with the
    millesecond.
    Thanks for all the help.

    Example:
    SQL> CREATE OR REPLACE JAVA SOURCE
      2  NAMED "MyTimestamp"
      3  AS
      4  import java.lang.String;
      5  import java.sql.Timestamp;
      6 
      7  public class MyTimestamp
      8  {
      9  public static String getTimestamp()
    10   {
    11   return (new
    12   Timestamp(System.currentTimeMillis())).toString();
    13   }
    14   };
    15  /
    Java created.
    SQL> CREATE OR REPLACE FUNCTION my_timestamp
      2    RETURN VARCHAR2
      3  AS LANGUAGE JAVA
      4  NAME 'MyTimestamp.getTimestamp() return java.lang.String';
      5  /
    Function created.
    SQL> CREATE TABLE test_time
      2    (date_col VARCHAR2 (23))
      3  /
    Table created.
    SQL> INSERT INTO test_time (date_col)
      2  SELECT my_timestamp
      3  FROM   dual
      4  /
    1 row created.
    SQL> SELECT date_col
      2  FROM   test_time
      3  /
    DATE_COL
    2001-11-02 14:58:51.766

  • How to give the Submit along with Variant

    Dear Freinds,
               Iam using the Submit program with variant  in my custom program . When iam exucting my custom program it is directly opening the program with the variant . ie. just like we execute a program and select varaint.
    it is not happening what i want ,it has to schedule the program with the varaint (i.e. what ever fields have been slected in that varaint) and when i go and see in SM37 . The job should get schedule, this was
    happening when iam sending one are two parameters in retrun of the submit without me using VAriant.
    please help me where iam going wrong.
    Not working Scenario (when iam using Variant)
    SUBMIT rptqta00
       WITH pnpbegda =  sy-datum                                 "'20081201'
       WITH pnpendda =   lv_date                                 "'20091130'
       VIA SELECTION-SCREEN USING SELECTION-SET 'NEW'
       VIA JOB lv_job_name NUMBER lv_job_nr
         AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = lv_job_nr
            jobname              = lv_job_name
            strtimmed            = 'X'
          IMPORTING
            job_was_released     = lv_job_released
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF syst-subrc NE 0.
          MESSAGE i162(00) WITH
          'An error occured while closing the background job.'.
          STOP.
        ENDIF.
    working perfectly  with the below scenario
      SUBMIT rptqta00
    WITH pnpbegda =  sy-datum                               "'20081201'
    WITH pnpendda =   lv_date                                 "'20091130'
    with pnppernr = '99002235'
    WITH pnpbukrs  EQ 'C091'
    WITH dis_new = 'X'
       VIA JOB lv_job_name NUMBER lv_job_nr AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = lv_job_nr
            jobname              = lv_job_name
            strtimmed            = 'X'
          IMPORTING
            job_was_released     = lv_job_released
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF syst-subrc NE 0.
          MESSAGE i162(00) WITH
          'An error occured while closing the background job.'.
          STOP.
        ENDIF.
    now my question is what i have to do in the case of VAriant so that it acts exactly as the below parameters.
    My problem why iam going to varaint is in the standard program  rptqta00  i have a button Like TESTRUn ,Batchinput,Direct etc.............. this iam not able to pass the OK code along WITH  in the     Submit syntax.... i dont know how to pass in the case of Button's  along with Submit ,,,,,,,,,however iam able to do for radio buttons .
    could any one tell me why the variant when iam using is taking me directly to the program instead it is not returning
    secondly if iam passing each parameters in the submit program how can i pass the BUTTON value ( which is having tick option for either TESTRUN ,Batchinput,Direct )
    Please could any one help.
    regards
    divya

    Dear Freinds,
                  I found the solution , i have used the ok code of the button while passing into submit program it is working . Thanks once agian
    regards
    divay.

  • How to display warning message box with yes and no buttons

    Hi,
    I am writing the code to delete emp details from database.
    I want to display warning message with yes and no buttons after clicking the delete button in the same page, if yes is clicked, i want to invoke delete() method in AM.
    Is it possible, if yes pls suggest me how to do it.
    Thanks
    Message was edited by:
    user536125

    This is being discussed in
    warning message(dialog page) to be displayed in the same page
    Thanks
    Tapash

  • How to display the Print Dialog with defined print presets included.

    When I try and display the Print Dialog none of my defined print presets are included in the print preset list box, I only get the [custom] option.
    How can I get the presets included in the list?
    The code I am using is:
    InterfacePtr<IPrintData> docPrintData(document->GetDocWorkSpace(), UseDefaultIID());
    // create a temp non-persistent IPrintData
    IPrintData* tempPrintData(CreateObject2<IPrintData>(kPrintDataBoss));
    // copy data from the document workspace
    tempPrintData->CopyData(docPrintData, kTrue);
    InterfacePtr<ICommand> printDialogCmd(CmdUtils::CreateCommand(kPrintDialogCmdBoss));
    InterfacePtr<IPrintDialogCmdData> printDialogCmdData(printDialogCmd, IID_IPRINTDIALOGCMDDATA);
    // store off the document's UIDRef in the print data boss
    UIDRef docUIDRef = ::GetUIDRef(document);
    printDialogCmdData->SetDocUIDRef(docUIDRef);
    printDialogCmdData->SetPrintData(tempPrintData);
    ErrorCode result = CmdUtils::ProcessCommand(printDialogCmd);
    tempPrintData->Release();
    Thanks

    You can set the presets with Adobe Acrobat.

  • How to display the info visually with the help of data present in the DB

    I need to reserve a resource for a particular period of time,When i finished in
    specify the date & time (ie start time and end time).
    I need to give a report for the particular day by displaying the timing details visually( ie by shading the cell) in the table formatt
    for example if I enter the resource name as printer and mention the start time (6:00)and end time(7:00)
    Based on the specified time(ie start time and end time) for the particular resource which are present in the Database, The displaying table's cell
    (the table that contains time in x axis,resource name in y-axis & each cell represent 1/2 hour )should be shaded. (ie 6:00 to 6:30 & 6:30 to 7:00 cells are to be shaded)
    hope u understand my problem
    Plz help me in this regards....
    Thank u in advance

    Hi,
    to display the header first append the header as the first record and then append your data.
    to remove comma seperator use the following code:
    replace all occurences of ',' with space.
    then condense.
    and last u can download data to presentation and application servers at the same time using 'gui_download'  and  datasets.
    Thanks & Regards,
    Sudheer.

  • How to display the variable screen with report in the same page together

    our customers want to design a web application use BEx
    they want the variable screen can be displayed with the report result in the same web page together
    so they can modify the variable filters any time and refresh the report with new variable filter
    i have tried the navigation area,but it seems only use new filter to the data athough get,we can't change the filter we input in the variable screen.
    is there any way to display these together?
    even I can use BSP.

    I think to display var screen with the report is not possible.(At least it will not be static). You need to refresh the report and choose the varibale at that time.
    Other option could be to bring all the possible value in the report and provide your user with the filter value. But this will make your report slow as you may have to bring more data in the filter.
    Thanks...
    Shambhu

Maybe you are looking for