cancel
Showing results for 
Search instead for 
Did you mean: 

address is not coming in address window

Former Member
0 Kudos

hi all,

i have coppied the standard sap script,

and i need some modificatiom in scrip, i dont want addres as hard coded so i wrote the code in address window as

/: IF &PAGE& EQ '1'.

/: ADDRESS PARAGRAPH AS

/: NAME &SADR-NAME1& &SADR-NAME2&

/: POBOX PO BOX &SADR-PFACH&

/: CITY &SADR-ORT01& OR &SADR-STRAS&

/: ENDIF.

/: ADDRESS PARAGRAPH AS

/: TITLE &VBDKA-ANRED&

/: POSTCODE &VBDKA-PSTLZ&

but i am not getting the adress in form,,, in debugging the value is coming in all fields.. please help me as i am beginer.

thanks and regars

pawan

Accepted Solutions (1)

Accepted Solutions (1)

former_member585060
Active Contributor
0 Kudos

Hi,

Just remove the Paragraph format as /: and give any Paragraph format.

/: IF &PAGE& EQ 1

P1 NAME &SADR-NAME1& &SADR-NAME2&

P1 POBOX PO BOX &SADR-PFACH&

P1 CITY &SADR-ORT01& OR &SADR-STRAS&

P1 TITLE &VBDKA-ANRED&

P1 POSTCODE &VBDKA-PSTLZ&

/: ENDIF

Regards

Bala Krishna

h_senden2
Active Contributor
0 Kudos

You CANNOT use the paragraph P1, but you still have to use the /: paragraph, because the ADDRESS statement is a kind of function module.

regards,

Hans

Answers (1)

Answers (1)

h_senden2
Active Contributor
0 Kudos

Are you on page 1 ?

Is the window with this SAPScript code called from the printprogram ?

regards,

Hans