Inbound Processing of iDoc Status Message

Silly me - I thought this would be simple ...
I am currently changing our bank interface from a customized ABAP solution to use more standard SAP utilities (particularly iDocs).  I have the configuration set up to use the PAYEXT message type sending PEXR2002 iDocs to a file port.  Our bank is receiving these documents and is returning an iDoc status message containing the status of each payment iDoc that they received from us.
My problem is that I can't figure out how to get these status iDocs to update the status of the corresponding PEXR2002 iDoc.
I am trying to execute an RFC interface to apply these status messages to my system using the following OS command:
D:\usr\sap\VPR\SYS\exe\uc\NTAMD64\startrfc.exe -3 -d RT2 -u xxxxxx -p xxxxxx -c 220 -h SPR32K36 -s 00 -F EDI_STATUS_INCOMING -E PORT=ZFI_INT003
The error message that I receive when this is run is:
RFC Call/Exception: SYSTEM_FAILURE
Group             Error Group 104
Key                RFC_ERROR_SYSTEM_FAILURE
Message        Status record 1 is invalid (TABNAM: 'EDI_DC40')
The port (ZFI_INT003) is the file port that is configured for the outbound file.  in WE20, this port has the "Status File" tab set to use the logical file name where the status file is being stored on the server.  the startrfc command is connecting to the SAP system and opening the status file.  I'm not sure where I'm going wrong here. 
Can someone please help get me pointed in the right direction?  I've obviously missed something here.
Thanks,
Glen

Hi,
call function modules:
EDI_DOCUMENT_OPEN_FOR_PROCESS
   EDI_DOCUMENT_STATUS_SET
   EDI_DOCUMENT_CLOSE_PROCESS
kind regards,
HP

Similar Messages

  • Capture Messages while Inbound processing of IDOC

    Hi ,
    I have a scenario where in i have to upload a file from application server using inbound IDOC. I am using the program RSEINB00 (using submit) for this, The idoc is getting posted successfully but i need to capture the messages in form of a log so that i can find out what all IDOC numbers are generated and how many of them. In case any error is there. I need to display a log of it.
    Timely help in this regard will be appreciated and rewarded suitably.
    Rgds,
    Kewal
    P.S. : Please suggest if there is any other method to process inbound IDOC (accept we19 TX)

    Hi kewal ,
    As per the scenario explained by you , I suggest you to do following steps
    1.The program you are using is RSEINB00 , has a function mosule present named ' IDOC_ERROR_WORKFLOW_START'. This function module can gice yo the Error message log in case of Inboung IDOC processing fails.
    2.You have two options , eithe you find out any user exit and atttach your own code to it or Complaetely cope that code into your z-program. Int he function module mentioned above , the export parameter  ' G_MESSAGE_FIELDS ' wud give you the error message , error status , error no etc.
    3. So for the INbound IDOC status messages starts with 51-70 , so depending upon ur logic , read all those message into an internal table .Then transfer that to a file .So an error log can be genearated.
    I hope this solves ur problem.
    Regards.
    Note: Reward if useful.

  • IDOC Status message

    HI
    I have to pick IDOC status message in my report program.  For this I am referring the table EDIDS. My doubt is some times the IDOC status message is storing in the field ‘STATXT’ and some times the idoc status message is storing in the fields STAPA1, STAPA2, STAPA3,STAPA4.  How come I know  I mean from which field I need to pick status message in my report program. I am giving idoc number as input to the table EDIDS. If possible please send me the sample code to resolve this problem. I will give points.
    Thanks a lot in advance.

    Hi,
    STAPA1, 2, 3 & 4 are the place holder values for the message..
    If you have a message in SE91..like
    Sales order & created.
    The & will be given in the program where it displays the message.
    MESSAGE s208(00) WITH vbak-vbeln.
    The vbak-vbeln value will be stored in field STAPA1.
    Thanks
    Naren

  • Remove Idoc Status Message

    Hi,
    Is there any way we could remove the IDoc status message after IDoc posted successfully? I have created the customized idoc status and want to remove the standard message since it is overlapping message.
    Any helps is very much appreciated.
    Thanks.
    regards,
    Faread

    Hi,
    IDOC systat01 can be used to change
    the IDOC status very easily
    (you put the idoc number and new idoc status basically)
    http://help.sap.com/saphelp_46c/helpdata/EN/75/4b3c1cd14811d289810000e8216438/content.htm
    REgards,
    Vasanth

  • Inbound Processing of Idocs with status other than success

    Hi,
           I am new to ALE/Idocs. Can anyone  please let me know how can I process the Idocs which have the status other than 53.
    Thanks &  Regards,
    Indira

    Hi,
    In addition to the previous posts few more programs to process failed inbound IDocs are as mentioned below.
    - Use program RBDAGAIE to process edited IDocs (IDocs with status 69)
    - Use program RBDAPP01 to process IDocs failing with serialization issue (IDocs with status 66)
    - Use program RBDAGAI2 to process IDocs after ALE inbound error (IDocs with status 56, 61, 63, 65)
    ~ Bineah

  • Plant missing in the inbound processing of IDOC ORDERS?

    Hi gurus,
    We are using IDOC ORDERS to create sales order in the inbound processing of R3 4.7 system, finally we found the sales order was created succesfully in VA03, but the plant(WERKS) and storage location(LGORT) couldn't be seen even the idoc has relevant value.
    Have you met this case? Any help will be appreciated. Thanks.

    Hi Himanshu,
    Thans for your reply. I gave the field  E1EDP01-WERKS the relevant value, but in VA03 we couldn't see the plant value when the idoc status was 53. When we debug it in WE19, we found the plant value probably wasn't assigned.
    Any ideas?

  • IDoc Status Messages

    Hi All, Is there any Function Module or standard report which will list out all the Status messages of an IDoc...Basically i need to capture all the segments which are in error state... In EDIDS table i am not able to link to a particular segment.
    Please help me out
    Thank You,
    Regards,
    Swaroop Patri...

    HI,
    <b>ALE/IDOC Status Codes/Messages</b>----
    01 Error --> Idoc Added
    30 Error --> Idoc ready for dispatch(ALE Service)
    then goto SE38 --> Execute the Program RBDMIDOC
    29 Error --> ALE Service Layer
    then goto SE38 --> Execute the Program RSEOUT00
    03 Error --> Data Passed to Port ok
    then goto SE38 --> Execute the Program RBDMOIND
    12 Error --> Dispatch ok
    <b>Inbound Status Codes</b>
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    Regards
    Sudheer

  • IDOC status "Message scheduled on outbound side"

    Hi,
    I am working on scenario file->XI->SAP R/3(Using IDOC). I am getting outbound status of IDOC as "Message Scheduled on Outbound side". When I go and see SM58 for user WF-BATCH there exists a entry with status Transcation Recorded". In SM58 if I manually click Execute LUW then only I am getting an IDOC posted in my R/3 box, but this should happen automatically.
    Can any one tell me what should I do so that it gets executed automatically?
    Thanks In Advance.
    Yaseen Mahammad.

    Most of the time it is because of the Queues and Logical system. I,e If there is no proper logical systems are created/maintained then it will give problem.
    And it also depends on the rfc Dialog users.
    Just check this thread-
    Problem with IDOCS
    Also check in the IDX1 entry...
    Thanks,
    Moorthy

  • User Exit  for Inbound Process - Changing IDOC control record

    Hi,
    I want to utilize the identification field (under details tab) of the IDOC Control Record. What is the suitable user exit for inbound process that i can use to change the IDOC control record?

    It's been a long time since I have done any IDOC processing. 
    Go to SE37 and enter the function module IDOC_INPUT_ORDERS.  Display the source code.  Search for "CALL CUSTOMER".  You should see several "CALL CUSTOMER-FUNCTION" lines.  These are enhancements where you can manipulate the IDOC data.  If you locate the correct one (where the data is read from the IDOC but not yet validated), you should be able to map the partner function value.  Double-clicking on the number in quotes will bring you to an "EXIT_" function module.  A "ZX" INCLUDE program is referenced.  If you haven't used the exit yet, double-clicking on the ZX INCLUDE will create it.  The values passed into the function module are available in the INCLUDE.
    Ideally, you should create a project in transaction CMOD that references the chosen enhancement.  This way you can activate/deactivate without commenting/uncommenting the code in the INCLUDE.

  • IDOC Status Messages Documentation

    Can anyone help me in sharing the link to see complete documsntation of various IDOC Statues.
    Thanks in advance.

    Hi Vinita,
    I don't know if there is a documentation like the one you are looking for. The reason is, that IDOC applications may set the status number in a different manner.
    You can look at the short texts in table TEDS2 - this should be self-explaining and just a few status are used.
    If you still have questions, please describe the situation including IDOC and Message type, in- or outbound.
    Regards,
    Clemens

  • Delivery date issue in the ASn inbound process via IDOC

    HI
    we want to start with ASN and we ´re already receiving IDOC´s
    DESADV Delvry03
    we are using Fm /SPE/IDOC_INPUT_DESADV1 and we have tried IDOC_INPUT_DESADV1 but teh reesult was the same.
    The segment E1EDT13 Qualifier 007/009/006  exist and we are able to create a inbound delivery. The problem we have is that we are not able to calculate the delivery date in the inbound delivery.
    The idea was that the vendors sends us the GI date (Qualifier 007) and our SAP calculates based on the plannend delivery time in the SA/PO the expected GR date 8what we see in MD04). But at the moment we only the creation date as delivery date.
    what do we miss?
    thanks for the help
    regards
    Alex

    Hi,
    Firstly, for DESADV processing delivery date field (LFDAT) is taken from qualifier '007' while goods issue is from '006'.
    As far as I understood you would like to get delivery date based on data from given delivery schedules. But note that inbound delivery items are not related specifically to delivery schedules. Instead, those are referenced to purchasing document items only. Therefore it is not exactly specified what delivery date should be selected for which inbound delivery.
    Alternative could be to perform scheduling for inbound deliveries based on route transit times etc.But in standard inbound delivery types are not available for SD scheduling and thus it is not directly available.
    If you need to get such functionality, you would need to use one of the DESADV processing u-exits available and include your own logic for lfdat calculations.
    Regards,
    Dominik Modrzejewski

  • Mody idoc Status Message Content?

    Hi,
    I am sending idocs to another server and if there is an sending-error the idoc reports a status 02 with the HTTP Status. Could I modify this standard message? I want to tell the "user" what to do if he gets e.g. HTTP Status 403.
    Thnx

    Hi,
    check port settings and check tht wether all are active or not .
    hope tht there might be some problem there.....
    Regards,

  • Inbound processing of idoc

    Hi,
    What are inbound posting modules ?
    If i use a ABAP program to read valuers from a flat file to a internal table and if i supply the internal table to a posting module will a Idoc be created?
    If not Please suggest how i could transfer the data in my internal table to a idoc.
    Regards,
    Vignesh

    Hi,
    Try using this FM:
    FM IDOC_INPUT_FIDCC2
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Error In inbound Processing IDoc

    Dear All,
    I am facing error while inbound processing of IDoc
    In status record of IDoc following errors are occuring
    Status 60 : EDI: Syntax error in IDoc (mandatory segment missing)
    The segment E1MAKTM has the attribute 'Mandatory' in the syntax description of the basic type MATMAS05 (customer enhancement ). However, the segment is missing in the IDoc
    Status 51: Application Document not posted
    Log details :
    Error : Material Number should be filled.
    When i checked IDoc all 4 fields in E1MAKTM have the values in inbound IDoc.
    Please guide me how to resolve these issues so that IDoc will be posted and Material Master will get created in reciever system.
    Thanks

    Hi Praveen,
    I checked the data in IDoc for this segment.
    It is ok as required in basic message type.
    e.g. the error says that mandetory segment E1MAKTM is missing.
    when i check basic type
    MSGFN : Function
    internal data type : CHAR
    Internal length : 000003 characters
    Position in segment : 001, Offset : 0063. external length : 000003
    SPRAS : Language Key
    internal data type : LANG
    Internal length : 000001 characters
    Position in segment : 002, Offset : 0066. external length : 000001
    MAKTX : Material Description (Short Text)
    internal data type : CHAR
    Internal length : 000040 characters
    Position in segment : 003, Offset : 0067. external length : 000040
    SPRAS_ISO : Language according to ISO 639
    internal data type : CHAR
    Internal length : 000002 characters
    Position in segment : 004, Offset : 0107. external length : 000002
    is information.
    and data in segment of IDoc is
    MSGFN     005
    SPRAS     E
    MAKTX     MANATA2000 TEST ALE
    SPRAS_ISO     EN
    which i think is ok.
    I have no clue why this syntax error is coming.
    Thanks
    Niketan

  • Idoc inbound processing? from non-sap system?

    Hi experts,
    I'm confused with some functions below:
    IDOC_INBOUND_SYNCHRONOUS
    INBOUND_IDOC_PROCESS
    IDOC_INBOUND_SINGLE
    IDOC_INBOUND_ASYNCHRONOUS
    can you tell me what are the differences? when to use them?
    for sap outbound processing, we can only call function master_idoc_distribute to generate idoc or use message control to trigger outbound idoc. no other options, correct?
    for sap inbound processing, if we use message control for automatical posting, we have process code which read  the inbound idoc file and do the sap posting. when to use those functions above?
    does the middlewares like seeburger, GIS call those functions to generate idocs at SAP side?
    in what scenarios can we use those functions? read directly non-sap file into sap internal table then call the functions to create inbound idoc? how about the posting? call inbound processe code function after the functions above?
    in case the interface between sap and legacy system is using above functions to build inbound idoc in sap and sap use process code for inbound posing, sap can monitor all inbound process using idoc, but how can the legacy system mornitor the interface?
    Thanks.
    Legend.
    Edited by: legend li on Dec 21, 2010 4:58 PM
    Edited by: legend li on Dec 21, 2010 5:40 PM

    Hi Christophe,
    Awesome!!!!!! it worked, You are the best.
    I could able to create a sales order in CRM,but below are the valid data I passed in the respective segment fields.Except for first 3 values rest all did not get reflected in teh Sales order.I feel i am missing some qualifiers.
    Can you kindly share the  IDoc data to be passed in...along with respective segments and fields:
    Segment                                                 Field
    E101CRMXIF_BUSTRANS     OBJECT_TASK         
    E101CRMXIF_BUSTRANS     PROCESS_TYPE
    E101CRMXIF_BUSTRANS     POSTING_DATE
    E101CRMXIF_PARTNER                          PARTNER_NO
    E101CRMXIF_PARTNER                RELATION_PARTNER_NO
    E101CRMXIF_ORGMAN         SALES_ORG
    E101CRMXIF_ORGMAN          DIS_CHANNEL
    E101CRMXIF_ORGMAN         DIVISION
    E101CRMXIF_SALES             PO_NUMBER_SOLD
    E101CRMXIF_SALES            YOUR_REF_SOLD
    E101CRMXIF_SALES            PO_NUMBER_SHIP
    E101CRMXIF_BUSTRANS_ITEM     ITEM_NUMBER
    E101CRMXIF_BUSTRANS_ITEM     ITEM_TYPE
    E101CRMXIF_BUSTRANS_ITEM     ORDERED_PRODUCT
    E101CRMXIF_PRODUCT_I     PROCESS_QTY_UNIT
    E101CRMXIF_PRODUCT_I     PROCESS_QTY_UNIT_ISO
    E101CRMXIF_PRODUCT_I     BASE_QTY_UNIT
    E101CRMXIF_PRODUCT_I     BASE_QTY_UNIT_ISO
    E101CRMXIF_SCHEDLIN_I     ORDER_QTY
    Thanks a ton in advance .
    Vijay

Maybe you are looking for