2024 Aug 09 7:46 AM - edited 2024 Aug 09 10:35 AM
Hi All,
Now we hope that when the user changes the conditions in VK12, Also maintain processing status.
I used BTE-00503305, this is the current code
IF konp_i-kschl = 'ZPR0' AND komg_i-vkorg = '0003'.
SELECT SINGLE *
FROM konp
WHERE knumh = @konp_i-knumh
INTO (lt).
IF lt <> konp_i.
IF fieldname = 'KBSTAT'.
CLEAR check_field.
CHECK komg_i-kbstat IS INITIAL.
returncode = 4.
MESSAGE e001(00) WITH 'Please enter processing status!'.
EXIT.
ENDIF.
ENDIF.
ENDIF.
What I have a problem with is the Fieldname, which is a parameter in BTE,
this is the description in the long text of the system
However, KBSTAT will not appear in FIELDNAME in debug unless I changed KBSTAT this time.
I'm not sure why it usually stops at MATNR, VKORG, etc.
*Update>> This controlled at VK11, it can be triggered normally*
The second question is about message, There is a note in the long text of system,
Note:
If you implement your own check, you should not issue an own error message. The function module is also called during background runs, these are interrupted abruptly by error messages. The calling program treats the RETURNCODE correspondingly, and creates either an error message, or transfers an error code to the calling program. If several USER-Exits are being used, the output of a RETURNCODE not equal to 0 surpresses the processing of subsequently assigned USER-Exits.
Does this mean I shouldn't use custom messages? So how should I restrict users?
If you have any questions about the above description, please reply and ask.
Hope anybody can help. Thank you!
User | Count |
---|---|
106 | |
8 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.