on 07-13-2007 8:44 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.