cancel
Showing results for 
Search instead for 
Did you mean: 

address end address commant...

Former Member
0 Kudos

hi

i want to knwo from whre the address is determined once we get the adressnumber from program into thte following code in sap script?

how the name1 name2 stree etc comes from once we get adrnr in the below command?

1) we get some number from program say 23456 and this address number adrnr is coming to this address end address command now what does internally happens or what is the process or can i debug that from where the fulll address is shown in the print output lkne name1 name2 street etc as here only adrnr is being populated not individuyal variables ...

2) And what does bolded portion signifies accurately for the below code

pls explain

regards

Rinku

ADDRESS DELIVERY PARAGRAPH AD

ADDRESSNUMBER &ADRNR(K)&

FROMCOUNTRY &COUNTRY&

<b> NO_UPPERCASE_FOR_CITY 'X'</b>

<b> LANG_FOR_COUNTRY &SHIPTO_CTRY_LANGU&</b>

ENDADDRESS

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

All this field values &ADRNR(K)&, &COUNTRY&, &SHIPTO_CTRY_LANGU& are coming from the driver program

Identify the driver program and fiend for the above field and set break point and run... you can see the values.

Usually, address is picked from adr2, adr3,adr4 etc.. and other address tables.

Reward points to all useful solutions.

Regards,

SaiRam

Former Member
0 Kudos

hi as i already mentioned the value comig from driver program is only the adrnr

addressnumber only

no other value based on this address number the address is populated

regards

rinku

Former Member
0 Kudos

hi

i suppose the address is coming from ADRC table onlybased on this adrnr

can anyone confirm on that

regards

Nishant

varma_narayana
Active Contributor
0 Kudos

Hi Nishant..

The Address details are stored in Table ADRC where Address no is the Primary key.

And The Driver program calls a FM ADDRESS_INTO_PRINTFORM to format this Address.

Hope u got the Answer.

<b>Reward if Helpful</b>

Answers (2)

Answers (2)

Former Member
0 Kudos

hi nishant

u can check in table adrc for the data

u will get the address data in table adrc

and as far as debugggin is concerned u can set a break point in the funtion mocule and sapscript form and program and try to debug if it works

or esle u can check for parameters in function module documentation

regards

arora

Former Member
0 Kudos

Hi Rinku,

The address command uses the function module ADDRESS_INTO_PRINTFORM to compose the address from the address number.

The bold sections have the following meaning

NO_UPPERCASE_FOR_CITY 'X' means the city part of the address is displayed in lowercase instead of uppercase e.g.

125 Somewhere Street

London

SW1 5SD

Instead of,

125 Somewhere Street

LONDON

SW1 5SD

LANG_FOR_COUNTRY &SHIPTO_CTRY_LANGU&

Will display the country name in the language specified in the variable. Typically you would display the country name of the address in the language of the country the letter is being sent FROM so that the local post service know which county to send the letter to. E.g.

A letter sent from France to Enland;

125 Somewhere Street

London

SW1 5SD

Angleterre (the French word for England)

Regards,

Nick

Former Member
0 Kudos

hi nick

my main aim is to debug in betwee the address endaddress command and see frm where the values are coming from driver program adrnr is coming but this is address number

now frmo this address number how the valure of addrress full name etc is being populated in the output

regards

nishant

Former Member
0 Kudos

Hi nishant,

The SAPscript address command makes an internal call to the function module ADDRESS_INTO_PRINTFORM, but I'm not sure if you can debug it from the SAPscript debugger. You can however run the function module from se37 to test how the logic is working for your parameters. The online help <a href="http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb3d07455611d189710000e8322d00/frameset.htm">http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb3d07455611d189710000e8322d00/frameset.htm</a>

has some useful information as well as the function module documentation.

Your SAPscript

ADDRESS DELIVERY PARAGRAPH AD

ADDRESSNUMBER &ADRNR(K)&

FROMCOUNTRY &COUNTRY&

NO_UPPERCASE_FOR_CITY 'X'

LANG_FOR_COUNTRY &SHIPTO_CTRY_LANGU&

ENDADDRESS

is the equvalent of

CALL FUNCTION 'ADDRESS_INTO_PRINTFORM'
 EXPORTING
   ADDRESS_NUMBER                       = &ADRNR(K)&
   SENDER_COUNTRY                       = &COUNTRY&
   LANGUAGE_FOR_COUNTRY_NAME            = &SHIPTO_CTRY_LANGU&
   NO_UPPER_CASE_FOR_CITY               = 'X'
 IMPORTING
   ADDRESS_PRINTFORM                    = (address lines returned to the form)

You can get the SAPscript variables from the debugger and test the module in se37.

Regards,

Nick