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

changing object list IWOL

kirankerudi
Active Participant
0 Likes
1,907

Hello Experts,

I have created object list by using IWOL_WV_ADD_OBJECTS to update the Functional Location for service contract.

Now, if I have to change the object list, how can I do that ?

Thanks,

Kiran

1 ACCEPTED SOLUTION
Read only

kirankerudi
Active Participant
1,341

I solved this on my own.

Here is how I did it..(pseudo code)

First check if the VBELN has the Object list using ' IWOL_WV_READ_LIST'.

IF sy-subrc EQ 2. "Raises No Object List


    "Add the new object list

     Call FM 'IWOL_WV_ADD_OBJECTS'

         Call FM ' IWOL_WV_POST_OBJECT_LIST'.


ELSEIF sy-subrc NE 0.

      "raise error


ELSE


     "Delete the existing object list

         Call FM 'IWOL_WV_DELETE_OBJECT_LIST'.

               Call FM 'IWOL_WV_ADD_OBJECTS'

                   Call FM ' IWOL_WV_POST_OBJECT_LIST'.


ENDIF.

Hello Experts,

I have created object list by using IWOL_WV_ADD_OBJECTS to update the Functional Location for service contract.

Now, if I have to change the object list, how can I do that ?

Thanks,

Kiran

1 REPLY 1
Read only

kirankerudi
Active Participant
1,342

I solved this on my own.

Here is how I did it..(pseudo code)

First check if the VBELN has the Object list using ' IWOL_WV_READ_LIST'.

IF sy-subrc EQ 2. "Raises No Object List


    "Add the new object list

     Call FM 'IWOL_WV_ADD_OBJECTS'

         Call FM ' IWOL_WV_POST_OBJECT_LIST'.


ELSEIF sy-subrc NE 0.

      "raise error


ELSE


     "Delete the existing object list

         Call FM 'IWOL_WV_DELETE_OBJECT_LIST'.

               Call FM 'IWOL_WV_ADD_OBJECTS'

                   Call FM ' IWOL_WV_POST_OBJECT_LIST'.


ENDIF.