cancel
Showing results for 
Search instead for 
Did you mean: 

fb02-Assignment field (BSEG-ZUONR) field length will be shortened

gulbin01
Explorer
0 Kudos

Hi,

In fb02, can the length of the BSEG_ZUONR field be added to a control that is not an 8-character numeric value?

for example; It shouldn't be 11111111, it could be ab111111 or abcdabbc.

ff.png

UPDATE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

PRE REQUISITE: syst-tcode <> 'fb02'

CHECK : 

BSEG-ZUONR :9-9: = ''

AND BSEG-ZUONR :8-8: <> ''

AND BSEG-ZUONR :7-7: <> ''

AND BSEG-ZUONR :6-6: <> ''

AND BSEG-ZUONR :5-5: <> ''

AND BSEG-ZUONR :4-4: <> ''

AND BSEG-ZUONR :3-3: <> ''

AND BSEG-ZUONR :2-2: <> ''

AND BSEG-ZUONR :1-1: <> ''

BUT, I HAVE A PROBLEM. I NEED A NON-NUMERIC CODE.

 

 

 

Accepted Solutions (0)

Answers (2)

Answers (2)

raymond_giuseppi
Active Contributor
0 Kudos

Read User Exits in Validations/Substitutions/Rules to add some simple Abap code to the validation rule.

gulbin01
Explorer
0 Kudos
I don't have time for this, I'm a beginner ABAP programmer. Any piece of code would help me more. thanks
raymond_giuseppi
Active Contributor
0 Kudos

BSEG-ZUONR is a character field of length 18.

But you can add some validation (OB28) and/or substitution (OBBH) rule to check and/or override the input value. 

NB: Substitution/Validation allow Abap code in User Exits in Validations/Substitutions/Rules

gulbin01
Explorer
0 Kudos
Hello, How should I write the control content? Can you help me?