on 09-01-2009 3:22 PM
Hello all,
I am trying to delete freight cost items. When certain items are of a certain type and have 0 cost value I need to erase them. The problem is that I need to do this automatically, is there a user exit or a FM or BAPI or BADI to do this?
Many thanks in advance.
Best Regards,
Tiago Magalhães
done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem solved.
I used the user exit EXIT_SAPLV54B_004
Because the items that had 0 cost value were generating error on the transfer of the costs, what I did is change their status like this:
IF c_scd_item-vfkp-netwr IS INITIAL.
IF c_scd_item-vfkp-stber <> 'C'.
c_scd_item-vfkp-stber = 'C'.
ENDIF.
IF NOT c_scd_item-vfkp-stfre IS INITIAL.
c_scd_item-vfkp-stfre = ' '.
ENDIF.
IF NOT c_scd_item-vfkp-stabr IS INITIAL.
c_scd_item-vfkp-stabr = ' '.
ENDIF.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Two options:
1. Create a BDC program for VI02 transaction, and you can schedule it as background job. (easy development task, even though the technology is a bit old)
2. I found SAP using this function when deleting the shipment cost: SD_SCD_DELETE. The ABAPer can find more information
on how to use this FM using "where used".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
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.