Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using Pricing type G in bapi 'BAPI_SALES_ORDER_CHANGE' .

Former Member
0 Likes
729

Req: to redetermine tax condition for the items when the document date in Sales order is change

I changed DocumentDate from 01.09.2010 to 29.07.2010 or opposite and the tax condition should be redetermine for the items.

In Bapi 'BAPI_SALES_ORDER_CHANGE', I am passing

2) header structure ,

b) Pricing type 'G' to structure '' and

c) item table with details such as posnr, matnr.

Consider there are 2 items:

Now when I pass only 1 item (supposed item 10) and Pricing type = G , tax condition of both items are redetermined.

I would like the tax condition of only the item passed (i.e item 10) to the item's table should be redermined. Tax condition for item 20 should not be determined.

How could I achieve this?

Req: to redetermine tax condition for the items when the document date in Sales order is change

I changed DocumentDate from 01.09.2010 to 29.07.2010 or opposite and the tax condition should be redetermine for the items.

In Bapi 'BAPI_SALES_ORDER_CHANGE', I am passing

2) header structure ,

b) Pricing type 'G' to structure '' and

c) item table with details such as posnr, matnr.

Consider there are 2 items:

Now when I pass only 1 item (supposed item 10) and Pricing type = G , tax condition of both items are redetermined.

I would like the tax condition of only the item passed (i.e item 10) to the item's table should be redermined. Tax condition for item 20 should not be determined.

How could I achieve this?

3 REPLIES 3
Read only

former_member191735
Active Contributor
0 Likes
629

What is the field name for pricing type ? where are you passing? i mean, which structure?

if you are passing the same at header level then it is for every item in the order. Find the field (at least i didnt find the pricing type) at item and pass those items with pricing type G for which you want to redetermine the taxes. However, do not pass at header.

Read only

0 Likes
629

Hi Sampath,

Thanks for the reply.

I am passing pricing type 'G' in structure 'logic_switch-pricing'.

I could find the pricing type field only in this structure and I think it should be at header level.

My requirement is to change the pricing type of only the selected items.

Thanks & Regards,

Abhishek Singh

Read only

0 Likes
629

Hi All,

Any solution to the above problem.

Thanks in advance.

Regards,

Abhishek