2011 Apr 22 7:16 AM
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
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
2011 Apr 22 7:42 AM
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.
2011 Apr 22 7:52 AM
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
2011 Apr 22 7:55 AM
Hi Hanif,
Try to declare this BPJA_VALID with table statement.
Regards,
Madhu.
2011 Apr 22 8:30 AM
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
2011 Apr 22 8:46 AM
Hi Hanif,
Then declare like ZBJPA_VALID like BJPA_VALID and check.
Regards,
Madhu.
2011 Apr 22 10:40 AM
Dear Madhu,
'Like' statement can not give soluition for this, beacuse whenever a new variable is declared it is Initialized by default.
Regards,
Hanif