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 the data from AFRU table

Former Member
0 Likes
4,350

Hi Experts,

i have an requirement that , i need to fetch confirmation details (IW47) by passing Order no.(AUFNR).

the required output  fields are available in AFRU table , but the input filed AUFNR is not  key filed in table AFRU.

if i fetch the data from AUFR using order no , is leads to performance issue in Production environment

Please advice , is there any other way to get the data?

Regards

niru

4 REPLIES 4
Read only

former_member188724
Contributor
0 Likes
1,848

Hi Niru,

You have the key fields

RUECK

RMZHL

of AFRU in table AFKO.

You can take These fields from AFKO based on AUFNR and pass it to AFRU.

Hope this helps.

Regards,

K.S


Read only

former_member188724
Contributor
0 Likes
1,848

Hi Niru,

In Addition you can check the view /ISDFPS/V_ORCONF also which has the same relation.

Regards,

K.S

Read only

Former Member
0 Likes
1,848

Niru,

You can go directly using AUFNR to AFRU. But take care to get Valid confirmation from available confirmations of Order. While fetching the data use the below fields in Where condition.

Ex :

AND   vornr EQ '0010'       - Activity   (Ex : Activity 0010)

AND   learr EQ 'LDS000'   - Activity Type for Confirmation (Ex: Confirmation LDS000)

AND   stokz EQ space       - Indicator: Document Has Been Reversed

AND   stzhl EQ space.       - Confirmation counter of cancelled confirmation

So the Performance issue will not be there. If you will go with only AUFNR you will get multiple
Confirmations/Cancellations and you need to filter it again which will hamper the SAP system.

Thanks,

Venkatmani.

Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,848

Hello Niru Reddy.

     You can use BAPI_PRODORDCONF_GETLIST by passing order (AUFNR) to fetch the entire confirmations.