2007 Apr 13 6:12 AM
hi iam codin in an user exit in which i have to check whther the reference billing plan numeris valid or not. i. check with table FPLA where vbeln and rfpln are absent(check with FPLNR).
can u plss suggest me how to code this!!
points promised!!
hi iam codin in an user exit in which i have to check whther the reference billing plan numeris valid or not. i. check with table FPLA where vbeln and rfpln are absent(check with FPLNR).
can u plss suggest me how to code this!!
points promised!!
2007 Apr 13 6:17 AM
Hi Done ,
if vbrk-ref is not intiital.
select * from table where ref = vbrk-ref.
if sy-subrc ne 0.
message
endif.
this is sample code , no syntax check.
Regards
Prabhu
2007 Apr 13 6:23 AM
Hai,
It is not better to check whether they empty or not.
But Select a single record from FPLA-rfpln equal to the value what you are going to check.
Write the code like below:
SELECT SINGLE
FROM FPLA
WHERE RFPLN EQ P_RFPLN.
IF SY-SUBRC EQ 0.
MESSAGE 'Invalid billing plan numer(RFPLN)' TYPE 'E'.
ENNDIF.
Hope you can validate now.
<b>Reward points if it helps you.</b>
Regds,
Rama chary.Pammi
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |