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: 

Change idoc status

Former Member
0 Kudos

Hi!

We are using idoc FIDCC2 to transfer fi documents from one SAP system to another SAP system.

Also, we have exit EXIT_SAPLF050_005 to change a certain field depending of a value of another field in a Z table. If no data is found in this table, the idoc must be created but not be sent. Is it possible to do this changing the idoc status? If the answer is yes, how can I do this?

This exit has a field called NO_DISTRIBUTION, if this field is modified with an 'X', the idoc is not created.

The idoc is created by sap standard program, there is no z program.

Thanks!

Cristian

4 REPLIES 4

P561888
Active Contributor
0 Kudos

Hi ,

Weather u r creating the idoc or From SAP . Could you please explain little more...

Regards,

Bharani

Former Member
0 Kudos

Normally we have outbound idoc status as ready for sending, try setting it to something else in EDIDC records in the user exit. it might help you.

Former Member
0 Kudos

Hi,

If you can get the Idoc number ,try with the FM 'IDOC_STATUS_WRITE_TO_DATABASE' to change the status, so that it won't be sent.

Thanks,

Savitha

Former Member
0 Kudos

HI,

What you can do is try giving an error message if no data is found. The IDoc will be created but it will be in error status.

You can mess up the Control record also by changing the Receiver Partner to a dummy partner which doesn't exists in the partner profile.

regards,

Advait