Generating an IDoc 

Prerequisites

You know the BAPI that you want to call with an IDoc.

Procedure

Generating the IDoc

  1. Choose Tools ® Business Framework ® BAPI Development ® ALE Development ® BAPI ® Maintain ALE Interface
  2. The ALE Interface for BAPI screen is then displayed.

  3. Enter the object type of your BAPI in the BOR object field.
  4. Enter the method you want to execute in the Method field.

  5. Choose Create.
  6. The Message Type dialog box appears.

  7. Enter a name for your message type and choose Continue.
  8. The Enter interface parameters dialog box appears. You must modify some of the default values displayed here.

  9. Enter the abbreviation for your development class.
  10. Delete the entries in the ALE outbound frame.
  11. Choose Continue.
  12. The Enter Change Request dialog box appears.

  13. Enter the change request and choose Continue.

The ALE interface is then generated. The Results screen is then displayed for you to check the result.

Downloading the IDoc

You can export meta information of an IDoc to your PC. This allows you to access the IDoc description easily (if you are using the SAPforms Designer). This step, however, is not essential, because you can log on to the R/3 System directly from the SAPforms Designer and then choose your IDoc description.

  1. Choose Tools ® Business Communication ® IDoc ® IDoc Basis ® Documentation ® IDoc Type (Parser)
  2. The Documentation IDoc Record Types and IDoc Types (Parser) screen is then displayed.

  3. Enter the generated Basis IDoc type in the Basis types field.
  4. Delete the entry "46B" from the SegmentRelease field.
  5. If you are using R/3 Release 4.5A or higher, select Extended grammar. This provides better support for determining the segment names.

    Leave the other default settings as they are.

  6. Choose Execute.
  7. A list containing the IDoc is then displayed.

  8. Choose List ® Download.
  9. The Save List in File... dialog box is then displayed.

  10. Leave the default selection as it is and confirm it.
  11. The Transfer List to a Local File dialog box is then displayed.

  12. Enter the path and file name (extension *.DES) and choose Transfer.