Application Development 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: 

Need help with User Exit in Validation

Former Member
0 Kudos
180

Hi,

I need help while creating a Validation (FMVABD) to validate that while using Transaction Code FR10 (Budget Release of Funds Center), only that User which is maintained in Funds Center Master data can release the budget.

I have written followin Code in Users Exit:

<CODE>

b_result = B_FALSE.

SELECT SINGLE * FROM FMFCTR WHERE BOSSID = SY-UNAME AND FICTR = '??????'.

IF SY-SUBRC = 0.

b_result = B_TRUE.

ENDIF.

</CODE>

'??????' In the second condition of WHERE CLUASE I want to mention Fund Center for which Budget is being released.

Kinldy assist how to do that.

Regards,

Hanif

6 REPLIES 6

madhu_vadlamani
Active Contributor
0 Kudos
102

Hi Hanif,

As per your requirement this should validate those fields in run time. Check whether that required field are there are not. Post if need more help on this.

Regards,

Madhu.

0 Kudos
102

Hi Madhu,

I have noticed that while maintaining validation using FMVABD, under TABLE FIELDS tab, I can find BPJA_VALID-FISTL (means Funds Center) but I am unable to use this field in my User Exit ABAP Code.... it gives error message "BPJA_VALID" is unknown.

Any idea how to access this field contents from User Exit.

Regards,

Hanif

0 Kudos
102

Hi Hanif,

Try to declare this BPJA_VALID with table statement.

Regards,

Madhu.

0 Kudos
102

Hi Madhu,

I tried declaring it using TABLE OF BJPA_VALID but it is initialized and doesn not contain any value.

Can I declare a local vaiable like BJPA_VALID that contain all values that are held in original structure?

Regards,

Hanif

0 Kudos
102

Hi Hanif,

Then declare like ZBJPA_VALID like BJPA_VALID and check.

Regards,

Madhu.

0 Kudos
102

Dear Madhu,

'Like' statement can not give soluition for this, beacuse whenever a new variable is declared it is Initialized by default.

Regards,

Hanif