cancel
Showing results for 
Search instead for 
Did you mean: 

item text of purchase order to be printed in smartform

Former Member
0 Kudos

Hello,

Any one aware of the table where the item text of the purchase order is stored.

Also , i need to print this item text of the purchase order in the smartform , what do I need to do for that .

Any help with the table and the programming .

Thanks

Joseph

Accepted Solutions (1)

Accepted Solutions (1)

NAeda
Contributor
0 Kudos

Hi ,

To Print item text in Smartform,

Create one text , give text type as Include Text text.

Text Name &TDNAME&

Text Object EKPO

Text ID &TDID&

Language &LANGUAGE&.

Pass the textname(Concatenate PO no and Item no) and and text id and language.

Regards

Aeda

Former Member
0 Kudos

Thank you everyone for the great response .

Now , i know which table to look for the item text and how to see it .

The print/driver program that we are using is the standard print program so i do not want to make any chnages in it .

Is there any way i can insert the programming in the smartform using Progarm node .

I am sure it will be a small program code .

People can you help me with that exact and specific coding that i can add in my smartform .

Thanks a ton once agian

Joseph

Former Member
0 Kudos

Hi,

Create a workarea of the table ( in form interface ), then in the main window, take loop command.

loop the internal table into workarea.

create row->cells->text node.

drag the workarea with the field required to be printed.

If you are printing a standard text, then create command lines, then call fm 'READ_TEXT' and include the object id,language etc... and declare the form interface attributes needed and display them in text node.

Former Member
0 Kudos

Thanks , will try that and let you know

Former Member
0 Kudos

Hi

Use READ_TEXT function module inside the Table i.e inthe main window where u loop ur internal table into workarea which contains the line items . where u get the PO# Line item

then use READ_TEXT function module to get the text check the FM READ_TEXT for further examples in net

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = 'F01'

language = 'E'

name = ekko-ebeln

object = 'EKKO'

TABLES

lines = tb_header_text

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

Surya

Edited by: suryareddy on Nov 10, 2009 1:57 PM

Former Member
0 Kudos

thanks

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

ekpo-TXZ01 is the item text

Former Member
0 Kudos

Thanks shreesudha ,

Could you help me with the programming . How do i pas the item text to smartform.

I want the item text to be printed .

Joseph

Former Member
0 Kudos

Hi,

If you have driver program, then fetch data into the table and pass it to the smartform,

then declare the workarea for the same in the smartform->global definitions and then display the text.