‎2007 Oct 23 3:21 PM
Respected Members,
I want to display the texts written in the purchase order creation.
I am getting this text with the help of include statement written in sapscript medruck.
But problem is suppose i want to print text for shipping instructions and delivery
then by using the include command line statement ,i m getting the text but how to distinguish between that text whether it is shipping instruction one or delivery one.
so with the help of paragarph format i have given standard text
like
p1 DELIVERY
P1 SHIPPING INSTRUCTIONS
now i want the corresponding values should print infront of it.
BUt values of text come by using the command line ( /:)
and nothing we can give in this command line.
so my values are coming in the next line.
eg
DELIVERY
hyderabad station
SHIPPING INSTRUCTIONS
properly picked up.
please help me how to print the 'hyderabad station' text infront of the DELIVERY in the same line.
if yours solution is that i start giving the DELIVERY also along with the text then it will not be a good solution.
So please give me the good solution as soon as possilbe.
‎2007 Oct 23 3:32 PM
Hi
Texts are differentiated with the ID used in the Include statement
check the include commands for different texts
/: INCLUDE Objectname<name> ID <id> ....
so for different texts different id's will be there
goto PO display in ME23N
select the texts
double click .goto text ediot
from menu GOTO-> header you will see the OBJECT,ID,OBJECTNAME etc
there if you see other parameetrs are same except the ID for each text
You can alter the text of INCLUDE statement in Script
you can't add or remove something from it
If you wants to do like that you have to fetch the texts using READ_TEXT fun module into an internal table and do
Regards
Anji
‎2007 Oct 23 3:34 PM
Hi,
You need to use function module READ_TEXT to get the text in your driver program. For reading the long text you need to get parameters - Text name, Text ID, Text Object and Language.
Usually Language is SY-LANGU, Text name is corresponding Purchase Order no, Text object is EKKO and Text ID for Terms of Delivery text is F05, For Shipping instructions it is F06.
So get the text using READ_TEXt function module, read the internal table data and print the same next yo tour label in script.
Hope this helps.
ashish
‎2007 Oct 23 3:35 PM
Use SE75 to find out the object and ID details of transaction texts