2009 Jun 09 10:04 AM
Dear all,
I have one doubt in purchase order list.
I want to print the texts of p.o.
like - header text text, header note text, pricing type text etc....
so how to print the texts and how to declare the variables:
example :
data : begin of it_ekko occurs 0,
ebeln like ekko-ebeln,
bukrs like ekko-bukrs,
ekorg like ekko-ekorg,
end of it_ekko.
for printing texts wht to do.please help.which function module i have to use.and how.
2009 Jun 09 10:13 AM
Where do u want to display Header text?
If it is in report you can fetch it from FM read_text
you get the text in TLINE table.
In case of script it is different.
2009 Jun 09 10:10 AM
1. Do you know about the BEST PRACTICES of using any forum?
2. Did you read rules of engegments before using any forum?
3. Did you search the forum before posting your query?
If answers to these questions is YES then you are not doing things sincerely.
You can easily find your required info if you search the forum. Like [this|]
2009 Jun 09 10:13 AM
Where do u want to display Header text?
If it is in report you can fetch it from FM read_text
you get the text in TLINE table.
In case of script it is different.
2009 Jun 09 10:23 AM
hi,
i have done it in script.
i want this in program.
iam not getting texts in tlines.
the code which i have written
LOOP AT Vit_final into vfl_final .
CONCATENATE vfl_final-EBELN vfl_final-EBELP INTO XNAME.
CLEAR T_LINES.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'F01'
language = P_SPRAS
name = XNAME
object = 'EKPO'
TABLES
lines = T_LINES
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6.
read table tlines index 1.
loop at tlines.
endloop.
endloop.