Skip to Content
author's profile photo Former Member
Former Member

How to put char. valuation type (VBRP-BWTAR) to COPA?

We use split valuation for materials and want transfer valuation type (VBRP-BWTAR) to COPA.

Step1. i use KEDR to set a derivation rule.

Source Field: (1) COPA KAUFN (Sales Order Number) (2) COPA KDPOS (Item Number in Sales Order)

Target Field: CO-PA WW003 (Valuation Type)- user defined char.

Condition: COPA KAUFN not blank

Attributes: User-defined step ID: C01

Step2. Insert Block in "INCLUDE ZXKKEU11"

if I_STEP_ID = 'C01'.

**Valuation Type

SELECT SINGLE * FROM VBRP WHERE VBELN = ce0_1000-RBELN

AND POSNR = ce0_1000-RPOSN.

if sy-subrc = 0.

ce0_1000-WW003 = VBRP-BWTAR.

endif.

endif.

Step3. Then, we use KE4ST to simulate. We debug KE4ST, and find sy-subrc = 4.This means ce0_1000-RBELN and ce0_1000-RPOSN is empty.So, the user exit does not work.

We also check SAP Note 70231, but we find VBAP-PAOBJNR is empty after sales order created.So, this note is invalid.

If some one knows the answer, pls tell me(tataki92@hotmail.com). Thanks in advance.

Edited by: Derak Lee on Jan 4, 2008 8:35 AM

Edited by: Derak Lee on Jan 4, 2008 8:35 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jan 16, 2008 at 03:02 PM

    Hi ,

    please check your customizing settings according to note 111232. I think you can derive BWTAR without exit.

    I suppose, you do not have correct settings in der TKEZU.

    Regards,

    Andrea

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2008 at 07:21 AM

    Thanks for ur kindly help! Ur suggestion really works!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.