cancel
Showing results for 
Search instead for 
Did you mean: 

Get RCVPRN field for IDOC control structure using Function.

Former Member
0 Kudos

Hello Experts,

I want to create a inbound IDOC from the program. And I am using function "MASTER_IDOC_DISTRIBUTE".

but I need to fill up structure lw_edidc that is passed to the function.

lw contains RCVPRN field


      CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
        EXPORTING
          MASTER_IDOC_CONTROL                  = lw_edidc
        TABLES
          COMMUNICATION_IDOC_CONTROL           = li_edidc[]
          MASTER_IDOC_DATA                     = li_edidd[]
       EXCEPTIONS
         ERROR_IN_IDOC_CONTROL                 = 1
         ERROR_WRITING_IDOC_STATUS             = 2
         ERROR_IN_IDOC_DATA                    = 3
         SENDING_LOGICAL_SYSTEM_UNKNOWN        = 4
         OTHERS                                = 5

I have a IDOC TYPE and Message TYPE.

Is there any function module to get RCVPRN based on IDOC/Message type?

Regards,

Ron

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rony,

just try FM /DSD/ME_IDOC_DATA_READ or search for IDOCREAD* -or- IDOCDETAILS* in SE37.

cheers

André

Former Member
0 Kudos

my mistake.

The RCVPRN is the receiver maintained in AL11 e.g. as a logical system.

Answers (5)

Answers (5)

Former Member
0 Kudos

Thank you all

Former Member
0 Kudos

Moderator message - There is no need to add a meaningless comment when closing old posts. It causes old posts to be brought to the top of the list and pushes current ones down. But it would be better if you also assigned points when closing them instead. This encourages people to answer your new questions. Rob

VivekG
Participant
0 Kudos

Hi Suhas,

This is definitely a case of outbound idoc as he is using MASTER_IDOC_DISTRIBUTE fm .

You are correct that we can use EDP13 table and get values of RCVPRN by passing message type.

We can use the FM also that i have given above.

Thanks,

Vivek Gupta

VivekG
Participant
0 Kudos

Hi,

Please use following function module to get the RCVPRN .

CALL FUNCTION 'MMODEL_INT_VALID_GET'

EXPORTING

MESTYP = MESSAGE_TYPE

TABLES

SND_SYSTEM = SND_SYSTEM

  • RCV_SYSTEM =

MODEL = DIST_MODEL

EXCEPTIONS

OTHERS = 1.

Pass message type and sender system for idoc and RCVSYSTEM field of DIST_MODEL will contain the value of Rcvprn.

Hope it helps.

Thanks,

Vivek

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

You are trying to create an inbound IDOC or an outbound one ? Please clarify your requirement.

Anyways you can query on table EDP13 using the message type to get the Receiving Partners (RCVPRN).

BR,

Suhas