Application Development and Automation 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: 
Read only

enhancement

Former Member
0 Likes
454

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

2 REPLIES 2
Read only

Former Member
0 Likes
429

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

Read only

Former Member
0 Likes
429

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