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: 

REGARDING PURCHASE ORDER

0 Kudos
110

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
83

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.

3 REPLIES 3

amit_khare
Active Contributor
0 Kudos
83

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|]

Former Member
0 Kudos
84

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.

0 Kudos
83

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.