2011 Feb 02 9:30 AM
Dear community,
as I am trying to select the cheapest offer in VA01, I would like to use above Badi to narrow down the selection to a certain offer type and where NETPR is the lowest. Would someone send me sample source code? I have searched both OSS and SDN for explanations, but there is nothing there execpt an explanation how to get rid of a short dump that is happening (note 655836).
Here is what I am trying to do, but the source code is not correct.
It needs to be adapted to the import and export parameters.
*select the prices of the selected offers
SELECT NETPR VBELN
FROM VBAP
INTO list_of_offers
WHERE AUART eq 'XX'
*select the cheapest offer
SORT list_of_offers by NETPR
Use the offer number that has the cheapest price.
Would be very grateful for any help. Thank you in advance!!
Petra
2011 Feb 04 6:31 AM
Hi,
Please check documentation for interface IF_SD_REF_DOC_CUST
Dhiraj.