cancel
Showing results for 
Search instead for 
Did you mean: 

what's the best way to limit delivery type ddlist? is there a BAdI for it?

Former Member
0 Kudos

Hi Experts,

What's the best way to limit delivery types dropdown list when ordering in the b2b webshop (webshop only not others). Is there a BAdI / method I can use for this purpose? Or I have to hardcode in order.jsp? Any advise / suggestions?

Thanks, Jin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

There is no BADI for this as far i know, but you can restrict this via coding in the same jsp as you mentioned, normallydelivery type will be mapped to the shipping conditions of the BP master data,

regards

chandu

Former Member
0 Kudos

Hi Chandu,.

Thank you very much for your reply. I'm new on this area, could you please guide me or provide me a sample code for delivery type restriction, if you don't mind (I can open a new thread).

Thanks, Jin

Answers (1)

Answers (1)

Former Member
0 Kudos

Make the changes to the jsp "shippingCondition.inc"

At the top of the code put this line

String displayOption[] = {"Standard", "Pick up", "Collect", "Best Way", "3rd Party Collect"};

and than under the iterate put this code :

<%

for(int i = 0; i < displayOption.length; i++)

{

if(shipCond.getString(1).equalsIgnoreCase(displayOption<i>))

{

%>

<option <%= ui.getShipCondSelected(shipCond.getRowKey().toString()) %> value="<%= shipCond.getRowKey() %>">

<%= JspUtil.encodeHtml(shipCond.getString(1)) %>

</option>

<%

}

}

%>

Edited by: Arshi Arshi on May 26, 2009 8:29 AM

Former Member
0 Kudos

Thanks Arshi very much for your help although I have already completed the coding (you are awarded).

Thanks again, Jin