on 03-12-2009 4:57 PM
Hi All,
I need some clarification in script,
I need to populate some extra details in the vendor address window .
ADDRESS PARAGRAPH AV
TITLE &LFA1-ANRED&
NAME &LFA1-NAME1&
ENDADDRESS
With this window i need to add a another field called street. i have retrieved it through perform and end perform and i am having the street name in this field called LV_STREET.
I just inserted the field like this.
ADDRESS PARAGRAPH AV
TITLE &LFA1-ANRED&
NAME &LFA1-NAME1&
&LV_STREET&
ENDADDRESS
Its is not getting populated can any one suggest me this title,name fields are related to that or where and all i can check to get it populated.
Thanks in advance
/: ADDRESS
/: TITLE &LFA1-ANRED&
/: NAME &LFA1-NAME1&
/: STREET &lv_street&
/: ENDADDRESS
use like this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hI karthik,
Thanks for your quick reply..it would great if you can tell me whether title,name,street are associated with the fields what we are populating.
And more to that already one street is defined over there and i need to populate the street2..
If i give street2 &lv_street& its not working..
Thanks,
Arun.
I have given like this
ADDRESS PARAGRAPH AV
PERFORM GET_STREET2 IN PROGRAM ZM_SCHED_ROUTINE
DEFINE &LV_STREET(35)&
USING &EKKO-LIFNR&
CHANGING &LV_STREET&
ENDPERFORM
TITLE &LFA1-ANRED&
NAME &LFA1-NAME1&
STREET &LFA1-STRAS&
POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&
CITY &LFA1-ORT01&
POSTCODE &LFA1-PSTLZ&
COUNTRY &LFA1-LAND1&
REGION &LFA1-REGIO&
FROMCOUNTRY &T001-LAND1&
ENDADDRESS
Kathik - its not working..any more suggestions please??
I have given like this.
ADDRESS PARAGRAPH AV
PERFORM GET_STREET2 IN PROGRAM ZM_SCHED_ROUTINE
DEFINE &LV_STREET(35)&
USING &EKKO-LIFNR&
CHANGING &LV_STREET&
ENDPERFORM
TITLE &LFA1-ANRED&
NAME &LFA1-NAME1&
STREET &LFA1-STRAS&
STREET 2 &LV_STREET&
POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&
CITY &LFA1-ORT01&
POSTCODE &LFA1-PSTLZ&
COUNTRY &LFA1-LAND1&
REGION &LFA1-REGIO&
FROMCOUNTRY &T001-LAND1&
ENDADDRESS
lv_street has values but i couldn't c it in the output any more suggestions please?
Thanks
Hi,
Try this
/: ADDRESS
/: TITLE &LFA1-ANRED&
/: NAME &LFA1-NAME1&
/: STREET &LFA1_STRAS& , &LV_STREET& " use , in between 2 streets
/: ENDADDRESS
ADDRESS PARAGRAPH AV
PERFORM GET_STREET2 IN PROGRAM ZM_SCHED_ROUTINE
DEFINE &LV_STREET(35)&
USING &EKKO-LIFNR&
CHANGING &LV_STREET&
ENDPERFORM
TITLE &LFA1-ANRED&
NAME &LFA1-NAME1&
STREET &LFA1-STRAS&, &LV_STREET& " Use only 1 Street but use , if you have street 2 value
POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&
CITY &LFA1-ORT01&
POSTCODE &LFA1-PSTLZ&
COUNTRY &LFA1-LAND1&
REGION &LFA1-REGIO&
FROMCOUNTRY &T001-LAND1&
ENDADDRESS
Regards
Bala Krishna
Edited by: Bala Krishna on Mar 12, 2009 11:43 PM
sapscript formats an address endaddress by making an implicit call to FM address_into_printform
make a call to this fm by passing the parameter STREET_HAS_PRIORITY of the function module ADDRESS_INTO_PRINTFORM .
now check if u get street 2 &lv_street&
this sap help will help you
http://help.sap.com/saphelp_nw04/helpdata/en/18/c042d8da4811d3b571006094192fe3/frameset.htm
кu03B1ятu03B9к
Hi,
Try this way
ADDRESS DELIVERY PARAGRAPH AV " add DELIVERY
PERFORM GET_STREET2 IN PROGRAM ZM_SCHED_ROUTINE
DEFINE &LV_STREET(35)&
USING &EKKO-LIFNR&
CHANGING &LV_STREET&
ENDPERFORM
TITLE &LFA1-ANRED&
NAME &LFA1-NAME1&, &LFA1-STRAS& " Give street1 value in Name line
STREET &LV_STREET& " street 2 value in STREET
POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&
CITY &LFA1-ORT01&
POSTCODE &LFA1-PSTLZ&
COUNTRY &LFA1-LAND1&
REGION &LFA1-REGIO&
FROMCOUNTRY &T001-LAND1&
ENDADDRESS
As default address consists of the following
/: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]
/: TITLE title
/: NAME name1[,name2[,name3[,name4]]] " Name can be name 1 name 2 etc
/: PERSON name of natural person [TITLE form of address]
/: PERSONNUMBER number of the personen
/: DEPARTMENT department
/: STREET street name HOUSE house number " Street can have only 1 value it can have House no
/: LOCATION additional location information
/: POBOX po box [CODE post code / zip code] [CITY city]
/: POSTCODE post code / zip_code
/: CITY city1[,city2]
/: NO_UPPERCASE_FOR_CITY
/: REGION county / state
/: COUNTRY recipient country [LANGUAGE language code]
/: COUNTRY_IN_REC_LANG
/: LANG_FOR_COUNTRY language key
/: FROMCOUNTRY sender country
/: ADDRESSNUMBER address number
/: ENDADDRESS
See wether above code works or not.
Regards
BAla Krishna
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.