Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BADI_SD_REF_DOC_CUST

petra_just
Active Participant
0 Kudos
182

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

1 REPLY 1

Former Member
0 Kudos
68

Hi,

Please check documentation for interface IF_SD_REF_DOC_CUST

Dhiraj.