cancel
Showing results for 
Search instead for 
Did you mean: 

Invoice correction request / pricing

former_member183155
Active Contributor
0 Kudos

Hi all ;

I create a invoice correction request with referance an invoice while i get all condition types in sales order like belowed.

ZFIY : Price , ZI01 : Discount , ZKDV : Tax

I want to change it this pricing with ;

Clear discounts and modify ZFIY with net price as same as ZFIY : 4,65 TRY.

To get it , i work on user-exit -->

  • USEREXIT_PRICING_COPY (module pool SAPLV61A, program RV61AFZA)

But , i can not achieve it. Is there any ways to solve problem ?

Regards.

M.Ozgur Unal

Accepted Solutions (1)

Accepted Solutions (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

If I understand you, you want a redetermination of conditions during the copy documents. Please, check the suggestions in note 24832 - Pricing rules / TVCPF

I hope this helps you

Regards

Eduardo

former_member183155
Active Contributor
0 Kudos

Hi Eduardo Hinojosa ;

I checked note 24832 but i can not get VBAK structure in the user-exit.

I do not have any idea to solve this problem.

Sample code :

FORM USEREXIT_PRICING_COPY.

  DATA: LS_KONV LIKE KONV ,

        LV_ISKONTO TYPE P DECIMALS 2,

        LS_VBAK LIKE VBAK.

  IF VBTYP_NEW EQ 'K'.

    SELECT SINGLE * INTO LS_VBAK

FROM VBAK

WHERE KNUMV = DOCUMENT_NUMBER_FROM.

    IF SY-SUBRC EQ 0 AND

       LS_VBAK-AUART EQ 'ZRK'.

      IF KONV-KSCHL = 'ZFIY'.

        CLEAR: LS_KONV,

                      LS_VBAK.

        SELECT SINGLE * INTO LS_KONV

FROM KONV

WHERE KNUMV EQ DOCUMENT_NUMBER_FROM AND

KPOSN EQ ITEM_NUMBER_FROM     AND

KSCHL EQ 'ZI01'.

        IF SY-SUBRC EQ 0.

LV_ISKONTO = LS_KONV-KBETR / 10.

LV_ISKONTO = 10000 + LV_ISKONTO .

KONV-KBETR = KONV-KBETR * LV_ISKONTO / 10000.

KONV-KWERT = KONV-KAWRT * KONV-KBETR / 1000.

KONV-KMPRS = 'X'.

KONV-KHERK = 'C'.

KONV-KSTEU = 'C'.

        ENDIF.

      ENDIF.

      IF KONV-KSCHL EQ 'ZI01'.

        U15_SUBRC = 4 .

      ENDIF.

    ENDIF.

  ENDIF.

  ENDFORM.  


Regards.


M.Ozgur Unal               

former_member183155
Active Contributor
0 Kudos

Hi all ;

To modify conditions for invoice correction request , you can benefit from RV61AFZA (G2N items) , RV61AFZB (L2N items).

Regards.

M.Ozgur Unal

Answers (1)

Answers (1)

Former Member
0 Kudos

Sorry for asking is this discussion, but how did you make Price editable in the invoice correction request? I can only modify the quantity, but not the price

former_member183155
Active Contributor
0 Kudos

Price is modified in aboved user-exit. Please contact with your abaper.