2009 Apr 28 4:31 AM
I need to add the street 2 field in a SAPScript. However, I am unsure how to do this. Below is what I have on the SAPScript:
/: IF &RPCOBQBDAT-DSUBT& EQ '0 ' OR &P0106-STRAS(30)& EQ &SPACE(30)&
/: ADDRESS PARAGRAPH L4
/: TITLE &FORM_OF_ADDRESS&
/: NAME &RPCOBLET01-NAM01&
/: STREET &P0006-STRAS&
/: CITY &P0006-ORT01&, &P0006-ORT02&
/: POSTCODE &P0006-PSTLZ&
/: COUNTRY &P0006-LAND1&
/: REGION &P0006-STATE&
/: FROMCOUNTRY &P0006-LAND1&
/: ENDADDRESS
/: ELSE
/: ADDRESS PARAGRAPH L4
/: TITLE &FORM_OF_ADDRESS&
/: NAME &RPCOBLET01-NAM01&
/: STREET &P0006-STRAS&
/: CITY &P0106-ORT01&
/: POSTCODE &P0106-PSTLZ&
/: COUNTRY &P0106-LAND1&
/: REGION &P0106-STATE&
/: FROMCOUNTRY &P0106-LAND1&
/: ENDADDRESS
/: ENDIFI know that I need to add the field &P0006-LOCAT& to the form (under &P0006-STRAS&) but I am unsure what to use in place of 'STREET'. I tried the following but it doesn't print:
/: STREET2 &P0006-LOCAT&
/: BUILDING &P0006-LOCAT&
/: STREET &P0006-LOCAT& -> This one just overwrites the field &P0006-STRAS&
I realize that this is an easy thing but I am not sure what to use.
Regards,
Davis
I need to add the street 2 field in a SAPScript. However, I am unsure how to do this. Below is what I have on the SAPScript:
/: IF &RPCOBQBDAT-DSUBT& EQ '0 ' OR &P0106-STRAS(30)& EQ &SPACE(30)&
/: ADDRESS PARAGRAPH L4
/: TITLE &FORM_OF_ADDRESS&
/: NAME &RPCOBLET01-NAM01&
/: STREET &P0006-STRAS&
/: CITY &P0006-ORT01&, &P0006-ORT02&
/: POSTCODE &P0006-PSTLZ&
/: COUNTRY &P0006-LAND1&
/: REGION &P0006-STATE&
/: FROMCOUNTRY &P0006-LAND1&
/: ENDADDRESS
/: ELSE
/: ADDRESS PARAGRAPH L4
/: TITLE &FORM_OF_ADDRESS&
/: NAME &RPCOBLET01-NAM01&
/: STREET &P0006-STRAS&
/: CITY &P0106-ORT01&
/: POSTCODE &P0106-PSTLZ&
/: COUNTRY &P0106-LAND1&
/: REGION &P0106-STATE&
/: FROMCOUNTRY &P0106-LAND1&
/: ENDADDRESS
/: ENDIFI know that I need to add the field &P0006-LOCAT& to the form (under &P0006-STRAS&) but I am unsure what to use in place of 'STREET'. I tried the following but it doesn't print:
/: STREET2 &P0006-LOCAT&
/: BUILDING &P0006-LOCAT&
/: STREET &P0006-LOCAT& -> This one just overwrites the field &P0006-STRAS&
I realize that this is an easy thing but I am not sure what to use.
Regards,
Davis
2009 Apr 28 4:43 AM
Hi Davis,
You will directly get all the Address Details from Table PA0006.
Regards,
Vishal
2009 Apr 28 4:45 AM
Yes, I realize that. My issue is that the line isn't printing on the SAPScript (even though there is a value in P0006-LOCAT.
I just tried /: LOCATION &P0006-LOCAT& and that didn't seem to work either.
Regards,
Davis
2009 Apr 28 4:28 PM
Hi Davis,
Instead of "/: LOCATION &P0006-LOCAT&", you should use:
LOCATION &P0006-LOCAT&.
Means replace /: with *.
Regards,
Vishal
2009 Apr 28 11:50 AM
2009 Apr 28 4:32 PM
hi as you are writing the code in adress .. endaddress tags.... sap automatically pick the address format baed on COUNTRY (&P0006-LAND1&)
2009 Apr 28 5:00 PM
Thanks for the ideas. I got it to work by setting the priority (PRIORITY A). This works even though the priority statement isn't omitting the title field. I'm not sure why it is working but it is.
Regards,
Davis
2009 Apr 28 5:22 PM
According to my notes, the address is formatted by FM ADDRESS_INTO_PRINTFORM and you should see its documentation for further information.
Rob
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |