2007 Aug 09 10:41 AM
if the field " plifz " in MARC table is initial or zero ,while creating a sales order ,
i shd stop saving sales order and give error message .
user exit is :::: USEREXIT_CHECK_VBAP
HOW TO CHECK IF A FIELD HAS NO INITIAL VALUE OR ZERO IN IT .
if the field " plifz " in MARC table is initial or zero ,while creating a sales order ,
i shd stop saving sales order and give error message .
user exit is :::: USEREXIT_CHECK_VBAP
HOW TO CHECK IF A FIELD HAS NO INITIAL VALUE OR ZERO IN IT .
2007 Aug 09 12:26 PM
Hi Vijay,
Give the Field Name for example : IF T_VBAK IS NOT INITIAL.
ENDIF.
Regards.
Bhaskar Rao.M
2007 Aug 09 12:28 PM
Hi ,
use the Screen field and check whether the data is initial ot not .
Thanks&Regards
Bhaskar Rao.M
2007 Aug 09 2:08 PM
Hello Vijay,
Please try field Exit as an alternative solution since you need only a mandatory field check.....
To create a field Exit
1)For field exits in R/3 4.6C, execute transaction CMOD. Then type PRFB in the command field.
2)on the top menu...click on Field exit-> create ->enter the name of data element
3)enter the data element required for screen field to be mandatory and Execute
4)another screen comes with a function module name FIELD_EXIT_name of data element
5)Click create and save it to corresponding function group
6)you will get a function module with
import parameter as : INPUT
export parameter as : OUTPUT
7) in the source code write the code :
if input is initial.
message 'SALES FIELD MADATORY' type 'E'.
endif.
8)again to activate execute transaction CMOD. Then type PRFB in the command field. on the top menu...click on Field exit->Activate
now wherever data element is used the mandatory check will come but you need it only for your program ,so in the same screen click on Assign prog./screen tab and write the name of the program and screen number where you want the particular check
I believe field exit are not possible if structure field is on the screen...please do the above and check..you can also run the report RSMODPRF to create a field exit
Hope the suggestions proved useful.
Reward points if it was of any help
Regards
Byju
2007 Aug 09 6:37 PM
data: s_plifz like marc-plifz
Select single plifz from marc into s_plifz where matnr = vbap-matnr
and werks = vbap-werks.
if s_plifz co ' 0'. " contains only space and zero
message
endif.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |