on 02-06-2008 8:28 AM
Hi Experts,
I have a issue with PO item text printing multiple times in main window area of the script while outputing the PO Order data.
that text shoulb be displayed only once in a page,but it is prinitng severval times
.
This Po Item text is coming from 2 Stanard text incudes which are in PO item text of
PO Tcodes (ME23)
by using read_text FM text is coming to script by mentioning the path of incude in script in an element of the main window
in my scenarion while printing PO Ordere Output is in 5 pages ,in 1 page some item data is there in that Page it is printed once only ,but from second page onwards this text is printing several times in main window area,here no data for item details
but total pages of the layout set is 2 only
how to avoid this issue ?
Thanks in advance .
Regards,
Hitu
Hi HITU,
This is venkat , i need some help from u.We have the item text in po. how to fetch the data from that po using read_text. i use that but it will shows error.
plz send me the code.
mycode is
types:begin of tw_ekpo,
ebeln type ebeln,
ebelp type ebelp,
end of tw_ekpo.
data:it_tline type tline OCCURS 0 WITH HEADER LINE ,
it_ekpo type standard table of tw_ekpo with header line,
v_name(70) .
parameters:pa_vbeln type ekko-ebeln.
start-of-selection.
select ebeln ebelp from ekpo into table it_ekpo
where ebeln = pa_vbeln.
LOOP AT IT_EKPO.
write:it_ekpo-ebeln,
it_ekpo-ebelp.
concatenate it_ekpo-ebeln it_ekpo-ebelp into v_name.
write:v_name.
endloop.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'F01'
LANGUAGE = SY-LANGU
NAME = v_name
OBJECT = 'EKPO'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = it_tline
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
i will give the nuts.
Thanks &Regards,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
issue solved my self.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.