cancel
Showing results for 
Search instead for 
Did you mean: 

SAPScript: conditions in PO -> quantity contract

Former Member
0 Kudos

Hello at all,

I have a problem with the printing form 'quantity contract' in PO.

Application EV NEU

I have to print the gross prices for the conditions in ITEM_MCONDITIONS. I coudn´t found the values for the sum gross prices for the positions like KOMVD-KWERT in the printing form for PO.

Its difficult for me to explain so I would like to try it with an example:

QUANTITY: 10

FLAT Price: 10,00

SUM Price: 100,00

discount amount of 10%

10,00


SUM 90,00

I need the values of the conditions (e.g. discount amount of 10% ->

10,00

)

Please let me know if you have any further questions and thank you in advance for your help.

Steffi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Do you want to print the amount of percentage for each line item

like

line item at 10 10% 10,00

line item at 20 20% 20,00

do u want like this or anything else

Regards

Pavan

Former Member
0 Kudos

Hi Pavan,

yes thats exactly that what I need.

The amount of each condition in the postion.

Regards

Steffi

Former Member
0 Kudos

Hi check this sample code

 
Check your condition like this

 IF ( t_komv-mwsk1 = 'C3' OR
              t_komv-mwsk1 = 'C4' OR
              t_komv-mwsk1 = 'C6' OR
              t_komv-mwsk1 = 'C7' OR
              t_komv-mwsk1 = 'C8' OR
              t_komv-mwsk1 = 'B4' OR
              t_komv-mwsk1 = 'B5' ).
**** this is the part to display the percentage 
 l_vat1-per = t_komv-kbetr / 10.
      COLLECT l_vat1 INTO it_vat.

Here it combines all the similar line items

      wa_vatitem-item = <fs>-ebelp.
      wa_vatitem-per  = l_vat1-per.
      SHIFT wa_vatitem-item LEFT DELETING LEADING '0'.
      APPEND wa_vatitem TO it_vatitem..
      CLEAR  wa_vatitem.

Reward all helpfull answers

Regards

Pavan

Former Member
0 Kudos

Hi Pavan,

is there a chance to get the values from a table like in PO (ITEM_CONDITIONS KOMVD-KWERT)?

Are the values not provided from the program?

In many cases there are different conditions in one position

Position 1----


QUANTITY: 10

FLAT Price: 12,00

SUM Price: 120,00

&KOMVD-VTEXT(16)&,,&KOMVD-KBETR&,,<b>&???-???&</b>

discount amount of 10% 12,00

discount amount of 5% 6,00

***

SUM 84,00

Thank you

Regards

Steffi

Former Member
0 Kudos

Hi

Try to do one thing declare all the values and all the variables in areport and call that report here in your script it will solve your problem

Regards

Pavan