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: 

Output Type to create FlatFile

Former Member
0 Kudos

Hi,

We have a scenario where we have to create flatfile as out. We have developed a program that can generate the required file. But this program has a selection screen that reauires the input as a PO.

Is it possible to link this program to an Output type, so that whenever the output type is determined this program is run and the required flat file is generated?

If yes, what are the changes We will have to do in the config and/or the ABAP code?

harehesh

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos

Hi,

You can have a program which has a form -endform which encloses all the functionality. YOu have to configure an outout type in NACE transaction and attach the driver program to the output type.

Mention the output medium as special purpose (8).

Regards,

Ravi

Former Member
0 Kudos

Hi,

Yes, you can do this. The configuration of output type for this is similar to any other output type configuration. There are few things you have to keep in migh though.

1 -<b> Use medium - 8</b> ( Special function )

2- <b>Do not use, COMMIT or CALL TRANSACTION</b> statement in this output program.

Let me know if you have any question.

Regards,

RS

Former Member
0 Kudos

Hi Ravi/RS,

First of all thanks for the reply.

Based on Ravi's suggestion we have introduced a form/ endform statement, also based on RS suggestion he have made sure we are not using any commit statement.

The functionality seems to be working but we are facing with an issue here. In the standard output types when the out is successgully transmitted the output type changes to green status. In out case, out program is creating a file but it is not changing the status of the output type to green , instead it becomes red.

Please help

harshesh