on 08-13-2013 10:09 AM
Hi,
I am creating a debit memo request (tcode:VA01) based on a billing document. One of condition type ZSB3 is having "requirement routine" linked to Order Reason of the sale order. As per logic in routine, on entering a particular order reason ZSB3 should disappear . It is not doing so automatically.
However, when I go to item conditions and execute "Update condition" manually -ZSB3 disappears.
Condition analysis is not giving any clue.
I want to happen this automatically without any programming involved.
Please help.
Regards,
Hi Ravi,
Ideally when you are creating credit memo request from invoice, the copy control should refer to pricing type pricing type B or G as applicable. There is no meaning in having D as pricing type.
I think your solution lies in pricing type in copy control. There is some problem in the code in your routine also.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ravi,
This is essentially a ABAP programming issues.
Kinfly suggest your ABAPer to use XVBAK instead of VBAK in his ABAP code (SImalarly if VBKD is used, XVBKD is suggested).
Thanks,
Jignesh Mehta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Since it is a custom routine , you should check whether carryout price update is put in your routine or not
Generally your abaper should put
komp-prsfd eq 'B'
which will carry out price update automatically upon adding the order reason
This piece of code is always added in all standard routines as well
regards,
santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply.
The condition routine code is as follows:
FORM KOBED_629.
sy-subrc = 4.
if komp-kposn ne 0.
check: komp-prsfd = 'X'.
endif.
check: komk-vbtyp ca vbtyp_fakt or "Invoices
komk-vbtyp ca vbtyp_anfo or "Credit / Debit requests
komk-vbtyp = 'H'. "Returns
check: komk-vbtyp ne 'U'. "excluding Pro Forma invoices
check: komk-vbtyp ne 'M'. "excluding invoice added 160708
check: komk-augru ne 'Z44'. "Z44 is order reason for discount
sy-subrc = 0.
ENDFORM.
FORM KOBEV_629.
sy-subrc = 4.
check: komk-vbtyp ca vbtyp_fakt or
komk-vbtyp ca vbtyp_anfo or
komk-vbtyp = 'H'.
check: komk-vbtyp ne 'U'.
check: komk-vbtyp ne 'M'. "excluding invoice added 160708
check: komk-augru ne 'Z44'. "Z44 is order reason for discount
sy-subrc = 0.
ENDFORM.
Can you guide me where should I put the code you mentioned?
Regards
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.