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

Vendor Address in sapscript

Former Member
0 Likes
1,164

Hi,

i have a problem to print the whole vendor-address in

a Sapscript-Formular, for example medruck.

In our Address we have filled street 2 and street 3

and i will shoe this streetts in the adress.

We use in sapscript this:

/: ADDRESS PARAGRAPH AH

/: TITLE &LFA1-ANRED&

/: NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&

/: STREET &LFA1-STRAS&

/: POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&

/: CITY &LFA1-ORT01&, &LFA1-ORT02&

/: POSTCODE &LFA1-PSTLZ&

/: COUNTRY &LFA1-LAND1&

/: REGION &LFA1-REGIO&

/: FROMCOUNTRY &T001-LAND1&

/: ENDADDRESS

Which parameter have i to use for street 2 and 3?

We are a german company.

Thanks for help

regards, Dieter

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
944

Hello,

U can fetch addressed from table ADRC(Addresses (central address admin.)

This table for fetching the address.In this table u can find all the fileds u reqquire.

STR_SUPPL1 Street 2

STR_SUPPL2 Street 3

STR_SUPPL3 Street 4

Other address details also u can fetch from this table.

Regards

Hi,

i have a problem to print the whole vendor-address in

a Sapscript-Formular, for example medruck.

In our Address we have filled street 2 and street 3

and i will shoe this streetts in the adress.

We use in sapscript this:

/: ADDRESS PARAGRAPH AH

/: TITLE &LFA1-ANRED&

/: NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&

/: STREET &LFA1-STRAS&

/: POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&

/: CITY &LFA1-ORT01&, &LFA1-ORT02&

/: POSTCODE &LFA1-PSTLZ&

/: COUNTRY &LFA1-LAND1&

/: REGION &LFA1-REGIO&

/: FROMCOUNTRY &T001-LAND1&

/: ENDADDRESS

Which parameter have i to use for street 2 and 3?

We are a german company.

Thanks for help

regards, Dieter

5 REPLIES 5
Read only

Former Member
0 Likes
945

Hello,

U can fetch addressed from table ADRC(Addresses (central address admin.)

This table for fetching the address.In this table u can find all the fileds u reqquire.

STR_SUPPL1 Street 2

STR_SUPPL2 Street 3

STR_SUPPL3 Street 4

Other address details also u can fetch from this table.

Regards

Read only

Former Member
0 Likes
944

u can use table<b> ADRC</b> for address...

STR_SUPPL1 AD_STRSPP1 CHAR 40 0 Street 2

STR_SUPPL2 AD_STRSPP2 CHAR 40 0 Street 3

STR_SUPPL3 AD_STRSPP3 CHAR 40 0 Street 4

LOCATION AD_LCTN CHAR 40 0 Street 5

Read only

Former Member
0 Likes
944

Hi,

In LFA1 you won't find these fileds. The fields are in table <b>"ADRC"</b> . For this you have to first fetch the address number of the corresponding vendor.Then you have to fetch the fields <b>STR_SUPPL1,STR_SUPPL2</b> for this address number and use the same in the STREET line of the ADDRES control command in your script.

Thanks and Regards,

Bharat Kumar Reddy.V

Read only

Former Member
0 Likes
944

Hi Dieter,

Take the field ADRNR from the table LFA1.

with this field get the street2 and street3 fields from ADRC table where ADRC-ADDRNUMBER = LFA1-ADRNR.

Regards,

Vidya.

Read only

Former Member
0 Likes
944

Hi,

thanks for help. My problem is, that i havn't ADRC

in the formular, but i solve it in this way:

/: ADDRESS

/: ADDRESSNUMBER &LFA1-ADRNR&

/: NO_UPPERCASE_FOR_CITY 'X'

/: CITY &LFA1-ORT01&, &LFA1-ORT02&

/: FROMCOUNTRY &T001-LAND1&

/: ENDADDRESS