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

Fetch Purchase orders based on Internal Order

Former Member
0 Likes
9,303

Hi Experts,

I want to fetch purchase orders by passing internal order. Any Table or Fuction Module exists whcih has this functionality? please advise

Thanks in advance,

Chintu

Hi Manjunath,

Actually, i have checked in se16...in the table ANEK, the purchase order(EBELN) filed has no value.

Thanks

Chintu

16 REPLIES 16
Read only

Former Member
0 Likes
4,202

whats this internal order exactly? which field/table ? how r u getting this internal order

Read only

0 Likes
4,202

Hi Manjunath,

When I pass Asset No (ANLN1) and Comp code(BUKRS) in table ANLK, i get the internal order (OBJID).

Based on this Internal Order (OBJID), I want to fetch Purchase Orders.

Thanks

Chintu

Read only

0 Likes
4,202

Thanks for ur reply.

I did where used list on this OBJID.

I found its used in ANEK.

if you pass OBJID in ANEK table ,you will get EBELN.(pur order)

Read only

0 Likes
4,202

Hi Manjunath,

I have tried this. But the problem is the field EBELN (Purchase order) is not getting populated in this table ANEK.

Thanks,

Chintu

Read only

0 Likes
4,202

May I know whats the internal table declaration u have used.Whats the select query you have used.

Read only

0 Likes
4,202

Hi Manjunath,

Actually, i have checked in se16...in the table ANEK, the purchase order(EBELN) filed has no value.

Thanks

Chintu

Read only

0 Likes
4,202

Then for that OBJID there is no EBELN. Thats not ur issue.

u can try checking in Quality System or any other systems.

I am not sure what your requirement is?

Read only

0 Likes
4,202

Hi Manju,

I will explain with an example. In the Tcode ME23N, for the purchase order (1610000003), the internal order is 200005.

As you said, if i pass the OBJID(200005) in table ANEK, the EBELN value should be 1610000003 which is not in our case.

Hope this clears your question.

Thanks

Chintu

Read only

0 Likes
4,202

Thanks for your reply.In ME23N screen, which tab i can find the internal order field

Read only

0 Likes
4,202

In ME23N, for CAPEX PO, in the tab 'Accont Assignment', the field label is 'Order'

Read only

Former Member
4,202

Hi,

You can fetch purchase orders using IO thru table EKKN.

Kath

Read only

0 Likes
4,202

Hi Kathy,

Thanks for your answer.

The table EKKN is for getting the internal orders by passing the purchase order. But i want the other way around i.e. Fetch Purchase orders by passing the internal order

Thanks

Chintu

Read only

matt
Active Contributor
0 Likes
4,202

Same question posted while logged in as

Any explanation, or should we delete both ids?

matt

Read only

Former Member
0 Likes
4,202

Hi Matt,

I was suprised to see this. I have logged into my ID and when i have posted the question, the question didn't show in my ID.

Next time, i have logged into my ID again posted then it worked. Later on, i realised that the question was posted from some other ID. I dont know where was the problem? please advise.

Thanks,

Chintu

Read only

Former Member
0 Likes
4,202

I assume that because this thread is talking about tables that relate the PO and IO that SAP does not provide a standard report showing the relationship. Is this true? i have been searching for just that kind of report.

Read only

0 Likes
4,202

Hi,

Standard report is available in SAP. Purchase orders with reference to internal orders can be listed using Tcode ME2K.