Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Converting custom flat file to flat file of IDOC type WMMBID02

Former Member
0 Kudos

Hi All,

We have a flat file in some custom format which we need to convert to a standard IDOC format WMMBID02 without creating the IDOC in the system.

What is the best method to achieve the same?

What are the possible methods to do this?

Thanks & Regards,

Shreyas

1 REPLY 1

Former Member
0 Kudos

This will only work if you have a idoc downloaded as a flatfile in the aplication server. In all other cases you have to write a cuctom program. You need to read the flat file into an internal table and populate the EDID4 and the EDIDC internal tables. For all other cases where you have an existing idoc this will work.

Go to a server and find yourself an idoc that you want to use as a template.

Display the idoc using WE19.

Click Inbound file

Type in a file name - for example /tmp/test (you need to use an AL11 directory).

Make sure the option 'Start inbound idoc processing of the file immediately' is unchecked.

Choose overwrite file

Then click the tick.

This will write you an idoc into the AL11 directory structure in the system you are operating in.

Using the download and upload functions (CG3Z & CG3Y), get the file transferred to the production AL11 directories.

Use WE19 to process your downloaded idoc.

Use the option 'File as template' to pick up your file.

You should now be able to process your idoc as you wish

regards

Aveek