Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Scripts Plant Specific Text???

Former Member
0 Likes
1,109

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
853

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.

5 REPLIES 5
Read only

Former Member
0 Likes
853

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

Read only

Former Member
0 Likes
854

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.

Read only

Former Member
0 Likes
853

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 EN

Regs,

Lokesh..

Read only

Former Member
0 Likes
853

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

Read only

Former Member
0 Likes
853

Great answers - thank you all for your help

Andy