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: 

SD_SALES_ACTIVITY_SAVE doesn't update VBKOF?

tabraiz_khan
Participant
0 Kudos
105

Hi All,

I have an issue here with updating activities using the function SD_SALES_ACTIVITY_SAVE.

The activity details are in standard tables VBKA and VBKOF. When above function is called like shown below.

When I pass a new value for vbka-ktabg, for instance, it updates that field in VBKA but the same field exists in VBKOF and I want that to be updated as well.

How do I manage to do that? I thought this standard function will update VBKOF too, but it hasn't.

  CALL FUNCTION 'SD_SALES_ACTIVITY_SAVE'

       EXPORTING

            fi_update_task = ' '

            fi_aktyp       = 'V'  " for update

       TABLES

            fi_xvbadr      = vbadr

            fi_xvbfa       = vbfa

            fi_xvbka       = vbka

            fi_xvbpa       = vbpa

            fi_xvbuk       = vbuk

            fi_xvbuv       = vbuv

            fi_yvbka       = yvbka

            fi_yvbpa       = yvbpa

            fi_yvbuk       = yvbuk

            fi_yvbadr      = yvbadr.

Thanks,

Tabraiz

1 REPLY 1

tabraiz_khan
Participant
0 Kudos
54

bump