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: 

Importing AUFNR value from the Tcode IW32

martinlydia
Explorer
0 Kudos

Hi all,

I have a requirement for shop finding report (Repairs ) to import the order number (AUFNR) from the transaction 1w32.

Can someone please tell me how to do that using the memory id .

Thanks in advance

Lydia Martin

1 ACCEPTED SOLUTION

aoyang
Contributor
0 Kudos

The parameter ID for order number in IW32 is 'ANR'. Use below code in your report. In LV_AURNR stores the most recent order number you displayed in IW32. You have to display a order in IW32 first and then the code will get the value.

DATA:LV_AUFNR  TYPE AUFNR.
GET PARAMETER ID 'ANR' FIELD LV_AUFNR.
2 REPLIES 2

raymond_giuseppi
Active Contributor

Execute transaction IW32 or IW31, click on order number field and press F1, then click on technical information, you get the Parameter Id to use.

aoyang
Contributor
0 Kudos

The parameter ID for order number in IW32 is 'ANR'. Use below code in your report. In LV_AURNR stores the most recent order number you displayed in IW32. You have to display a order in IW32 first and then the code will get the value.

DATA:LV_AUFNR  TYPE AUFNR.
GET PARAMETER ID 'ANR' FIELD LV_AUFNR.