Error in IDOC message to be sent to user's inbox

Hi all,
I am new to abap development. I have a scenario in which SBI invoice is generated using GSVERF std Idoc. If there is any discrepancy b/w the Idoc qty and the SAP qty the Idoc should fail and a message should be sent to the user's inbox.
Can anyone suggest me how I should proceed.
1) Where can I add my code for the std Idoc to check the condition
2)How can I send a message after I doc has failed using workflow.
Thanks in advance,
Ranjan

Hello,
try to use this FM:
CALL FUNCTION 'CALL_MESSAGE_SCREEN'
   EXPORTING
     i_msgid          = t100-arbgb
     i_lang           = sy-langu
     i_msgno          = t100-msgnr
     i_msgv1          = sprot_u-var1
     i_msgv2          = sprot_u-var2
     i_msgv3          = sprot_u-var3
     i_msgv4          = sprot_u-var4
     i_line_size      = line_size
     i_lines          = lines
   EXCEPTIONS
     invalid_message1 = 1
     OTHERS           = 2.
Regards

Similar Messages

  • My deleted messages are being sent back to my inbox. I do not have virus software.

    Every day after I have deleted certain emails they are sent back to my inbox. I do not have virus software so that is not the problem.
    Tried to fix this but cannot find any solution.

    How often do you compact your folders? You should do that at least once a week (though, I do that every day).
    http://kb.mozillazine.org/Keep_it_working_-_Thunderbird

  • Help WF: mail message takes long to get user's inbox

    Friends,
    I have a task that sends an e-mail message. My workflow is all right, and the message to business workplace is fast, but the user says that this mail message didn't get his mail box.
    I've already saw swel transaction but it's all right!
    thanks,
    Glauco

    Hi.
    Do you mean SAP mails or internet mails?
    If they are internet mails, maybe you must configure the job for sending this emails to run more times. It's the task on SCOT transaction.
    If you mean the SAP mails maybe you can try to send the mails with the "urgent" option.
    thanks and regards

  • Error appears: Cannot send message. this message cannot be sent at this time - has been appearing everytime i try to send e-mail for the past week!

    For the past week I have not been able to send both simple and attached messages through my icloud e-mail.
    The error reads: this message cannot be sent at this time.  i have the latest version of Firefox, I have even changed my password in hopes that this would resolve the issue, but alas, it hasn't worked. HELP!

    This is a terrible customer experience for Apple users. I have been dealing with this same issue since April 2012; all used to work just fine and then suddenly -- "Cannot send message" error appears.
    When is Apple going to fix this? I have two iPads and an iPhone but often need to access files from my PC (next time, it'll be a Mac),
    Very frustrating.

  • Errors in idoc -- trfc

    last few days i am facing the problem of extraction of lo cockpit data source
    "data package transferred to Bi system but not loaded into target"
    transfer rules and update rules are activated  successfully .
    errors:
    1.sid is missing in 0coasquanty.
    2.pc in mapping in update rules.
    thanks & regards
    a.s.chaitanya.

    please let me know, What more details you need?
    If I click F1 for error details i get following message
    Messages from source system
    see also Processing Steps Request
    These messages are sent by IDoc from the source system. Both the extractor itself as well as the service API can send messages. When errors occur, several messages are usually sent together.
    From the source system, there are several types of messages that can be differentiated by the so-called Info-IDoc-Status. The IDoc with status 2 plays a particular role here; it describes the number of records that have been extracted in a source system and sent to BI. The number of the records received in BI is checked against this information.
    Thanks & Regards,
    Rashmi.

  • Mass idoc mail has been sent to many users

    Dears,
      recently many user got lots of mail with title 'EDI: Incorrect status for inbound IDoc' in their inbox .
      i have checked these standard inbound idocs , and the process code has been linked to one task, such as TS00008068.
    Via we19 i have created one error idoc and i have got one mail in inbox with title
    'EDI: Partner profile not available '.
      But such mail with title 'EDI: Incorrect status for inbound IDoc' has been to sent many users and i can not find what error triggered such workitem....
      should i set one agent in the agent assignment of standard task ?

    i just found that all these message with title 'EDI: Incorrect status for inbound IDoc' has been triggered with task TS30000020.
      any advice ?

  • The email message cannot be sent. Make sure the outgoing email settings for the server are configured properly

    i have an issue when loading a workflow. it gives me a following error "The email message cannot be sent. Make sure the outgoing email settings for the server are configured properly". it doesnt send me any alerts and worlflow fails at the end
    with the above error message.

    Hi,
    I agree with Bistesh. But after Outgoing e-mail settings are configured properly, if the issue still exists,
    It may result from your Anti-Virus. Please refer to the following steps:
    Open MCAfee Console and go to Access Protection window.
    Click Anti-Virus Standard Protection and edit “prevent mass mailing 
    worms from sending emails” rule.
    Now we need to know which processes are being blocked therefore we need to check the MCAfee Log located at
    C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection\AccessProtectionLog.txt
    you may find entries of DtExec , DtExecUI and DatabaseMail90, now these processes need to be entered in the exclusion list of selected rule .
    Reset the IIS And SharePoint Timer service to check if this works for you.
    Here are some similar issues with you, you can use as a reference:
    http://social.technet.microsoft.com/Forums/en-US/667f0d61-4914-43fa-80c1-8cf430b113bb/workflow-email-not-working-but-normal-email-alerts-working-fine?forum=sharepointgeneralprevious
    http://techsuite.wordpress.com/2008/12/08/workflow-history-the-email-message-cannot-be-sent-make-sure-the-outgoing-email-settings-for-the-server-are-configured-properly/
    Best Regards,
    Lisa chen

  • SMTP message cannot be sent

    Hi All,
    I'm trying to send a custom ebMS document from Acme to Global Chips over Email. It is throwing me the below error message. From the below error I found out that the port number was wrong. I think it is taking the port number by default, but the actual email port number is 143, I'm not sure where I can change the port number.
    Kindly help me to fix the issue.
    Transport error: [IPT_MsgCannotBeSent] SMTP message cannot be sent.
    Sending failed;
    nested exception is:
         javax.mail.MessagingException: Could not connect to SMTP host: oracle.com, port: 25;
    nested exception is:
         java.net.ConnectException: Connection timed out: connect
    Regards,
    Priyanka

    Port number 25 is default port number for SMTP and 143 is for IMAP. Hence port numbers are correctly defined. My kind suggestion would be is oracle.com accessible for your environment. i.e please make sure HOST is correct?.
    "POP3HOST:110",
    "IMAPHOST:143",
    "SMTPHOST:25",
    If need more details to check configuration correctness, use following link
    http://java.sun.com/products/javamail/FAQ.html#1
    Right now, I don't have idea whether we can configure port number in B2B.

  • Message with Multiple IDoc's to be sent to Two FTP locations

    HI All,
    I need your valuable suggestions for the best approach....
    Scenario is IDOC > PI>FILE
    All the Orders's(Orders05) created in SAP for every hour, IDOC's are collected and then a scheduled program sends all these idoc's every hour ... In PI i am using IDOC packaging so all the idocs comes as  one message like the below...
    <?xml version="1.0" encoding="UTF-8"?>
    <ORDERS05>
       +<IDOC>
       +<IDOC>
       +<IDOC>
    </ORDERS05>
    Now in PI based on the plant condition in each idoc, the idoc data should be sent in one file for two FTP servers...
    out of 50 idocs 30 belongs to FTP1 and 20 belongs to FTP2...
    This is going as required... in SXM_MONITOR .. Two messages created (one for FTP1 and one For FTP2)
    But if 50 belongs to FTP1 , then also in SXI_MONITOR two messages being created...
    this is bcz of two mappings and 2 IM's..
    I cannot use the condition in Receiver/Interace determination, as the source has Multipe IDOC's...
    So please suggest if there is any other way where if i can restict the second message in being processed if no data comes from SAP for that FTP...
    Please suggest ....
    Regards,
    sridhar
    Edited by: sridhar reddy kondam on Aug 6, 2009 11:30 PM

    Hello Sridhar,
                 You can achive this using extended receiver determination. In UDF using count direct first 30 to 1st BusinessSystem(ftp) and remaining 20 to 2nd Business System(FTP2).
    You can take help from the following blog:
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    Regards,
    Prasanna

  • IDOC Message Type FIDCCP02 - Error RW029

    Hi All,
    We are trying to post a FB01 using a IDOC message type - FIDCC2 and struck at error message -
    <b>Accounting transaction not permitted for posting in FI/CO
    Message no. RW029</b>
    When i try to post directly using the exact data in the IDOC, through FB01, there is no problem.
    Debug showed that the error is in the following -
    Include <b>LRWCLF01</b>
    check business process
    SELECT SINGLE * FROM t022 INTO ld_t022
    WHERE activity = t_acchd-glvor.
    IF sy-subrc IS INITIAL.
    IF LD_T022-VORGTYP = 0 OR  <---------
    IF ld_t022-satztyp <> 0.
    MESSAGE e029 WITH t_acchd-glvor.
    ENDIF.
    ELSE.
    MESSAGE e029 WITH t_acchd-glvor.
    ENDIF.
    If this is not the right message type to use, can you suggest any other message type? FB01 we are trying to post is a simple GL posting, no tax, no withholding, etc. IDOC is just a 2 line posting.
    Any help/advice is highly appreciated.
    Many Thanks,
    Shashi

    Hi Shashi ,
                      This table is for Business Process t022 based on activity .
    Check your customise settings .
    There is no problem with message type .
    Please reward if useful

  • Your message was not sent. Tap "try again" to send this message. Why do i get this error?

    your message was not sent. Tap "try again" to send this message. Why do i get this error?

    Hi babychriss,
    Thanks for visiting Apple Support Communities.
    There are several possible reasons why a message might not send. I'd recommend starting with the troubleshooting steps in this article:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Regards,
    Jeremy

  • Clipboard huge mistake MacBook Pro - saved a critical message to clipboard, sent message, site had error, copied "contact us" address and oh, no, no, no my Message!  Please tell me there is a way to find it somewhere in this computer.

    Hi!  I am a recovering from  chemo patient -- lots of pain and can only sit for short periods as well as off and on brain fog yet I am alive and this is good.  It took me 3 hours today to write a very important concise yet detailed and to the point message to a doc today using the hospital patient portal messaging system.  I felt fantastic that I did it and I got it done and I did it well.   That was a big deal for me at this point in healing.  Just for any "in case" situation I did a "save" (to the clipboard) of my message before pushing  "Send".  I received the message: "Thank you!  Your message has been sent."  Then I called the doc office to let them know and while the phone was ringing I noiticed "where's the message?" and "Oh, no, no, no, it's not here!"  I hung up.  I looked under Help, read, decided to do "contact us" using my yahoo acct. instead of mail, I copied the address.  Then it hit me -- Oh no, no, no, I did not just overwrite 3 hours of off and on writing of a very important message with a puny email address, did I?! 
    I searched using Finder, via the Library, via Clipboard, via this and via that -- the only thing I saw that was at the same time I had "saved" the text to the clipboard was under cache.db,  and under type it said a document. I have no idea what that is or how to open it and when I selected it there was the message to go to the APP store or use an existing program/application and I have no idea what to chose.  I don't even know if that might be what I saved to the clipboard before I made my great faux pas.
    Could anyone please help me?  Am I looking in the right place?  Is there a right place? 
    When I do a Finder search for Clipboard the last entry was earlier on the 16th.  I did this on the 17th.  Under cache under library is the only matching time.
    I don't think I have it in me to rewrite (let alone remember) that entire letter (message) .
    I will be ever so grateful for advice, for how-to; oh please, there must be a how-to -- those words didn't just disappear into non-existance, right?
    Thank you for your time, for reading all of this and for any assistance. 
    So sincerely,
    Melinda

    Hi adam26, 
    Welcome to the Sony Community! 
    We certainly empathize with your frustration and we apologize for the inconvenience caused. Please check your other thread here, we saw someone from our customer relation department already responded to your inquiry. Again, we sincerely hope to seek your kind understanding on this matter. 
    Regards, 
    Dave 

  • Access Server-SAP IDOC Message Question

    Hi.
          We have configured an access server to receive realtime IDOC messages from SAP. Required configuration has been done on the BODS side:
    On Web admin console for RFC client configuration and real-time service configuration
    On the SAP RFC Connection, logical system, and partner profile setup side.
    Issue is on the SAP side it shows message was sent successfully where as on the BODS side the message received count is 0.
    Any insights any one can share regarding how to troubleshoot this issue would be really appreciated
    Thanks
    Rajiv

    Thanks. It was an IDOC mismatch error.
    Now we do have correct IDOC mismatch but to me now it seems to be a data issue now.
    I have the real-time job and I am getting the following error when I view Access server logs.
    SP(PPROLL01, l1.no.com:3500)::flowThread() Flow became invalid during waiting for request (BODI-300137)
    Unknown: R3RfcClient(NewR3Rfc_1) ActaIDocFunc::Process() encountered processing error for Requeste(4) (Communication Error. See real time job log for details.) (IDOC 0000000000209266/RPD210    ). (BODI-300129)
    Real time job log does not show any thing in the error log other than the trace log which shows:
    DATAFLOW: Cache statistics determined that data flow <DF_ZFII034_PPAYROLL01_TEST_RT> uses <0> caches with a total size of <0> bytes. This is less than(or equal to) the virtual memory <3757047808> bytes available for caches. Statistics is switching the cache type to IN MEMORY.
    To check if the mapping is valid I created another batch job using the same IDOC as used in the real-time job above but BODS gives me a generic error. I had all tracing enabled even then it gave a generic error.
    458946     1     RUN-050505     08/09/2009 3:45:25 PM     |Dataflow DF_SAP_BATCH_V1|Transform Q1-Nest1
    458946     1     RUN-050505     08/09/2009 3:45:25 PM     Unknown error in transform <Q1-Nest1>.
    All the fields in the input are varchar or date type and the repository database and staging database is oracle 10G.
    Thanks for the help,
    Rajiv

  • SOAP Receiver- Error While Sending Message: 500 Internal Server Error

    Hello,
    Our scenario: IDoc to SOAP
    I have added a third party system in the SLD and have used the same in my ID configuration.
    An idoc will be triggered from R/3, which will received in PI, PI will transform the IDoc into SOAP message for the third party system.
    I have tested the scenario in ID from Interface Determination and its successful.
    But when i try to try to test it from RWB, using Test Message in Adapter Engine, I get an error,
    "Error while sending message:500 Internal server error"
    If we test it using a testing software like SOAP UI, it works fine but from PI we get the error mentioned above.
    Regards,
    Abhishek

    Hello,
    Since the IDOC adapter resides on the ABAP stack, you can use this URL instead (it will be sent to the integration engine as Venkata suggested)
    http://host:port/sap/xi/engine?type=entry
    Also check your firewall settings from PI to the third-party system.
    Hope this helps,
    Mark
    Edited by: Mark Dihiansan on Feb 7, 2012 11:48 AM

  • Error sending Idoc's to SAP

    Hi,
    I'm getting error in file-XI-SAP scenario. File is read and transformed to Idoc ok, but then I get this kind of error message in SXMB_MONI:
    <SAP:Stack>Error: Basic type 'HRMD_A01' is unknown</SAP:Stack>
    What I'm I missing in the scenario?

    Hi Tapio,
    Take a look at this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/6a/e6194119d8f323e10000000a155106/content.htm
    Error: No IDocs could be sent to the SAP BW using RFC.
    Hope it helps you.
    Cheers,
    Chandra

Maybe you are looking for