cancel
Showing results for 
Search instead for 
Did you mean: 

function modules used in edi ?

Former Member
0 Kudos

can somebody name some Function modules used to process idocs. , function modules used for processing inbound and outbound.

swathi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Refer beloe for Some function modules used in IDOC Programming

CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'

EXPORTING

VALUE(MASTER_IDOC_CONTROL) LIKE EDIDC STRUCTURE EDIDC

" Control record of master IDoc

VALUE(OBJ_TYPE) LIKE SERIAL-OBJ_TYPE DEFAULT ''

VALUE(CHNUM) LIKE SERIAL-CHNUM DEFAULT ''

TABLES

COMMUNICATION_IDOC_CONTROL STRUCTURE EDIDC

" Control records of created comm. IDocs

MASTER_IDOC_DATA STRUCTURE EDIDD

" Data records of master IDoc

EXCEPTIONS

ERROR_IN_IDOC_CONTROL

" Incorrect entry in IDoc control record

ERROR_WRITING_IDOC_STATUS

" Error when writing IDoc status records

ERROR_IN_IDOC_DATA

" Incorrect entry in IDoc data records

SENDING_LOGICAL_SYSTEM_UNKNOWN

" Own logical system unknown

CALL FUNCTION 'CHANGE_POINTERS_READ'

EXPPORTING

VALUE(ACTIVATION_DATE_HIGH) LIKE SY-DATUM DEFAULT SPACE

VALUE(ACTIVATION_DATE_LOW) LIKE SY-DATUM DEFAULT SPACE

VALUE(ACTIVATION_TIME_HIGH) LIKE SY-UZEIT DEFAULT '000000'

VALUE(ACTIVATION_TIME_LOW) LIKE SY-UZEIT DEFAULT '000000'

VALUE(CHANGE_DOCUMENT_OBJECT_CLASS) LIKE CDPOS-OBJECTCLAS

DEFAULT SPACE

VALUE(CREATION_DATE_HIGH) LIKE SY-DATUM DEFAULT SPACE

VALUE(CREATION_DATE_LOW) LIKE SY-DATUM DEFAULT SPACE

VALUE(CREATION_TIME_HIGH) LIKE SY-UZEIT DEFAULT '000000'

VALUE(CREATION_TIME_LOW) LIKE SY-UZEIT DEFAULT '000000'

VALUE(MESSAGE_TYPE) LIKE BDCPS-MESTYPE

VALUE(READ_NOT_PROCESSED_POINTERS) LIKE BDCPS-PROCESS DEFAULT

'X'

TABLES

CHANGE_POINTERS STRUCTURE BDCP

MESSAGE_TYPES STRUCTURE BDMSGTYP OPTIONAL

EXCEPTIONS

ERROR_IN_DATE_INTERVAL

ERROR_IN_TIME_INTERVAL

CALL FUNCTION change_pointers_status_write.

IMPORTING

VALUE(MESSAGE_TYPE) LIKE EDIDC-MESTYP

TABLES

CHANGE_POINTERS_IDENTS STRUCTURE BDICPIDENT

Examples of Inbound function modules are

IDOC_INPUT_BLAOCH IDoc inbound processing: change Ccontract

IDOC_INPUT_BLAORD IDoc inbound processing: Create Contract

IDOC_INPUT_MATMAS01 IDoc inbound processing: Material Master

Examples of Outbound function modules are

IDOC_OUTPUT_BLAOCH

IDOC_OUTPUT_BLAORD

sailaja_vadlamudi
Contributor
0 Kudos

Hi ,

They are several function modules we can use for EDI depending on requirement.

Go to se37 and enter EDI and press f4 then you will be able to see all the EDI function module.inside the function module you can go through the documenation .

<b>Example</b>

EDI_PARTNER_APPL_READ_OUT

This is to read the partner profiles for a given partner and message type.

In the similar way use for idocs ,Go to se37 and enter idoc and press f4 then you will be able to see all the idoc function module.inside the function module you can go through the documenation and get to know the useage of it .

<b>

For example for orders</b>

if it is inbound we will use IDOC_INPUT_ORDERS

and for outbound we will use IDOC_OUTPUT_ORDERS .

Sail