on 08-11-2009 8:30 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.