on 09-21-2014 11:30 AM
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 -->
But , i can not achieve it. Is there any ways to solve problem ?
Regards.
M.Ozgur Unal
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.