on 12-11-2008 8:12 AM
Hi
I want to display my variable in the address window of the sapscript form
Please help in finding out the error in the following syntax:
Value in street4 location and country is not getting displayed.
DEFINE &STREET4& = ''
DEFINE &LOCATION& = ''
DEFINE &COUNTRY& = ''
PERFORM GET_STREET2 IN PROGRAM ZFISF_PYMTADVCNTSUBRTN
USING ®UH-ADRNR&
CHANGING &STREET4&
CHANGING &LOCATION&
CHANGING &COUNTRY&
ENDPERFORM
ADDRESS PARAGRAPH AS
TITLE ®UH-ZANRE&
NAME ®UH-ZNME1&, ®UH-ZNME2&, ®UH-ZNME3&, ®UH-ZNME4&
STREET ®UH-ZSTRA&, &STREET4&, &LOCATION&
POBOX ®UH-ZPFAC& CODE ®UH-ZPST2& CITY ®UH-ZPFOR&
POSTCODE ®UH-ZPSTL&
CITY ®UH-ZORT1&, ®UH-ZORT2&
REGION ®UH-ZREGI&
COUNTRY ®UH-ZLAND&, &COUNTRY&
FROMCOUNTRY &T001-LAND1&
ENDADDRESS
thanks
madhuri
hi,
in the Address Endaddress command we can use the standard table varaiable only. by using the perform statement u got some values also it won't print in the
Address
endaddress.
regards,
sathis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
then please tell me the other solution of printing my own variables in the address endaddress?
Should I remove the address endaddress and write those variables along with the REGUH variables
Its giving this error when I am adding my variables in the Address endAddress:
STREET ®UH-ZSTRA&, &STREET4&, &LOCATION&
HOUSE or command end expected
POBOX ®UH-ZPFAC& CODE ®UH-ZPST2& CITY ®UH-ZPFOR&
POSTCODE ®UH-ZPSTL&
CITY ®UH-ZORT1&, ®UH-ZORT2&
REGION ®UH-ZREGI&
COUNTRY ®UH-ZLAND&, &COUNTRY&
LANGUAGE or command end expected
FROMCOUNTRY &T001-LAND1&
ENDADDRESS
Rgds,
Madhuri
Edited by: madhuri sonawane on Dec 11, 2008 10:21 AM
CODE IN THE SAPSCRIPT :
*******************************************
IF &PAGE& EQ '1 '
INCLUDE ®UD-TXTAB& OBJECT TEXT ID ADRS
ENDIF
ADDED BY MADHURI 12102008
DEFINE &STREET4& = ''
DEFINE &LOCATION& = ''
DEFINE &COUNTRY& = ''
PERFORM GET_STREET2 IN PROGRAM ZFISF_PYMTADVCNTSUBRTN
USING ®UH-ADRNR&
CHANGING &STREET4&
CHANGING &LOCATION&
CHANGING &COUNTRY&
ENDPERFORM
ADDRESS PARAGRAPH AS
TITLE ®UH-ZANRE&
NAME ®UH-ZNME1&, ®UH-ZNME2&, ®UH-ZNME3&, ®UH-ZNME4&
STREET ®UH-ZSTRA&, &STREET4&
LOCATION &LOCATION&
POBOX ®UH-ZPFAC& CODE ®UH-ZPST2& CITY ®UH-ZPFOR&
POSTCODE ®UH-ZPSTL&
CITY ®UH-ZORT1&, ®UH-ZORT2&
REGION ®UH-ZREGI&
COUNTRY ®UH-ZLAND&, &COUNTRY&
COUNTRY &COUNTRY&
FROMCOUNTRY &T001-LAND1&
ENDADDRESS
*******************************************
CODE OF THE PROGRAM
********************************************
&----
*
*& Report ZFISF_PYMTADVCNTSUBRTN
*&
&----
*&
*&
&----
program to write subroutines which will be called from ZFI_REMITADVICE form
REPORT ZFISF_PYMTADVCNTSUBRTN.
tables : adrc,t005t.
form get_street2 TABLES IN_PAR STRUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA: W_ADDRNUMBER LIKE ADRC-ADDRNUMBER, "ADRESS NUMBER
w_STR_SUPPL2 LIKE ADRC-STR_SUPPL2. "
W_ADRC TYPE ADRC ,
w_LANDX like T005T-LANDX.
READ TABLE IN_PAR INDEX 1."WITH KEY 'ADRNR'.
CHECK SY-SUBRC = 0.
W_ADDRNUMBER = IN_PAR-VALUE.
BREAK MSONAWANE.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = W_ADDRNUMBER
IMPORTING
OUTPUT = W_ADDRNUMBER
.
select SINGLE * from adrc into w_ADRC where ADDRNUMBER eq W_ADDRNUMBER.
select single LANDX into w_landx from t005t where land1 eq w_adrc-COUNTRY and SPRAS = 'E'.
READ TABLE OUT_PAR INDEX 1."STREET4
CHECK SY-SUBRC = 0.
OUT_PAR-VALUE = W_ADRC-STR_SUPPL3.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR INDEX 2."LOCATION
CHECK SY-SUBRC = 0.
OUT_PAR-VALUE = W_ADRC-LOCATION.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR INDEX 3."COUNTRY name
CHECK SY-SUBRC = 0.
OUT_PAR-VALUE = w_landx.
MODIFY OUT_PAR INDEX SY-TABIX.
ENDFORM.
********************************************
LOCATION is getting printed correctly. but not street4
Edited by: madhuri sonawane on Dec 11, 2008 12:14 PM
Edited by: madhuri sonawane on Dec 11, 2008 12:18 PM
Hi,
It should print the whole adress.
Check that you use the correct adress number - the same as you use for our call to your subroutine.
Was it ®UH-ADRNR&?
Address layout can differ depending on specific country setting in the counctry configuration.
But if you have a adress number in your field, you should get a complete adress printed.
Regards
Åsa Thenstedt
the street4, location and country values are not there in table REGUH
so you can take REGUH-ADRNR go to the table ADRC and fecth the data and disply....
condtion is REGUH-ADRNR = ADRC-ADDRNUMBER..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.