cancel
Showing results for 
Search instead for 
Did you mean: 

getting sold to party's address in MM

Former Member
0 Kudos

Hi ABAP Gurus,

To get the sold to party address i did the following.

in the program lines i witten the following code.

data: l_t001 like t001.

clear gv_adrs ( a global variable of type addres)

select single adrnr from t001 into gv_adrs

where bukrs = zxekko-bukrs.

and passed this &gv_adrs& to the address field's address number.

activated the form and executed from the ME9K , getting spool request error.

what does it mean

Please kindly help me out.

Thanks,

Praveen

Edited by: Vijay Babu Dudla on Jan 21, 2009 3:56 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Praveen,

The error is coming because address is not getting filled.

You need to add this code for address number after select statement:

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = gv_adrs

IMPORTING

output = gv_adrs.

And add sy-subrc check also in smartform after select statement.

select single adrnr from t001 into gv_adrs

where bukrs = zxekko-bukrs.

If sy-subrc <> 0.

clear gv_adrs.

endif.

Ashven

Edited by: Vijay Babu Dudla on Jan 21, 2009 3:56 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

is that not ekpo-adrnr

and after that u pick value from adrc table entries passing ekpo-adrnr .