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: 

SAP ABAP : Repeat Output on ME22N via ABAP code

Former Member
0 Kudos

Hi,

Im creating a program that will repeat output if we have not received OrderResponse in X amount of time.

Is there a function Module that allows me to repeat output by providing the Purchase Order number?

Thank you,

Jannus Botha

1 ACCEPTED SOLUTION

Former Member

FM AD_REPEAT_MESSAGE_OUTPUT??

Rob

10 REPLIES 10

prakashjasti
Contributor

Hi Jannus,

Use Tcode ME9L and there give the document ... Select any of the Processed Record and Press Repeat output and --> SAVE. ...

Regards,

Prakash.

Prakash J

0 Kudos

Hi,

This would still be a manual process and I dont want to do a recording. That would be my last option. Did you maybe mean something else? Because I am looking for a program or function module that will repeat my output like one would do on ME22N at the message tabs.

But thank you for the input.

Regards,

Jannus Botha

Former Member

FM AD_REPEAT_MESSAGE_OUTPUT??

Rob

0 Kudos

Thank you for this. But I think my initial questions wasnt complete because I would like to repeat the output before it has created the IDoc.

Does that make sense. I want to code the part where you are able to repeat output in ME22N using the message Tab.

Correct me if I am wrong but the AD_REPEAT_MESSAGE_OUTPUT normally only repeats IDoc's?

Regards,

Jannus Botha

0 Kudos

I tried it with a manually created PO and it worked for me. Why not try it yourself??

Rob

0 Kudos

Hi Rob,

Tried it using these values.

KAPPL - EF -> Purchase Order

OBJ KEY    -> 4000128571 - . Purchase Order Number

Nacha -> 1,2,3,4,5,6,7,8,9,A and T

Am i missing something. I can see that PO has been processed before.

Regards,

Jannus Botha

0 Kudos

I used the values I found in NAST for the PO.

Rob

0 Kudos

Hi Rob,

Thank you. Got it working.

Regards,

Jannus Botha

Former Member
0 Kudos

Hi Jannus Botha ,

Try it

CALL FUNCTION 'AD_REPEAT_MESSAGE_OUTPUT' "

  EXPORTING

  kappl = " nast-kappl

  objky = " nast-objky

  nacha = " nast-nacha

  EXCEPTIONS

  ERROR_OCCURED = 1 "

  . "

Thanks

0 Kudos

You are Really helpful.

Thanks

Joy