2009 Nov 19 4:48 AM
Dear Friends,
My requirements is change or create the Scheduling Agreement - Schedule Lines (ME32L). I am using BAPI -->
BAPI_SCHEDULE_MAINTAIN.
Its updating correctly, but automatically the item condition price details are deleted.
1st time i am facing this issue.
kindly help to rectify this issue. I am waiting for your valuable response.
FYI - this is my code
t_schedule-item_no = t_alv_output-it_no.
t_schedule-sched_line = t_alv_output-sh_no.
WRITE t_alv_output-de_dt TO t_schedule-delivery_date.
t_schedule-quantity = t_alv_output-de_qt.
t_schedule-stat_date = t_eket_qty-slfdt.
APPEND t_schedule.
t_schedulex-item_no = t_alv_output-it_no.
t_schedulex-sched_line = t_alv_output-sh_no.
t_schedulex-sched_linex = lv_x.
t_schedulex-delivery_date = lv_x.
t_schedulex-stat_date = lv_x.
t_schedulex-quantity = lv_x.
APPEND t_schedulex.
CALL FUNCTION 'BAPI_SCHEDULE_MAINTAIN'
EXPORTING
purchasingdocument = t_alv_output_head-po_no
TABLES
schedule = t_schedule
schedulex = t_schedulex
return = t_return.I am also tried
BAPI_SAG_CHANGE. this also updating the Schedule Lines. but deleting the item condition records.
Thanks & Regards,
Durai V
2009 Nov 23 5:05 AM
Kindly check notes 1034912 and 1046851
Regards
JP Milton
2009 Nov 23 5:05 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |