Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Function Module to create Outbound IDoc

I have created a segment (ZSEGPRO), basic type (ZIDOCPRO) and message type (ZMSGPRO) to create a custom IDoc. Now I have to write a Function Module to create Outbound IDoc.

I want to know what will be in Import, Export, Changing, Tables, Exceptions and Source code of that function module. The fields used in the segment ZSEGPRO is given below:

Fld NameSource Data Elmn Description

PRODUCT MARA MATNR Material number

TEXT MAKT MAKTX Material description


Additional information: Export parameter will be BAPIRETURN for holding error message(if any).

These Function Module need not require to be RFC enabled.

Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question