‎2010 Apr 29 12:39 PM
Hi All
I am an MM analyst which has never had to deal with SAP scripts before.
I have had a request to look into amending a Purchase Order Script to include Plant Specific Text
This text needs to appear underneath the delivery address on the PO Print and displays opening times e.g.
" Deliveries accepted 8am-4.30pm Monday to Thursday
and 8am-12.30pm Friday "
How can I get this to display only when the PO is raised for a specific Plant?
Any help would be greatly appreciated
Regards
Andy
‎2010 Apr 29 12:56 PM
hi,
In the window which is printing the delivery address, you can place If condition to check the plant and then maintain the required text to be printed.
/:If marc-werks eq 'u001'
text
/:endif.
‎2010 Apr 29 12:51 PM
Hi
This can be done by keeping condition.
I dont remember much about sap script but it smartforms it is a easy thing.
you can find it easily from any abaper here is some idea.
In smartform window there is tab called conditions.
you can use it for restricting to specified plant
Regards
sateesh
‎2010 Apr 29 12:56 PM
hi,
In the window which is printing the delivery address, you can place If condition to check the plant and then maintain the required text to be printed.
/:If marc-werks eq 'u001'
text
/:endif.
‎2010 Apr 29 1:01 PM
Hi,
1. First craete a text ZZTEXT element in SO10.. Here you can put your whole text (Whatever it is) in a element... use tcode SO10 to create same.
2. Call this text element in your sap script.. for this in se71 tcode.. try to find the window where you can put this text. as ypur saying you need to put it below the Delivery addrs.. so pls try to serch the relevent possition..
3. Use below syntext to print that text element..
/: INCLUDE ZZTEXT OBJECT TEXT ID ST LANGUAGE ENRegs,
Lokesh..
‎2010 Apr 29 1:04 PM
Hi Andy,
A simple way to achieve this would be to create a Text Element (transaction SO10) with the same name as the plant number. Then in the form use the INLCUDE command and a variable that holds the plant number. Check the online help for details on the INCLUDE command.
Regards,
Nick
‎2010 Apr 29 1:39 PM