Outbound IDoc Error: Status Code 37  'Sender Port' is invalid

Hi
I have an Error when the Outbound IDoc is triggered.
It shows that 'Sender Port in Control Record is invalid'.
Status Code: 37.
I know that there are some issues with the Sender Port Definition.
Please help me out to solve this problem using some checkpoints at each and every step.
Reward Points Assured.
Regards,
Baburaj

Hi Baburaj Manickam
Good
Follow this simple procedure
1) Send an outbound IDOC data(MATMAS) to a flat file on client1(SENDER).
-  Create File Port (WE21) for outbound file.
-  Maintain Distribution Model (BD64) for sender ->receiver system.
-  Create Partner Profile (WE20) for logical system.
-  You can use this program RBDSEMAT (t/code BD10) to generate IDoc MATMAS file(s). 
_  Then you can FTP the file(s) to receiver system.
2) Upload the flat file as an IDOC on the inbound sytem
which is Client2(RECIEVER).
-  Create File Port (WE21) for inbound file.
-  Maintain Distribution Model (BD64) for receiver -> sender system.
-  Create Partner Profile (WE20) for logical system.
-  You can use this program RSEINB00 to upload IDoc MATMAS file(s). 
INBOUND IDOC PROCESSING:
Firstly attach your idoc to a process code.
In the process cod you can tell the system that the specified program should be triggered whenever an idoc of that type comes to the system.
Then you want to have a Z-function module for your idoc processing, if I understand correctly.The steps should be:
1. Create a z function module for idoc inbound posting (copy from a function module idoc_input_*).
2. Set Function Modules as Inbound: - Transaction BD51
3. Assign Function Modules to Logical Messages and Idoc types:- Transaction WE57
4. Create process codes : Transaction WE42, and link the z-function module.
5. Create partner profile: transaction WE20 and attach the message type and process code.
6. In the Z- function module, extract data from the idoc segments, do whatever processing you want to do, and then call BAPI_CREATE_SALES_ORDER_FROMDAT2.
Try the Trasaction WE19 for testing your inbound and outbound IDOCs
Good Luck and Reward me for the same
Thanks
Ashok.N

Similar Messages

  • Inbound IDOC error - status code 52- application document not fully posted

    Hi,
       In Inbound IDOC, the status code is 52 ---> Application document is not fully posted(satus of the inbound idoc is in yello colour). I want to reprocess this idoc in BD87 t.code in order to convert the yellow colour to green colour. Before reprocessing the IDOC, i need to rectify the problem and then reprocess the idoc in bd87. am i correct? if yes, what i need to do to solve the error --->application document not fully posted. Please guide me friends.
    Thanks in advance.
    Regards,
    Sri

    HI
    If you are FM to process the inbound  IDOC,
    possibilities are like below .
    Reason 1 :
    In partner profiles, check is it trigger immediately or not ? for particular partner profile which u r using .
    reason 2 :
    If you are using BDC code to update the data .if any screen contains error then also you will get the status in yellow .
    reason 3 :
    Have you tried with  TCODE  BD87 ,  might be it is processing error also .
    i have worked on same probelm so  if u r not solved with the issue after trying above 3 reasons .
    reply me back .

  • Outbound IDoc Error status 26

    Hello All,
             I have got one issue in outbound IDoc scenario. ( Basic type is ORDERS02 ). The IDoc failure  status shown in WE02 as 26 (Error during syntax change of IDoc outbound).  To solve this I am trying to Repeat Output through VA02 ( as this is related to salesorder) , it does not give the same error status 26 . Rather it gives status as 30 i.e. IDoc Ready for dispatch which I then process through BD87 gives status 03 i.e. Data passed to port OK .
           I repeted this for 4-5 times, everytime I do not get any error status (as that was occured at the very first time) .
    Kindly suggest what should be done to overcome this.
    Thanks in anticipation...

    Hi Ubhaka,
    In that case you should check the segments associated with the message type.Also, check the partner profile settings.
    At first (when you got the error) what was IDOC generation method - was it through VA02 or some custom/standard program? If the methods were different for generating Idocs then check the program.
    Hope that helps!
    Regards,
    Saba

  • How to Reprocess Outbound Idocs in Status 02 (Errors)

    Hi,
        I have an urgent problem. How do I re-process an Outbound IDoc in Status '02' (Error Passing Data to Port)
        I have tried reprocessing this IDoc through BD87 using both the options Edit>Process and Edit>Restrict and Process, but it doesn't work
         Please help as we are migrating cutover data from SAP to another system
    Regards,
    Aditya

    Worth to have a look at this thread
    Error handling problem with outbound idoc status 02 and  XML HTTP Port
    Regards
    Vivek
    Reward points for all the useful answers

  • IDOC ERROR Status 02

    Hi,
    I am getting IDOC Error status 02.
    "Error passing data to the port".
    I am using a file port and passing the data from IDOC to the file.
    Idoc is getting created successfully but the file is not created.
    Any idea?

    hi
    use tcode BD83 for reprocessing error idocs in outbound
    in program
    If you want to use a type T connection to start an external RFC server program, enter the name of this program here. Enter the complete path name if possible. You cannot use the command line to specify any parameters for the program.
    Type T destinations are connections to external programs that use the RFC API to receive 'Remote Function Calls'. You must specify the host name and the pathname of the program to be started. The communication method depends on how you select the program location:
    'Explicit' selection
    In this case, the program is started either by the standard gateway program for the system or by the explicitly specified gateway (gwrd) via 'remote shell'.
    Ensure that the computer with the gateway process can access the specified computer by entering '/etc/ping <host name>'.
    In order to be able to start a program on another computer using 'remote shell', the target system must fulfil certain conditions. The user ID of the gateway process must exist and a file called .rhosts must also be present in the user's home diretory. The file .rhosts must contain the name of the calling computer. To check this, logon to the computer containing the gateway process with the appropriate user ID and enter the command 'remsh <host name> <program name>'. The <host name> and <program name> must be the same as in SM59. (If you call an RFC server program without any parameters, the RfcAccept call always returns an error code (RFC_HANDLE_NULL) and the program terminates at once.)
    'Server'
    By entering the 'server', you start the program from the SAP application server.
    First, ensure that the program can be accessed from the SAP application server and that the SAP application server has the authorization to start the program.
    To check this, logon with the user ID of the SAP application server (e.g. c11adm). If possible, go into the 'work' directory of the SAP application server ('/usr/sap/.../D.../work') and try to start the RFC server program manually from there. (As in the above case, if you call an RFC server program without parameters, the RfcAccept call always returns an error code (RFC_HANDLE_NULL) and the program terminates at once.)
    'User'
    By entering the 'user', the program is started by 'SAPGUI', i.e. under the user's ID and environment.
    Ensure that you can access the program with 'SAPGUI'/'SAPTEMU'.
    Ensure that 'SAPGUI' has the authorization to start the program.
    To check this, simply call the RFC server program in your environment.
    The function call can also be asynchronous (CALL FUNCTION ... IN BACKGROUND TASK DESTINATION ...).
    <b><REMOVED BY MODERATOR></b>
    regards
    Nagesh.Paruchuri
    Message was edited by:
            Alvaro Tejada Galindo

  • AdControl error: HTTP error status code: NotFound (404)

    For over a week now, a Silverlight WP 8 app with an AdControl configured for "test_client" continues to report this error and thus no bing ad visible either while running from an emulator (8.1 512) or from a WP 8 device. If I change the AdUnit
    to use a PubCenter ID it works fine on the device and ads are displayed. The emulator connects to the Internet just fine via IE.
    Could the ad server not be responding to the "test_client"?
    Could someone let me know if it has worked recently for them? I tried contacting MS and no one seems to have an app configured with the test ad... I could give MS so many helpful suggestions. But looking at the hundreds of un-answered posts here - I
    suppose they're busy with Windows 10...and have they asked developers if they're willing to put up everything on the cloud? all the while people still waiting to see the 'start' button on Windows 9?
    here's the trace
    Ad Err: NetworkConnectionFailure,Microsoft.Advertising.Shared.AdException: HTTP error status code: NotFound (404) ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned
    an error: NotFound.
       at System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
       at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClasse.<EndGetResponse>b__d(Object sendState)
       at System.Net.Browser.AsyncHelper.<>c__DisplayClass1.<BeginOnUI>b__0(Object sendState)
       --- End of inner exception stack trace ---
       at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
       at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at Microsoft.Advertising.Shared.HttpRequest.EndGetResponse(IAsyncResult asyncResult)
       at Microsoft.Advertising.Shared.WebRequestWrapper.WebRespCallback(IAsyncResult result)
       --- End of inner exception stack trace ---
    I do love Windows - don't get me wrong - I'll check my 2nd dev system soon.

    Hi Ravi,
    Reward points if this helps
    The J2EE server might be overburdened and cannot accept the call. The 'Receive'servlet is not called. You will find further details on the HTTP status code definitions under "http://www.w3.org". Check the accessibility of the server by calling: http://<hostname>:<port>/MessagingSystem/receive/AFW/XI.
    The Listener Beans of the affected connection (AFW, Marketplace, BC,see above) were not registered or the log-specific Event Handler was not found.
    Check out this trouble shooting guide for SAP XI...Section 7.4.4.4 talks about exactly the same problem:-
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd5950ff-0701-0010-a5bc-86d45fd52283
    Reward points if this helps
    Regards
    Pragathi.

  • Handling outbound IDOC errors through workflow TS00007989

    Hi,
    I want to sent an notification e-mail to external mail box when an outbound idoc has an error status. This needs to be achieved through a workflow template.
    I noted that there is a standard task TS00007989 in WE40 which is used for handling outbound idoc errors.
    Moreover i couldnt find any trigerring events for the above task.
    Can any one help me with a step by step guide for achieving this.
    Regards,
    Krishnakumar

    Hi,
    the single step task TS00007989 that you see is NOT TRIGGERED thru' any BO's event. It is created by the std. pgm RSEWFERR. If you go to the wflow log of the witem generated by it, you will see the Creator.
    And you can control the activation / deactivation of these single step tasks for various inbound and outbound Error IDOC's thru' Transaction WE46.
    If you want, create a single step task of your own and maintain that task here. But, you will ahve to know the exact BO like IDOCORDERS or IDOCEMBMAS etc. or look for events triggered by General IDOC objects like IDOCAPPL.
    Hope this helps.
    venu

  • Fill Idoc error status

    Hi Folks,
    I am trying to fill the IDoc error status when processing inbound ORDERS IDoc.
    Code looks OK.
    But i am not getting the IDoc in error status.
    Pl look @ the code and let me know.
    data: w_errtab like errtab occurs 0 with header line.
    if condition fails.
    move derrtab to w_errtab.
    w_ERRTAB-ARBGB = 'IDOC_ADAPTER'.
    w_ERRTAB-CLASS = 'E'.
    w_ERRTAB-MSGNR = '902'.
    w_ERRTAB-MSGV1 = xvbak-bstdk.
    w_ERRTAB-MSGV2 = s_kunnr.
    w_ERRTAB-MSGV3 = s_vbeln.
    append w_ERRTAB.
    DESCRIBE TABLE w_errtab LINES sy-tfill.
    derrtab = w_errtab.
    endif.
    The IDoc status is still 53.
    Thanks,
    Matt

    call customer-function '011'
             exporting
                  dxvbak  = xvbak
                  docnum  = idoc_contrl-docnum
             tables
                  derrtab = errtab
                  dxvbap  = xvbap
                  dxvbep  = xvbep
                  dxvbadr = xvbadr
                  dxvbpa  = xvbpa
                  dxvbuv  = xvbuv
                  dedidc  = idoc_contrl
                  dedidd  = idoc_data
                  dxkomv  = xkomv
                  dxvekp  = xvekp
                  dyvekp  = yvekp.
        describe table errtab lines anzahl.
        if anzahl gt 0 and input_method = 'X'.
          export errtab to memory id 'idoc_test_errtab'.
        endif.
        if anzahl gt  0  and
           xaprau eq 'D'.
          loop at errtab where arbgb eq 'VG' and
                               msgnr eq '219'.
            anzahl = anzahl - 1.
          endloop.
          if anzahl eq 0.
            refresh errtab.
          endif.
        endif.
        if anzahl ne 0
         and input_method is initial.
          perform determine_user.
          perform statusrecord tables errtab.   " This is place in which IDOC_STATUS table get filled from
                                                " ERRTAB. Please check whether your IDOC_STATUS have
                                                " the Error record 51 that you inserted
          call customer-function '010'
               exporting
                    docnum      = idoc_contrl-docnum
               tables
                    derrtab     = errtab
                    xbdidocstat = idoc_status.
        else.

  • Outbound Idoc error handling through workflow

    Hi,
    I am trying to set up the workflow for outbound error handling. I found that there is a task TS00007989 which need to set up.
    How this task can be triggered when outbound idoc error occurs in the system?
    Kr,
    Vithalprasad
    Edited by: Vittalprasad on Jun 9, 2010 11:52 AM

    Hi,
          Have a look
    Outbound IDoc Error Handling via Workflow
    Outbound idoc error handling through workflow

  • I downloaded the latest version and I get this error when I open it. Problem signature:   Problem Event Name:     InPageError   Error Status Code:     c0000185   Faulting Media Type:     00000003   OS Version:     6.1.7601.2.1.0.768.3. Any clue why or how

    I downloaded the latest version and I get this error when I open it. Problem signature:   Problem Event Name:
    InPageError   Error Status Code:
    c0000185   Faulting Media Type:
    00000003   OS Version:
    6.1.7601.2.1.0.768.3. Any clue why or how to fix?

    InPageError
    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get itunes to launch properly afterwards?

  • Idoc inbound error status code 56

    Hi,
       when i am sending custom idoc from source system to destination , idoc sent successfully from source system .But  in the receiver system idoc status code is 56 ( idoc with errors added) .
    partner profile also available in the receiver system. How to solve the error.can any one pls give me the solution.
                                                                                    Regards,
                                                                                    Suhash.

    Hi,
    Check this link..[IDOC Status code 56 !!   |IDOC Status code 56 !!]
    [Re: Status 56 - IDOC with errors added   |Status 56 -  IDOC with errors added]
    Edited by: Avinash Kodarapu on Mar 19, 2009 4:55 PM

  • Outbound Idoc 03 status - SM58 error

    Hi ,
    For Oubound Idoc, I am getting Idoc with status 03 but is not there in Receipient system.
    When I check Idoc in Sm58, Idoc has error <b>"The ABAP/4 Open SQL array insert results in duplicate database records".</b>
    Can anybody help me how to solve this issue?
    Thanks & regards,
    Yogita

    use FM idoc_status_write_to_database to change the IDoc status from 03 to 30 and then  run WE14 or  RSEOUT00 to change the status back to 03
    resending idoc from status 03 ...is a data duplicatino issue on receiving side...why do u need to do that ?
    Use WE19 tcode to debug
    In we19
    1)U can choose your Idoc number in existing Idoc textbox
    2)Press execute
    3)u will display ur Idoc struct
    4)Dbl click on any field then u can modify its content
    5)PressStd Outbound Processing Btn to process modified Idoc
    Thats it

  • Idoc error Status 37 ?

    Hi friends ,
    I am trying to send an invoice idoc from one client to another client . When i go and excecute  / we19 / I get the following error.
    Error : “IDoc 0000000000000017 was saved but cannot or should not be sent “
    When I go to /nwe02 / it says
    Status 37 : “IDOC added incorrectly  “
    EDI sender port  in control record in invalid .
    Please tell me where i am going wrong ?
    Thank you

    Hi Alisha.
    are you trying to generate the idoc using a file?if that is the case please check your file if it has the right control data.
    if u are just testing a standard outbound scenario,please check your partner profile(we21) and port definitions(we20).
    hope this helps

  • Error status code 400 with the description Message mapping failed

    Hi,
    I tried to build RFID outbound scenario using ECC 5.0, XI and AII 2.1.
    When I send IDOC message:AIDOPMSG.AIDOP01 from ecc 5.0 to XI(ouput message type is OperationalIn and message mapping is OperationalInTo), i get following error:
    <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
      <SAP:P1>400</SAP:P1>
      <SAP:P2>Message mapping failed</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>Message mapping failed</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>HTTP response contains status code 400 with the description Message mapping failed Boundary SAP_57D7D47469E09543A1EA0002CBDA0492_END could not be found</SAP:Stack>
    I am using standard AUTO-ID 2.1 XI contents. If any of you have encountered such error message, then could you please help me understand the meaning and how to fix it.
    thanks in advance,
    Ashit

    hi Ashit,
    take a look at my weblog on how to test your mapping:
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    maybe with this you'll be able to find out the error
    Regards,
    michal

  • WE-19 Inbound Idoc Process - Status Code 51

    Hi,
    I generated Outbound idoc COND_A successfully to send it out to XI. I used same Idoc again in WE19 and changed partner details and tried Inbound Processing. Its giving me error code 51 ("ISO Currency USD can not be converted unambiguously to SAP currency for E1KOMG" )
    Any Idea how to fix this error. basically I did not changed anything.
    Message was edited by: Ram Krish

    Appana,
    Thank you very much for your reply.
    I did setup all parameters as Iam getting this Idoc as an Inbound to R3 as well. Thsi Idoc will be both Outbound and Inbound to R3.
    I successfully sent this Idoc to XI. and then as I wanted to test the same Idoc for inbound, I changed Paramters according to my setup.
    Sequence of status are
    74 - created with test transaction
    50 - Idoc added
    64 - Idoc ready to be transferred to Application
    62 - Idoc Passed to Application
    51 - ISO currency USD can not be converted unambiguously to SAP currency for KOMG
    I looked at several fields in E1KOMG segment and changed one of the currency field to USD which didn't help to fix this error.
    I really appreciate any help to fix this error.

Maybe you are looking for

  • ADF and EJB. Why so little samples / information

    Hi All, I was wondering if other JDev / ADF developers have the same feeling as me in regards to ADF / EJB. There is barely enough information and examples on using ADF with EJB. Seems that most examples and blogs are related to BC instead. I was rea

  • Search not returning all 10 results per page

    Anyone seen this? When i do a search, i don't get all 10 per page... "Results from your search: 1055. Showing: 1-7." however, when i hit 'next' "Results from your search: 1055. Showing: 11-16." why aren't i seeing 8, 9 17, 18, 19....etc? 6.1 portal

  • How do I modify PDFs On iPad

    Please help

  • A sample coding for fun. module ' MRM_DBTAB_RSEG_READ' using subroutine

    i need to have this function module within the subroutine. something like this perform item_detail using p_belnr p_gjahr changing  i_irseg loop at i_irseg. write:/ i_irseg-belnr. endloop. form item_detail using p_belnr p_gjahr changing  i_irseg CALL

  • Component Samples and Tutorials (RoadMap)

    Hi to all,   Does someone know, is there any place where developers can find simple samples or tutorials how to use WD components (e.g. in my case I need Roadmap). Thanks in advance.   Best Regards, Aleksandar