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: 

Duplicate output message for invoice

Former Member
0 Kudos

Hello,

I'm searching a Bapi or MF to duplicate an output message executed on invoice.

For exemple:

on invoice 12345 I create and execute the message RDA0 (for exemple for print).

Now, by a zprogram I would duplicate this message.

Any idea ?

Thank you.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You need use the below function Modules in the below order..

1. RV_MESSAGES_INSERT

2. RV_MESSAGES_UPDATE

You need to build the NAST structure as per your requirement which will be the IMPORTING structure to this Function Modules.

Regards,

Srinivas

4 REPLIES 4

Former Member
0 Kudos

Hi

Try to check fm like RV_MESSAGE_UPDATE (or search for RV_MESSAGE*),, but u can also simulate VF02 (by BDC) in order to duplicate a message

Max

Edited by: max bianchi on Nov 1, 2010 5:17 PM

Former Member
0 Kudos

Hi,

You need use the below function Modules in the below order..

1. RV_MESSAGES_INSERT

2. RV_MESSAGES_UPDATE

You need to build the NAST structure as per your requirement which will be the IMPORTING structure to this Function Modules.

Regards,

Srinivas

0 Kudos

Hello,

tks for reply, I run both

1. RV_MESSAGES_INSERT

2. RV_MESSAGES_UPDATE

and the message is created. Anyway, I chose mode 'Archive only', and the archive is not done.

Do you jnow why ?

Thank you.

0 Kudos

Hello Srinivas,

you're right tks. I was missing commit work.

nice day.