on 2009 Jun 09 4:01 AM
Hi Pals,
As any one used this user exit for source determination?
If yes can any one please pass the sample source code because
i tried with all the available Table and export parameters of FM: EXIT_SAPLMEQR_001,
nothing is working.
and as well SAP has not given any sample code for this enhancement in 4.6c system
Thanks,
Veeru.
Solved it ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
We have used this for creating contract as the only source list if contract exists and there are multiple PIR's
DATA: lv_count TYPE i,
lv_count_PIR TYPE i,
lv_lines TYPE i,
lv_tcode TYPE sy-tcode.
"Initialize variables.
lv_lines = 1.
lv_count = 0.
lv_count_pir = 0.
lv_tcode = ''.
IF i_banfn IS NOT INITIAL AND
i_bnfpo IS NOT INITIAL.
LOOP AT t_sources.
IF t_sources-ebeln <> SPACE AND
t_sources-infnr = space.
lv_count = lv_count + 1.
ELSEIF t_sources-ebeln = space AND
t_sources-infnr <> space.
lv_count_pir = lv_count_pir + 1.
ENDIF.
ENDLOOP.
*If source is a single contract delete all PIRs.
IF lv_count = 1.
DELETE t_sources WHERE ebeln = space
AND infnr <> space.
*If Source is multiple contracts
*delete all Contracts and PIRs.
ELSEIF lv_count > 1.
CLEAR: t_sources, t_sources[].
*If source in not from contracts consider PIRs
ELSEIF lv_count = 0.
*If source from more than one PIR's, delete all PIR's.
IF lv_count_pir > 1.
DELETE t_sources WHERE ebeln = space
AND infnr <> space.
ENDIF.
ENDIF.
ENDIF.
Thanks & Regards
Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
7 | |
6 | |
6 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.