cancel
Showing results for 
Search instead for 
Did you mean: 

some Values in Address Endaddress not getting printed.

Madhurivs23
Participant
0 Kudos

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 &REGUH-ADRNR&

CHANGING &STREET4&

CHANGING &LOCATION&

CHANGING &COUNTRY&

ENDPERFORM

ADDRESS PARAGRAPH AS

TITLE &REGUH-ZANRE&

NAME &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME3&, &REGUH-ZNME4&

STREET &REGUH-ZSTRA&, &STREET4&, &LOCATION&

POBOX &REGUH-ZPFAC& CODE &REGUH-ZPST2& CITY &REGUH-ZPFOR&

POSTCODE &REGUH-ZPSTL&

CITY &REGUH-ZORT1&, &REGUH-ZORT2&

REGION &REGUH-ZREGI&

COUNTRY &REGUH-ZLAND&, &COUNTRY&

FROMCOUNTRY &T001-LAND1&

ENDADDRESS

thanks

madhuri

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Madhurivs23
Participant
0 Kudos

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 &REGUH-ZSTRA&, &STREET4&, &LOCATION&

HOUSE or command end expected

POBOX &REGUH-ZPFAC& CODE &REGUH-ZPST2& CITY &REGUH-ZPFOR&

POSTCODE &REGUH-ZPSTL&

CITY &REGUH-ZORT1&, &REGUH-ZORT2&

REGION &REGUH-ZREGI&

COUNTRY &REGUH-ZLAND&, &COUNTRY&

LANGUAGE or command end expected

FROMCOUNTRY &T001-LAND1&

ENDADDRESS

Rgds,

Madhuri

Edited by: madhuri sonawane on Dec 11, 2008 10:21 AM

Former Member
0 Kudos

In Debugg maode r u getting the values in Variables.u have already wrote a perform.In perfrom program check the variables r getting data or not.

Madhurivs23
Participant
0 Kudos

yes, values are getting passed properly in the sapscript

Madhurivs23
Participant
0 Kudos

is there any solution to this problem???????????????

Former Member
0 Kudos

Hi,

If u r getting values in Script Variables then once check the size of the window.

Madhurivs23
Participant
0 Kudos

I increased the size of that window also .. but not happening anything

Former Member
0 Kudos

Hi,

Can u paste the code what ever u write in the perform.just for checking.

Madhurivs23
Participant
0 Kudos

CODE IN THE SAPSCRIPT :

*******************************************

IF &PAGE& EQ '1 '

INCLUDE &REGUD-TXTAB& OBJECT TEXT ID ADRS

ENDIF

ADDED BY MADHURI 12102008

DEFINE &STREET4& = ''

DEFINE &LOCATION& = ''

DEFINE &COUNTRY& = ''

PERFORM GET_STREET2 IN PROGRAM ZFISF_PYMTADVCNTSUBRTN

USING &REGUH-ADRNR&

CHANGING &STREET4&

CHANGING &LOCATION&

CHANGING &COUNTRY&

ENDPERFORM

ADDRESS PARAGRAPH AS

TITLE &REGUH-ZANRE&

NAME &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME3&, &REGUH-ZNME4&

STREET &REGUH-ZSTRA&, &STREET4&

LOCATION &LOCATION&

POBOX &REGUH-ZPFAC& CODE &REGUH-ZPST2& CITY &REGUH-ZPFOR&

POSTCODE &REGUH-ZPSTL&

CITY &REGUH-ZORT1&, &REGUH-ZORT2&

REGION &REGUH-ZREGI&

COUNTRY &REGUH-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

Former Member
0 Kudos

Hi,

Do u have a data in STR_SUPPL3 field in ADRC table. If u r having, check the value is updated in OUT_PAR-VALUE .

Former Member
0 Kudos

Why dont you use the adress numer as the only parameter to the adress module.

You used it to pick up values, so why not use it as the real parameter?

Example

ADDRESS

ADDRESSNUMBER &REGUH_ADRNO&

FROMCOUNTRY &T001-LAND1&

ENDADDRESS

Regards

Åsa Thenstedt

Madhurivs23
Participant
0 Kudos

Yes, its there.

Madhurivs23
Participant
0 Kudos

Hi,

Yes, I have data in STR_SUPPL3 and its coming the OUT_PAR table also.

Madhurivs23
Participant
0 Kudos

Hi Asa,

will it print the whole address?

I tried this one. Its not coming

Rgds,

Madhuri

Edited by: madhuri sonawane on Dec 11, 2008 1:51 PM

Former Member
0 Kudos

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 &REGUH-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

Madhurivs23
Participant
0 Kudos

Hi Asa,

Yes, It is &REGUH-ADRNR& and I tried with this one only. But still not getting printed.

Rgds,

Madhuri

Former Member
0 Kudos

Hi,

You can check by debugging the script, that you have a value in the adressnumer

and if you use the adress routine with that adress numer it should be printed

How look your call to the adress number when you only used the adress number

Can you show me?

Regards

Åsa

Former Member
0 Kudos

Hi Madhuri,

Can you provide the solution for this problem ?

Did you get the street value if the PO Box is also filled? and did you get the solution using addressnumber?

Former Member
0 Kudos

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..

Madhurivs23
Participant
0 Kudos

Hi,

I have already fetched the data in subroutine and displaying the same in address endaddress.

Still its not coming.

rgds,

Madhuri

Former Member
0 Kudos

you have values in table?

Madhurivs23
Participant
0 Kudos

no not in table but I have fetched them separately and displaying them.

in street4 , location and country values are populating by calling perform routine.

In this way is it not possible... since in REGUH table ,all

address is not coming

Edited by: madhuri sonawane on Dec 11, 2008 10:04 AM