09-07-2008 9:21 AM
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
09-07-2008 11:03 AM
09-08-2008 2:52 AM
But I want to get data before saved . so 'READ_TEXT' doesn't work well .
so anyone knows about that ?
Kind Regards
Nick
09-08-2008 3:35 AM
HI,
When u r creting have to save the PO document and activate it by t.code:ME21n.
thanks,
09-08-2008 8:04 AM
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