cancel
Showing results for 
Search instead for 
Did you mean: 

Add an extra lines in address window ??

Former Member
0 Kudos

Hi,

Currently we are using a custom smartform, and it has standard address window defined by SAP which uses Addrsnum to get the address, but the customer wants to some new lines like building number, floor number number etc ( I know these are stored in table ADRC) to this already existing address format.

Can some one please help me with this. thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Rahul,

what I did for this kind of requirement, I can create text for address (without using address option) and pass the all values to variables. It will print everything whatever we passed.

Thanks,

Pranav

Former Member
0 Kudos

Hi Pranav,

I got what you are saying, but the problem is I am not an ABAPer, so I need more detail explanation (if you can do that!) for what you did.

Thanks

Former Member
0 Kudos

Rahul,

Create a code before your address window.

Do select query for all the data whatever you want from ADRC and put it in some variables.

give those variables in address window like &V_NAME&, &V_FLOOR&.....

Pranav

Former Member
0 Kudos

Hi

This the code to get the information for ship to party, you can change the same

DATA : lv_adrnr TYPE vbpa-adrnr,

lv_kunnr TYPE kna1-kunnr.

CONSTANTS : lc_parvw TYPE parvw VALUE 'AG'.

  • get the adress No and Partner Number from table VBPA

SELECT SINGLE kunnr

adrnr

INTO (lv_kunnr , lv_adrnr)

FROM vbpa

WHERE vbeln = is_vbdka-vbeln

AND posnr = 0

AND parvw = lc_parvw.

  • get the address details from table ADRC using the adrnr number

SELECT name1

street

po_box

city1

region

post_code1

country

tel_number

fax_number

house_num1

INTO gwa_sold

FROM adrc

UP TO 1 ROWS

WHERE addrnumber = lv_adrnr.

ENDSELECT.

gwa_sold-kunnr = lv_kunnr.

g_sold = lv_kunnr.

regards

Shiva

Answers (0)