Application Development and Automation 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: 
Read only

BAPI_SCHEDULE_MAINTAIN - Scheduling Agreement (Deleting Item Condition)

Former Member
0 Likes
1,757

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
946

Kindly check notes 1034912 and 1046851

Regards

JP Milton

Kindly check notes 1034912 and 1046851

Regards

JP Milton

1 REPLY 1
Read only

Former Member
0 Likes
947

Kindly check notes 1034912 and 1046851

Regards

JP Milton