Skip to Content
0
Former Member
Mar 29, 2010 at 06:22 AM

Get RCVPRN field for IDOC control structure using Function.

471 Views

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