cancel
Showing results for 
Search instead for 
Did you mean: 

SAPScript - hardcoding not working...

govind_parmar
Participant
0 Kudos

Hi Experts,

I am printing the following address thru COMPANY_INFO element, the requirement is to hardcode the NAME of the company.

/E COMPANY_INFO

/: ADDRESS DELIVERY PARAGRAPH GI

/: NAME &SADR-NAME1&, &SADR-NAME4&

/: STREET &SADR-STRAS&

/: CITY &SADR-ORT01&

/: POSTCODE &SADR-PSTLZ&

/: REGION &SADR-REGIO&

/: ENDADDRESS

When I hardcode the name as shown below the STREET, POSTCODE doesnot prints in the output. Do anyone have an idea why this is not printing??

/E COMPANY_INFO

PI ABC Company

/: ADDRESS DELIVERY PARAGRAPH GI

/* NAME &SADR-NAME1&, &SADR-NAME4& --> Commentes

/: STREET &SADR-STRAS&

/: CITY &SADR-ORT01&

/: POSTCODE &SADR-PSTLZ&

/: REGION &SADR-REGIO&

/: ENDADDRESS

Thanks,

Govind

Edited by: Julius Bussche on Sep 9, 2008 1:28 PM

Accepted Solutions (0)

Answers (6)

Answers (6)

former_member585060
Active Contributor
0 Kudos

Hi,

Try like this

/E COMPANY_INFO

/: ADDRESS DELIVERY PARAGRAPH GI

/: NAME 'ABC Company'

/: STREET &SADR-STRAS&

/: CITY &SADR-ORT01&

/: POSTCODE &SADR-PSTLZ&

/: REGION &SADR-REGIO&

/: ENDADDRESS

Check this Documentation for further help

http://help.sap.com/saphelp_40b/helpdata/en/d1/803238454211d189710000e8322d00/content.htm

Regards

Bala Krishna

Former Member
0 Kudos

You could try:

/E COMPANY_INFO
/: DEFINE &H_NAME& = 'ABC Company'
/: ADDRESS DELIVERY PARAGRAPH GI
/: NAME &H_NAME&
/: STREET &SADR-STRAS&
/: CITY &SADR-ORT01&
/: POSTCODE &SADR-PSTLZ&
/: REGION &SADR-REGIO&
/: ENDADDRESS

Former Member
0 Kudos

Please use a more descriptive subject title...

Cheers,

Julius

Former Member
0 Kudos

Hi,

Specify your Hardcoded text after the address and endaddress tag. or before address and endaddress tag..

I hope this will solve u r problem.

Regards,

Naresh.

Former Member
0 Kudos

Hi!

Try avoiding the ADDRESS statement in this case.

/E COMPANY_INFO

PI ABC Company

GI STREET &SADR-STRAS&

GI CITY &SADR-ORT01&

GI POSTCODE &SADR-PSTLZ&

GI REGION &SADR-REGIO&

Regards

Tamá

Former Member
0 Kudos