Program to check IDOC Status

Hi,
I am new to ABAP and this is my first assignment so request you to please help me with step wise details.
I have to create a program which should trigger the mail automatically to the specific set of people about the status of an IDOC as per the
Message Type,
Direction,
Message Variant,
Message Function.
Thank you
I hope this is markes as question

I am not a ABAPer but I will tell what we did to achieve this for Inbound IDOCs.
We had different plants across the globe and they send IDOCs into SAP and wanted to send a status email to the plant leads if the idocs posted in SAP or not.
We created a Business Workplace SBWP distribution list with plant code in the distribution list name, and included all the list of people email address in this distribution list who should receive the IDOC status email when IDOC's failed to post in SAP.
In the inbound Process Code/Function module WE42, you can also click on process code from WE20 for your inbound message type and go to the function module characteristics and in the event INPUTERROROCCURRED, my ABAP team wrote the code to look for distribution list for the plant where the IDOC is coming from based on partner profile that we setup in WE20 and send an email out.
Please also look into
Mail to be triggered when IDOC fails
thanks

Similar Messages

  • How to check idoc status through code

    Hi All,
    Can we check idoc status from within the code? My requirement is that once the idoc is transmitted correctly(status 12) to the system (outbound),I need to update a few fields in my custom table.
    Please share some information if available on this.
    Thanks and Regards,
    Ameya Kulkarni

    Hi
    The table EDIDC will contain the necessary information.  Please check.

  • IDoc: Status: Application document not posted

    Hi Friends,
           I am New to ALE/IDOC.  Based on the ALE_QUICKSTART  documentation. I have tried to send  material from one client to other client. (within system) To do that
    I have created two logical systems and assigned them to corresponding clients.
    Created a RFC destination and assigned logical systems.
    Created Distribution model in sending client.
    Created partner profile in both clients.
    Created Material and send to receiving system using BD10 tcode.
    I checked Idoc status in Sending system, Idoc status is 03-Data is passed to port OK, status 30-Idoc ready for dispatch and  status 01- Idoc generated.
    But in receving system  (Inbound Idoc)- I got status- 51-Application document not posted and Function module not allowed: AFS_RETAIL_ARTMAS_IDOC_INPUT.
    I also checked partner profiles in both systmes- both r same.
    Kindly tell me what went wrong and what should i do.
    Pl.provide answers pertain to this problem only.
    Thanks in advance,
    S.Senthil

    Hi Chris,
            Thanks for ur reply.  I am not using is-retail and I have Generated MATMAS idoc in sending system.
          Kindly provide me answer.
    Thanks in advance,
    s.senthil kumar

  • How to check the status of an IDoc in the Target system

    Hi Experts,
    we are using a self-made program to send Material and BOMs from Client A to Client B into the same ERP System.
    How can I check the status of an IDoc in the Target Client B (like BD87 - ALE Monitor) ?
    If you have some examples or Function, please give me the information.
    Rewards if helpful.
    Regards,
    David

    Hi David
    As mentioned in the earlier reply you can check your status with tcodes:-BD87,WE02,WE05.What i guess from your querry is the staus of your idoc whether posted or not in target client B.Check in the target client for the message type which you are using (since its an program that means you must be using an customised idoc type or standard) .You might have maintained Basic type tcode:-WE30.Give in your messagetype,Basictype,Created at and executed using tcode :- BD87.The prerequisites are you need to create an Partner Profile(WE20) .For this you need to create to provide in your message type and Process code(we41,we42,we57).If you have to create an process code for customised one(se37) .You need to actuivate the idoc inbound processing .If you are using a file in your file make it sure the port is being maintained for the same to chek for unicode format in tcode :-WE21 (check or uncheck).
                    For standard BOM i recon you are using message type :-BOMMAT  and Processing code as:-BOMM.Its always advisible that instead of using an whole abap program you need to have an ETL tool that would take care of the extraction of data provided your client do have existing Legacy system in its place since it would be much faster and easier.
    Regards
    Somnath

  • Reg idoc status check

    Hi i have to check the idoc status 51  or 68 how to write the code

    Execute the program RC1_IDOC_SET_STATUS.
    enter the Idoc number , present status , New status and execute.
    Check this link
    http://www.erpgenie.com/sapedi/idoc_statuses.htm
    Regards

  • I ordered the full creative cloud on sunday and received an order number but still can't open any of the programs. When i check the status of my order online, it says it can't find it. Is this normal after 3 days?

    I ordered the full creative cloud on sunday and received an order number but still can't open any of the programs. When i check the status of my order online, it says it can't find it. Is this normal after 3 days? I tried asking in a chat window instead of the forum but no one answered and after about ten minutes my screen restarted and closed the chat window down. It seems a little frustrating not knowing what happened to my order and not being able to contact anyone. Is all this usual with Adobe or are they just having technical problems this week?

    Does your Cloud subscription show on your account page?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • I sent in my iPod nano to the replacement program about two weeks back. However, I checked the status of the repair and it still says it has not been received yet. Is there any way to follow up on where the nano could be? I sent it via FedEx.

    I sent in my iPod nano to the replacement program about two weeks back. However, I checked the status of the repair and it still says it has not been received yet. However, my boyfriend sent in his the same time I did and his repair status says repair being diagnosed. I still have the "receipt" of the package when they first sent it to me. I sent it via FedEx. Is there any way to follow up on where the nano could be or maybe find out if I can still get a replacement even though my nano might be lost in transit?

    I sent it via FedEx. 
    Call FedEx.  They will be able to track their own packages.  They will let you know if your iPod Nano was delivered and to who!

  • Return vector for points done of check buffer status in onboard program

    Background
    I am trying to develop a trigger application based on the current position of a contour profile.
    I can not use breakpoints as the application is using hydraulic cylinders with analog feedback
    for the primary position. In order to make sure the trigger happens relative to the motion regardless
    of host load I want to run the application as an onboard program.
    My idea is to read the buffer status points done and generate a pulse out as a trigger when the
    points done is greater than the programmed trigger point. For example if I want to trigger on the 42
    point of a 100 point profile, I would read points done of the main contour buffer. When points done
    is greater than or equal to 42, I would generate a short pulse as a trigger.
    Question
    My problem is, I cannot find the order that the check buffer status VI returns the data to an onboard program
    return vector. As I understand it, I need 3 variables to hold the returned data. One each for State, Backlog, and
    Points Done. If I set the return vector to 10, does State get stored in 10, Backlog in 11, and Points done in 12, or
    is there a different order?
    If you could provide the return vector mapping order for all the motion VIs, it would be greatly appreciated.

    Hello,
    This is a very good question. I checked in the help for the LabVIEW VI, and it does not explicitly state the answer. The VI calls the FlexMotion function "flx_check_buffer_rtn". In the "NI-Motion Function Help" (Start>>Programs>>National Instruments>>NI Motion>>Documentation), the information for the functions states that it "...returns data in the following order: backlog, bufferState, and pointsDone." It also tells you the size of each of the elements. I will be filing a report so that the LabVIEW documentation includes this information in the future. I hope this helps. Take care!
    Regards,
    Aaron B.
    National Instruments

  • Changing idoc status by programs

    when we will go for changing the idoc status code ?? Actually what is the use behind that ?? why we are forcing the system to chagne the status using some program ?? In which situations normally we will do that ?? Is it a valid procedure to do that ?? suppose idoc status is change from 51 to 68 using Program RC1_IDOC_SET_STATUS.
    thanks
    kumar

    Hi pavan! thanks for your reply !
    >>so the users will manually change the idoc instead of changing the legacy file. and chagne the status.
    manually change the idoc means the data of idoc or sth else ?? could you please calrify the same ?? once if you change the status of idoc ...suppose 51 to 68 again you got to run the exteranal program  to proces the idoc ??
    >>then we've schduled a job which will process the edited idocs, so that all idocs will post again with correct data
    Could you please tell me what do you mean by (actually what it is ??) scheduling of a job ??  Is it like that any executable program ?? or you are going to send the new idoc ??
    thanks
    kumar

  • Error 8 when starting the extracting the program-data load error:status 51

    Dear all,
    <b>I am facing a data exracton problem while extracting data from SAP source system (Development Client 220). </b>The scenario and related setting are as the flowings:
    A. Setting:
    We have created 2 source system one for the development and another for the quality in BW development client
    1. BW server: SAP NetWeaver 2004s BI 7
    PI_BASIS: 2005_1_700 Level: 12
    SAP_BW: 700 Level:13
    Source system (Development Client 220)
    2. SAP ERP: SAP ERP Central Component 6.0
    PI_BASIS: 2005_1_700 Level: 12
    OS: SunOS
    Source system (Quality Client 300)
    2. SAP ERP: SAP ERP Central Component 6.0
    PI_BASIS: 2005_1_700 Level: 12
    OS: HP-UX
    B. The scenario:
    I was abele to load the Info provider from the Source system (Development Client 220), late we create another Source system (Quality Client 300) and abele to load the Info provider from that,
    After creating the another Source system (Quality Client 300), initially I abele to load the info provider from both the Source system – , but now I am unable to load the Info provider from the (Development Client 220),
    Source system Creation:
    For both 220 and 300, back ground user in source system is same with system type with same authorization (sap_all, sap_new, S_BI-WX_RFC) And user for source system to bw connection is dialog type (S_BI-WX_RFC, S_BI-WHM_RFC, SAP_ALL, SAP_NEW)
    1: Now while at the Info Package : Start data load immediately and then get the
    e-mail sent by user RFCUSER, and the content:
    Error message from the source system
    Diagnosis
    An error occurred in the source system.
    System Response
    Caller 09 contains an error message.
    Further analysis:
    The error occurred in Service API .
    2:Error in the detail tab of the call monitor as under,
    <b>bi data upload error:status 51 - error: Error 8 when starting the extracting the program </b>
    Extraction (messages): Errors occurred
      Error occurred in the data selection
    Transfer (IDocs and TRFC): Errors occurred
    Request IDoc : Application document not posted (red)
      bw side: status 03: "IDoc: 0000000000007088 Status: Data passed to port OK,
                                    IDoc sent to SAP system or external program"
      r<b>/3 side: status 51:  IDoc: 0000000000012140 Status: Application document not posted
                                   Error 8 when starting the extraction program</b>
    Info IDoc 1 : Application document posted (green)
       r/3 side: "IDoc: 0000000000012141 Status: Data passed to port OK
                     IDoc sent to SAP system or external program"
       bw side: "IDoc: 0000000000007089 Status: Application document posted,
                     IDoc was successfully transferred to the monitor updating"
    Have attached screen shots showing error at BW side.
    •     check connection is ok, tried to restore the setting for bw-r3 connection – though same problem
    •     Have checked partner profile.
    <b>what's wrong with the process? </b>
    Best regards,
    dushyant.

    Hi,
       Refer note 140147.
    Regards,
    Meiy

  • IDOC status at 30, but in we05 it is 03

    Hello Gurus!!
    My program generates an IDOC and as soon as the idoc is generated it the status is 03 then i have todo something else.
    Within the program when i am cheking the status is 30 but actually in transaction we05 the status is 03.
    I have cheked the partner profiles and transfer_idocs_immeadiately has already been selected.
    I have already gone thru the forum but no valid solution was given,
    There is no need to change any ALE configurations / port configurations because everything just work fine. It is only that within the program i am not able to catch the status 03. the proram is not waiting untill the idoc status is 03. it is capturing only the status 30.
    Is there any thing that i can do within the program? should i capture the idoc number and then check the idoc status from EDID4?
    Please answer o this questions ASAP.
    Regards.

    Initially when you create the outbound idocs then status is 30. then you have to run the program RSEOUT00 to process the idoc then after the processing the status changes to 03.
    But the Program RSEOUT00 is optional. In the partner profile (WE20) If you select the option  'Collect Idocs', then you have to schedule the program RSEOUT00 to process the Idocs otherwise if you have choose the option 'Transfer idoc immediately', you don't need to do anything.
    Thanks,
    Srinivas

  • IDoc status 53 in employee replication from SAP HR

    Hi experts,
    We are having some problems in CRM BP creation with role employee.
    We are using CRM 5.0 and SAP ECC 6.0 and we are trying to replicate employee’s information to CRM from HR.
    After read the notes 934372, 615896, 550055, 363187, 312090 we made the next configuration steps in our systems:
    R/3:
    - Creation of connection port (trans. WE21)
    - Creation of logical system (trans. WE20) and assignment of outbound message HRMD_ABA
    - Creation of distribution model (trans. BD64) with all filters indicated in note 312090
    CRM
    - Creation of logical system (trans. WE20) and assignment of inbound message HRMD_ABA
    - Creation of conversion between basic types HRMD_A05 and HRMD_ABA01 (trans. WE70) as described in note 312090
    - Creation of conversion between message types HRMD_A and HRMD_ABA (trans. WE73) as described in note 312090
    - Creation of external number range “ZE” from HR01200001 to HR01299999 (using PA04 in R3 we found the number range between 01200001 and 01299999)
    - Creation of BP Grouping with the same name of number range (“ZE”) checked to be external too
    - Update of table T77S0 (using SM30):
    HRALX HRAC X
    HRALX PBPON OFF
    HRALX PBPHR ON
    HRALX PBPON ON
    HRALX PNUMB 3
    HRALX PPROL BUP003
    HRALX PSUBG ZE
    PLOGI PLOGI MV
    We know we should have the same value in R3 and CRM for PLOGI/PLOGI, so we created in CRM MV because that is the plan version used in R3. To create it, we just manually add a new row in table T778P and then selected it in table T77S0. Is this the correct way to create a plan version?
    After these steps, in R3 we execute program RHALEINI with parameters:
    - Plan version = MV
    - Object type = P
    - Object ID = an active employee
    - Reporting period = all
    - Transfer mode = Insert
    - Receiving system:
    Receiving partner No = DCRCLNT300 (logical system created in WE20)
    Message type = HRMD_ABA
    And everything looks fine in R3.
    In CRM, using trans. WE05, we can see that the iDoc is created, apparently without problems with status 53 - "Applicaton document posted" but the business partner is never created.
    Did we miss some configuration steps?
    Should we do something more after see the iDoc in CRM to create BP?
    Thanks in advance.
    Alda

    hi pratk bhai,
    ya i have done the same setting what Ada has mentioned eariler,
    and as of your suggestion to maintatin the mandatory infotype, i have even done tht,
    after running RHALEINI in R3, the status is all green here.
    when i run the tcode BD87  to check the Idoc status its showing fine (Error free).
    now, through tcode se38 the report CRMHRALE_CENTRAL_PERSON shows all the employees as status green,,
    but the partner number is not getting generated. ( i have used HRALX-PNUMB= 3 (Prefeexing the number range coming from R3)).
    kindly advice me what should be done in order to generate a BP number for the replicated HR Employee.
    best regards,
    Madhup

  • IDoc status is not coming to '03'

    Hi,
    When I run my program, it is giving IDoc status as 30. When I go and see in WE05, it is showing same status. It's not getting 03 status.
    I know that we can bring the status to 03 by executing the program RSEOUT00. But I want this to come from my program where I have used MASTER_IDOC_DISTRIBUTE function module.
    Generally, even though I get status 30 in the program, when I go and see in WE05, 03 status is displayed. But I don't know what happend this time, it is showing 30 status even in WE05 also.
    Please tell me what could be the reason.
    Regards,
    Suman.

    Hello,
    Check if there are any dumps in the system
    Or
    if there are any authorization issues.
    IF there are dumps, then the system usually stops autoprocessing the idocs and you might need to schedule the program at periodic intervals to get the idoc in status 03.
    Thanks,
    Sushil Joshi

  • How to find Correct IDoc Status in SAP

    Hi All,
    I need some help on IDoc scenario, I have custom program to create Idoc and as well it will send IDoc to XI. I want to know idoc staus in the program to update custom table whether idoc sent successfully or not but idoc giving status as 03 (Data passed to port OK) irrespective of idoc send or not, actually idoc not sent to xi when I check SM58 showing error.
    Please advice me how to find correct idoc status inside program itself.
    **-----Create IDoc
      CALL FUNCTION 'IDOC_OUTBOUND_WRITE_TO_DB'
        TABLES
          int_edidd      = i_edidd
        CHANGING
          int_edidc      = wa_int_edidc
        EXCEPTIONS
          idoc_not_saved = 1
          OTHERS         = 2.
      COMMIT WORK.
      i_edidc = wa_int_edidc.
      APPEND i_edidc.
      REFRESH i_edidd.
    **-----Send Idoc
      CLEAR i_edidd.
    **-------Send Idoc to XI
      CALL FUNCTION 'EDI_OUTPUT_NEW'
        EXPORTING
          onl_option = 'B'
          error_flag = ' '
        TABLES
          i_edidc    = i_edidc
          i_edidd    = i_edidd.
      COMMIT WORK.
      READ TABLE i_edidc INDEX 1.
    **-----Update Dispatch order status based on Idoc status.
      IF sy-subrc =  0 AND i_edidc-status ='03'.
        znxi01_update c_03 i_edidc-docnum.
        gw_success_record = gw_success_record + 1.
      ELSE.               " Error in Data Transfer
        znxi01_update c_02 i_edidc-docnum.
        gw_fail_record = gw_fail_record + 1.
      ENDIF.

    Hi Anil,
    for setting IDOC Status you can send back a IDOC of type <i>ALEAUD01</i>.
    The function IDOC_INPUT_ALEAUD takes automatically this IDOC and writes the status to the origin IDOC.
    Regards Mario

  • RSETESTD program to purge IDoc entries won't delete certain IDoc records

    Hello experts,
    I am in the mist of purging the IDoc entries in my system by using RSETESTD (WE11) program to delete the IDoc entries.
    As far as I know, this program will delete the IDoc entries regardless of the status.
    While doing the testing, I find out that when I filter the program to delete IDoc entries from certain date range (which results in WE02 shows there is an IDoc entries with the status 51 and 53 in the range that I selected), the program only select and will run the deletion for IDoc with status 51, but not 53.
    It will show that "No IDoc is selected" when I tried to delete IDoc with status 53. I double check and I found out that in that date range that I selected from WE02 transaction, there is around 17 of IDoc records with status 53, which is not deleted/detected when I want to delete it using RSETESTD.
    Can someone help to enlighten me on why this behaviour is happening please? Are there certain type of IDoc records that this program can't delete? I find out in other system, I have no problem to delete IDoc with status 53 records.
    Thanks and Regards,
    Shakir

    check if the change date is outside your entered date range

Maybe you are looking for