Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

[IDOC] Test customized IDOC

Former Member
0 Likes
635

Hey,

created a customized IDOC in system A and added an inbound

process code.

Now I would like to test the IDOC in we19 from system B, but the customized

IDOC doesn't exist (of course) there.

How to test this IDOC? Do I have to transport this in system B?

Can I test IDOC also in system A himself? I just want to test if the configuration

of process code works.

In system A I can use we19 with standard inbound, but which receiver port do

I have to use? I just have created a port to system B. For testing IDOC in just

one system, do I have to create also a port/logical system to system A?

thanks

chris

Edited by: Christian Riekenberg on Jul 8, 2008 4:18 PM

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
608

I think you want to test only the process code calling the IDoc inbound function module correctly or not?

If you have RFC connection between B to A. then go to WE19 create a dummy entry giving all the following details


Receiver                            Sender
-------                             ------
Port                                Port                 
Partner No.                         Partner No.          
Part. Type                          Part. Type           
Partner Role                        Partner Role


Message Type         

and check in system A that IDoc you got received. It will show as an error , but that errors should shows it getting created in the inbound function module call

a®

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
609

I think you want to test only the process code calling the IDoc inbound function module correctly or not?

If you have RFC connection between B to A. then go to WE19 create a dummy entry giving all the following details


Receiver                            Sender
-------                             ------
Port                                Port                 
Partner No.                         Partner No.          
Part. Type                          Part. Type           
Partner Role                        Partner Role


Message Type         

and check in system A that IDoc you got received. It will show as an error , but that errors should shows it getting created in the inbound function module call

a®

Read only

0 Likes
608

Yes, correct. I created an own IDOC and an own function moduel /process code and want to

test my configuration.

But without IDOC message type in system B I can't send a dummy IDOC. Also I need some test data in the sending IDOC which are handled in function module...

Read only

0 Likes
608

Then write a small testing program in system B and call function module


  call function 'MASTER_IDOC_DISTRIBUTE'
    exporting
      master_idoc_control            = wa_edidc
    tables
      communication_idoc_control     = i_edidc
      master_idoc_data               = i_edidd
    exceptions
      error_in_idoc_control          = 1
      error_writing_idoc_status      = 2
      error_in_idoc_data             = 3
      sending_logical_system_unknown = 4
      others                         = 5.

If you want to use WE19 then u need to have message type and IDoc type to be configured in system B

a®

Read only

0 Likes
608

And testing IDOC inbound process in system a with we19 in system a is not possible?

thx

Read only

0 Likes
608

While testing the inbound in system A thru WE19 you can test only the inbound function module working fine or not and NOT process code.

In WE19 while testing you have only option for inbound testing is giving function module name and NOT process code

a®