2012 Jan 05 5:55 PM
Hi;
I´m editing the result file from this program RFFOM100 using USER EXIT "RFFOX901 - Include ZXFORU11", i´ve added some code to modify this field "e_dtam100h-h00" with a string of fields from "i_reguh", i've got the first line with the modified data from the USER EXIT.
I want to eliminate from the second line to the end.
Any idea where can i look for to delete those lines.
Result file:
........1........2........3........4........5........6...
10000025 0100553003 500.00 <CR/LF>
:20:2000000028 <CR/LF>
:32A:120105HNL500,00 <CR/LF>
:50:ZAZAZAZA <CR/LF>
ZAZA3333 <CR/LF>
:53B:/7100021810 <CR/LF>
:57D:BANCO ATLANTIDA <CR/LF>
TEGUCIGALPA <CR/LF>
FMO <CR/LF>
:59:/1234566 <CR/LF>
PROVEEDOR TEST 1 <CR/LF>
22 PRINCIPAL <CR/LF>
SAN LORENZO <CR/LF>
:70:N(O) 6565 /05.01.12 <CR/LF>
- <CR/LF>
Thanks on advance,
David Fúnez
Tegucigalpa, Honduras
2012 Jan 05 6:40 PM
May be put the code in loop that if sy-tabix ne '1' then do your logic.
Thanks
Seshu
2012 Jan 05 7:42 PM
it is no possible because in this USER EXIT the data i want to delete doesn't comes.
this is the parameters of the USER EXIT
FUNCTION EXIT_RFFOEXIT_901.
*"----
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_REGUH) LIKE REGUH STRUCTURE REGUH
*" VALUE(I_DTAM100S) LIKE DTAM100S STRUCTURE DTAM100S
*" VALUE(I_DTAM100H) LIKE DTAM100H STRUCTURE DTAM100H
*" VALUE(I_CBXX) LIKE RFPDO2-FORDCBXX
*" EXPORTING
*" VALUE(E_DTAM100H) LIKE DTAM100H STRUCTURE DTAM100H
2012 Jan 06 3:06 PM
Problem solved:
i used USER EXITS RFFOX900, RFFOX901, RFFOX902.
RFFOX901
concatenate var1 var2... into chain_string respecting blanks.
e_dtam100h-h00 = chain_string
where chain_string is the data from I_REGUH i need for the output file. this work for the header.
RFFOX902
The same than RFFOX902. this work for the last line(s) of the output file.
RFFOX900
This USER EXIT allows to get rid of these lines:
:20:2000000025
:32A:120105HNL1000,00
:50:ZAZAZAZA
ZAZA3333
:53B:/7100021810
:57D:BANCO ATLANTIDA
TEGUCIGALPA
FMO
:59:/1234566
PROVEEDOR TEST 1
22 PRINCIPAL
SAN LORENZO
:70:N(O) 123456789 /05.01.12
I hope this help you.