cancel
Showing results for 
Search instead for 
Did you mean: 

SAP script Prnit Problem

0 Kudos

Hi All,

I am working on SAP script whose out put is written to spool (RDI Output Mode = X).

When I check the spool out put under consignee window with xxxxx text element we are getting few fields which are not there in the SAP Script consignee window.

Example STXADDRESS-COUNT_IRL

STXADDRESS-LANG_COUNT

STXADDRESS-NO_UPPER

ADRS1-TITLE_TEXT

ADRS1-NAME1

ADRS1-NAME2

ADRS1-NAME3u2026u2026u2026u2026u2026u2026

Could you please suggest where I can find those fields and how they are populating?

Thanks,

HymaRao

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

In Debug mode those fields are not appearing

Former Member
0 Kudos

plz check in script if address..endaddress statement have been used

0 Kudos

Hi

Yes Address and End Address is used as show below.

/E HEADER_DELADDRESS

/* 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

Former Member
0 Kudos

hi

ADRS1 is a structure..u can check in se11

I am not sure but i think address endaddress is populating that structure from adrc table.....

plz check .....

Former Member
0 Kudos

This message was moderated.

0 Kudos

Yes i know ADRS1 is a structure, i want to know how it is populating.

i just want to restrict the TITLE field.

Former Member
0 Kudos

u just dont show the title..

see if this works

PRIORITY OF ADDRESS IN SAP SCRIPT

/: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a][ PRIORITY p] [LINES l]

/: TITLE form of address

/: NAME name1[, name2[, name3[,name4]]]

/: PERSON name of natural person [TITLE form of address]

/: PERSONNUMBER number of the person

/: DEPARTMENT department

/: STREET strno HOUSE house number

/: POBOX pobox [CODE code]

/: POSTCODE postal code

/: CITY city1[,city2]

/: REGION district

/: COUNTRY recipient country

/: FORMCOUNTRY sender country

/: ENDADDRESS

Parameter PRIORITY defines which address lines may be omitted, if necessary. The possible values are as follows :

A Form of address

B Mandatory blank line 1

C Mandatory blank line 2

2 Name2

3 Name3

4 Name4

L Country name

S Street line

O City line

The parameter LINES are available for formatting the address. Possible values are from 1 to n. If it is not possible to format all address data due to a lack of lines, the data which is entered in the parameter PRIORITY is omitted.

remove the title part of the address.from within the address endaddress statement.....see if it helps

Former Member
0 Kudos

Hi, how you have restricted tile. even i don want to display the field.nut it is diplaying even i deleted the title line.

Former Member
0 Kudos

This message was moderated.