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

Program or Function module to create a Purchase order IDoc

Former Member
0 Likes
2,736

Hi,

We developed a func mod to check the status of Production/purchase order. I.e if any order is closed, deleted, blocked or confirmed, we want to create an IDoc adding the new status and order number to it's text segment. Could anybody help me please.

Hanuma

9 REPLIES 9
Read only

Former Member
0 Likes
1,960

Hi Hanuma,

For creation productin order IDoc, you can use standard program RCCLORD and FM CLOI_MASTERIDOC_CREATE_LOIPRO.

For creation purchase order IDoc, you can use FM IDOC_OUTPUT_ORDCHG or IDOC_OUTPUT_ORDERS.

There is customer exit available for you to populate new status and order number.

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

Read only

Former Member
0 Likes
1,960

Hi,

In fm IDOC_OUTPUT_ORDERS(used to create IDoc for outbound PO) you have few customer exits. The enhancement is MM06E001. You can use one of the components in this exit and populate the IDoc with desired data.

Hope this helps

Vamsi

Read only

0 Likes
1,960

Ferry and Vamsi,

Thanks for your inputs. It may help me to solve the problem.

Hanuma

Read only

0 Likes
1,960

Ferry & Vamshi,

Can you plz provide any specific steps to proceed further.

Hanuma

Read only

0 Likes
1,960

Hi ,

Do send me your email id . I will send u all the steps required to code .

Thanks ,

Read only

0 Likes
1,960

Hi Hari,

Plz send to hgujjula@gmail.com or hgujjula@yahoo.com

Thanks in advance.

Hanuma

Read only

0 Likes
1,960

Hello All,

Could anybody let me know how "to Create IDOC adding the status of Work Order whether it is open or closed".

at least what is the message type and IDOC type I can use?

Thanks & Regards,

Hanuma

hgujjula@gmail.com

Read only

0 Likes
1,960

Hi,

The message type is ORDERS and IDoc type is ORDERS05. In enhancement MM06E001, you can use the component EXIT_SAPLEINM_011. Here the Purchase order data is available.

You can now check if the Purchase Order is closed and fill the text segment E1EDKT1 segment.

Hope this helps

Vamsi

Read only

0 Likes
1,960

Hello Hari, This is wonderfull that you answer this question but when you propose to send document directly to the requestor, the other readers could not use found benefit from your experience. Could you extend your explanation here?

Thanks.