cancel
Showing results for 
Search instead for 
Did you mean: 

how to remove tiltle?

Former Member
0 Kudos

hi in SAP-script. one window is i=having thiscode.

/* Please deliver to:

  • ^GLOBAL ZJF_BILLTO BLOCK

/: IF &PEKKO-ADRNR(K)& EQ ' ' AND &PEKKO-ADRN2(K)& EQ '

/: ADDRESS DELIVERY PARAGRAPH AS

/* TITLE &SADR-ANRED&

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

/: STREET &SADR-STRAS&

/: CITY &SADR-ORT01&, &SADR-ORT02&

/: POSTCODE &SADR-PSTLZ&

/: COUNTRY &SADR-LAND1&

/: REGION &SADR-REGIO&

/: FROMCOUNTRY &LFA1-LAND1&

/: ENDADDRESS

/: ELSE

/: IF &PEKKO-ADRNR(K)& NE ' '

/: ADDRESS DELIVERY PARAGRAPH AS

/: ADDRESSNUMBER &PEKKO-ADRNR(K)&

/: FROMCOUNTRY &LFA1-LAND1&

/: ENDADDRESS

/: ELSE

/: ADDRESS DELIVERY PARAGRAPH AS

/: ADDRESSNUMBER &PEKKO-ADRN2(K)&

/: FROMCOUNTRY &LFA1-LAND1&

/: ENDADDRESS

/: ENDIF

/: ENDIF

while printing i m getting Title also.

i don want to print. i commented that line TITLE &SADR-ANRED& then also it came.

pls reply how to remove that.

Edited by: nancy coner on Aug 11, 2009 9:32 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member585060
Active Contributor
0 Kudos

Hi,

Activate the Debugger and check the values of &PEKKO-ADRNR(K)& and &PEKKO-ADRN2(K)&, i think your ELSE condition is getting printed, as it is taking the ADDRESSNUMBER and printing all the address from the database table directly with refrence to ADDRESSNUMBER.

If &PEKKO-ADRNR(K)& or &PEKKO-ADRN2(K)& has values, write a Subroutine to get the address details into the corresponding fields. And the comment the Title field or just give /: TITLE thats all.

Regards

Bala Krishna

Edited by: Bala Krishna on Aug 11, 2009 1:33 PM

Former Member
0 Kudos

THANKS

Former Member
0 Kudos

THANKS

Former Member
0 Kudos

Hi

Check Whether any one of the fileds &SADR-NAME1&, &SADR-NAME2&, &SADR-NAME3&, &SADR-NAME4&

has TITLE included by default or hardcoded like NAME1----> MR.XYZ and title field been blank.

surya

sridhar_meesala
Active Contributor
0 Kudos

Hi,

While commenting just write *

* TITLE &SADR-ANRED&  is enough

/* TITLE &SADR-ANRED&  not needed.

save it, activate it and see. It works.

Thanks,

Sri.