cancel
Showing results for 
Search instead for 
Did you mean: 

SAP script ' ADDRESS ' command -> Smartforms

Former Member
0 Kudos

Hello.

This is an issue about SAP script ADDRESS command.

following works are from SAP script

how can I make this work in Smartforms ?

is there anything I can refer to?

__________________________________________________________________________________

ADDRESS DELIVERY PARAGRAPH AS

TITLE &VBDKA-ANRED_WE&

NAME &VBDKA-NAME1_WE&, &VBDKA-NAME2_WE&, &VBDKA-NAME3_WE&, &VBDKA-NAME4_WE&

STREET &VBDKA-STRAS_WE&

POBOX &VBDKA-PFACH_WE& CODE &VBDKA-PSTL2_WE& CITY &VBDKA-PFORT&

POSTCODE &VBDKA-PSTLZ_WE&

CITY &VBDKA-ORT01_WE&, &VBDKA-ORT02_WE&

REGION &VBDKA-REGIO_WE&

COUNTRY &VBDKA-LAND1_WE&

FROMCOUNTRY &VBDKA-SLAND&

ENDADDRESS

___________________________________________________________________________________

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

You can create address window in smart form and will give address number in that.

this will help you.

Regards,

Bhupal

Answers (3)

Answers (3)

Former Member
0 Kudos

Hii,

You can make use of a function module addr_get.

Depending on wht is your requirement..,

Like if you want a plant address: Find the adrnr number and put this in the funtion module.In the function module put this code in import parameter address_selection.

Similarly find adrnr number for company or customer and use as an input for the function module.Let me know wht address you want to print...i.e plant,customer,company or vendor..So that i can tell you how you will fetch the adrnr number.

Regards,

Nicklas.

Former Member
0 Kudos

Hi,

first get customer no . for VBDKA-ANRED_WE.

then from kna1 table fetch address no. for this customer.

pass this address no. to ADRC table.

fetch all required fields through select query (name1,street,city,country etc) from adrc table.

Former Member
0 Kudos

Hi,

In smart forms, there is a window called as Address window. In this window, you have to give the Address number .

The address window will display the information in a particular format that can be selected in the address window. ( formats include Organisational, personal etc).