cancel
Showing results for 
Search instead for 
Did you mean: 

vk11/vk12,BTE - Pricing Condition maintenance

0819
Participant
0 Kudos
141

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

  • FIELDNAME
    Name of characteristic field for which a check is carried out. The field is contained in structure KOMG

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!

Accepted Solutions (0)

Answers (0)