cancel
Showing results for 
Search instead for 
Did you mean: 

Help with control record in IDOC

Former Member
0 Kudos

Hey guys

can anyone help me with setting up values in Control record for an IDOC to File scenario.

my configuration is as below

On R/3 Side

RFC destination(SM59) - SAPXI

Logical System(BD54) - SAP_IDOC

Port to XI(WE21) - P_SAP_IDOC

Partner Profile(use LS created in WE20) - SAP_IDOC

On XI side

RFC Destination(SM59) - SAPR3

Port to R/3(IDX1) - XI2R3

Please give me the values i need to put into my control record,everytime i m getting error 37 in WE02

thanx

ahmad

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

as you said ,network prob.

Check the IDoc data correctly.. ,

did you mapped any thing in EDI_DC40 control record ..

Regards.

Chilla..

Former Member
0 Kudos

hey

no i mapped only in E1LFA1M.i m struggling with this for the past 10 hrs,its already 4:30 here.will try different combinations tomorrow.

thanx for ur help guys

Ahmad

prabhu_s2
Active Contributor
0 Kudos

okie u need to map in EDI_DC40 also. check for this and hopeful it shud work.

Former Member
0 Kudos

Hey guys

i m still struggling with posting the IDOC from R/3 to XI for my IDOC-XI-File scenario.below is the configuration i have done.can anyone provide me all the entries i need to make in WE19,control structure.

On R/3 Side

RFC destination(SM59) - SAPXI

Logical System(BD54) - SAP_IDOC

Port to XI(WE21) - P_SAP_IDOC

Partner Profile(use LS created in WE20) - SAP_IDOC

On XI side

RFC Destination(SM59) - SAPR3

Port to R/3(IDX1) - XI2R3

R/3 system ID: EI3

R/3 Client :800

XI system ID: NXI

XI Client: 400

In SLD

Business System: BS_IDOC_file (using logical system EI3CLNT800).

as i m doing this just as a test scenario,i m mapping only one value (Title ) from IDOC to my file structure.

i m unable to push the IDOC from R/3.

can anyone provide me with all the entries i need to make in my control structure.

thanx

ahmad

Message was edited by:

Ahmad

Former Member
0 Kudos

Hi Ahmad,

The Port created in IDX1 should be named as SAPEI3 as suggested in SAP help link http://help.sap.com/saphelp_nw04/helpdata/en/3b/beb13b00ae793be10000000a11402f/content.htm

and give these vales for control record

Receiver:

Port : P_SAP_IDOC

Partner number : SAP_IDOC

Partner Type : LS

Sender:

Port : SAPEI3 (same as port created in IDX1)

Partner number : EI3CLNT800

Partner Type : LS

Try this and let us know the results.

Regards,

Uma

Former Member
0 Kudos

Thanx

yeah these values are working fine,also are my other configurations correct,like logical system names and everything?

thanx

ahmad

Former Member
0 Kudos

Hi Ahmad,

Glad that you got it worked

All other configurations are correct.

Its better to name Port as SAP<sys-id> and RFC destniation with client number since it gives more readability.

Regards,

Uma

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

let me know the configurations what you have configured.

Regards

Chilla..

Former Member
0 Kudos

Hey

i followed the IDOC to File blog by prateek shah,actually i cant even send IDOC,moreover my network keeps on getting disconnected.

i jst wanna know,wat all entries i need to put in sender n receiver control structures.

On R/3 Side

RFC destination(SM59) - SAPXI

Logical System(BD54) - SAP_IDOC

Port to XI(WE21) - P_SAP_IDOC

Partner Profile(use LS created in WE20) - SAP_IDOC

On XI side

RFC Destination(SM59) - SAPR3

Port to R/3(IDX1) - XI2R3

thanx

ahmad

Message was edited by:

Ahmad

Former Member
0 Kudos

Hi,

Check in Partner profile for Idoc type under Outbound parameters.

I think these control record values are correct.

Receiver:

Port : P_SAP_IDOC

Partner number : SAP_IDOC

Partner Type : LS

Sender:

Port : SAP<Sys-ID of R/3 system>

Partner number : <Sys-ID of R/3 system>CLNT<Client number of R/3 system>

Partner Type : LS

The RFC and port created in XI system will be used for importing IDoc's metadata in XI system. Use IDX2 transaction in XI system for importing metadata.

Regards,

Uma

Former Member
0 Kudos

Hi Ahmad,

There are lot of threads on IDOC to file. If u do a search with "IDOC to file" as search string, you can get all those.

Am giving some of them. With these info, you can surely finish your scenario successfully.

Go thro Abhy's reply in this thread:

some more:

Regards,

P.Venkat

Former Member
0 Kudos

Hi,

If the Idoc status is 37, then the reason is Idoc added incorrectly,

Solution:

Please checkout the Partner profile for outbound or inbound created or not. And also check the values you entered in testing IDoc, if it is existing , After creating the Partner profile we need test again by WE19.Here you can send the Existed IDoc ,or Create new test IDoc

In your case :

in We19 enter and try the following settings

Receiver:

P_SAP_IDOC

SAP_IDOC

Sender:

XI2R3

partner no --- as indicated above..

LS

Regards

Chilla..

udo_martens
Active Contributor
0 Kudos

Hi Ahmad,

Sender Port: P_SAP_IDOC

Sender Partner Type: LS

Sender Partner Nummer: SAP_IDOC

Rec Port: ...

Rec Partner Type: LS

Rec Partner Nummer: log System Receiver resp Adatper spec Identifier of XI Bus Syst

Regards,

Udo

Former Member
0 Kudos

Hey

i m getting conflicting responses,and no matter which reply i follow i m still getting error 37.

thanx

ahmad

prabhu_s2
Active Contributor
0 Kudos

can u get the error text. you can get it thru control rec

Former Member
0 Kudos

Hey i m getting

error code 37,IDoc added incorrectly,and also says sender port in control record is invalid

thanx

ahmad

prabhu_s2
Active Contributor
0 Kudos

<i>IDoc added incorrectly</i>

Is your IDoc type customized? If yes check if the created IDoc is alligned with the strucutre fo the IDoc type.

Former Member
0 Kudos

Ahmad,

Try to reprocess the IDOC from inside the SAP using we19 by changing the sender port. try different combinations inside SAP before tryin it from XI. It could be some other problem with IDOC configuration

Former Member
0 Kudos

Hi,

Control Record:

Receiver:

~~~~~~

Port : P_SAP_IDOC

Partner number : SAP_IDOC

Partner Type : LS

Sender:

~~~~~~

Port : SAP<Sys-ID of R/3 system>

Partner number : <Sys-ID of R/3 system>CLNT<Client number of R/3 system>

In SLD, while creating business system for R/3 specify the logical system as <Sys-ID of R/3 system>CLNT<Client number of R/3 system>. For example, if your r/3 system's ID is ABC and client is 001, then name should be ABCCLNT001

Regards,

Uma