Any BADI returning the 'IDOC Status'  during IDOC generation.

Hello All,
I need a BADI which is being called during any IDOC generation and which returns the 'IDOC Status' i.e. Pass/Fail etc.
So far I am able to find BADIs like 'IDOC_DATA_MAPPER' or ''IDOC_DATA_INSERT'' but such BADIs only return the IDOC document number.. they do not return any information on IDOC Status (the field Status field remains blank).
Can any one suggest some solution on this please.
Regards
Vikas Gupta

Hi Erik,
Thanks for your reply, though i was able to get the status from BADI IDOC_DATA_MAPPER itself (earlier there were some config issues...which were creating some problems) but thanks for letting me know about table EDIDS, it helped at places.
Regards
Vikas Gupta

Similar Messages

  • Get the current status of IDOC

    Hi,
    I want the current status of IDOC.
    Is there any function module through which i can get the current status of IDOC?

    Hi,
    Use function module "FTR_IDOC_READ", Output structure "PE_IDOC_STATUS" holds the current status of IDOC number
    Regards
    Vinod

  • IDoc Status "& & & &" in IDoc posting in BD87 - ALE

    hi,
    I am integrating two R3 servers and posting the datas from HR to cProjects server.
    In Outbound I can send the IDocs and In Inbound IDocs are getting into destinations (cProjects) servers along with status "& & & &" in BD87.
    Can anyone help me to know..Where the cause of problem..
    Thanks in advance
    Regards,
    Srinivasan.R

    Hi.,
    In we02 its OK..
    Its showing ...
    Status Message for Selected IDoc                                                               
    Status Text:   IDoc: 0000000000036306 Status: IDoc ready to be transferred to application       
    T100 Text:     No filters , No conversion , No version change .                                 
    But., in place of BD87 I am getting status only "& &, &, &".
    Regards,
    Srinivasan.R

  • Unable to connect to SQL Server : bad return code or status

    When attempting to connect to a server running Windows Server 2008 R2 and SQL Server 2008 R2 the following error message is returned.
    Error Connecting to Database
    A SQLServer request resulted in a bad return code or status but no error message was returned.
    The client is pointed to another similar server running Windows Server 2008 R2  and SQL Server 2008 R2, a connection can be made successfully.  Looking at the registry both servers have the same version of MDAC 6.1.7601.17514.
    UPDATE 
    The SQL Server Error Log records the following information.
    Message
    Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client library. [CLIENT: 10.1.30.106]
    Message
    Error: 17836, Severity: 20, State: 17.
    It seems like the client is actually reaching the SQL Server but failing to login.

    The version of MDAC on the server doesn't matter.  It is the client version of MDAC/WDAC that is used.  Do you know what SQL Server API the client application is using (i.e. ODBC, OLE DB, SqlClient, JDBC, etc)?  You might try a simple connection
    test from ODBC data source manager or script.
    I think this may be error message from a Sybase client.  That would explain a lot.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Is there any BAPI returning the affected organisational units to users?

    Dear all,
    I would like to ask a question about organizational units. Whenever I want to affect a user to a given unit I
    use PPOME transaction. If I want to do this in ABAP level I use the function module RH_RELATION_WRITE.
    I would like to know, is there any BAPI returning the affected organizational unit to a given user?
    Thanks in advance,
    Kind Regards,
    Dariyoosh

    Alberto Sesma wrote:
    You can use Function Module RH_STRUC_GET
    >
    >
    > CALL FUNCTION 'RH_STRUC_GET'
    >   EXPORTING
    >      ACT_OTYPE = 'US'
    >      ACT_OBJID = user_name
    >      ACT_WEGID = 'US_CP_O'
    >   TABLES
    >        RESULT_TAB = LT_RESULT_TAB.
    >
    >
    > You will get the related org units in LT_RESULT_TAB. There are other two table parameters in that function module that you may find useful.
    >
    > If the function does not return any valid data you may try with other values for WEGID. You will find all the possible evaluation paths in transaction OOAW.
    >
    > Kind regards
    Dear Alberto,
    Thank you very much for your answer. I didn't know this FM and it solved my problem.
    For those who may be intered here is exactly I proceed. Suppose that in the table HRP1000 you have an
    structure (type S) with ObjID = 50000342 and you wish to have the SapUserID of the affected persons.
    DATA:
          affected_users TYPE STANDARD TABLE OF swhactor,
          user LIKE LINE OF affected_users.
    START-OF-SELECTION.
      CALL FUNCTION 'RH_STRUC_GET'
        EXPORTING
          act_otype              = 'S'
          act_objid              = '50000342'
          act_wegid              = 'A008'
          act_plvar              = '01'
          act_begda              = sy-datum
          act_endda              = sy-datum
          act_tdepth             = 0
       TABLES
         result_tab             = affected_users
    EXCEPTIONS
       NO_PLVAR_FOUND         = 1
       NO_ENTRY_FOUND         = 2
       OTHERS                 = 3
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT affected_users INTO user.
        WRITE: / user-objid.
      ENDLOOP.
    Also in transaction OOAW we can have all possible values for the third argument of the module function (act_wegid).
    For those who are interested, here are a few among many possible values which seem to be intesting for my
    problem.
    DFPS_DG1----
    Organizational Unit of User
    DFPS_DG3----
    All Org. Units Above a User
    ORGAS----
    Closest Organizational Unit and structure
    ORGASS----
    Closest Organizational Unit and structure     
    PPLEORG     -
    Organizational unit of an employee or position
    SAP_ORGP----
    Organizational assignments of a user/person
    SAP_USOG----
    Organizational Assignments of a User
    SAP_US_S----
    Positions and Personnel Number of a User
    US_S_S_C----
    All positions and jobs of a user
    WFM_ORGU----
    Organizational Assignment of User
    WF_ORGUN----
    Organizational unit of a user/person (module id Ben./Pers.)
    For example, let's say we have a userid named MYUSER01 and we would like to find all structures to which the user
    is affected. Here is how I proceed.
    DATA:
          itab_user_structures TYPE STANDARD TABLE OF swhactor,
          row_user_structures LIKE LINE OF itab_user_structures.
    START-OF-SELECTION.
    CALL FUNCTION 'RH_STRUC_GET'
        EXPORTING
          act_otype              = 'US'
          act_objid              = 'MYUSER01'
          act_wegid              = 'US_S_S_C'
          act_plvar              = '01'
          act_begda              = sy-datum
          act_endda              = sy-datum
          act_tdepth             = 0
       TABLES
         result_tab             = itab_user_structures
    EXCEPTIONS
       NO_PLVAR_FOUND         = 1
       NO_ENTRY_FOUND         = 2
       OTHERS                 = 3
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT itab_user_structures INTO row_user_structures.
        WRITE: / row_user_structures-objid.
      ENDLOOP.
    Thank you very much for your help.
    Kind Regards,
    Dariyoosh

  • IDOC STATUS - 51 " IDOC HAS TEST STATUS"

    I am trying to simulate store orders using WVFB transaction. Idoc is getting generated , but with the staus : 51 " IDOC HAS TEST STATUS". In WPER its not showing any erros. Idoc is - ORDERS05.
    Pls let me know, from where its getting test flag.

    Rajaram Karthigayan 
    The IDOC is getting the status 51 saying that an error has occurred assigning the data in the segment.
    This segment is a MANDATORY segment.
    IDoc status 51 - “Application document not posted”,
    Follow these  link
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a6743507d11d18ee90000e8366fc2/frameset.htm
    http://eai.ittoolbox.com/groups/technical-functional/seebeyond-l/idoc-status-51-error-has-occurred-assigning-the-data-in-the-segment-375696
    Thanks
    Sandeep sharma
    PS: if helpful please reward points

  • IDOC Status 50 / Idoc added

    Hello Guru's
    I can only find a description 'Idoc added'. What does IDOC status 50 mean?
    Best regards

    Hi,
    If the inbound idoc is posted successfully, then you will see this kind of sequence.
    50 IDoc added
    64 IDoc ready to be transferred to application
    62 IDoc passed to application
    53 Application document posted
    status codes
    50 IDoc added
    51 Application document not posted
    52 Application document not fully posted
    53 Application document posted
    54 Error during formal application check
    55 Formal application check OK
    56 IDoc with errors added
    57 Test IDoc: Error during application check
    58 IDoc copy from R/2 connection
    59 Not used
    60 Error during syntax check of IDoc (inbound)
    61 Processing despite syntax error (inbound)
    62 IDoc passed to application
    63 Error passing IDoc to application
    64 IDoc ready to be transferred to application
    65 Error in ALE service
    66 IDoc is waiting for predecessor IDoc (serialization)
    67 Not used
    68 Error - no further processing
    69 IDoc was edited
    70 Original of an IDoc which was edited
    71 IDoc reloaded from archive
    72 Not used, only R/2
    73 IDoc archived
    74 IDoc was created by test transaction
    75 IDoc is in inbound queu
    regards
    srinivas

  • IDOC status 62 -  IDOC passed to application

    Hello Experts,
    Am posting a inbound sales order custom/extended IDOC into the system from WE19, but, when I saw it in WE02/05, its showing status 62 - IDOC passed to application, i checked ST22 run time error. there is no error and also checked triggering timings, its trigger IMMEDIATELY in WE20 fo rthat partner!!
    Pls. let me kniow the reasona and fixing idea.
    Thank you

    I think you're going to want to debug through the process code (set a breakpoint in that function) and determine if you get a clean exit from there.  If so, you should see a new status in your control record and in your status table as you exit the function call.  It sounds like you've got an abnormal termination/exit from the process code, in which case the IDOC status is falling back to the last recorded status.  If this is not the case, then perhaps you've got a commit handling issue where an explicit commit is expected to finish the process but never happens.

  • Value mapping in the ERP system during IDOC creation

    We have a PI File-IDOC scenario.
    We can translate simple mappings such as currency or unit of measure in PI(7.1) using the Value Mapping function. For complicated mappings involving business logic (e.g. Tax code which is derived from multiple fields) we want to perform these mapping in the ERP (ECC6) system. Is there an approved generic SAP standard process where these value mappings can be done in the IDOC creation which is still valid when re-processing?
    e.g. a specific BADI or enhancement point recommended for these mapping?
    There might also be a requirement to add segments based on value mapping logic for example when a tax record segment is only required for a non-zero tax code which is mapped via business logic.
    Can someone please direct me in the right direction.

    Thanks for your answers but I assumed that using a user exit / Enhancement point was obvious. What I'd like to know is a generic entry point that I can estabolish a IDOC enhancement framework. Somewhere I can call a class containing methods linked to IDOC message types
    e.g. Call similar to my prototype (this will be where dependant on mappings certain segments will need to be inserted such as tax segments.
      ASSIGN control-mestyp TO <mestyp>.
        CALL METHOD (<mestyp>)
          EXPORTING
            control        = control
            data           = data
          IMPORTING
            have_to_change = have_to_change
            protocol       = protocol
            new_entries    = new_entries.
    The "entry point" must be processed both at creation and reprocess. We are also dealing with Inbound IDOCs not outbound

  • IDOC: Status (Error/Success/information)report to Sender system

    How would one send a message(error/success/information) to the sending(external) system to inform them of the statuses of the messages they've sent to our SAP system?

    Hi Baumann,
    you have an option called Audit reporting in which you can have the status of idoc at sender side.read the following.
    Setting Up Audit Reporting
    In the default behavior, after an IDoc is dispatched to a destination system, the sender does not know the state of the process on the destination system. You can configure the system, however, for cross-system reporting. You must model the ALEAUD message between the systems.
    Two programs enable cross-system reporting.
    1)RBDSTATE. This program is scheduled to run periodically on the destination system. It reports the status of incoming IDocs to the sending system, using the ALEAUD message and ALEAUD01 IDoc. This status information is recorded separately from IDoc status information in the audit logs.
    2)RBDAUD01. This program is executed on the sending system. It analyzes the audit log and displays the output as a report.
    The RBDSTATE program returns the following statuses, from the receiving to the sending system.
    RBDSTATE Is Run on the Receiving System
    Status of IDoc in receiving system     Status reported to sending system via ALEAUD
    53 (Application document posted.)     41 (Application document created in receiving system.)
    51 (Error: Application document not posted.)     Status 39 (IDoc is in the receiving system.) This status is repeated each time RBDSTATE is run, as long as the IDoc remains in status 51.
    68 (Error: No further processing.)     40 (Application document not created in receiving system.)
    reward points if helpful,

  • IDOC Status:30

    hi
    I am sending Idoc other sap system
    Giving Error
    IDOC Status:30
    IDoc: 0000000000252153 Status: IDoc ready for dispatch (ALE service)
    Receiver exists , No filters , No conversion , No version change
    Plz any solution s
    Thanking you
    Ram

    hi,
    check whether your "collect IDocs'set in the partner profile.
    if still your problem has not been solved ,check SM12 whther it has been solved or another option is you can run thru RSEOUT00 using WE14.
    Siva
    Message was edited by:
            SivaKumar

  • Am not getting correct status of IDOC after using MASTER_IDOC_DISTRIBUTE FM

    Hi,
    Am triggering an out bound custom IDOC by using my_custom_FM for sales orders. With in my_custom_FM am calling standard FM 'MASTER_IDOC_DISTRIBUTE' and distributing custom IDOC. If IDOC got failed I have to send an error message to SAP inbox (am achieving this, explicitly by using a standard FM). But, immediately after executing FM MASTER_IDOC_DISTRIBUTE, i checked the IDOC status in 'communication_idoc_control' parameter, its saying '30'(am keep on refreshing EDIDS table and WE05), even though IDOC went well. After am completely coming out from debugging the status has changed to '03' in EDIDS and WE05!
    1) Let me know how to get the correct status of IDOC immediately after executing the FM MASTER_IDOC_DISTRIBUTE (because, in next line am calling my message sending FM based on IDOC status).
    2) Or do i need to place my message sending FM some where else?
    Thank you

    Thank you.
    Unfortunately this is happening in an UPDATE task, still as a trial i tried to use COMMIT WORK, as expected it thwon a dump. Also tried only with DEQUE_ALL, no use.
    Are you sure that I can process the subsequent step/block of code(calling error message sending FM to SAP inbox) based on SY-SUBRC of MASTER_IDOC_DISTRIBUTE FM, not based on the IDOC STATUS?
    Because, just as trial, i have given a junk value(say, XXXXXX) for Message type in IDOC control, just before triggering the MASTER_IDOC_DISTRIBUTE FM.......but, still am getting SY-SUBRC = 0!! with a status of 29. Hence am thinking to do not relay on SY-SUBRC=0, sorry if am wrong
    Should i put my code of (calling error message sending FM) in any user-exit?
    Thank you

  • Function module to set user status during QA11 transaction

    Hi ,
    Anyone knows the function module to set the user status during QA11/QA12  transaction?
    I received the user status 'e.g CFA1' from an idoc data and would like to set the user set based on this idoc value during QA11/QA12 transaction.
    Any function module for this action? BDC seems impossible..
    Thanks.
    Regards,
    Clarice.

    oh i realised this function module can be used
    STATUS_CHANGE_EXTERN
    with a commit statement..

  • Get the inherited status of attributes

    Hi All,,
    I have a requirement as below:
    o     Every time the program reaches a line where the attribute ID and/or position ID is different from the previous line or for the first line, all attribute values for the dedicated position and attribute ID that are not marked as Inherited need to be deleted.
    For this i want to get the inherited status of the attributes(Whihc is present in my input file)
    can anyone help me in this?
    Moderator Message: Specs-dumping is not allowed.
    Edited by: kishan P on Apr 12, 2011 2:12 PM

    Hi,
    Use function module "FTR_IDOC_READ", Output structure "PE_IDOC_STATUS" holds the current status of IDOC number
    Regards
    Vinod

  • Check The Job Status

    Hi SAPsimhas,
    My requirement is as below.
    I will loop through an internal table and create some files with background processing method.(JOB_OPEN,SUBMIT & JOB_CLOSE)
    Now once this job is triggered I need to check the status for that job after maximum 10 mins. Its not neccessary that each job will take 10 mins. only,It can be finished in 2 mins also.
    Once the job is finished then I will XCOM that file.
    So my question is how to code such timer which will check the job status for that job? I have a FM BP_JOB_READ which returns the job status.
    Reply is highly appriciated.

    Try this way
      do.
        call function 'SHOW_JOBSTATE'
          exporting
            jobcount         = p_jobc
            jobname          = p_jobn
          importing
            aborted          = v_aborted
            finished         = v_finished
            ready            = v_ready
            running          = v_running
            scheduled        = v_scheduled
          exceptions
            jobcount_missing = 1
            jobname_missing  = 2
            job_notex        = 3
            others           = 4.
        if v_aborted eq 'X'.
          exit.
        endif.
        if v_finished eq 'X'.
          select single * from tbtcp into wa_tbtcp1
                     where jobname eq p_jobn
                       and jobcount eq p_jobc.
          if sy-subrc eq 0.
            move wa_tbtcp1-listident to p_spono.
          endif.
          exit.
        endif.
        if v_count le 10.
          call function 'ENQUE_SLEEP'
            exporting
              seconds = 60.
          v_count = v_count + 1.
        endif.
      enddo.

Maybe you are looking for

  • Error in Mail Sender Adapter

    Hi all, without any obvious reason i'm suddenly getting an error in the runtime workbench at the Communication Channel Monitoring: exception caught during processing mail message; java.io.IOException: unexpected greeting response; read * BYE Connecti

  • Long time customer and am VERY unhappy with Verizon.

    At the end of June, my contract for 2 of our phones was up. I called in to lower my plan to something more affordable. I had been on the 1400 minute plan with grandfathered in Unlimited Data for over 4 years and my bill was about $239.00/month. I hav

  • How to model a non key figure numeric field

    I am new to SAP BI, so please acceopt my apologies if I am asking a very basic question. I have some numeric fields which are attributes of master data. These fields are not key figures and will not be aggregated. How can I model this in BI? I have t

  • How can I restore the App Tabs I created for 10 different window sessions (ie 10 app tabs x 10 sessions)

    When restarting FF only the last window of app tabs is opened. All others appear lost. Is there a way to save each window of app tabs to a desktop icon for eg. and use the name as the Icon label? Or in Bookmarks "Restore all windows with App Tabs"

  • Problem in accessing the url on client with win7 64 bit

    Hello experts, we recently install fusion 11.1.2.1.0 and database 11g. scenario: database server:(192.168.1.100) plateform: window server 2008, 64 bit product: oracle database 11g. application server:(192.168.1.101) plateform: window server 2008 64 b