System message to selected user

Hi,
I need to send a popup window in a background to selected user(s). It looks that FM TH_POPUP does not work.
Is a possibility to work it around ?
Is it possible to send a system message not to all users but to only selected users ?
Thank you.
Marian

Hi,
TABLES: KNA1.
* data for send function
DATA DOC_DATA  LIKE SODOCCHGI1.
DATA OBJECT_ID LIKE SOODK.
DATA OBJCONT   LIKE SOLI OCCURS 10 WITH HEADER LINE.
DATA RECEIVER  LIKE SOMLRECI1 OCCURS 1 WITH HEADER LINE.
* insert receiver (sap name)
  REFRESH RECEIVER.
  CLEAR RECEIVER.
  MOVE: SY-UNAME TO RECEIVER-RECEIVER,
        'X'      TO RECEIVER-EXPRESS,
        'B'      TO RECEIVER-REC_TYPE.
  APPEND RECEIVER.
* insert mail description
  WRITE 'Sending a mail through abap'
                 TO DOC_DATA-OBJ_DESCR.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
     EXPORTING
          DOCUMENT_DATA              = DOC_DATA
     IMPORTING
          NEW_OBJECT_ID              = OBJECT_ID
     TABLES
          OBJECT_CONTENT             = OBJCONT
          RECEIVERS                  = RECEIVER
     EXCEPTIONS
          TOO_MANY_RECEIVERS         = 1
          DOCUMENT_NOT_SENT          = 2
          DOCUMENT_TYPE_NOT_EXIST    = 3
          OPERATION_NO_AUTHORIZATION = 4
          PARAMETER_ERROR            = 5
          X_ERROR                    = 6
          ENQUEUE_ERROR              = 7
          OTHERS                     = 8.
Adibo

Similar Messages

  • Send system message to specific users

    Hi,
    We have a requirement to send a system message to specific users that will be displayed immediately to those in the list who are logged on, or for those not currently logged on, the message should be displayed when they next log-in.
    We do not want the message to go to their in-box or to be sent by email. We are looking for something similar to the system message produced by SM02.
    Does anyone have any ideas or examples?
    Thanks
    Jan

    Hi Mylene,
    We have looked at TH_POPUP.
    This works fine if the user is logged in but not if they are not. We need something that will pop up when they do log in.
    Thanks for your help tho
    Jan

  • How to pop up a system message for a specific user when She/He log on SAP

    Hi Friends,
    As we know SM02 setting will pop up a system message to all users in specific client in a specific period when the user log on SAP system; and we can do the same thing via using function module SM02_ADD_MESSAGE.
    But now we want to pop up a message to a specific user ID when somebody log on SAP via this ID, instead of all user IDs in the client. Please do we have any similar traction / function module / class method to to do this job??
    Thanks in advance.
    Joe

    Below code can be used to send a pop up message to all users who are logged on to the
    system.
    DATA: MESSAGE(128) VALUE 'Test message'.
    DATA: OPCODE TYPE X VALUE 2.
    DATA: BEGIN OF USR_TABL OCCURS 10.
    INCLUDE STRUCTURE UINFO.
    DATA: END OF USR_TABL.
    CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE
    ID 'TAB' FIELD USR_TABL-SYS.
    LOOP AT USR_TABL.
    CALL FUNCTION 'TH_POPUP'
    EXPORTING
    CLIENT = SY-MANDT
    USER = USR_TABL-BNAME
    MESSAGE = MESSAGE
    EXCEPTIONS
    USER_NOT_FOUND = 1.
    ENDLOOP.
    In the above code just pass the desired user ID instead of All user ID's
    Edited by: harsh bhalla on Mar 26, 2009 2:14 PM

  • SRM 5 BBPSTART - System ID and System Messages issues

    Hi all,
    We just upgraded to SRM 5.0 from SRM 3.0
    The shopping cart logon page(bbpstart) doesn't show System ID and also the system Messages also doesn't work on browser when we set message by sm02.
    I already checked "System ID" and "System messages" from "Select Display" under System Logon Settings from bbpstart>Error Pages>Logon Errors>Configuration>System Logon Settings.
    I searched over the net and can't find anything. I only found a notes for the System messages, but it was for the older release and SRM 5 already applied that note. So I don't know what else I can do.
    Thanks for the itime.
    Kev

    Hello Thomas,
    It is not possible to run a system landscape with 2 identical SID's. And even if you do get it running in some kind of freeky way the system would be very instable (how would you know a transport has gone to the right system?).
    A system copy and a <SID> change is still possible. However, SAP recommends to do an export and an import of your database. Allthough this is the best and the least confusing way (and labour extensive), it is not really necessary.
    If you do a backup/restore procedure with a <SID> change, lets say from PRD to DEV, you will end up with a system that has DEV as <SID> but your tablespaces will look like PSAP-PRD-620. The owner of the database will also be sapprd. This is no problem at all to run the system, it is only confusing.
    I know it works, I've got it running. I've also got a sandbox running with user saptsc and database owner cbdamd and <SID> CBD.
    Kind regards,
    Pascal Ottens

  • SM02 System Messages on Web Clearing Content

    We have a custom application that recently moved from ITS to an ICF service with our ECC upgrade.  When we post a system message, the next time a user posts to the web page the system message pops up.  For example, when this his "Save" to commit their data.  This is a good thing.
    The problem is when the end user confirms the system message or closes it the web page refreshes and the end user looses all of their data.
    Some info about the changes:  We're using the SAP Web Dispatcher with HTTPS (ROUTER) as a pass through load balancer (should not be the problem here) and we moved from HTTP to HTTPS for all access so the content is now stateless (this is a big maybe since the user context is still in memory). 
    Is anyone away of how to handle ICM generated pop-ups without the application refreshing completely?

    please check
    Note 926124 - SM02: System messages are not displayed
    i am not sure abt this note but u can also check
    Note 1115177 - SM02: No system messages for new users
    Hope this will help you ...
    Reagards
    dEE

  • How I send Instant system message to All online terminals

    Hi gurus,
    For sending the instant system message to online user, I am using SM02.
    Problem is-
    Some times one user login on two different PCs.
    When I send the message to all users, message flash on only single PC in case of same user logon two different machine.
    I would like to know , have any other options for send the instant message to all online terminals (PCs) which are connected to SAP server.
    Regards,
    Tapovardhan
    Message was edited by: Tapovardhan Singh
    Message was edited by: Tapovardhan Singh

    Hi,
    To send the message to just one user, you can "test" the function module directly from transaction se37.
    If you want to send it to all logged on users, the following code could maybe be useful:
    REPORT  Z_MESSAGE_TO_ALL.
    PARAMETERS: MESSAGE(128) default '  Error ! Please logoff now !  '.
    DATA: OPCODE  TYPE X VALUE 2.
    DATA: BEGIN OF USR_TABL OCCURS 5.
           INCLUDE STRUCTURE UINFO.
    DATA: END OF USR_TABL.
    CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE
                     ID 'TAB' FIELD USR_TABL-SYS.
    LOOP AT USR_TABL.
       CALL FUNCTION 'TH_POPUP'
            EXPORTING
                 CLIENT         = SY-MANDT
                 USER           = USR_TABL-BNAME
                 MESSAGE        = MESSAGE
               MESSAGE_LEN    = 0
               CUT_BLANKS     = ' '
            EXCEPTIONS
                 USER_NOT_FOUND = 1
                 OTHERS         = 2.
    ENDLOOP.
    Regards
    Rolf

  • SM02 - system messages

    Hi all,
    I am using ECC6.0 in  our company.
    Tcode .SM02 is used to display messages to all users. if i entered message in server user can login the application server a system message will be displayed.Next time same user entered a application server the message cannot be displayed.
    <removed_by_moderator>
    Regards,
    S.Senthil Kumar
    Edited by: Julius Bussche on Nov 19, 2008 8:50 AM

    please check
    Note 926124 - SM02: System messages are not displayed
    i am not sure abt this note but u can also check
    Note 1115177 - SM02: No system messages for new users
    Hope this will help you ...
    Reagards
    dEE

  • Widget for SM02 system messages.

    Hi Experts,
    Can some one help me creating widget for system messages. The requirement is for creating widget which pops up a message when there is some new message created in the bw system. We have BW 3.5 system.
    Currently we have a real time cube based on the background table of SM02 messages. We have made a report which displays the active system messages. This report is displayed in a widget. What we want is to hide this widget.
    Whenever there is a change in SM02 there should be a JavaScript pop up for the user displaying the new message.
    1. If there are no messages in SM02 then nothing needs to be done.
    2. Once a message is created then a pop-up comes up.
    3. One more message is created then pop-up comes up with both the messages.
    4. One or both the messages deleted then nothing needs to be done.
    I'll say thanks the sdn way...
    Regards,
    Sujit.

    please check
    Note 926124 - SM02: System messages are not displayed
    i am not sure abt this note but u can also check
    Note 1115177 - SM02: No system messages for new users
    Hope this will help you ...
    Reagards
    dEE

  • Email Message contains "select" & "from" word, system will prompt for security right

    Hi All,
      Is there anyone ever encounter that if the email message is having a "select" & "from" wording, system will prompt for User ID and password?
      I had filled up my CRM User ID & Password, and system will still fail to proceed to send the email.  Instead, it is showing "Internet Explorer cannot display the webpage" page.
      Please help...
    Regards,
    Desmond Chan

    Hi Abhishek,
      Thanks again.  That's what we suspect.  As mentioned, we only have this issue if the email body is having "select...from" wording,
    which it looks like SQL statement.
      Few days ago we had some changes in out network (MPLS).  Now seems the cause maybe from that, as there is no other changes made recently.

  • BCS - Message from External System : 'Login failed for user 'NT AUTHORITY\IUSR'.'.

    Hello,
     I have create a an external content type .
     I Choose "Connect with user's Identity".
     I create a external list that uses the ExternalContentType.
     When I try open the external list from browser by User "TestUser" . I get the following error "Message from External System : 'Login failed for user 'NT AUTHORITY\IUSR'.'"
       My Question :
           I need to know why pass the credential "NT AUTHORITY\IUSR" to connect to the data base not the
            current log in"TestUser" ?  How Can I solve it ?
            Thanks
             Hema
    ASk

    Hi,
    did you configure Kerberos delegation?
    NTLM fails when you try to open external list from client computer, because SharePoint cannot pass user's identity - "Double Hop" issue.
    Take a look at confguring Kerberos for SharePoint 2010 white paper
    Download Configuring Kerberos Authentication for Microsoft SharePoint 2010 Products from Official Microsoft Download Center
    http://www.microsoft.com/en-us/download/details.aspx?id=23176
    Robi MCT Kompas Xnet d.o.o. Ljubljana | blog: http://xblogs.kompas-xnet.si | website: http://www.kompas-xnet.si
    Slovenia
    Please vote if you find reply useful or mark it as answer.
    Thank you

  • Flash the system message every time when user login

    Hi all,
    My requirment is to diaplay the system message when user login for the maintenance purpose, In SM02 i created a message but it is not working for evary time login, It is displaying only  one time, suppose i logoff and again loging message is displaying.
    Please tell me how to display system message evary time when user login.
    Thanks in Advance,
    Thanks&Regards
    RP

    Hi,
    To display system message every time when user login : use the
    Enhancement        SUSR0001
    Short text              User exit after logon to SAP System
    You also get the Example Code here.
    And the Documentation is :
    Every dialog user passes through this function module after logon. Yo
    can use this to execute individual customer checks here and send
    messages to the user.
    Do not log off the user and also try to avoid too many dialog boxes.
    Regds
    Suman

  • System Message Shows in  Future Date

    Dear Experts,
    In Our SAP BI System , The System Message SM21 shows in Current & future date both problem messages
    SAP Server OS and SAP BI Application Time and date both are in sync
    The BI system which is connected to ECC PRD also having a sync
    Remote monitoring are not configured in this system,
    System Log: Local Analysis of GEEPASBIPRD                  2
    Date : 22.12.2010
    Time     Type Nr  Clt User         TCode Priority Grp N Text
    10:02:54 DIA  001 350 GPKWTHOFI03                 BY  E Invalid parameter ObjTooLar
    10:04:07 DIA  001 350 GPKWTHOFI03                 BY  E Invalid parameter ObjTooLar
                       System Log: Local Analysis of GEEPASBIPRD                  3
    Date : 02.01.2201
    Time     Type Nr  Clt User         TCode Priority Grp N Text
    20:20:84           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    20:20:84           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    20:20:84           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    20:20:84           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    20:20:84           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    20:20:84           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    20:20:90           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    20:20:90           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    40:20:81           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    40:20:81           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    40:20:81           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    40:20:81           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    40:20:81           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    40:20:81           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    71:31:41           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    71:31:41           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    90:20:84           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    90:20:84           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    90:20:84           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    90:20:84           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    90:20:84           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    90:20:84           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
                       System Log: Local Analysis of GEEPASBIPRD                  4
    Date : 03.01.2201
    Time     Type Nr  Clt User         TCode Priority Grp N Text
    00:20:85           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
    00:20:85           35  BIWREMOTE                  hB  Y Missng:TSL1TE,hBY):154 EXE
                      System Log: Local Analysis of GEEPASBIPRD
              C o n t e n t s
    Content            Page         Start          End
    Selection criteria   1
                         2  22.12.2010 10:02:54 22.12.2010 10:04:07
                         3  02.01.2201 20:20:84 02.01.2201 90:20:84
                         4  03.01.2201 00:20:85 03.01.2201 00:20:90
                         5  02.01.3201 01:23:65 02.01.3201 90:40:42
                         6  03.01.3201 00:40:41 03.01.3201 11:62:24
                         7  02.01.4201 01:22:30 02.01.4201 90:40:42
                         8  03.01.4201 00:40:41 03.01.4201 11:62:24
                         9  02.01.7201 11:42:21 02.01.7201 31:71:95
                        10  02.01.9201 01:22:30 02.01.9201 81:41:10
                        11  03.01.9201 00:95:23 03.01.9201 11:11:94
                        12  02.01.A201 01:22:30 02.01.A201 81:41:10
                        13  03.01.A201 00:95:23 03.01.A201 11:62:24
                        14  02.01.E201 11:24:13 02.01.E201 71:50:52
                        15  02.01.I201 01:22:30 02.01.I201 81:41:10
                        16  03.01.I201 00:95:23 03.01.I201 11:62:24
                        17  02.01.R201 01:22:30 02.01.R201 81:41:10
                        18  03.01.R201 00:95:23 03.01.R201 11:62:24
    Contents            19
    Thanks
    Jai

    Hi Thahir,
    I deleted the SLOG and Restarted the system now its not showing the future date,
    Issue resolved.
    Thanks ,
    Jai

  • Vendor Payment TC F-58/F-53, warning message for selecting NON DUE invoices

    Hi,
    I have scenario with my client, they want that during manual vendor payment against  TC F-58&F-53, if the invoices are not due for payment but if selected by the user during manual payment, is there any configuration by which system will give a warning message to the user saying invoices are not due for payment before saving the document.
    Thanks
    MRS

    You have to find the appropriate "Message Area" and "Message Number" in "Maintain Message Control".
    Add the message into the Message Control and make it as WARNING message.
    << Moderator message - Point begging removed >>
    << Begging for points is against the furum rules. Repeated violation of forum rules can result in your userid being deelted. This is the third time you have been warned.>>
    Thanks.
    Edited by: Rob Burbank on Jan 18, 2011 3:57 PM

  • Error message in Selection Screen

    Hi
    reference no (p_ref) is in my selection screen.
    If this field contains special characters (\ / : * ? " |, ) system must prompt  error message in selection screen. How to do this. Pls help me
    Regards
    Anbu

    after input form the user
    use if condtion
    and validate the field and through message.........
    Reward IF........
    Regards
    Anbu
    Edited by: Anbu B on Jun 17, 2008 8:04 AM
    Edited by: Anbu B on Jun 17, 2008 8:06 AM

  • System messages ( Change Warnig message to Error message )

    Hi!!!
    Convert Warnings message to error message
    User  create a purchase requisition and a purchase order is generated from  it. Afterwards, you change the purchase requisition by setting   the deletion indicator. The system generates a warning message that a purchase order already exists for this purchase requisition. However, the deletion of such a purchase requisition should be prevented. Therefore, the system should generate the warning message 06152.
    I followed the below path
    SPRO/MM/Purchasing/Environment Data/Define Attributes of System Messages
    select System messages
    *I did not find the Message number 152*
    Help me out to fix this issue
    I am following this OSS Note 521174 - ME52N: Deletion of a PReq despite PO
    Regards
    Shamulheq

    Hi!! chakrapani,
    Thank you
    I made the changes by following below path
    SPRO>MM/>Purchasing>Environment Data>Define Attributes of System Messages
    go to "New entries" enter application as 06 and at message no filed, click F4. you will find the required message
    I tried to change the Purchase Requisition  for which Purchase order Is created ,system will not allow to delete
    The message is shown in  yellow but not in red ( purchase orders already exist )
    Can you help me show the ERROR message in red
    Your feedback can help me to fix this issue
    regards
    Shamulheq

Maybe you are looking for

  • Importing a project back from garage band

    I didn´t find a way how to bring a project back to iMovie after making some music and effects to it in garageband. There is "export to iDVD", "export to QuickTime", but no export to iMovie. I suppose the solution is something very obvious just behind

  • Solman Setup system Monitoring alert threshold value for Filesystem issue

    Hi, Our solman system is SAP EHP 1 for SAP Solution Manager 7.0 sp level 0024. We have setup the alerts System Monitoring alerts from DSWP in solman system for our target production system . But while assigning individual threshold values of filesyst

  • Please help me on my new Build

    Salam,i am from Pakistan,know alot about software but new to hardware(i am 16) I am making my first ever build,after saving money every way,i have finally marked my budget to be 600 $(60,000 rupees), I am a beginner to After Effects,have used Sony ve

  • [help] Z77A-GD65 not starting fully

    ok so when i turn on the motherboard all the fans in my PC turn on and the LED1 light turns blue for about a second then everything shuts off. My power button stays green even when everything else shuts off and the alarm LED is OFF. I have tried re p

  • F.A.O Gareth Ryan

    Gareth, It appears you are doing the role of an admin at the moment, without the admin rights. Keep up the good 'adminy' work. Thanks Martin