Application Development and Automation 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: 
Read only

Function module to create messages for Purchase order

Former Member
0 Likes
3,360

Hi All,

I am writing a BDC and recording steps to create Messages for a Purchase order(ME22N).

For an existing PO, go to Messages and create a message with output type for EDI. Already there are existing Output types for Print and Fax,

How do I default my cursor at the 3rd record if Print, and Fax are already there, and when I run this BDC for several PO's How do I know how many messages are there and where to place cursor to create message for EDI.

Is there any Function module or Bapi available wherein I can directly give the PO number and create the message.

Please suggest

Thanks-

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,969

Why??? cant you just run RSNAST00?

9 REPLIES 9
Read only

Former Member
0 Likes
1,970

Why??? cant you just run RSNAST00?

Read only

0 Likes
1,969

I don't want to process output type, My requirement is to create the output type.

Thanks-

Read only

0 Likes
1,969

and any reason not to use standard message control?

Read only

0 Likes
1,969

I have a list of PO's in the internal table, I need to put a loop and for each PO, I need to create a message with output type for EDI. as I am not sure if there are already messages available for Print, Fax, and Email. I have an issue placing the cursor on the Messages window.

So i thought if there is any function module to create message without going to message window, I can avoid those complications.

How to do this. any suggestions?

Thanks-

Read only

0 Likes
1,969

is there message control setup for these EDI output types, and are there proper output condition records created.

if yes, you dont need to do anything, just go into your POs via ME22, and go to message screen, it will create the output automatically.

Read only

0 Likes
1,969

It is not creating message for EDI automatically, so we came up with this requirement.

We are collecting all the PO's created on today's date, and checking the country code, If the shipment is outside the country, then for the particular PO, we will have to create a message with the output type ZXXX.

And to create the message we are writing a BDC program.

Thanks-

Read only

0 Likes
1,969

it is your functional person problem then. Writing BDC for somethign which can be easily done via config is a real bad practice.

Read only

0 Likes
1,969

Hi MgX,

Thanks for the inputs, I will try to put ball in their court. but I am sure, they will ask me to write the BDC. so I still need a solution upfront to avoid last moment hurry.

Thanks-

Read only

0 Likes
1,969

Hi,

You can create one output condition record for EDI for this and as soon as PO get created and saved it will generate EDI output conditiion based on your condition record setup and

trigger Outbound ORDERS.

In case if you need to trigger outbound when PO changed you can setup another condition record

Hope this help

ramesh