on 07-24-2013 7:04 AM
Hi ,
How to compare the Delivery date in Sales Order and How to select the Largest Future Delivery date?
Issue: I want to Select the largest Future Delivery date for Creating Outbound Delivery.
In My sales Order i having 4 more line items each line times having different Delivery date.
To create Complete delivery in one day, i need to select Largest Delivery date from sales Order.
How can i Select the Largest Delivery Date from sales order.
Help me to resolve this issue.
Thanks
Sankar P.
Below mention logic is only for single sales order multiple item. For multiple sales order item you have to make necessary changes in logic.
Before using the logic please make the necessory data declaration in the program...
loop at sales_order assigning <fs_cur>.
if <fs_prv> is assign.
if <fs_cur>-date > <fs_prv>-date.
larg_date = <fs_cur>-date.
endif.
else.
larg_date = <fs_cur>-date.
endif.
endloop.
"Compare last item which miss to check in loop.
if sy-subrc eq 0.
if <fs_cur>-date > <fs_prv>-date.
larg_date = <fs_cur>-date.
endif.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
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.