Application Development 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: 

ask a question about smartform

Former Member
0 Kudos

Hi expert,

I have a question about smartform . Now I am doing a task about Purchase Order,

when I create a new Purchase Order in Transaction ME21N , before I saved , I click the button to preview how it looks .

as everyone knows , during that time , there is no Purchase Order created . So in the header text - > Price types , I write something in

the text . I know the data , I can get it from table STXH , then use the function 'READ_TEXT' to check if there is data in it according to

TDNAME (in this case the tdname is purchase order ), but I didn't save it , so there is no purchase order , how can I get the data .

I only want to get the data in type 'EKKO' , not 'EKPO'.

kind regards

Nick

4 REPLIES 4

Firoz_Ashraf
Contributor
0 Kudos

'READ_TEXT' will work only when you save the PO.

0 Kudos

But I want to get data before saved . so 'READ_TEXT' doesn't work well .

so anyone knows about that ?

Kind Regards

Nick

0 Kudos

HI,

When u r creting have to save the PO document and activate it by t.code:ME21n.

thanks,

Former Member
0 Kudos

Hi...

use this code..

data : variable type c.

first concatenate ekko-name ekpo-ebelp into one variable.

and take one text element and give the name is variable

ok...

follow this steps..

i think this is help full for u...

thxs & regards,

rahul