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

Pricing field INCLUDE

Hi! all..

We are adding a new pricing field, DESTINATION CITY, field - ORT01 from table KNA1.

I am listing out the steps below. Please look for it's correctness and let me know the missing steps and mistakes.

1. Create a data element ZZORT01 and choose TEXT35 as its domain. Save, check and activate ZZORT01.

(ORT01_GP is the data element of ORT01 and it's domain is TEXT35.)

2. Extend structure KOMP by including ZZORT01 to KOMPAZ. Also allocate the data element ORT01_GP to ZZORT01. Again save, check and activate.

3. Assign a value to the new field in the FORM routines for sales order processing using the user exit.The code look like this:




4. Finally, allocate the specifications in table T681F.

I think if I do the above, then I must be able to get the value in SOrd. during pricing.

Let me know guys if what I am doing is right. I am a bit woried about the data element, domain part.

Please help me out.

Thanks a lot.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Nov 22, 2005 at 03:01 PM


    your user-exit looks to me not correct. In pricing subroutines you'll have the partner table of sales order (VBPA), but not the KNA1 - because that's a master data table. And it's a decision of design, from which partner the location is used for pricing (sold-to party, bill-to party, ship-to party or payer may be different).

    Next is, that you'll get from the VBPA-record the adress number to read the adress - and take the location from there ( at least in Rel.4.6c and higher).

    Regards Wolfgang

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Sri,

      For the ship-to-party address, you will use the VBPA or may be XVBPA in your user exit. You will read the partner number of the ship-to party and then do a KNA1 select for that partner to get your address fields. If there are central address fields that you want to access, then use the VBPA-ADRNR or XVBPA-ADRNR and go to ADRC to get the address values. Using this value is always safe, if you allow changes to address within the sales order.

      For getting the TRAGR, you will read your VBAP or XVBAP MATNR field and do a select from MARA to get the TRAGR value.

      Hope this helps,


  • Posted on Nov 22, 2005 at 02:47 PM

    Hi Adjust the Database and Activate.



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2005 at 03:04 PM

    Your are steps are right.

    1) First create the dataelement and assign a domain to it.

    2) Then create append structure or use the existing append structure for adding the field in it. Then activitate the dataeklement and the the structure KOMP.

    Note: if it is table table activation and adjustment is required. It is done thrpugh SE14.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 22, 2005 at 03:03 PM

    HI Keyan,

    Try keeping a break point in the Form routine, and see if the control stops there.

    If it doesn't, then I think you need to create a Project definition for the enhancement in cmod and activate the same.



    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.