cancel
Showing results for 
Search instead for 
Did you mean: 

item txt using include text smartform

Former Member
0 Kudos

Hello Friends ,

How can we print Item text from purchase order in smartform using include text . I know click on the include text mode and then write the following details .

text id = f01

lanuage = en

object = ekpo

what should i write in text name . Any other details i need to mention

Do i need to create one using SO10 . Plzzzzzzzzzzz help

Joseph

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Joseph

Name would have ebeln + posnr.

ie the Purcahase Order Number + Item Number.

like 000000022800020.

Thanks

Pushpraj

Former Member
0 Kudos

Thanks Puspraj,

item number is the item number of the purchasing document . Plz confirm

Joseph

Edited by: joseph_sweden on Nov 16, 2009 11:51 AM

Former Member
0 Kudos

Yes, it'd print the item text.

Pushpraj

Former Member
0 Kudos

Are there any other settings that need to be done , except include text for the item text to be printed.

In include text in the smartform i have mentioned ,

´text name = ebeln+ebelp

text id = f01

lanuage = en

object = ekpo

Nothing gets printed.

Gurus, plz help

Joseph

Edited by: joseph_sweden on Nov 16, 2009 3:54 PM

Former Member
0 Kudos

Hi

Hope you wrote it as


CONCATENATE ebeln ebelp INTO lv_name.
text name = lv_name
text id = 'F01'
lanuage = 'EN'
object = 'EKPO'

Make sure thereis is a text maintained for the item in ME23n.

Pushpraj

Former Member
0 Kudos

hi ,

Where do i write concatenate , in the condition tab.

In the include text , there is no option . There is text key where they ask for

text name

text id

text object

language

Joseph

NAeda
Contributor
0 Kudos

Hi,

Create one program lines above the text, and Provide the input field and output filed

then write the code for concatenate.

Create one text with Type Include text.

Pass the variables like this

Text Name &TDNAME&
Text Object EKPO
Text ID &TDID&
Language &LANGUAGE&.

and Check the tick mark-No error if no text exists.

Rgds

Aeda

Edited by: Aeda N on Nov 17, 2009 9:30 AM

Former Member
0 Kudos

Thanks .

So you want to say that for item text to print there has to be 2 text nodes.

1 text node with programming , in this do we have to write the whole program codes as read_text , exporting , importing etc.

2 text node with include text , in this we write

Text Name &TDNAME&

Text Object EKPO

Text ID &TDID&

Language &LANGUAGE&.

Joseph

NAeda
Contributor
0 Kudos

hello,

No,

Create one Node- Program lines

Input filds: PO no and item no.

output filed : NAME(create one global variable with char type).

Code : Concatenate PO intemno into NAME.

Create onemore node : Text.

give text type as Include text and pass the variables as i said.

Rgds

Aeda

Former Member
0 Kudos

It does not work ,

Could you describe clearly with codes what and how to write in program lines .

Joseph

Former Member
0 Kudos

Create one program lines node just before this text node in which you are displaying item text (standard text).

In this program lines, write ebeln, ebelp and gv_name in import parameter and gv_name in export parameter.

Define this gv_name in global definition. Now in this program lines node, write this code.

CLEAR gv_name.

CONCATENATE ebeln ebelp INTO gv_name.

Now use this gv_name into text node for item text as shown below.

text name = &gv_name&

text id = 'F01'

lanuage = 'EN'

object = 'EKPO'

and tick the checkbox for no error if text does not exist.

Hope it will help you.

NAeda
Contributor
0 Kudos

Hi,

Right click on node(on which you need the text)

Create-Flow logic-Program lines.

system gives %CODE1

there are two tabs General attributes and Conditions

click on General Attributes

Provide the Input parameters - which contains po no and item no

Provide the output parameters- globally defined Variable ex NAME type C

write the code:

CONCATENATE ekpo-ebeln ekpo-ebelp into name

Now again right click on program line create Text.

Give text type as Include text.

provide the details

Text Name &NAME&

Language EN

Text ID F01

Text Object EKPO

Check the box : no error

Rgd

Narsim

Edited by: Aeda N on Nov 17, 2009 11:59 AM

Former Member
0 Kudos

Thanks Aeda for helping me so far.

The item text gets printed but inthe purchase order . i wanted it to be printed in the GR-slip.

where did i go wrong.

i checked the smartform from the nace--inventory mgmnt.....output type

joseph

NAeda
Contributor
0 Kudos

hello,

Do you want to print GR..? or Purchase order print..?

to print GR go to tcode MB90 and provide the Material document no and run the program, before that assign the message types for the Material document no.(MB02- double click on item- click on message)

Rgda

Aeda

Former Member
0 Kudos

it's a GR